Jump to content

fopen, file, readfile all 403d


johnnyk

Recommended Posts

This will get you started.

You will need to make sure that the cURL extension is enabled.

[code]$page = "http://en.wikipedia.org/wiki/PHP";

function processURL($url){
       $url=str_replace('&','&',$url);
       $ch=curl_init();
       curl_setopt($ch, CURLOPT_URL, $url);
       curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
       $xml = curl_exec ($ch);
       curl_close ($ch);
       echo $xml;
}

echo processURL($page);[/code]

Read the manual pages on cURL as well:

[a href=\"http://www.php.net/curl\" target=\"_blank\"]http://www.php.net/curl[/a]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.