Well if you really want to do it the perfect way, I would recommend
using only one PHP file to generate the whole site. Or if you like, have
one file with all the functions.

You should also read into classess and create most of the functions
as classess.

To do the error handling there are many ways to go, but the best way
would be to use output buffering. If an error occurs you can store the
entire buffer if you like into a database and present an entire different
page to the user informing that samoething went wrong. The old alternative
is to present a "50/50" page with some error handling here and there.

Its really all up to you, there isnt a perfect way in doing this. But my
advice again, use classess (OOP) as its very reusable and look at
output buffering for total control.

-- 
-- 
Kim Steinhaug
----------------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
----------------------------------------------------------------------
www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
----------------------------------------------------------------------

"Paul Higgins" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> 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.
>
> Thanks!
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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

Reply via email to