then set url into curl function like “curl_setopt($my_curl, CURLOPT_URL, “http://tutjunction.com/”)” .
then set header false by ” CURLOPT_HEADER “.
then afer execute the curl and close the curl connection.
Example :
$my_curl = curl_init();// cURL resource
// WE will add options to our curl
curl_setopt($my_curl, CURLOPT_URL, "http://twitter.com/");
curl_setopt($my_curl, CURLOPT_HEADER, 0);
curl_exec($my_curl); //execute curl function now and display
curl_close($my_curl); // close the curl connection

No comments:
Post a Comment
Thanks....