At 2:29 PM +0900 1/11/01, Maxim Maletsky wrote:
>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



Aah; so I leaned something new today :)

My production systems are still PHP3; PHP4.0.4 is still on my test system.

        - steve



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