Re: [PHP] shutting down a web app for maintenance

2006-06-22 Thread Oscar Gosdinski
On 6/20/06, Jon Anderson [EMAIL PROTECTED] 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

Re: [PHP] shutting down a web app for maintenance

2006-06-22 Thread Richard Lynch
On Tue, June 20, 2006 12:53 pm, Ben Liu wrote: 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

[PHP] shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
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

Re: [PHP] shutting down a web app for maintenance

2006-06-20 Thread Jon Anderson
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:

Re: [PHP] shutting down a web app for maintenance

2006-06-20 Thread Ben Liu
Hi Jon, Thanks for the response. What would these solutions mean in regards to users who are active at the moment that the .htaccess file is added? Would it be wise to force some kind of logout, destruction of open sessions, etc. I guess there is no simple, graceful way to allow users to