[FX.php List] "site down for maintenance" include?
Dale Bengston
dbengston at preservationstudio.com
Wed Mar 7 13:24:15 MST 2007
I don't know how you're doing your page organization, but you could
only do the view on the login page, and shut the door accordingly. If
you used a completely stripped layout, your overhead would be pretty
minimal. Performing a view doesn't return field data, just info about
the layout.
Dale
On Mar 7, 2007, at 1:53 PM, Joel Shapiro wrote:
> Thanks Dale
>
> An FMView would add overhead to the page load, though, wouldn't
> it? (An additional hit to the DB on every page, including on non-
> login pages that do return FM data)
>
> Seems like a choice between the extra step of changing the php
> include whenever I bring the DBs down -- as per Andy's suggestion
> -- or having the site automatically know when the DBs are down but
> having an extra hit to the DB on every page (though this would be a
> more elegant solution in situations where the DBs are down
> unintentionally.)
>
> Thanks,
> -Joel
>
>
> On Mar 7, 2007, at 1:28 PM, Dale Bengston wrote:
>
>> Joel,
>>
>> You could perform a simple FMView from your login page and trap
>> for any errors. Errors result in the "Site Closed" notice. No
>> errors gets the more typical user experience.
>>
>> Dale
>>
>> On Mar 7, 2007, at 11:35 AM, Joel Shapiro wrote:
>>
>>> Hi all
>>>
>>> Has anybody implemented a procedure to automatically alert users
>>> when a site is down due to the FM files being closed on FMSA?
>>>
>>> I'm thinking an include on every page that could check if the DB
>>> is available, and if not, present a friendly message to site-
>>> visitors and then a php exit;
>>>
>>> Would this work? Is there a specific FX error to easily check for?
>>>
>>> This would be for when the DB needs to be closed for updating, etc.
>>>
>>> Thanks,
>>> -Joel
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list