Frutik
1024-й
require in required file
sorry za translit...
est' situaciya: linux, php 4.3.0, safemode, openbasedir
sleduyuschie scripty:
sorry za translit...
est' situaciya: linux, php 4.3.0, safemode, openbasedir
sleduyuschie scripty:
PHP:
<?
#
# test.php
#
require_once("./shared/access.php");
?>
<?
#
# access.php
#
require_once("./network.php");
s k i p p e d
?>
vydaet takoe:
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/network.php) is not within the allowed path(s): (/var/www/htroot) in /var/www/htroot/shared/access.php on line 6
Warning: main(network.php) [function.main]: failed to create stream: Operation not permitted in /var/www/htroot/shared/access.php on line 6
Fatal error: main() [function.main]: Failed opening required 'network.php' (include_path='.:/usr/local/lib/php') in /var/www/htroot/shared/access.php on line 6
esli otkluchit' v faile access.php require_once("./network.php");
i izmenit'
<?
#
# test.php
#
require_once("./shared/access.php");
require_once("./shared/network.php");
?>
to rabotaet... no tak neudobno i nepravilno...
v chem oshibka... mozet php nastroen krivo ili chto?