To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm



On 07 January 2005 00:37, Josh Whiting wrote:

> Correction: include() statements are executed at *run time*,
> which means
> that if the case is not executed, the include will not be executed and
> the file is not even read!  The include() method is not only more
> efficient but also easier to maintain as you suggest.

The efficiency point is at least debatable -- opening and reading the file
is actually quite an expensive operation, the cost of which may outweigh the
savings in not parsing unused code.  However, if the speed question is not
an issue for your site, the maintainability is certainly a big plus.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
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