|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-13 09:21 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
Description: ------------ I have installed PHP (4.4.4) as mod_php for Apache 1.3.37 and I had set in httpd.conf in my VirtualHost section: php_admin_value open_basedir "/usr/home/user" php_admin_value doc_root "/usr/home/user" Now, I must not have access by PHP to /usr/home, /usr, / But function file_get_contents() give me full file listing of / directory with small rubbish Reproduce code: --------------- <? echo file_get_contents("/") ?> Expected result: ---------------- full file listing of / directory with small rubbish Actual result: -------------- Warning: file_get_contents() [function.file-get-contents]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/usr/home/user) in /usr/home/user/www/test.php on line 2