Bug #12171 Updated: Require() function malfunction across directories
| From: | yohgaki@php.net | Date: | Wed, 12 Dec 2001 13:30:15 +0000 |
| Subject: | Bug #12171 Updated: Require() function malfunction across directories | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73300@lists.php.net to get a copy of this message | ||
ID: 12171
Updated by: yohgaki
Reported By: gerry@tgico.com
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: MandrakeLinux 8.0.
PHP Version: 4.0.4pl1
New Comment:
This sounds like a most likely a file permission problem to me.
If you think this is a bug, please provide the reason.
Previous Comments:
------------------------------------------------------------------------
[2001-07-14 19:55:33] gerry@tgico.com
I have just installed MandrakeLinux 8.0. I have a PHP program that contains the following require()
function -->
require($PS_BASE.'modules/core/lib/ps_page_open.inc'); <-- This require() picks up code
outside my web tree for security reasons. When executed I get the following error --> Fatal
error: Failed opening required '/home/phpshop/phpshop-
core/modules/core/lib/ps_page_open.inc' (include_path='') in
/var/www/html/admin/prepend.php on line 14. <--
If I execute the require(), pointing at the same directory as the requesting program, it works just
fine. What do I need to do to execute a require() against code outside of my web tree. What
product would be causing the problem? (Mandrake, PHP, Apache, ...).
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12171&edit=1