note 20629 deleted from function.include-once by sniper
| From: | sniper@php.net | Date: | Tue, 04 Nov 2003 00:43:44 +0000 |
| Subject: | note 20629 deleted from function.include-once by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59805@lists.php.net to get a copy of this message | ||
Note Submitter: public@lemnet.com
----
I think what dumper.jumper at mail dot ee is saying is that if you include a file (say dir1/b.php)
into another file (say dir2/a.php), and b.php contains something like include('c.php'),
then it will be dir2/c.php that is included, NOT dir1/c.php
Secondly, include_once() also works in combination with inlcude(). So in the following code, a.php
would only be included once:
include('a.php');
include_once('a.php');