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 Jerry Stuckle on 09/09/06 19:55

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?
>

You should never need to include the same file more than once in another
file. If you do you should rethink your logic.

Larry's right - put the code in a function, include it once and call the
function multiple times if necessary.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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