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
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: 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 14:01:30 2025 UTC