php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #718 Hard to use several include
Submitted: 1998-09-02 14:20 UTC Modified: 1998-09-02 14:26 UTC
From: zavadsky at im dot bas-net dot by Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.3 OS: ALL
Private report: No CVE-ID: None
 [1998-09-02 14:20 UTC] zavadsky at im dot bas-net dot by
I wish to create a library of functions ant put it to separate directory, e.g..
inc
I put include "inc/header.inc" in the main script, ok, but when I put
include "something.inc" in header.inc, the system says file not found
I have to use include "inc/something.inc" But I have several scripts with different rlative position to inc
Proposal: when including file, all paths must be treated as path related to file directory
or path related to the main script directory, not only main scripr directory, as currently.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-02 14:26 UTC] rasmus
This is solved by the include_path directive in your php3.ini file.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 05:01:28 2024 UTC