RE: [PHP] Include Files - If already included

From: Date: Fri, 06 Oct 2000 20:35:16 +0000
Subject: RE: [PHP] Include Files - If already included
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18972@lists.php.net to get a copy of this message
> I know this was posted lately, but can't seem to find it in the archives. > But, simply, what is the syntax to avoid including a file that has already > been included by another file? include_once() or set $included[filename] = true; at the top of a file and then do an if($included[filname] != true) include(filename); for php < 4.0.1pl2 compatibility James

« previous php.general (#18972) next »