PHP/MySQL | allow_url_include проблема
Тема закрыта by
[sukurich]
Причина: сам решил
Причина: сам решил
приветствую. возниклатакая вот хероборка вылетает ошибка:
как я понял, пых ругается на выключеный arrow_url_include. в .htaсcess стоит значение 0. как его ,собственно ,включить?
________
посл. ред. 09.08.2015 в 22:18; всего 1 раз(а); by [sukurich]
Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in D:OpenServerdomainslocalhostincfilescore.php on line 48
Warning: require_once(http://localhost/incfiles/class_ipinit.php): failed to open stream: no suitable wrapper could be found in D:OpenServerdomainslocalhostincfilescore.php on line 48
Fatal error: require_once(): Failed opening required 'http://localhost/incfiles/class_ipinit.php' (include_path='.;d:/openserver/modules/php/PHP-5.4;d:/openserver/modules/php/PHP-5.4/PEAR/pear') in D:OpenServerdomainslocalhostincfilescore.php on line 48
Warning: require_once(http://localhost/incfiles/class_ipinit.php): failed to open stream: no suitable wrapper could be found in D:OpenServerdomainslocalhostincfilescore.php on line 48
Fatal error: require_once(): Failed opening required 'http://localhost/incfiles/class_ipinit.php' (include_path='.;d:/openserver/modules/php/PHP-5.4;d:/openserver/modules/php/PHP-5.4/PEAR/pear') in D:OpenServerdomainslocalhostincfilescore.php on line 48
как я понял, пых ругается на выключеный arrow_url_include. в .htaсcess стоит значение 0. как его ,собственно ,включить?
________
посл. ред. 09.08.2015 в 22:18; всего 1 раз(а); by [sukurich]
поставь значение 1
отпишись потом
ZeeZ (09.08.2015 в 22:18)
поставь значение 1
поставь значение 1
нет. пробовал
48 строку может скинешь, а то Ванга в отпуске
Litput (09.08.2015 в 22:27)
48 строку может скинешь, а то Ванга в отпуске
48 строку может скинешь, а то Ванга в отпуске
require_once($rootpath . '/incfiles/class_ipinit.php');
зачем require обращается к localhost?
Локально логичнее файлы подключать.
require_once('incfiles/class_ipinit.php');
Локально логичнее файлы подключать.
require_once('incfiles/class_ipinit.php');
[sukurich] (09.08.2015 в 22:32)
Litput (09.08.2015 в 22:27)
48 строку может скинешь, а то Ванга в отпуске
require_once($rootpath . '/incfiles/class_ipinit.php');
Litput (09.08.2015 в 22:27)
48 строку может скинешь, а то Ванга в отпуске
require_once($rootpath . '/incfiles/class_ipinit.php');
$root_path - это не адрес сайта скорей всего, а полный путь к папке сайта от корня сервера
Как-то так
$root_path=$_SERVER['DOCUMENT_ROOT'];
Mobiaaa (09.08.2015 в 22:32)
зачем require обращается к localhost?
Локально логичнее файлы подключать.
require_once('incfiles/class_ipinit.php');
зачем require обращается к localhost?
Локально логичнее файлы подключать.
require_once('incfiles/class_ipinit.php');
просто ща на локалке пока. сейчас попробую
Исправил путь корневого каталога. теперь ошибка:
Warning: require_once(incfiles/class_ipinit.php): failed to open stream: No such file or directory in D:\OpenServer\domains\localhost\incfiles\core.php on line 48
Fatal error: require_once(): Failed opening required 'incfiles/class_ipinit.php' (include_path='.;d:/openserver/modules/php/PHP-5.5;d:/openserver/modules/php/PHP-5.5/PEAR/pear') in D:\OpenServer\domains\localhost\incfiles\core.php on line 48
хотя нужный файл там есть
Warning: require_once(incfiles/class_ipinit.php): failed to open stream: No such file or directory in D:\OpenServer\domains\localhost\incfiles\core.php on line 48
Fatal error: require_once(): Failed opening required 'incfiles/class_ipinit.php' (include_path='.;d:/openserver/modules/php/PHP-5.5;d:/openserver/modules/php/PHP-5.5/PEAR/pear') in D:\OpenServer\domains\localhost\incfiles\core.php on line 48
хотя нужный файл там есть