Re: Includes

From: Date: Fri, 19 May 2000 18:15:27 +0000
Subject: Re: Includes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211@lists.php.net to get a copy of this message
I can't find include_once() in the docs. Is this a suppoted function in PHP4? Where can I read about it? Zak Greant wrote: > At 12:46 PM 5/19/00 -0400, Victor wrote: > >Is there an equivalent of java's import in php?? > > > >I want to include a file that has a class. If I accidently include it > >twice (like I inlude another file that has the same include in it), i > >get errors. I currently use DEFINES (kind of like C) to stop that form > >happaning. Will php have any construct (I think perl has this) that if > >file is included once, all subsequent includes are ignored? > > If you are using PHP4, you can include use include_once() > > HTH, > > Zak

« previous php.general (#211) next »