RE: [PHP] PHP Website Architecture

From: Date: Fri, 07 May 2004 15:51:45 +0000
Subject: RE: [PHP] PHP Website Architecture
Groups: php.general 
Request: Send a blank email to php-general+get-185636@lists.php.net to get a copy of this message
On 5/7/2004 5:47:47 PM, Jay Blanchard (jay.blanchard@niicommunications.com) wrote: > [snip] > I have a question regarding website design with PHP. Is it better to > have a > single PHP script produce different content or have a separate PHP > script > for every action. > > For example, if an error occurs, should I have the same PHP script > produce > an error page or have a separate PHP script produce the error page. > > I'm asking in reference to performance. > [/snip] > If you are thinking only of performance this wont matter at all, but sometimes for the sake of simplicity and easier management of code it is good to split files for different tasks. Nearly all programs can be written in *one* very large .php file but just thinking of going back in to make changes 3 months down the road would be a nightmare. HTH. Cheers, -Ryan

« previous php.general (#185636) next »