note 63683 deleted from function.include-once by bjori
| From: | bjori@php.net | Date: | Tue, 28 Mar 2006 09:59:51 +0000 |
| Subject: | note 63683 deleted from function.include-once by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106834@lists.php.net to get a copy of this message | ||
Note Submitter: Thingmand
Reason: bad code
----
It seems that the include_once() doesnât affect double includes in included files...
Example:
<?php
include_once("foo.php");
if ($something) {
include("bar.php");
}
else {
do();
}
?>
bar.php:
<?php
include_once("foo.php"); // This will be included again!
do();
?>