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
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: zavadsky at im dot bas-net dot by
New email:
PHP Version: OS:

 

 [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: Sun Dec 22 06:01:30 2024 UTC