Perchè usi quel codice invece di un semplice (e più portabile):

Codice PHP:
<?php 
$url 
"http://www.google.org";
$file file_get_contents($url);
?>