Something like this should work
function read( $url )
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($ch, CURLOPT_HEADER, 0);
$body = curl_exec($ch);
curl_close($ch);
return $body;
}
Most of this is in the manual Id suggest you read up on cURL.