Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001032

RE: [PHP] include php3 -vs- 4 From: Boget, Chris (Chris.Boget <email protected>)
Date: 03/16/01

> 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