You are here: Re: Is it good to include unuse files? « PHP Programming Language « IT news, forums, messages
Re: Is it good to include unuse files?

Posted by Juliette on 09/14/06 05:13

ngocviet wrote:
> Sorry for the noob question!
> My project have alot class files(>100), in one request I only need some
> class(1-5), but I dont like to have to specifies needed files so I make
> a include.php, that include all my class files.
>
> In action file, I only include the include.php! Is it good for
> performent? Does it make any problem?
>
> Thanks!
>


Including 100+ files while you only need 5 will always hurt your
performance. Includes are slow.

Even so, it shouldn't necessarily be a problem unless you run over the
maximum execution time limit.
Just keep in mind that users who have to wait a lot, may not stay for long.

 

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

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