RE: [PHP] case ?
| From: | Steve Edberg | Date: | Thu, 11 Jan 2001 05:51:09 +0000 |
| Subject: | RE: [PHP] case ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33907@lists.php.net to get a copy of this message | ||
At 2:29 PM +0900 1/11/01, Maxim Maletsky wrote:
here we go, from Zeev:Aah; so I leaned something new today :) My production systems are still PHP3; PHP4.0.4 is still on my test system. - steveAs of PHP 4.0.3, the implementation of require() no longer behaves that way, and processes the file 'just in time'. That means that in the 1st example, the file will be processed a hundred times, and in the 2nd example, it won't be processed at all. That's the way include() behaves (in all versions of PHP) as well.November 14-th ... Cheers, Maxim Maletsky
-----Original Message----- From: Maxim Maletsky Sent: Thursday, January 11, 2001 2:26 PM To: 'Steve Edberg'; Jon Rosenberg; PHP List . Subject: RE: [PHP] case ? 'require' ALWAYS includes the file; 'include' is what you want here. not since v4.0.2(?) came out ... I heard from Zeev that require() and include() behave now just about the same. Read our posting regarding this topic of 1-2 month ago.. Cheers, Maxim Maletsky 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 ---+