Работа с готовыми проектами в After Effects.mp4
Намудрил я вот такой скрипт:
$cur_cb = file("http://www.cbr.ru/scripts/XML_daily.asp", "r");
$fp = fopen("test.txt", "wb");
while (list ($line_num, $line) = each ($cur_cb)) {
fwrite($fp, $line);
}
fclose($fp);
?>
Если я его запукаю чез браузер, файл создается и все ок, а если локально (php.exe write.php) выдает ошибку:
Z:\php>php.exe write.php
Content-type: text/html
X-Powered-By: PHP/4.3.4
Warning: file(http://www.cbr.ru/scripts/XML_daily.asp): failed to open stream: HTTP r
equest failed! HTTP/1.1 403 Forbidden ( The ISA Server denies the specified Uniform Resource Locator (URL). )
in Z:\php\write.php on line 2
Warning: Variable passed to each() is not an array or object in Z:\php\write.php on line 5
br />
Причем доступ в инет есть. В чем проблема?
