php-general | 2001032
Date: 03/16/01
- Next message: Philip Olson: "Re: [PHP] include php3 -vs- 4"
- Previous message: Jack Sasportas: "Re: [PHP] RE: [PHP-DB] Login System with access levels"
- Maybe in reply to: Jack Sasportas: "[PHP] include php3 -vs- 4"
- Next in thread: Randy Johnson: "[PHP] Frames"
- Reply: Randy Johnson: "[PHP] Frames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Next message: Philip Olson: "Re: [PHP] include php3 -vs- 4"
- Previous message: Jack Sasportas: "Re: [PHP] RE: [PHP-DB] Login System with access levels"
- Maybe in reply to: Jack Sasportas: "[PHP] include php3 -vs- 4"
- Next in thread: Randy Johnson: "[PHP] Frames"
- Reply: Randy Johnson: "[PHP] Frames"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

