I'm using a free web host, and it's great.... all except the fact that they go down for a few hours from time to time. I started using Interseer to e-mail me when the site goes down, then again when the site is back up. This is great, except Interseer only recognizes HTML files... my site depends upon a mySQL database as well.
Here's what I was thinking... write a simple PHP file, which attempts to connect to mySQL. If it fails simply return nothing, so that Interseer will continue reporting an error to me. I don't think that will work, since it's responding to HTTP error codes. Here's my next thought: write a PHP file, which attempts to connect to the DB, if it fails, return a 404 Error code. Is it possible, and how can I respond with a 404 Error code?