|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-09 19:01 UTC] tony2001@php.net
[2006-03-09 19:16 UTC] edoardo at serra dot to dot it
[2006-03-21 16:08 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 19:00:01 2025 UTC |
Description: ------------ I have a web application needing write permissions on a directory. I decided to recursively chown that directory to nobody (the user the webserver is running as) As I chown 'chown -R nobody layout/' I get: Warning: include(layout/theme.php) [function.include]: failed to open stream: No such file or directory in /......./html/header.php on line 35 Warning: include() [function.include]: Failed opening 'layout/theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /......./html/header.php on line 35 line 35 is: include("layout/theme.php"); Needless to say the file is existent # ll layout/theme.php -rw-r--r-- 1 nobody web 31413 Mar 9 16:03 layout/theme.php As I chown the dir back to the owner of header.php it start working again... # chown -R web layout/ # ll layout/theme.php -rw-r--r-- 1 web web 31413 Mar 9 16:03 layout/theme.php Safe mode is off Reproduce code: --------------- Cannot find a few lines of code reproducing the bug, should see the whole application Expected result: ---------------- I expect to have the page included without problems Actual result: -------------- Warning: include(layout/theme.php) [function.include]: failed to open stream: No such file or directory in /......./html/header.php on line 35 Warning: include() [function.include]: Failed opening 'layout/theme.php' for inclusion (include_path='.:/usr/local/lib/php') in /......./html/header.php on line 35