php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12387 require_once doesn't support relative paths
Submitted: 2001-07-26 01:08 UTC Modified: 2001-07-27 22:17 UTC
From: willwong at samurai dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0.6 OS: FreeBSD
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: willwong at samurai dot com
New email:
PHP Version: OS:

 

 [2001-07-26 01:08 UTC] willwong at samurai dot com
require_once doesn't support relative paths.

ie. require_once('../blah.php');

won't work.

Only absolute paths work and this makes the function very unuseful at times.

Suggestion:

Make require_once support relative paths.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-27 22:17 UTC] sniper@php.net
This works for me just fine.
You might have got some permission problem.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 10:01:29 2025 UTC