I'm using PHP on Apache serverI'm wondering.. If the error pages should best be served as pure and simple html, without database connection etc.?This would remove any chance of repeating/complicating an error that was caused by php or database, no?
Should error pages be strictly html?
htaccess;apache;apache2;error;error reporting
I would say yes, simply because there isn't any need for dynamic error pages. For example: If your database is down or under pressure, it is unlikely that you will want your error pages to be attempting database connections. Likewise, if your server is under pressure, you don't want your error pages to be carrying out any server-side processing. All-in-all, I think that it is better to keep things simple in this regard.In saying that, 404 error pages might prove to be the exception to this. Example: Showing the end-user a list of links to pages that are similar to the page that they were looking for.