try something like
define("CONFIGURATION", "YES");
in xyz-inc-1.php
if (CONFIGURATION != "YES") {
include("/xyz-inc-1.php");
in the script
--- Jack Sasportas <[EMAIL PROTECTED]>
wrote:
> Is there a workaround under php3 for include_once ?
>
> Thanks
>
>
___
there's a few worthy notes within user comments under include() in manual,
have a look here :
http://www.php.net/manual/en/function.include.php
regards,
philip
On Fri, 16 Mar 2001, Jack Sasportas wrote:
> Is there a workaround under php3 for include_once ?
>
> Thanks
>
> ___
> 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
Is there a workaround under php3 for include_once ?
Thanks
___
Jack Sasportas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
4 matches
Mail list logo