RE: [PHP] include php3 -vs- 4
| From: | Boget, Chris | Date: | Fri, 16 Mar 2001 20:31:26 +0000 |
| Subject: | RE: [PHP] include php3 -vs- 4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44314@lists.php.net to get a copy of this message | ||
> Is there a workaround under php3 for include_once ?
if( !$this_include_file_only_variable_declared ) {
$this_include_file_only_variable_declared = 1;
// your include script here
}
And if you attempt to include the file more than once
in a script, the IF() will resolve true and skip past the
include script.
Chris