CormHolio
Новичок
Не могу правельно задать переменную
Не могу правельно задать переменную ROOT_PATH чтобы вызвать файл dbcron.php
Пробывал через $_SERVER['DOCUMENT_ROOT'], всёравно не помогло
Выдаваемая ошибка
Адрес этого файла http://ice.seedgame.org/iced/cron/healthupdate.php
Как правельно написать?
Не могу правельно задать переменную ROOT_PATH чтобы вызвать файл dbcron.php
PHP:
define ("ROOT_PATH", "/home/cormholio/www/ice.seedgame.org/");
require ROOT_PATH."iced/sys/dbcron.php";
PHP:
define( 'ROOT_PATH', "./", $_SERVER['DOCUMENT_ROOT'] );
Выдаваемая ошибка
PHP:
Warning: require() [function.require]: open_basedir restriction in effect. File(/home/cormholio/www/ice.seedgame.org/iced/sys/dbcron.php) is not within the allowed path(s): (/home/cormholio/data:.) in /home/cormholio/data/www/ice.seedgame.org/iced/cron/healthupdate.php on line 12
Warning: require(/home/cormholio/www/ice.seedgame.org/iced/sys/dbcron.php) [function.require]: failed to open stream: Operation not permitted in /home/cormholio/data/www/ice.seedgame.org/iced/cron/healthupdate.php on line 12
Fatal error: require() [function.require]: Failed opening required '/home/cormholio/www/ice.seedgame.org/iced/sys/dbcron.php' (include_path='.:/usr/local/share/pear') in /home/cormholio/data/www/ice.seedgame.org/iced/cron/healthupdate.php on line 12
Как правельно написать?

