|
|
|
| Ребята, написал простейший код, загружающий страницу в переменную, и затем выводящий ее
<?
$myurl="http://www.ya.ru";
$stroka=file_get_contents($myurl);
echo $stroka;
?>
localhost все нормально отрабатывает, как только размещаю ее на wallst.ru (бесплатный хостинг)
выдает
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/far/e/e/v/eevshin/public_html/index.php on line 3
Warning: file_get_contents(http://www.ya.ru) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/far/e/e/v/eevshin/public_html/index.php on line 3
Догадываюсь, что то в конфигурировании сервера, но что не понимаю. Подскажите что сделать чтоб заработало на хостинге? Заранее спасибо. | |
|
|
|
|
|
|
|
для: Igoryan
(26.05.2009 в 00:17)
| | >Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/far/e/e/v/eevshin/public_html/index.php on line 3
Выключена директива allow_url_fopen. И вряд ли вы найдёте бесплатный хостинг с ней включенной) | |
|
|
|