Re: shutting down a web app for maintenance

From: Date: Tue, 20 Jun 2006 18:02:27 +0000
Subject: Re: shutting down a web app for maintenance
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238421@lists.php.net to get a copy of this message
Assuming you're using a web server that supports htaccess files, you could easily just pop in a .htaccess file that denies access to everything. You could even add a PHP ini directive like: php_value auto_prepend_file "maintenance.php" where maintenance.php could contain something like: <html><head><title>Down for Maintenance</title></head><body>Site down for maintenance!</body></html> <?php exit(0); ?> (Or, to be sure, you could do both.) jon Ben Liu wrote:
Hello All, I'm not sure this is strictly a PHP related question or perhaps a server admin question as well. What do you do when you are trying to shutdown a web application for maintenance (like a membership or registration-required system)? I understand that you can temporarily upload or activate a holding page that prevents users from continuing to login/use the system, but how can you insure that there are no ongoing sessions or users still in the process of doing something? What's the best method for handling this, especially if you don't have full control of the server hosting the web app? Thanks for any advice, - Ben


« previous php.general (#238421) next »