require includes the file BEFORE any processing is done - so yes it will be
included - you need to use include() instead.
--Joe
On Wed, Jan 10, 2001 at 11:17:43PM -0500, Jon Rosenberg wrote:
> I know this is kinda silly. but, if I have the following, will the file
> only be included when the case is matched or does require always bring in
> the file regarless?
>
> case blah:
> require('include.php');
> do something....
> break;
>
> -----------------------------------------------------------------
> Jonathan Rosenberg
> Be fierce, be fabulous, change the world!
>
>
>
>
>
> --
> 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]
--
Joe Stump, PHP Hacker
[EMAIL PROTECTED]
http://www.miester.org/
--
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]