|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #207 req: Change Include path per application
Submitted: 1998-03-28 10:18 UTC Modified: 1998-05-01 15:56 UTC
From: chrism at FOUR dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Release Cand OS: Unix/Windows
Private report: No CVE-ID: None
 [1998-03-28 10:18 UTC] chrism at FOUR dot net
I've been looking through the source trying to work out
a good way to change the 'include' path setting on a
per application basis.  Rather than have just one default
directory, i'd like to be able to set it based on the
'application'.  I'm thinking a possible way to do this
would be to set in the ini file, a list of 'application'
script names that php would recognise, and the 'include'
directory for that application.

Either that, or some way to change it mid-script.  Although
for security reasons, I think everyone would prefer the
.ini method.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-01 15:56 UTC] zeev
You can do that by using .htaccess files under Apache.
We're not planning to have our own .htaccess-equivalent
in PHP, even though, in a future version of PHP
(post 3.0 final) it'll be possible to override any
php3.ini directive from within a .php3 script (of course,
some directives will not be overridable in safe mode)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 09:01:28 2024 UTC