PHP Warning: fopen(http://site.ru/codes.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request\r\n in C:\\WebServ\\home\\site.ru\\www\\netcat\\modules\\default\\function.inc.php on line 139
Вот скрипт открытия:
$file = fopen("http://site.ru/codes.txt","r");
if(!file){
echo("Ошибка открытия файла");
}
else
{$x = 0;
while (!feof($file)){
$line = fgets($file, 1048576);
$noskids[$x] = $line;
$x++;
}
fclose($file);
}
В чем может быть проблема?