#37907 [Opn->Bgs]: problem with open_basedir restriction

From: Date: Sun, 25 Jun 2006 10:46:26 +0000
Subject: #37907 [Opn->Bgs]: problem with open_basedir restriction
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98748@lists.php.net to get a copy of this message
ID: 37907 Updated by: tony2001@php.net Reported By: sreniaw at wp dot pl -Status: Open +Status: Bogus -Bug Type: *General Issues +Bug Type: Safe Mode/open_basedir Operating System: Solaris PHP Version: 5.1.4 New Comment: Use absolute path or PHP will search file in the directory of the current script. Previous Comments: ------------------------------------------------------------------------ [2006-06-25 10:39:31] sreniaw at wp dot pl Description: ------------ I have configured php'a open_basedir for directory /wwwroot/default in httpd.conf. open_basedir = /wwwroot/default /wwwroot/default -test.txt -test.php I've tryied to read test.txt file, but I can not do it baceuse of open_basedir restriction. Reproduce code: --------------- <?php readfile("test.txt"); ?> Expected result: ---------------- Read file test.txt Actual result: -------------- Warning: readfile() [function.readfile]: open_basedir restriction in effect. File(test.txt) is not within the allowed path(s): (/wwwroot/default) in /wwwroot/default/test.php on line 2 Warning: readfile(test.txt) [function.readfile]: failed to open stream: Not owner in /wwwroot/default/test.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37907&edit=1

« previous php.bugs (#98748) next »