note 42287 added to configuration.directives
| From: | jacob-nospamatkeystreamsdotcom at rn2 dot php dot net | Date: | Tue, 11 May 2004 07:10:45 +0000 |
| Subject: | note 42287 added to configuration.directives | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69439@lists.php.net to get a copy of this message | ||
I've noticed what does not seem to be intuitive results from the 'include_path'
directive. Take the following example:
<?php
echo get_include_path(); // prints .:/usr/share/pear
// Imagine there are two Config.php files, one is in ./ the other /usr/share/pear.
// Typing the line below returns the Config.php from /usr/share/pear, not ./
require_once 'Config.php';
?>
Does it read backwards, including the first file it finds? Or forwards, including the last one?
Either way seems odd - I would imagine it would start at the left and terminate once it finds the
first instance of the file.
----
Manual Page -- http://www.php.net/manual/en/configuration.directives.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42287
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42287&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42287&report=yes
Search -- http://master.php.net/manage/user-notes.php