note 2462 modified in function.include by philip
| From: | philip@php.net | Date: | Mon, 03 Sep 2001 21:14:21 +0000 |
| Subject: | note 2462 modified in function.include by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17579@lists.php.net to get a copy of this message | ||
I ran across multiple inclusion problems with a recent project.. I had one file global.php3 that was
included in several places so I added a $GLOBALINCLUDED variable in the file and anywhere I included
the global file i did this:<br>
<PRE>if(!isset($GLOBALINCLUDED) {
include "global.php3";
}
[edit note: consider include_once() ... -Philip]
http://www.php.net/manual/en/function.include.php