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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gerry at tgico dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 21:01:35 2025 UTC