PHP and cURL example

December 4, 2008 by admin  
Filed under PHP

<?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);
?>

Related posts:

  1. download a web page to a file using cURL This example shows how download a web page to a...
  2. Status code of a web pagewith PHP and cURL this example will display the status code of a web...
  3. Website status with PHP This example in PHP will use the fsockopen function to...
  4. Size of a webpage with PHP and cURL This example will get the size of a web page...
  5. Add to de.licio.us This will allow a user to bookmark a page on...

Related posts brought to you by Yet Another Related Posts Plugin.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!