On my main server, I have an html page (begins with <html> and ends with </html>. After the last </html> part, I have a short bit of PHP code which connects to a mysql database on another server.
Yesterday, that other server was, "down," for a while (i.e. mysql wouldn't work). During the downtime, my main page wouldn't load! Visitors would see a blank page... because my php code at the bottom was trying to connect to the down site.
I have tried everything I could think of. I even tried "Set_time_out()" ... but that won't work because my shared server's host has safe mode on. My php mysql code starts with:
$link = mysql_connect etc.
if (!$link) { die(); }
...but that doesn't work either.
So... how do I "force" my html page to appear to my visitors regardless of whether php is having any luck w/ the mysql connection???
Thank you!!