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

Reply via email to