June 25, 2006
Using Curl to get file contents
Short and sweet php script to get the file contents on a web page on another site.
$link_page = "http://www.example.com/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link_page);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result = curl_exec ($ch);
curl_close ($ch);print_r($result);
?>
Filed under Web by admin.




























