Re: Includes

From: Date: Fri, 19 May 2000 17:13:33 +0000
Subject: Re: Includes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206@lists.php.net to get a copy of this message
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 (#206) next »