You are here: Re: performance issues sorrounding the use of multiple includes « PHP Programming Language « IT news, forums, messages
Re: performance issues sorrounding the use of multiple includes

Posted by larry on 09/09/06 17:37

monomaniac21 wrote:
> > If you're running that close to the limit that a few includes worry you,
> > you need a faster server (or multiple servers).
> >
>
> sorry i didnt make myself clear. say for example you have 30 incudes
> occuring in while loops pulling only a few scripts. is this going to be
> much slower than having the code (which isnt that big) in there instead?

Sounds like you need to make the 'included' script into a function and
then use an include once at the beginning and call the function when
needed, doing it the other way will definately be slower as you repeat
all that code in your script 30 times as well as fetch it 30 times.

Larry

 

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

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