... detect if the DB is up or down without the PHP Intrepreter printing an error?
I decided to recode my site from scratch with a MySQL backend. However, I want parts of the site to be able to run off flat files when the DB is down. I know how to get it to run off flat files but I don't know how to detect if MySQL is running or not without PHP giving an error.
I decided to recode my site from scratch with a MySQL backend. However, I want parts of the site to be able to run off flat files when the DB is down. I know how to get it to run off flat files but I don't know how to detect if MySQL is running or not without PHP giving an error.
Comment