RE: [PHP] case ?
| From: | Maxim Maletsky | Date: | Thu, 11 Jan 2001 05:29:42 +0000 |
| Subject: | RE: [PHP] case ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33905@lists.php.net to get a copy of this message | ||
here we go, from Zeev:
> >As 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 ---+
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net