preventing multiple includes
| From: | Angus Mackay | Date: | Wed, 19 Jul 2000 19:36:37 +0000 |
| Subject: | preventing multiple includes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-7334@lists.php.net to get a copy of this message | ||
what is the best solution for preventing multiple includes?
all I want is something like what is used for .h files but I would rather
just return out of the script.
do I have to do:
if(!isset($some_var))
{
$some_var = 1;
...
}
or is there a better way?
cheers, Angus.