proxylib.php
protected function _makeFOpenRequest($url)
    {
        $context      = $this->_buildFOpenStreamContext();
        $file_pointer = @fopen($url, 'r', null, $context);

        if(!$file_pointer)
            throw new Exception("There was an error making the request. Make sure that the url is valid, and either fopen or cURL are available.");

        $meta    = stream_get_meta_data($file_pointer);
        $headers = $this->_buildResponseHeaderFromMeta($meta);
        $content = stream_get_contents($file_pointer);

        fclose($file_pointer);

        return "$headers\r\n\r\n$content";
    }
protected function _makeFOpenRequest($url)
    {
        $context      = $this->_buildFOpenStreamContext();
        $file_pointer = @fopen($url, 'r', null, $context);

        if(!$file_pointer)
            throw new Exception("There was an error making the request. Make sure that the url is valid, and either fopen or cURL are available.");

        $meta    = stream_get_meta_data($file_pointer);
        $headers = $this->_buildResponseHeaderFromMeta($meta);
        $content = stream_get_contents($file_pointer);

        fclose($file_pointer);

        return "$headers\r\n\r\n$content";
    }
protected function _makeFOpenRequest ( $ url ) { $ context = $ this -> _buildFOpenStreamContext ( ) ; $ file_pointer = @ fopen ( $ url , 'r' , null , $ context ) ; if ( ! $ file_pointer ) throw new Exception ( "There was an error making the request. Make sure that the url is valid, and either fopen or cURL are available." ) ; $ meta = stream_get_meta_data ( $ file_pointer ) ; $ headers = $ this -> _buildResponseHeaderFromMeta ( $ meta ) ; $ content = stream_get_contents ( $ file_pointer ) ; fclose ( $ file_pointer ) ; return "$headers\r\n\r\n$content" ; }
Given the object's current settings, make a request to the supplied url
using PHP's native, less speedy, fopen functions
@param string $url The url to make the request to
@return string The full HTTP response
Given the object s current settings make a request to the supplied url using PHP s native less speedy fopen functions