#36673 [Opn->Fbk]: include fails without reason

From: Date: Thu, 09 Mar 2006 18:01:23 +0000
Subject: #36673 [Opn->Fbk]: include fails without reason
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94104@lists.php.net to get a copy of this message
ID: 36673 Updated by: tony2001@php.net Reported By: edoardo at serra dot to dot it -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Linux 2.6 (FC4) PHP Version: 5.1.2 New Comment: Does it work if you specify absolute path? Previous Comments: ------------------------------------------------------------------------ [2006-03-09 18:51:55] edoardo at serra dot to dot it 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36673&edit=1

« previous php.bugs (#94104) next »