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
[Back to original message]
|