Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP / MySQL - Alternate Error Display


assembler

Recommended Posts

When my hosted shared server has problems with its database server, I get a message like:

 

Warning: mysql_connect(): Too many connections in /path/to/my/site/www/catalog/admin/includes/functions/database.php on line 19 Unable to connect to database server!

 

I feel that displaying the entire path is a security risk. Has anyone dealt with this by creating custom error messages, suppressing the messages, emailing them, etc? I would love to be able to send a text page whenever this error occurs, and would like to have some sort of apology display to my visitors.

 

Thank you in advance.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...