Exemplo n.º 1
0
function sscall($args)
{
    $_GET = $args;
    $_REQUEST = $args;
    $_POST = $args;
    try {
        $server = Base_Server::singleton('server.ini', 'working/server.ini');
        $server->main();
    } catch (Exception $e) {
        echo 'Error: ' . $e->getMessage();
    }
}
Exemplo n.º 2
0
function sscall($args)
{
    $_GET = $args;
    $_REQUEST = $args;
    $_POST = $args;
    ob_start();
    $server = Base_Server::singleton('server.ini', 'working/server.ini');
    $server->main();
    $result = ob_get_contents();
    ob_end_clean();
    return $result;
}
Exemplo n.º 3
0
<?php

$dir = dirname(__FILE__);
require_once "{$dir}/library/base.php";
try {
    $server = Base_Server::singleton('server.ini', 'working/server.ini');
    $server->main();
} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage();
}
// testing