|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-25 10:46 UTC] tony2001@php.net
[2006-06-25 12:26 UTC] sreniaw at wp dot pl
[2006-06-29 14:38 UTC] sreniaw at wp dot pl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 04:00:02 2025 UTC |
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