note 59165 added to function.include
| From: | donynam at hotmail dot com | Date: | Mon, 28 Nov 2005 05:43:24 +0000 |
| Subject: | note 59165 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99220@lists.php.net to get a copy of this message | ||
Some of our friends complain about the include function cannot run normally when a file which they
included has another include function inside. For example,
A.php ( path: /Dir_t1/Dir_t2 )
-------
include ('../../Dir_t3/Dir_t4/B.php');
B.php ( path: /Dir_t3/Dir_t4 )
-------
include ('../../C.php');
include ('../../Common/PHP/D.php');
However when I try include_once out, it seems work. For example:
A.php ( path: /Dir_t1/Dir_t2 )
-------
include ('../../Dir_t3/Dir_t4/B.php');
B.php ( path: /Dir_t3/Dir_t4 )
-------
include_once ('../../C.php');
include_once ('../../Common/PHP/D.php');
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59165
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59165&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59165&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59165&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59165&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59165&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59165&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59165&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59165&report=yes
Search -- http://master.php.net/manage/user-notes.php