php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12171 Require() function malfunction across directories
Submitted: 2001-07-14 19:55 UTC Modified: 2001-12-12 08:30 UTC
From: gerry at tgico dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: MandrakeLinux 8.0.
Private report: No CVE-ID: None
 [2001-07-14 19:55 UTC] gerry at tgico dot 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, ...).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-12 08:30 UTC] yohgaki@php.net
This sounds like a most likely a file permission problem to me.
If  you think this is a bug, please provide the reason.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC