You are here: RE: [PHP] On large application organization [long and possibly bo ring] « PHP « IT news, forums, messages
RE: [PHP] On large application organization [long and possibly bo ring]

Posted by Mike Ford on 01/07/05 13:29

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@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация