RE: On large application organization [long and possibly bo ring]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: m.ford@xxxxxxxxxxxxxx
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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux