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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 - 31 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 May 17 08:01:35 2024 UTC