Example1
<?php
$ch = curl_init("http://www.programmershelp.co.uk/curltest.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>
see it in action here Example2
<?php
//the site or URL to get
$ch = curl_init("http://www.google.com/");
//set the options for the transfer
curl_setopt($ch, CURLOPT_HEADER, 0);
//execute the session
curl_exec($ch);
//free up system resources !!IMPORTANT
curl_close($ch);
?>
see it in action here
|