Implement taking a website offline?

scorpionq8

New Member
Don't need to do this right now but thinking about the future...What would be your method to take a website "offline" for a little bit through a custom coded cms? Meaning give the capability for an admin to login into an admin panel, type a message into a box, and submit the form. That message would then display rather than any other page to any user, unless the user is an admin. I have done this before and used a if xml file exists then load the content from the xml file and puts a construction background behind the message with a login box that only allows admins to log in. When the admin would type the message into the box it stored the text into the xml. When they brought the site "back to life" it would simply delete the xml file.The only problem was that once the site grew, it took more hits and checking for a file exists every page load was becoming slow. Anyone have a better solution for me?Thanks.
 
Back
Top