[PHP] include php3 -vs- 4

2001-03-16 Thread Jack Sasportas
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

RE: [PHP] include php3 -vs- 4

2001-03-16 Thread Boget, Chris
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

Re: [PHP] include php3 -vs- 4

2001-03-16 Thread Philip Olson
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

Re: [PHP] include php3 -vs- 4

2001-03-16 Thread rm
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