[EMAIL PROTECTED] wrote:
Hi there I was wondering how people usually turn the app off during system
maintainance. During the hours of 6-7 the database goes down for backing
up, the users therefore keeping trying to get into the system, i get an
error that the database is down when i know it should be down near that
time. Without causing too many if statements what is the best way to do
this ?


I'm sure you have at least one file that is included in every script. In the file at the top do:


if(DOWN) {
        include('down_for_maintainance.html');
        exit;
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to