Re: require or include

From: Date: Thu, 15 Nov 2001 20:18:11 +0000
Subject: Re: require or include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74780@lists.php.net to get a copy of this message
Sjoerd Van Oosten wrote: > I'm just wandering what's better, require or include. Neither is "better" Now that PHP is being compiled to byte-code before execution, I don't *THINK* there's any real difference... If there *IS* a difference, it's about *WHEN* the code gets evaluated: require would get evaluated only *ONCE* when it was first encountered, and the results get pasted in. include will re-evaluate the contents every time it is encountered. -- Like music? http://l-i-e.com/artists.htm

« previous php.general (#74780) next »