diff --git a/php/library.php b/php/library.php index dd931b4..9498a2d 100755 --- a/php/library.php +++ b/php/library.php @@ -353,8 +353,7 @@ function getUrl($url) { $f = @fsockopen($host, 80, $errorNumber, $errorString, 60); if ($f) { fwrite($f, $headers); - while (!feof($f)) - $data .= fread($f, 1024); + $data = stream_get_contents($f); fclose($f); $data = substr($data, strpos($data, "\r\n\r\n") + 4); } @@ -524,4 +523,4 @@ function crawlPath($path) { -?> \ No newline at end of file +?>