Re: One big file or many includes?
| From: | Aaron Koning | Date: | Fri, 16 Dec 2005 10:41:48 +0000 |
| Subject: | Re: One big file or many includes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227523@lists.php.net to get a copy of this message | ||
I don't know about whats best for the compiler (rather interpreter), but if
it is a really big site with a lot of access, transaction and management
functionality I recommend you start breaking the code into classes and
separating each class into a file and documenting... A LOT! It will be
clearer to understand and maintain. IMHO.
There are lots of sites out there that describe how to separate web code
into layers such as: display, logic/rules, database interactivity, etc.
Aaron
On 12/15/05, Martin Leduc <marled3@hotmail.com> wrote:
>
> Hi everyones,
>
> I coding PHP since 2002 and this is the first time I have to take this
> decision.
>
> My group and I have to build a VERY, VERY BIG website for a callcenter
> users. Understand I have to create (or use ;)) several code for access,
> transactions and management.
>
> The customer had buy MSSQL server, so we have to use it and it's working
> very fine. NO MYSQL!!!! (is not my personal choice ;))
>
> Currently it's already hard to program and now we have many file. We have
> only 20% done and the code are a real mess!!!
>
> Creating Class, functions, splitting code in several php files using
> include, see the files sitemap??
>
> So for the optimisation topic, what is THE BEST for the PHP compiler. One
> big file or many included files?
>
> Regards
>
> Martin
>
> PS: If some one know somes related links about the subject, please dont
> hesitate. ;)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>