|
| |
|
|
| |
для: epc
(23.05.2006 в 17:40)
| | | На хостинге запретили указывать URL для инклудов (и не только :-) ).
Попробуйте написать
<? include ("buttons_".$btn.".inc");?>
|
Ваш top_line.php находится в одном каталоге с buttons_".$btn.".inc
Либо используйте относительный путь для инклуда, типа
../include.inc | |
| |
|
|
| |
|
|
| | После того как перенастроили хостинг сервер, скрипт в одном месте начал выдавать предупреждения.
Кусок скрипта, который начал выдавать ошибку:
<? include ($root."/admin/explorer/buttons_".$btn.".inc");?>
Текст ошибки:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in
/var/www/servers/xxx/explorer/top_line.php on line 14
Warning: include(http://www.niitk.kazan.ru/explorer/buttons_2.inc) [function.include]: failed to open stream: no suitable wrapper could be found in /var/www/servers/xxx/explorer/top_line.php on line 14
Warning: include() [function.include]: Failed opening 'http://www.niitk.kazan.ru/admin/explorer/buttons_2.inc' for
inclusion (include_path='.:/usr/local/lib/php') in /var/www/servers/xxx/explorer/top_line.php on line 14[code] | |
| |
|
|
|