Re: Making an app unviewable during system maintainance
| From: | Marek Kilimajer | Date: | Tue, 20 Apr 2004 23:17:11 +0000 |
| Subject: | Re: Making an app unviewable during system maintainance | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184074@lists.php.net to get a copy of this message | ||
daniel@electroteque.org 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; }