Gordon Stewart wrote: > Ok... > > Ive got my main script - which includes another smaller script.... > > The small script does some calculations - & returns the result back to > the main script.... > > - The smaller script is "included" - anywhere from 1, to 5 or more > times (unknown numbver of times - its within a loop) > > - Dont worry, - its not an endless loop... - But it does get called / > included one or more times..... > > I want this smaller script - as is - As the same calculations will be > used later - aswell - In future un-created (as yet) scripts... > > QUERY :- > > Is there any dis-advantage, in 'including' the same script multiple > times like this ? > > Or - Is there a way, that I can "load" the script into memory - & call > it from memory ? > > (does that make sense - & if I can - How ?, & is it more beneficial ?) > > -- > > G Stewart > Gmail invites - Hundreds available.. > Gmail : [EMAIL PROTECTED] > NZ: [EMAIL PROTECTED]
You're doing a file include statement within a loop??? I'm not even sure if that will work.... This sounds like a perfect opportunity for a class (if you're oriented toward objects), or a function. Call the function in your loop... don't attempt to perform repetitive calculations by including a file multiple times. Mike [Non-text portions of this message have been removed] Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
