As an alternative, you can use cURL, like:
$url = "http://www.google.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
See: cURL
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…