At 11:17 PM -0500 1/10/01, 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;
>


'require' ALWAYS includes the file; 'include' is what you want here.

The tradeoff is that include is slightly slower. For more info, see

        http://www.php.net/manual/function.include.php
and
        http://www.php.net/manual/function.require.php

-steve

+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+

-- 
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