Re: Re: Passing variables with include()

From: Date: Mon, 14 Jan 2002 14:03:47 +0000
Subject: Re: Re: Passing variables with include()
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-80455@lists.php.net to get a copy of this message
Scott Houseman wrote:
Hi Al. While we are on topic, what are the key differences between include() & require() ?
"Unlike include(), require() will always read in the target file, even if the line it's on never executes. If you want to conditionally include a file, use include(). The conditional statement won't affect the require(). However, if the line on which the require() occurs is not executed, neither will any of the code in the target file be executed."

« previous php.general (#80455) next »