From:             [EMAIL PROTECTED]
Operating system: Any
PHP version:      4.0.6
PHP Bug Type:     Feature/Change Request
Bug description:  include() in included file should check included file's directory

When using include(), it should check the current file's directory.
Currently PHP start from the script's directory.

Say you have the following files:

If wants to include, you would need to know from where
it was included. If you started off from main.php, main.php would have
include('include/') and would have
include('include/'). If you started off from tools.php, tools.php
would have include('../include/') and would have

Which is very silly, IMO. needs, and i can make sure
they're together in the same directory, so i can simply use
include('') in why should i have to care what script
and in what directory included

I can't believe this feature isn't there. I checked all over the place but
it seems it isn't. Am I the only one who uses more than one directory for
my scripts?

If this feature breaks some old scripts, you could have an option in the
config file to turn it on or off.

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to