Re: Newbie Technical Question
| From: | Plutarck | Date: | Fri, 20 Apr 2001 00:13:32 +0000 |
| Subject: | Re: Newbie Technical Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49454@lists.php.net to get a copy of this message | ||
On the last question, technically yes.
The key is, how big is big?
If the global file is less than 1000-2000 lines, I wouldn't worry about it.
If it starts getting so large that it's 50-100k, then yes you should
probably break it up.
Under 40k and don't even worry about it unless you are under an utterly
immense server-strain.
--
Plutarck
Should be working on something...
...but forgot what it was.
"Nashirak Bosk" <nashirak@mindspring.com> wrote in message
news:3ADF5545.210B2E57@mindspring.com...
> I have a php file with a lot of user defined funtions and wraper
> functions in the this global file. Almost all my pages then use the
> funtions in this one file (and variables), this is so I can keep my
> website very modulure. However I know that having php go through the
> file takes a bit of processor time and was wondering if it would be wise
> to break up this global file or (into global 1 and 2) or something and
> then only use the global 1 when those function are needed and visa
> versa. Am I correct in assuming that if that global file gets too big
> PHP is going to have to chew on it longer and therefore hold up the
> page?
>
> Thanks
>
> --
> -------------------------------
>
> Clayton Bluhm
>
> Computer Engineering Student
>
> gte501v@prism.gatech.edu (School)
> nashirak@mindspring.com (home)
>
>
>