public function getServerInfos()
    {
        //====================================================================//
        // Init Result Array
        $response = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);

        //====================================================================//
        // Server Infos
        $response->ServerType = 'PHP';                              // INFO - Server Language Type
        $response->ServerVersion = PHP_VERSION;                     // INFO - Server Language Version
        $response->ProtocolVersion = SPL_PROTOCOL;                  // INFO - Server Protocal Version
        //====================================================================//
        // Server Infos
        $response->Self = Splash::input('PHP_SELF');                // INFO - Current Url
        $response->ServerAddress = Splash::input('SERVER_ADDR');    // INFO - Server IP Address
        // Read System Folder without symlinks
        $response->ServerRoot = realpath((string) Splash::input('DOCUMENT_ROOT'));
        $response->UserAgent = Splash::input('HTTP_USER_AGENT');    // INFO - Browser User Agent
        $response->WsMethod = Splash::configuration()->WsMethod;    // Current Splash WebService Component

        //====================================================================//
        // Server Urls
        //====================================================================//
        // CRITICAL - Server Host Name
        $response->ServerHost = $this->getServerName();

        //====================================================================//
        // Server IPv4 Address
        $response->ServerIP = Splash::input('SERVER_ADDR');

        //====================================================================//
        // Server WebService Path
        if (isset(Splash::configuration()->ServerPath)) {
            $response->ServerPath = Splash::configuration()->ServerPath;
        } else {
            $fullPath = dirname(__DIR__);
            $relPath = explode((string) $response->ServerRoot, $fullPath);
            if (is_array($relPath) && isset($relPath[1])) {
                $response->ServerPath = $relPath[1].'/soap.php';
            } else {
                $response->ServerPath = null;
            }
        }

        $response->setFlags(ArrayObject::STD_PROP_LIST);

        return $response;
    }
public function getServerInfos()
    {
        //====================================================================//
        // Init Result Array
        $response = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);

        //====================================================================//
        // Server Infos
        $response->ServerType = 'PHP';                              // INFO - Server Language Type
        $response->ServerVersion = PHP_VERSION;                     // INFO - Server Language Version
        $response->ProtocolVersion = SPL_PROTOCOL;                  // INFO - Server Protocal Version
        //====================================================================//
        // Server Infos
        $response->Self = Splash::input('PHP_SELF');                // INFO - Current Url
        $response->ServerAddress = Splash::input('SERVER_ADDR');    // INFO - Server IP Address
        // Read System Folder without symlinks
        $response->ServerRoot = realpath((string) Splash::input('DOCUMENT_ROOT'));
        $response->UserAgent = Splash::input('HTTP_USER_AGENT');    // INFO - Browser User Agent
        $response->WsMethod = Splash::configuration()->WsMethod;    // Current Splash WebService Component

        //====================================================================//
        // Server Urls
        //====================================================================//
        // CRITICAL - Server Host Name
        $response->ServerHost = $this->getServerName();

        //====================================================================//
        // Server IPv4 Address
        $response->ServerIP = Splash::input('SERVER_ADDR');

        //====================================================================//
        // Server WebService Path
        if (isset(Splash::configuration()->ServerPath)) {
            $response->ServerPath = Splash::configuration()->ServerPath;
        } else {
            $fullPath = dirname(__DIR__);
            $relPath = explode((string) $response->ServerRoot, $fullPath);
            if (is_array($relPath) && isset($relPath[1])) {
                $response->ServerPath = $relPath[1].'/soap.php';
            } else {
                $response->ServerPath = null;
            }
        }

        $response->setFlags(ArrayObject::STD_PROP_LIST);

        return $response;
    }
public function getServerInfos ( ) { //====================================================================// // Init Result Array $ response = new ArrayObject ( array ( ) , ArrayObject :: ARRAY_AS_PROPS ) ; //====================================================================// // Server Infos $ response -> ServerType = 'PHP' ; // INFO - Server Language Type $ response -> ServerVersion = PHP_VERSION ; // INFO - Server Language Version $ response -> ProtocolVersion = SPL_PROTOCOL ; // INFO - Server Protocal Version //====================================================================// // Server Infos $ response -> Self = Splash :: input ( 'PHP_SELF' ) ; // INFO - Current Url $ response -> ServerAddress = Splash :: input ( 'SERVER_ADDR' ) ; // INFO - Server IP Address // Read System Folder without symlinks $ response -> ServerRoot = realpath ( ( string ) Splash :: input ( 'DOCUMENT_ROOT' ) ) ; $ response -> UserAgent = Splash :: input ( 'HTTP_USER_AGENT' ) ; // INFO - Browser User Agent $ response -> WsMethod = Splash :: configuration ( ) -> WsMethod ; // Current Splash WebService Component //====================================================================// // Server Urls //====================================================================// // CRITICAL - Server Host Name $ response -> ServerHost = $ this -> getServerName ( ) ; //====================================================================// // Server IPv4 Address $ response -> ServerIP = Splash :: input ( 'SERVER_ADDR' ) ; //====================================================================// // Server WebService Path if ( isset ( Splash :: configuration ( ) -> ServerPath ) ) { $ response -> ServerPath = Splash :: configuration ( ) -> ServerPath ; } else { $ fullPath = dirname ( __DIR__ ) ; $ relPath = explode ( ( string ) $ response -> ServerRoot , $ fullPath ) ; if ( is_array ( $ relPath ) && isset ( $ relPath [ 1 ] ) ) { $ response -> ServerPath = $ relPath [ 1 ] . '/soap.php' ; } else { $ response -> ServerPath = null ; } } $ response -> setFlags ( ArrayObject :: STD_PROP_LIST ) ; return $ response ; }
Return Server Informations

@return ArrayObject $Response

@SuppressWarnings(PHPMD.Superglobals)
Return Server Informations