From: [EMAIL PROTECTED]
Operating system:
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: Please either change include/require/virtual directive, or create
new one!
I have been searching the php.net forums, bug tracker, etc for a way to do
the following, and perhaps misread the "virtual" php operator, but in any
case:
Php needs to include SSI functionality in regards to using relative paths
on files being included, eg:
If I have a php file, "$HOME/htdocs/static/header.php", and have a tree
structure below "htdocs", I cannot find a legit way to include header.php
in a relative fashion, eg "include /header.php". "../../../../header.php"
or "/full/path/to/header.php" are not solutions I am looking for :)
That being said, "virtual" seems to encompass what I am looking to do at a
cursory glance, but i'm concerned that I may lose some functionality down
the road. From the current php.net manual on the "virtual" function:
"virtual() cannot be used to include a document which is itself a PHP
file."
Please, please, PLEASE either create a new directive/option:
(<? php ssi("/static/header.php") ?>
... or modify the existing ones.
If virtual *is* intended to be the fix, please update the documentation as
it is either outdated or misleading (to me anyhew :)
Basically, I need full php functionality *AND* the ability to include other
php files in a fully relative nature (EXACTLY like SSI is currently
implemented).
Thanks!
Further diags:
If I try the following:
<?php include ("/static/header.php"); ?>
I get:
Warning: Failed opening '/static/header.php' for inclusion
(include_path='.:/web/htdocs/user/static') in /web/htdocs/user/index.php on
line 0
--
Edit bug report at: http://bugs.php.net/?id=14710&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]