I try to open URL: http://911.bg . I see it in browser, but can't read HTML with PHP functions:
file() - return empty array
file_get_contents() - return empty string
fopen() - return empty string
I tried also curl - the same result.
I don't receive any errors from functions - only empty data. All other sites I tried work fine
Can you help me read HTML from this site ?
Code: Select all
error_reporting(E_ALL);
echo $url = 'http://911.bg/a2/large.asp?parent=1010&act=0&loc=0&m=32';
echo '<br/>';
print_r(file($url));
echo(file_get_contents($url));
$fd = fopen($url, "r");
while (!feof($fd)) echo $buffer = fgets($fd, 4096);
fclose($fd);