Re: [PHP] include php3 -vs- 4
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 > > ___ > 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 list administrators, e-mail: > [EMAIL PROTECTED] > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] include php3 -vs- 4
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 > > ___ > 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 list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] include php3 -vs- 4
> 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
[PHP] include php3 -vs- 4
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 list administrators, e-mail: [EMAIL PROTECTED]