<?php
// the cURL extension loaded check
if(!extension_loaded("curl")) {
die("cURL extension not loaded");
}
// create a new cURL resource
$ch = curl_init();
// set the URL
curl_setopt($ch, CURLOPT_URL, "http://www.example.com");
// execute and pass the result to browser
curl_exec($ch);
// close the cURL resource
curl_close($ch);
?>