NeoLynx
Новичок
странная ошибка с open_basedir
Доброе время суток, может кто сталкивался или хоть подскажет куда копать:
$_SERVER['DOCUMENT_ROOT'] равен /home/145223/http
есть код:
file($_SERVER['DOCUMENT_ROOT']."/test.php");
file("/test.php");
первый вызов файла test.php работает нормально
Второй приводит к ошибке:
Warning: file() [function.file]: open_basedir restriction in effect. File(/test.php) is not within the allowed path(s): (.:/home/145223) in /home/145223/http/open.php on line 10
Warning: file(/test.php) [function.file]: failed to open stream: Not owner in /home/145223/http/open.php on line 10
open_basedir по phpinfo равен .:/home/145223 и no value
из-за чего такое может быть?
Доброе время суток, может кто сталкивался или хоть подскажет куда копать:
$_SERVER['DOCUMENT_ROOT'] равен /home/145223/http
есть код:
file($_SERVER['DOCUMENT_ROOT']."/test.php");
file("/test.php");
первый вызов файла test.php работает нормально
Второй приводит к ошибке:
Warning: file() [function.file]: open_basedir restriction in effect. File(/test.php) is not within the allowed path(s): (.:/home/145223) in /home/145223/http/open.php on line 10
Warning: file(/test.php) [function.file]: failed to open stream: Not owner in /home/145223/http/open.php on line 10
open_basedir по phpinfo равен .:/home/145223 и no value
из-за чего такое может быть?

