note 73768 added to function.include
| From: | gabriel at bumpt dot net | Date: | Fri, 09 Mar 2007 15:36:40 +0000 |
| Subject: | note 73768 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124267@lists.php.net to get a copy of this message | ||
In response to baofu:
The problem with calling:
set_include_path( ... )
before including any file, is that if one of the included files, in turn, does a set_include_path to
include yet another bunch of files, then the following include statement in your topmost file, is
done in an include path context that has changed.
Using: include dirname(__FILE__).'/../foo/bar' remains the best solution.
----
Server IP: 64.71.164.2
Probable Submitter: 207.45.248.19
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- https://master.php.net/note/edit/73768
Del: integrated -- https://master.php.net/note/delete/73768/integrated
Del: useless -- https://master.php.net/note/delete/73768/useless
Del: bad code -- https://master.php.net/note/delete/73768/bad+code
Del: spam -- https://master.php.net/note/delete/73768/spam
Del: non-english -- https://master.php.net/note/delete/73768/non-english
Del: in docs -- https://master.php.net/note/delete/73768/in+docs
Del: other reasons-- https://master.php.net/note/delete/73768
Reject -- https://master.php.net/note/reject/73768
Search -- https://master.php.net/manage/user-notes.php