Results 1 to 6 of 6
Nov 21, 2004, 00:30 #1
- Join Date
- Jan 2002
- Swindon UK
- 0 Post(s)
- 0 Thread(s)
Site unavailable - can I use some kind of 'switch'
I've been pondering an idea - if I am updating a MySQL db, I'd like to temporarily switch off the site. I was thinking of placing a command in a common include file - the first file that is included in all pages. If I have set the db so that the site is unavailable, I'd like to redirect to a generic 'site being updated' page. This is what I tried:
But in Firefox it's moaning about the redirect.
"Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked."
Can someone suggest what I'm doing wrong? Or a better way of doing this?
On a similar topic, rather than doing a redirect, is there a PHP command that basically means "stop processing enything else on this page". If that's possible, I could write out the 'site being updated' message and then do that stop command.
Any tips appreciated!