Re: require & include

From: Date: Mon, 22 Oct 2001 22:26:08 +0000
Subject: Re: require & include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71874@lists.php.net to get a copy of this message
http://www.php.net/manual/en/function.require.php require() pulls in the target file when the source file is parsed/compiled, include() pulls in the target file when the source file is executed. So an include() nested in an if statement will only be included if the if statement evaluates to true, a require() nested in an if statement will be included regardless. Also check out include_once() and require_once(). -Steve On Monday, October 22, 2001, at 05:15 PM, jtjohnston wrote:
Coverting from perl ... What's the differencw between require and include? Where, when, why? John? -------- Email post & reply always appreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#71874) next »