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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to