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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 08:01:30 2024 UTC