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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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 07:01:32 2024 UTC