private static function loadContent($url) {
        //TODO: implement URL content load functionality with CURL and proxy

        $ch = curl_init($url);
        $options = array(
            CURLOPT_RETURNTRANSFER => true
        );
        curl_setopt_array($ch, $options);

        $content = curl_exec($ch);

        curl_close($ch);

        if ($content === false) {
            throw new Exception("Can't get content from " . $url);
        }
        return $content;
    }
private static function loadContent($url) {
        //TODO: implement URL content load functionality with CURL and proxy

        $ch = curl_init($url);
        $options = array(
            CURLOPT_RETURNTRANSFER => true
        );
        curl_setopt_array($ch, $options);

        $content = curl_exec($ch);

        curl_close($ch);

        if ($content === false) {
            throw new Exception("Can't get content from " . $url);
        }
        return $content;
    }
private static function loadContent ( $ url ) { //TODO: implement URL content load functionality with CURL and proxy $ ch = curl_init ( $ url ) ; $ options = array ( CURLOPT_RETURNTRANSFER => true ) ; curl_setopt_array ( $ ch , $ options ) ; $ content = curl_exec ( $ ch ) ; curl_close ( $ ch ) ; if ( $ content === false ) { throw new Exception ( "Can't get content from " . $ url ) ; } return $ content ; }
Loads HTML content using CURL.

@param string $url URL of the page.

@return string HTML content (on success).
@throws Exception If content loading error occurred.
Loads HTML content using CURL .