Ok, thanks. I didn't think it would make a difference. And I agree, splitting things up makes things a lot easier.

Thanks!


From: "Ryan A" <[EMAIL PROTECTED]>
Reply-To: "Ryan A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: [PHP] PHP Website Architecture
Date: Fri, 7 May 2004 17:51:45 +0200


On 5/7/2004 5:47:47 PM, Jay Blanchard ([EMAIL PROTECTED]) 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to