> -----Original Message-----
> From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]]
> Sent: 15 March 2002 00:55
> Plus, depending on how you are calling the file.  Meaning if 
> the file name
> that you are calling is a static file name or dynamic file name
> require() and require_once()  will include a file before the 
> php parser
> starts its job, but this will only happen if the name isn't dynamic.

In fact, I believe that what you are describing is an OLD behaviour (prior to PHP 
4.0.2, in fact).  However, the manual has only recently changed to document the new 
behaviour (and actually doesn't do it very well, yet).  Now, BOTH require and include 
(and their _once versions) work dynamically, and the only difference is in how they 
report a failure.



Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to