TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Database Management > MySQL
MySQL Forum dedicated to the world's most popular open source database engine.

Reply
 
Thread Tools Display Modes
Old April 10th, 2010, 09:25 PM   #1 (permalink)
A J
Guest
 
Posts: n/a
Default How can I create a custom PHP/MySql error message?

I have spent hours Googling this before bothering you guys but am getting nowhere. I am looking for pages from a certain directory on my web server to NOT output the 'failed to connect to database' message that occurs when my site has an influx of hits. Instead I would like to totally control what the page displays in that eventuality.

Do I, for one thing, need a custom php.ini in that directory that turns standard error messages off? I want to display a completely customised message for this situation with none of MySql's or PHP's interference, and without sending users to another page than the one on which the connection failed because of high traffic.
原帖地å€: TechSpott - Computer and technology forums http://www.techspott.com//showthread.php?p=6125

If anyone knows of a quick solution or an example-ridden simple tutorial, I would be glad of it. I haven't done any web-development in years and I am trying to set up my site one time and then leave development behind, so I would rather not be pointed to books or references in the official manuals, if possible. Thanks in advance.
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
create, custom, error, message, php or mysql


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create multiple AdSense search engines? Lando Adsense 0 April 4th, 2010 06:31 PM
How to create multiple AdSense search engines? Lando Adsense 0 April 4th, 2010 12:45 PM
Create Custom Themes in windows 7? Auzeras Windows 7 0 April 4th, 2010 03:25 AM
how to create custom 403 page command forbidden for all my image file in web hosting? Rich Web Hosting 0 April 4th, 2010 02:54 AM
. Create Alarms and Reminders with Windows XP's Scheduling Service Ruyi Windows XP 0 March 24th, 2010 08:31 PM

 
Forum Stats
Members: 14,365
Threads: 20,373
Posts: 27,836
Total Online: 38

Newest Member: ddylanf

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 05:40 PM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO