Using cURL starts with a set of three functions, curl_init(), curl_setopt() and curl_exec().

<?php
$ch = curl_init ('http://www.php.net/');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);

print $data;
?>