PHP and cURL example

Grab a page from someone elses site

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