Re: check if a file has already be included

From: Date: Mon, 17 Feb 2003 16:43:23 +0000
Subject: Re: check if a file has already be included
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135853@lists.php.net to get a copy of this message
Thanks, forgot about that :) I'm a converted ASP programmer...ASP has no such ability. -Greg "Rick Emery" <remery@emeryloftus.com> wrote in message news:013b01c2d6a1$2a599d70$0500a8c0@honeybee... > can you use: include_once("filename"); > > This way, if it wasn't included, it will be. If it was included, this statement is ignored. > ----- Original Message ----- > From: "Greg" <gregchagnon@hotmail.com> > To: <> > Sent: Monday, February 17, 2003 10:18 AM > Subject: [PHP] check if a file has already be included > > > Is there any way to check if a file has been included / required already, > and if not include / require it? > Thanks! > -Greg > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#135853) next »