[FX.php List] "site down for maintenance" include?
Joel Shapiro
jsfmp at earthlink.net
Wed Mar 7 10:57:08 MST 2007
So I could just manually change the php in the include page itself,
and not even have to check for actual DB availability.
Very nice, and easy enough :)
Seems I could even just have a line or two in my include that I
uncomment whenever I want to display the "maintenance" message (and
exit before any subsequent php), and then just re-comment them once
the maintenance is done.
Thanks Andy!
Best,
-Joel
On Mar 7, 2007, at 11:44 AM, Andy Gaunt wrote:
> Joel,
>
> If you are wanting this for when you perform maintenance you could
> just
> include a variable in your include that If true redirects to a
> "maintenance"
> page.
>
> This would be the first item on all pages (so no matter how the
> visitor
> arrived it would look for the flag).
>
>
> Andy Gaunt
> Office: 321.206.3658
> Mobile: 407.810.4722
> andy at fmpug.com
> http://www.fmpug.com
>
> 2006 FileMaker Excellence Award Winner
> Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award
>
> For chapter locations, dates & times please visit the website at
> http://www.fmpug.com If you can make it to a meeting, please RSVP at
> http://www.fmpug.com/rsvp.php
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Joel
> Shapiro
> Sent: Wednesday, March 07, 2007 12:35 PM
> To: FX.php Discussion List
> Subject: [FX.php List] "site down for maintenance" include?
>
> 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
More information about the FX.php_List
mailing list