Re: shutting down a web app for maintenance

From: Date: Fri, 23 Jun 2006 00:40:53 +0000
Subject: Re: shutting down a web app for maintenance
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-238529@lists.php.net to get a copy of this message
On 6/20/06, Jon Anderson <jon@gamingsolutions.ca> wrote:
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); ?>
if this is the case, why don't you put clean session sentences in your maintenance.php. With those sentences you are sure that anybody that wants to access your application will be kicked off. -- Saludos Oscar

« previous php.general (#238529) next »