Re: Architecture Question

From: Date: Sat, 05 Aug 2000 21:08:19 +0000
Subject: Re: Architecture Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10272@lists.php.net to get a copy of this message
At 03:51 PM 08/05/2000 -0500, Daniel Higgins wrote:
    I was wondering what was considered the best way to lay out php files.  Does the Phpshop model, were all pages go to one file, index.php3, which calls all functions and templates, work best, or is it better to have several different pages in PHP Normal Form.
There is actually little overhead to having multiple include files, at least on Unix systems, because the OS's file caching system will keep them in memory after they are read in the first time. This assumes you have you have plenty of RAM (if you don't this will be the least of your worries). I have about a dozen include files I use in various combinations in projects. I create a project "master" include file that defines various global variables, and brings in the include files, as required. This is also a real boon if you have multiple developers working on the same project, since it reduces the likelyhood that two people will be trying to work on the same funciton.

« previous php.general (#10272) next »