Re: case ?
| From: | Steve Edberg | Date: | Thu, 11 Jan 2001 04:37:27 +0000 |
| Subject: | Re: case ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33894@lists.php.net to get a copy of this message | ||
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 | | sbedberg@ucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ |+-------------------------------------- FBI Special Agent Dale Cooper ---+