From lelandlong at me.com Tue Sep 3 13:32:26 2013 From: lelandlong at me.com (LELAND LONG) Date: Tue Sep 3 12:24:42 2013 Subject: [FX.php List] Is there an update to this previous post? Message-ID: <43237359-8CEB-498B-841C-6933D51E908B@me.com> A previous post titled "FX.php as a Library in CodeIgniter framework" on Apr 12, 2007 by Dan Cynsure was an exciting find for me when I Googled 'codeigniter fx.php'. I followed the instructions, made some adjustments that I thought only made sense for my FMSv11, and have not had any luck. Just a standard 404 page not found error. I doubled-checked the excellent instructions on the post and cannot determine where the failure is coming from. Link to post: http://www.iviking.org/pipermail/fx.php_list/2007-April/003915.html I was wondering if the author was still on this list and maybe if some updated info may be needed to get this working properly. The stats: Mac OS X 10.8.4 Web Server turned on PHP 5.3.15 FMS 11.0.5.510 FX.php 4.2 CodeIgniter 2.1.4 Leland Long I.T. Director Keller Interiors, Inc. lelandlong@kellerinteriors.com www.kellerinteriors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130903/c0ee3ecd/attachment-0001.html From jsfmp at earthlink.net Mon Sep 9 17:30:15 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Sep 9 16:22:03 2013 Subject: [FX.php List] Different SESSIONs on same server? Message-ID: Hi all How do people here differentiate SESSION vars if you've got more than one site on a single server? Do you use session_name('siteCode') ? Or something different? And any precautions I should take when using one of these functions? TIA, -Joel From bob at patin.com Mon Sep 9 20:16:45 2013 From: bob at patin.com (Bob Patin) Date: Mon Sep 9 19:08:30 2013 Subject: [FX.php List] Different SESSIONs on same server? In-Reply-To: References: Message-ID: <3D4D9BF4-D230-4BB3-988D-8A31FB2F4B1B@patin.com> Joel, I've never worried about it, and I have lots of web apps on the same servers. I've never had a negative experience with it. I take care though to use variable names that I know will be unique to each site, so that there's not a chance for overlap. Also, since session variables are unique to that particular user, the only time it might be an issue would be if one of these people were to visit 2 sites on the same server, within the same browser session. Also, I make sure to destroy the user's session at the end of the procedure, whether it's a shopping cart, registration, or whatever... Bob Patin Longterm Solutions LLC P.O. Box 3408 Brentwood, TN 37024 bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 Twitter: bobpatin Google+: http://www.longtermsolutions.com/plus -- FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 9, 2013, at 6:30 PM, Joel Shapiro wrote: > Hi all > > How do people here differentiate SESSION vars if you've got more than one site on a single server? > > Do you use session_name('siteCode') ? Or something different? > > And any precautions I should take when using one of these functions? > > TIA, > -Joel > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dale.bengston at gmail.com Tue Sep 10 08:51:38 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Sep 10 07:43:31 2013 Subject: [FX.php List] Different SESSIONs on same server? In-Reply-To: References: Message-ID: Hi Joel, Yes, I give each web app a different session name so there's no chance of anything stored in the session bleeding over from site to site. The chances are remote, but it can happen. Most often it happens to us - we are the ones logged into more than one site on the same server.... Dale On Sep 9, 2013, at 6:30 PM, Joel Shapiro wrote: > Hi all > > How do people here differentiate SESSION vars if you've got more than one site on a single server? > > Do you use session_name('siteCode') ? Or something different? > > And any precautions I should take when using one of these functions? > > TIA, > -Joel > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Tue Sep 10 08:58:44 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 07:50:32 2013 Subject: [FX.php List] Different SESSIONs on same server? In-Reply-To: References: Message-ID: <637A19F5-92AD-4AA6-896B-1F1B70DA7DEA@patin.com> You're right, and I've done that before when I was using more generic session var names, like "username" for example. Nowadays I'll preface the var with something like "megacompany_username"; I'm a big fan of non-cryptic variables, even though some people like to keep their var names short. At my advanced age I need to be able to remember what I was doing when I go back a year from now (5 minutes from now)... BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 10, 2013, at 9:51 AM, Dale Bengston wrote: > Hi Joel, > > Yes, I give each web app a different session name so there's no chance of anything stored in the session bleeding over from site to site. The chances are remote, but it can happen. Most often it happens to us - we are the ones logged into more than one site on the same server.... > > Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/00c9ec1d/attachment.html From bob at patin.com Tue Sep 10 09:12:55 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 08:04:43 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled Message-ID: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> I looked all over the web for a good method for determining, using PHP, whether a client has Javascript enabled. After trying a few and not getting a single one to work as promised, I finally just resorted to a simple method, but I'm wondering what others of you use: When using JQuery, I always load my index page with the first contents that the user will see, whether it's a login form or perhaps some greetings text. So since JQuery is loading this when the visitor first arrives, I simply load my content DIV (where my content swaps out in the app) with a message like "Javascript is required for this website to function. Please enable Javascript and reload this page." It works fine, since the text never gets swapped out if JQuery fails to function, but I'm wondering if any of you have a better, more elegant method; using my method, the user sees the error msg. for a moment until the JQ loads the appropriate content... Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker From dale.bengston at gmail.com Tue Sep 10 09:16:32 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Sep 10 08:08:24 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> Message-ID: <10EA101F-A108-44FB-8231-0551A64D7D5F@gmail.com> Hi Bob, If JavaScript is required, you could use jQuery to disable the site nav at the home page level so users can't click deeper into the site and get themselves into a pickle. Dale On Sep 10, 2013, at 10:12 AM, Bob Patin wrote: > I looked all over the web for a good method for determining, using PHP, whether a client has Javascript enabled. > > After trying a few and not getting a single one to work as promised, I finally just resorted to a simple method, but I'm wondering what others of you use: > > When using JQuery, I always load my index page with the first contents that the user will see, whether it's a login form or perhaps some greetings text. > > So since JQuery is loading this when the visitor first arrives, I simply load my content DIV (where my content swaps out in the app) with a message like > > "Javascript is required for this website to function. > Please enable Javascript and reload this page." > > It works fine, since the text never gets swapped out if JQuery fails to function, but I'm wondering if any of you have a better, more elegant method; using my method, the user sees the error msg. for a moment until the JQ loads the appropriate content... > > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Tue Sep 10 09:21:28 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 08:13:15 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: <10EA101F-A108-44FB-8231-0551A64D7D5F@gmail.com> References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> <10EA101F-A108-44FB-8231-0551A64D7D5F@gmail.com> Message-ID: Well, on some of the sites the nav is also inserted using JQuery so they can't go anywhere without Javascript--but on other ones they can just go to some static info pages that don't do much other than show some information, so it's not a problem if they were to venture into the site. In fact, without Javascript and JQuery, they can't get to any of the web app content anyway, since they're only loaded via JQuery and not accessible any other way (unless they were to start guessing some page names, which is unlikely). BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 10, 2013, at 10:16 AM, Dale Bengston wrote: > Hi Bob, > > If JavaScript is required, you could use jQuery to disable the site nav at the home page level so users can't click deeper into the site and get themselves into a pickle. > > Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/15d59698/attachment-0001.html From bob at patin.com Tue Sep 10 09:48:46 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 08:40:33 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club Message-ID: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> I'm a member of a local yacht club that is wanting to have their (incredibly awful) website redone. Since this is not a huge club and they want to save money, I first thought of something like Squarespace, where I could use a template and put together a nice quick site that scales for iOS devices and is fairly easy to maintain by novices. HOWEVER... it doesn't offer the ability to have multiple logins by users, or allow users to modify their own profiles, or for the site to allow photo uploads that would then be vetted by an admin person. Does anyone know of a template-driven host like Squarespace that would provide something like this? I'm also talking to them about building a site for them myself using a FileMaker backend; in my mind, unless I stumble on a service that does all these things, the only way I know to provide all the functionality they need would be to build it by hand. I've worked in ExpressionEngine in the past, and I think it would have the same limitations that I'm finding in Squarespace, but since I really didn't like ExpressionEngine that much anyway, it's not being considered here. Thanks for any insights, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker From dale.bengston at gmail.com Tue Sep 10 10:05:56 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Sep 10 08:57:48 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> Message-ID: Hi Bob, I'd take a look at WordPress and its plugins for club management. It's a pretty amazing platform. Dale On Sep 10, 2013, at 10:48 AM, Bob Patin wrote: > I'm a member of a local yacht club that is wanting to have their (incredibly awful) website redone. > > Since this is not a huge club and they want to save money, I first thought of something like Squarespace, where I could use a template and put together a nice quick site that scales for iOS devices and is fairly easy to maintain by novices. > > HOWEVER... it doesn't offer the ability to have multiple logins by users, or allow users to modify their own profiles, or for the site to allow photo uploads that would then be vetted by an admin person. > > Does anyone know of a template-driven host like Squarespace that would provide something like this? I'm also talking to them about building a site for them myself using a FileMaker backend; in my mind, unless I stumble on a service that does all these things, the only way I know to provide all the functionality they need would be to build it by hand. > > I've worked in ExpressionEngine in the past, and I think it would have the same limitations that I'm finding in Squarespace, but since I really didn't like ExpressionEngine that much anyway, it's not being considered here. > > Thanks for any insights, > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Tue Sep 10 10:09:50 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 09:01:37 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> Message-ID: <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> Dale, I guess I need to look again at Wordpress... didn't know about some of those plugins. Thanks, BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 10, 2013, at 11:05 AM, Dale Bengston wrote: > Hi Bob, > > I'd take a look at WordPress and its plugins for club management. It's a pretty amazing platform. > > Dale > > On Sep 10, 2013, at 10:48 AM, Bob Patin wrote: > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/9ef9da1c/attachment.html From jsfmp at earthlink.net Tue Sep 10 10:10:52 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Sep 10 09:02:36 2013 Subject: [FX.php List] Different SESSIONs on same server? In-Reply-To: <637A19F5-92AD-4AA6-896B-1F1B70DA7DEA@patin.com> References: <637A19F5-92AD-4AA6-896B-1F1B70DA7DEA@patin.com> Message-ID: <96315BD1-6618-427A-BB8C-4428489F36FB@earthlink.net> Thanks Bob & Dale (sounds kinda like Chip 'n' Dale ;-) I've got a couple clients that host their own similar/parallel sites for different purposes & user sets, so for me as the developer (like Dale) and at least for the clients as testers, it'll be good to have separate sessions. I'd thought about 'name-spacing' the variables (kinda like Bob) and then I discovered session_name(). Looks like I'll be using that now with nary a worry :-) Thanks! -Joel On Sep 10, 2013, at 7:58 AM, Bob Patin wrote: > You're right, and I've done that before when I was using more generic session var names, like "username" for example. > > Nowadays I'll preface the var with something like "megacompany_username"; I'm a big fan of non-cryptic variables, even though some people like to keep their var names short. At my advanced age I need to be able to remember what I was doing when I go back a year from now (5 minutes from now)... > > BP > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > On Sep 10, 2013, at 9:51 AM, Dale Bengston wrote: > >> Hi Joel, >> >> Yes, I give each web app a different session name so there's no chance of anything stored in the session bleeding over from site to site. The chances are remote, but it can happen. Most often it happens to us - we are the ones logged into more than one site on the same server.... >> >> Dale > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dale.bengston at gmail.com Tue Sep 10 10:20:34 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Sep 10 09:12:28 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> Message-ID: <9AAC786A-9CA3-45EF-9075-79DD85FD1EB8@gmail.com> WordPress has thousands of plugins. It's definitely worth a look. Dale On Sep 10, 2013, at 11:09 AM, Bob Patin wrote: > Dale, > > I guess I need to look again at Wordpress... didn't know about some of those plugins. > > Thanks, > > BP > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > On Sep 10, 2013, at 11:05 AM, Dale Bengston wrote: > >> Hi Bob, >> >> I'd take a look at WordPress and its plugins for club management. It's a pretty amazing platform. >> >> Dale >> >> On Sep 10, 2013, at 10:48 AM, Bob Patin wrote: >> >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/24c7f884/attachment-0001.html From bob at patin.com Tue Sep 10 10:26:36 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 09:18:24 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: <9AAC786A-9CA3-45EF-9075-79DD85FD1EB8@gmail.com> References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> <9AAC786A-9CA3-45EF-9075-79DD85FD1EB8@gmail.com> Message-ID: <27F9A331-85D2-4ACF-9F8F-19F6759F1B9B@patin.com> I did find a few that do club management; reviews are mixed though... The other thing these guys are worried about is having a site that re-renders for smartphones; with these template sites they make it easy because they resize everything as you upload it, and their templates include alternate pages for smartphones, but I'm wondering if any such beast exists in WP... I'm doubtful. I keep coming back to writing it myself... BP On Sep 10, 2013, at 11:20 AM, Dale Bengston wrote: > WordPress has thousands of plugins. It's definitely worth a look. > Dale > > On Sep 10, 2013, at 11:09 AM, Bob Patin wrote: > >> Dale, >> >> I guess I need to look again at Wordpress... didn't know about some of those plugins. >> >> Thanks, >> >> BP >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10, 11& 12 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> On Sep 10, 2013, at 11:05 AM, Dale Bengston wrote: >> >>> Hi Bob, >>> >>> I'd take a look at WordPress and its plugins for club management. It's a pretty amazing platform. >>> >>> Dale >>> >>> On Sep 10, 2013, at 10:48 AM, Bob Patin wrote: >>> >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/1cbb67ad/attachment.html From malcolm at notyourhomework.net Tue Sep 10 13:45:37 2013 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Tue Sep 10 12:37:23 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: <27F9A331-85D2-4ACF-9F8F-19F6759F1B9B@patin.com> References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> <9AAC786A-9CA3-45EF-9075-79DD85FD1EB8@gmail.com> <27F9A331-85D2-4ACF-9F8F-19F6759F1B9B@patin.com> Message-ID: <767273CD-8411-4CFB-8243-0EC6662A3518@notyourhomework.net> Bob, Read the WP FAQ before you hammer us with FUD. If you really can't use it for whatever reason there are other platforms and other services. and yes, there are many, many thousands of templates for WP and a large amount of them will recognise the platform and resize. malcolm On 11/09/2013, at 2:26 AM, Bob Patin wrote: > I did find a few that do club management; reviews are mixed though... > > The other thing these guys are worried about is having a site that re-renders for smartphones; with these template sites they make it easy because they resize everything as you upload it, and their templates include alternate pages for smartphones, but I'm wondering if any such beast exists in WP... I'm doubtful. I keep coming back to writing it myself... > > BP > > > On Sep 10, 2013, at 11:20 AM, Dale Bengston wrote: > >> WordPress has thousands of plugins. It's definitely worth a look. >> Dale >> >> On Sep 10, 2013, at 11:09 AM, Bob Patin wrote: >> >>> Dale, >>> >>> I guess I need to look again at Wordpress... didn't know about some of those plugins. >>> >>> Thanks, >>> >>> BP >>> >>> Bob Patin >>> Longterm Solutions LLC >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> FileMaker 9, 10, 11& 12 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -- >>> Twitter: bobpatin >>> AIM: longterm1954 >>> iChat: bobpatin >>> -- >>> Expert FileMaker Consulting >>> FileMaker Hosting for all versions of FileMaker >>> >>> On Sep 10, 2013, at 11:05 AM, Dale Bengston wrote: >>> >>>> Hi Bob, >>>> >>>> I'd take a look at WordPress and its plugins for club management. It's a pretty amazing platform. >>>> >>>> Dale >>>> >>>> On Sep 10, 2013, at 10:48 AM, Bob Patin wrote: >>>> >>>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130911/19cad574/attachment.html From bob at patin.com Tue Sep 10 13:59:45 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 12:51:33 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: <767273CD-8411-4CFB-8243-0EC6662A3518@notyourhomework.net> References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> <9AAC786A-9CA3-45EF-9075-79DD85FD1EB8@gmail.com> <27F9A331-85D2-4ACF-9F8F-19F6759F1B9B@patin.com> <767273CD-8411-4CFB-8243-0EC6662A3518@notyourhomework.net> Message-ID: <134A7F4A-3472-475C-8417-9049AE749FA3@patin.com> Malcolm, I've been on this list a very long time; you don't need to lecture me and it's not appreciated. I was asking my *friends* for their input, because they've been helpful in the past. I wasn't thinking that Wordpress did this sort of thing, so that was why I said what I did. My subject said "OFF;" if you don't want to read it, ignore it. I doubt that my friends minded my inquiries. Sheesh... Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 10, 2013, at 2:45 PM, Malcolm Fitzgerald wrote: > Bob, > > Read the WP FAQ before you hammer us with FUD. If you really can't use it for whatever reason there are other platforms and other services. > > and yes, there are many, many thousands of templates for WP and a large amount of them will recognise the platform and resize. > > malcolm > > > On 11/09/2013, at 2:26 AM, Bob Patin wrote: > >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/c328f009/attachment-0001.html From dsomar at gmail.com Tue Sep 10 14:04:02 2013 From: dsomar at gmail.com (denis) Date: Tue Sep 10 12:55:47 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: <134A7F4A-3472-475C-8417-9049AE749FA3@patin.com> References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> <9AAC786A-9CA3-45EF-9075-79DD85FD1EB8@gmail.com> <27F9A331-85D2-4ACF-9F8F-19F6759F1B9B@patin.com> <767273CD-8411-4CFB-8243-0EC6662A3518@notyourhomework.net> <134A7F4A-3472-475C-8417-9049AE749FA3@patin.com> Message-ID: The inquiry is not minded, at least by me. I'd say take a good hard look at WordPress and chances are you can make it do a LOT more of what you want, rather than doing a whole new site and integrating FileMaker in the mix. If each club member is a "user" in WordPress, you should be able to configure it so they can adjust their own details without touching other users. Maybe if they're setup as authors instead of users is another idea. And if you're hellbent on using FM, you could using the FileMaker to WordPress plugin in a distributed runtime to editing only certain pages, based on logic you build in FM. HTH, Denis On Sep 10, 2013, at 3:59 PM, Bob Patin wrote: > Malcolm, > > I've been on this list a very long time; you don't need to lecture me and it's not appreciated. > > I was asking my *friends* for their input, because they've been helpful in the past. I wasn't thinking that Wordpress did this sort of thing, so that was why I said what I did. > > My subject said "OFF;" if you don't want to read it, ignore it. I doubt that my friends minded my inquiries. > > Sheesh... > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > On Sep 10, 2013, at 2:45 PM, Malcolm Fitzgerald wrote: > >> Bob, >> >> Read the WP FAQ before you hammer us with FUD. If you really can't use it for whatever reason there are other platforms and other services. >> >> and yes, there are many, many thousands of templates for WP and a large amount of them will recognise the platform and resize. >> >> malcolm >> >> >> On 11/09/2013, at 2:26 AM, Bob Patin wrote: >> >>> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/9ad59468/attachment.html From bob at patin.com Tue Sep 10 14:09:03 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 13:00:50 2013 Subject: [FX.php List] [OFF] Looking for a template-driven site host for a club In-Reply-To: References: <033855B0-B948-48D0-8734-393CE88B9644@patin.com> <82577E3B-F4D4-4AA6-9FD9-B146EF199708@patin.com> <9AAC786A-9CA3-45EF-9075-79DD85FD1EB8@gmail.com> <27F9A331-85D2-4ACF-9F8F-19F6759F1B9B@patin.com> <767273CD-8411-4CFB-8243-0EC6662A3518@notyourhomework.net> <134A7F4A-3472-475C-8417-9049AE749FA3@patin.com> Message-ID: <566D1308-1672-46B8-80B0-D69F3257003B@patin.com> On Sep 10, 2013, at 3:04 PM, denis wrote: > The inquiry is not minded, at least by me. Thanks, Denis :) > I'd say take a good hard look at WordPress and chances are you can make it do a LOT more of what you want, rather than doing a whole new site and integrating FileMaker in the mix. I was pleasantly surprised at how much it can do; I was previously under the impression that it was mainly a blog platform and didn't do these sorts of things. > > If each club member is a "user" in WordPress, you should be able to configure it so they can adjust their own details without touching other users. Maybe if they're setup as authors instead of users is another idea. Well, the problem there, and I thought about that for another template-driven host that I was considering, is that I'd have to add each club member to the site, which would be a pain. > > And if you're hellbent on using FM, you could using the FileMaker to WordPress plugin in a distributed runtime to editing only certain pages, based on logic you build in FM. Oooh... not too fond of doing a runtime for these guys... :) BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/4eeb85fd/attachment.html From jsfmp at earthlink.net Tue Sep 10 14:26:59 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Sep 10 13:18:44 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> Message-ID: <56B21DA2-F88B-4244-A33D-B4C7761AA1C4@earthlink.net> Hi Bob I don't believe you'll find a way to use PHP to detect disabled JavaScript, since PHP is server-side and JavaScript is client-side* -- so the PHP is complete before the page gets to the client/browser. I think you're doing it basically right by having the default pageload be for non-JS clients, and then have JS pull in your other content. And you might try to have jQuery *quickly* hide/remove the non-JS message, even if the actual content may take a bit longer to load. HTH, -Joel *FWIW: there is now server-side JavaScript, e.g. node.js, but that's irrelevant for this discussion. On Sep 10, 2013, at 8:12 AM, Bob Patin wrote: > I looked all over the web for a good method for determining, using PHP, whether a client has Javascript enabled. > > After trying a few and not getting a single one to work as promised, I finally just resorted to a simple method, but I'm wondering what others of you use: > > When using JQuery, I always load my index page with the first contents that the user will see, whether it's a login form or perhaps some greetings text. > > So since JQuery is loading this when the visitor first arrives, I simply load my content DIV (where my content swaps out in the app) with a message like > > "Javascript is required for this website to function. > Please enable Javascript and reload this page." > > It works fine, since the text never gets swapped out if JQuery fails to function, but I'm wondering if any of you have a better, more elegant method; using my method, the user sees the error msg. for a moment until the JQ loads the appropriate content... > > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Tue Sep 10 14:29:51 2013 From: bob at patin.com (Bob Patin) Date: Tue Sep 10 13:21:36 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: <56B21DA2-F88B-4244-A33D-B4C7761AA1C4@earthlink.net> References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> <56B21DA2-F88B-4244-A33D-B4C7761AA1C4@earthlink.net> Message-ID: On Sep 10, 2013, at 3:26 PM, Joel Shapiro wrote: > > I don't believe you'll find a way to use PHP to detect disabled JavaScript, since PHP is server-side and JavaScript is client-side* -- so the PHP is complete before the page gets to the client/browser. > > I think you're doing it basically right by having the default pageload be for non-JS clients, and then have JS pull in your other content. And you might try to have jQuery *quickly* hide/remove the non-JS message, even if the actual content may take a bit longer to load. The first thing that I do is to load the default page content, but maybe I'll do a .hide() first and see if that tucks it away more neatly. Thanks, BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130910/89acd23f/attachment-0001.html From whatdoyouwant at gmail.com Wed Sep 11 22:51:15 2013 From: whatdoyouwant at gmail.com (Nick) Date: Wed Sep 11 21:42:55 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> <56B21DA2-F88B-4244-A33D-B4C7761AA1C4@earthlink.net> Message-ID: You can write a unique cookie with JavaScript and look for the cookie in php. You would have to do some redirects to the JavaScript page that tries to create the cookie if the cookie doesn't exist in php. And then forward to php after JavaScript makes cookie. On Tuesday, September 10, 2013, Bob Patin wrote: > > On Sep 10, 2013, at 3:26 PM, Joel Shapiro > > wrote: > > > I don't believe you'll find a way to use PHP to detect disabled > JavaScript, since PHP is server-side and JavaScript is client-side* -- so > the PHP is complete before the page gets to the client/browser. > > I think you're doing it basically right by having the default pageload be > for non-JS clients, and then have JS pull in your other content. And you > might try to have jQuery *quickly* hide/remove the non-JS message, even if > the actual content may take a bit longer to load. > > > The first thing that I do is to load the default page content, but maybe > I'll do a .hide() first and see if that tucks it away more neatly. > > Thanks, > > BP > > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com 'bob@longtermsolutions.com');> > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130911/7d5a111a/attachment.html From bob at patin.com Thu Sep 12 05:26:32 2013 From: bob at patin.com (Bob Patin) Date: Thu Sep 12 04:18:28 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> <56B21DA2-F88B-4244-A33D-B4C7761AA1C4@earthlink.net> Message-ID: Right, and I did try that, but my simpler method seemed to be more straightforward. I tried various iterations of that idea, finally realized that it wasn't really necessary since I always load my content DIV first thing when someone goes to one of my JQuery sites. Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 11, 2013, at 11:51 PM, Nick wrote: > You can write a unique cookie with JavaScript and look for the cookie in php. You would have to do some redirects to the JavaScript page that tries to create the cookie if the cookie doesn't exist in php. And then forward to php after JavaScript makes cookie. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130912/fa618bdf/attachment.html From sthoms at wavecomm.com Thu Sep 12 12:04:38 2013 From: sthoms at wavecomm.com (Steven Thoms) Date: Thu Sep 12 10:56:22 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> Message-ID: Bob, I use this in the html: If you use the noscript tag, you don't need to put anything in the target div. I haven't read the whole thread, so my apologies if this is redundant, Steve On Sep 10, 2013, at 11:12 AM, Bob Patin wrote: > I'm wondering if any of you have a better, more elegant method; using my method, the user sees the error msg. for a moment until the JQ loads the appropriate content... From bob at patin.com Thu Sep 12 17:15:21 2013 From: bob at patin.com (Bob Patin) Date: Thu Sep 12 16:07:00 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> Message-ID: Works like a charm... I put it in the DIV and it seems to work just fine. Better than default text... :) Thanks, Bob Bob Patin Longterm Solutions LLC P.O. Box 3408 Brentwood, TN 37024 bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 Twitter: bobpatin Google+: http://www.longtermsolutions.com/plus -- FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 12, 2013, at 1:04 PM, Steven Thoms wrote: > Bob, > > I use this in the html: > > > > If you use the noscript tag, you don't need to put anything in the target div. > > I haven't read the whole thread, so my apologies if this is redundant, > > Steve > > > On Sep 10, 2013, at 11:12 AM, Bob Patin wrote: > >> I'm wondering if any of you have a better, more elegant method; using my method, the user sees the error msg. for a moment until the JQ loads the appropriate content... > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Thu Sep 12 17:15:21 2013 From: bob at patin.com (Bob Patin) Date: Fri Sep 13 05:00:29 2013 Subject: [FX.php List] [off] Determining if client has Javascript enabled In-Reply-To: References: <08D59C0D-0954-47AD-BAC2-B243B7BFD565@patin.com> Message-ID: Works like a charm... I put it in the DIV and it seems to work just fine. Better than default text... :) Thanks, Bob Bob Patin Longterm Solutions LLC P.O. Box 3408 Brentwood, TN 37024 bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 Twitter: bobpatin Google+: http://www.longtermsolutions.com/plus -- FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 12, 2013, at 1:04 PM, Steven Thoms wrote: > Bob, > > I use this in the html: > > > > If you use the noscript tag, you don't need to put anything in the target div. > > I haven't read the whole thread, so my apologies if this is redundant, > > Steve > > > On Sep 10, 2013, at 11:12 AM, Bob Patin wrote: > >> I'm wondering if any of you have a better, more elegant method; using my method, the user sees the error msg. for a moment until the JQ loads the appropriate content... > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Wed Sep 25 09:03:09 2013 From: bob at patin.com (Bob Patin) Date: Wed Sep 25 07:53:53 2013 Subject: [FX.php List] Making sure servers are responding to FX queries Message-ID: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> A while back someone posted their code for monitoring whether a web server is responding to FX queries. I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) I'd love to get a copy of that code; I think it might've been Webko? Thanks, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker From sthoms at wavecomm.com Wed Sep 25 09:32:10 2013 From: sthoms at wavecomm.com (Steven Thoms) Date: Wed Sep 25 08:22:59 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> Message-ID: <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> Bob, The simplest solution I have found is to test each required file with a -findany request. If you get an error, the server isn't responding. Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: // confirmDatabases $strError = ''; $resultError = 0; $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... $result = $query -> FMDBNames(); //print_r($result); if ( $query->lastErrorCode != 0 ) { AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); } else { $searchDbs = explode("," , REQUIRED_DBS); $dataString = serialize($result['data']); foreach ( $searchDbs as $key=>$dbName ) { if ( strpos($dataString , $dbName) === false ) { $newError = "The " . $dbName . " database was not available."; AddError($newError , $strError); } } } if ( $strError != '' ) include_once "{$AppLoc}src/error.php"; With these settings at the top of the page... // db access files require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; // db defaults define ("REQUIRED_DBS", "File1, File2, etc."); define ("GROUP_SIZE", "all"); define ("ERROR_SPACE", "
   "); // fx interface functions function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { $query = new FX(FM_IP, FM_PORT, FM_VERSION); if ( $layout != '' ) $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); return $query; } I hope that helps, Steve On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: > A while back someone posted their code for monitoring whether a web server is responding to FX queries. > > I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. > > I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) > > I'd love to get a copy of that code; I think it might've been Webko? > > Thanks, > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Wed Sep 25 10:31:25 2013 From: bob at patin.com (Bob Patin) Date: Wed Sep 25 09:22:10 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> Message-ID: <7BEA4961-1CC9-488E-B377-DDBD2DC4BD40@patin.com> Hi Steve, Well, that's basically what my test page does; I wrote a function that I can use for each of the servers, but it doesn't seem to error out when the server is non-existent. Maybe I just need to look again at my error-handling... :) Best, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: > Bob, > > The simplest solution I have found is to test each required file with a -findany request. > If you get an error, the server isn't responding. > > Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: > > > // confirmDatabases > $strError = ''; > $resultError = 0; > $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... > $result = $query -> FMDBNames(); > //print_r($result); > if ( $query->lastErrorCode != 0 ) { > AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); > } else { > $searchDbs = explode("," , REQUIRED_DBS); > $dataString = serialize($result['data']); > foreach ( $searchDbs as $key=>$dbName ) { > if ( strpos($dataString , $dbName) === false ) { > $newError = "The " . $dbName . " database was not available."; > AddError($newError , $strError); > } > } > } > if ( $strError != '' ) > include_once "{$AppLoc}src/error.php"; > > > With these settings at the top of the page... > > // db access files > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; > > // db defaults > define ("REQUIRED_DBS", "File1, File2, etc."); > define ("GROUP_SIZE", "all"); > define ("ERROR_SPACE", "
   "); > > // fx interface functions > > function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { > $query = new FX(FM_IP, FM_PORT, FM_VERSION); > if ( $layout != '' ) > $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); > $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); > return $query; > } > > I hope that helps, > > Steve > > > On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: > >> A while back someone posted their code for monitoring whether a web server is responding to FX queries. >> >> I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. >> >> I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) >> >> I'd love to get a copy of that code; I think it might've been Webko? >> >> Thanks, >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10, 11& 12 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Wed Sep 25 10:50:01 2013 From: bob at patin.com (Bob Patin) Date: Wed Sep 25 09:40:46 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> Message-ID: <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> I found Webko's example, which I added here: if( !fsockopen ($server, 80, $errno, $errstr, 2) ){ $color = "#FFADA7"; $body = $machine." IS NOT RESPONDING."; }else{ /* DO A QUERY NOW */ } Works great... not sure why I never implemented it before now... :) BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: > Bob, > > The simplest solution I have found is to test each required file with a -findany request. > If you get an error, the server isn't responding. > > Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: > > > // confirmDatabases > $strError = ''; > $resultError = 0; > $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... > $result = $query -> FMDBNames(); > //print_r($result); > if ( $query->lastErrorCode != 0 ) { > AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); > } else { > $searchDbs = explode("," , REQUIRED_DBS); > $dataString = serialize($result['data']); > foreach ( $searchDbs as $key=>$dbName ) { > if ( strpos($dataString , $dbName) === false ) { > $newError = "The " . $dbName . " database was not available."; > AddError($newError , $strError); > } > } > } > if ( $strError != '' ) > include_once "{$AppLoc}src/error.php"; > > > With these settings at the top of the page... > > // db access files > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; > > // db defaults > define ("REQUIRED_DBS", "File1, File2, etc."); > define ("GROUP_SIZE", "all"); > define ("ERROR_SPACE", "
   "); > > // fx interface functions > > function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { > $query = new FX(FM_IP, FM_PORT, FM_VERSION); > if ( $layout != '' ) > $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); > $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); > return $query; > } > > I hope that helps, > > Steve > > > On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: > >> A while back someone posted their code for monitoring whether a web server is responding to FX queries. >> >> I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. >> >> I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) >> >> I'd love to get a copy of that code; I think it might've been Webko? >> >> Thanks, >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10, 11& 12 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From sthoms at wavecomm.com Wed Sep 25 11:15:33 2013 From: sthoms at wavecomm.com (Steven Thoms) Date: Wed Sep 25 10:06:28 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> Message-ID: That is nice, but it seems that it answers the question 'is port 80 open?', not specifically, 'is the wpe running?' The version I used with the DBNames call was really fast and accurate. Maybe if Chris is lurking, he could look into that specific call;) Steve 207 798-0171 On Sep 25, 2013, at 12:50 PM, Bob Patin wrote: > I found Webko's example, which I added here: > > if( !fsockopen ($server, 80, $errno, $errstr, 2) ){ > $color = "#FFADA7"; > $body = $machine." IS NOT RESPONDING."; > }else{ > /* DO A QUERY NOW */ > } > > Works great... not sure why I never implemented it before now... :) > > BP > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: > >> Bob, >> >> The simplest solution I have found is to test each required file with a -findany request. >> If you get an error, the server isn't responding. >> >> Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: >> >> >> // confirmDatabases >> $strError = ''; >> $resultError = 0; >> $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... >> $result = $query -> FMDBNames(); >> //print_r($result); >> if ( $query->lastErrorCode != 0 ) { >> AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); >> } else { >> $searchDbs = explode("," , REQUIRED_DBS); >> $dataString = serialize($result['data']); >> foreach ( $searchDbs as $key=>$dbName ) { >> if ( strpos($dataString , $dbName) === false ) { >> $newError = "The " . $dbName . " database was not available."; >> AddError($newError , $strError); >> } >> } >> } >> if ( $strError != '' ) >> include_once "{$AppLoc}src/error.php"; >> >> >> With these settings at the top of the page... >> >> // db access files >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; >> >> // db defaults >> define ("REQUIRED_DBS", "File1, File2, etc."); >> define ("GROUP_SIZE", "all"); >> define ("ERROR_SPACE", "
   "); >> >> // fx interface functions >> >> function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { >> $query = new FX(FM_IP, FM_PORT, FM_VERSION); >> if ( $layout != '' ) >> $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); >> $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); >> return $query; >> } >> >> I hope that helps, >> >> Steve >> >> >> On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: >> >>> A while back someone posted their code for monitoring whether a web server is responding to FX queries. >>> >>> I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. >>> >>> I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) >>> >>> I'd love to get a copy of that code; I think it might've been Webko? >>> >>> Thanks, >>> >>> Bob Patin >>> Longterm Solutions LLC >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> FileMaker 9, 10, 11& 12 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -- >>> Twitter: bobpatin >>> AIM: longterm1954 >>> iChat: bobpatin >>> -- >>> Expert FileMaker Consulting >>> FileMaker Hosting for all versions of FileMaker >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From sthoms at wavecomm.com Wed Sep 25 11:19:43 2013 From: sthoms at wavecomm.com (Steven Thoms) Date: Wed Sep 25 10:10:35 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> Message-ID: It seems the strongest assurance would come from putting the wpe test code in the /* DO A QUERY NOW */ statement block... Steve 207 798-0171 On Sep 25, 2013, at 12:50 PM, Bob Patin wrote: > I found Webko's example, which I added here: > > if( !fsockopen ($server, 80, $errno, $errstr, 2) ){ > $color = "#FFADA7"; > $body = $machine." IS NOT RESPONDING."; > }else{ > /* DO A QUERY NOW */ > } > > Works great... not sure why I never implemented it before now... :) > > BP > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: > >> Bob, >> >> The simplest solution I have found is to test each required file with a -findany request. >> If you get an error, the server isn't responding. >> >> Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: >> >> >> // confirmDatabases >> $strError = ''; >> $resultError = 0; >> $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... >> $result = $query -> FMDBNames(); >> //print_r($result); >> if ( $query->lastErrorCode != 0 ) { >> AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); >> } else { >> $searchDbs = explode("," , REQUIRED_DBS); >> $dataString = serialize($result['data']); >> foreach ( $searchDbs as $key=>$dbName ) { >> if ( strpos($dataString , $dbName) === false ) { >> $newError = "The " . $dbName . " database was not available."; >> AddError($newError , $strError); >> } >> } >> } >> if ( $strError != '' ) >> include_once "{$AppLoc}src/error.php"; >> >> >> With these settings at the top of the page... >> >> // db access files >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; >> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; >> >> // db defaults >> define ("REQUIRED_DBS", "File1, File2, etc."); >> define ("GROUP_SIZE", "all"); >> define ("ERROR_SPACE", "
   "); >> >> // fx interface functions >> >> function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { >> $query = new FX(FM_IP, FM_PORT, FM_VERSION); >> if ( $layout != '' ) >> $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); >> $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); >> return $query; >> } >> >> I hope that helps, >> >> Steve >> >> >> On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: >> >>> A while back someone posted their code for monitoring whether a web server is responding to FX queries. >>> >>> I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. >>> >>> I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) >>> >>> I'd love to get a copy of that code; I think it might've been Webko? >>> >>> Thanks, >>> >>> Bob Patin >>> Longterm Solutions LLC >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> FileMaker 9, 10, 11& 12 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -- >>> Twitter: bobpatin >>> AIM: longterm1954 >>> iChat: bobpatin >>> -- >>> Expert FileMaker Consulting >>> FileMaker Hosting for all versions of FileMaker >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dwv-fmp at wmc-worldwide.com Wed Sep 25 14:29:13 2013 From: dwv-fmp at wmc-worldwide.com (David W Vaklyes) Date: Wed Sep 25 13:19:59 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> Message-ID: I have a piece of FX.php code on my web pages which reads a text field in the database which contains some random text (e.g. "xw3m7ZtLHbFR3xvRoevX") and puts that string into an HTML comment line, so it is hidden from the casual user. I have a server script (AppleScript) running every few minutes which uses CURL to read the web page into a text field, then I search that field for the string. If the string is not there the WPE is not returning anything, and I restart the WPE, write to the log and send email with time of restart. If nothing is returned the web server is not working, but that is a different issue. Dave On Sep 25, 2013, at 10:15 AM, Steven Thoms wrote: > That is nice, but it seems that it answers the question 'is port 80 open?', not specifically, 'is the wpe running?' > > The version I used with the DBNames call was really fast and accurate. > > Maybe if Chris is lurking, he could look into that specific call;) > > Steve > 207 798-0171 > > On Sep 25, 2013, at 12:50 PM, Bob Patin wrote: > >> I found Webko's example, which I added here: >> >> if( !fsockopen ($server, 80, $errno, $errstr, 2) ){ >> $color = "#FFADA7"; >> $body = $machine." IS NOT RESPONDING."; >> }else{ >> /* DO A QUERY NOW */ >> } >> >> Works great... not sure why I never implemented it before now... :) >> >> BP >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10, 11& 12 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: >> >>> Bob, >>> >>> The simplest solution I have found is to test each required file with a -findany request. >>> If you get an error, the server isn't responding. >>> >>> Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: >>> >>> >>> // confirmDatabases >>> $strError = ''; >>> $resultError = 0; >>> $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... >>> $result = $query -> FMDBNames(); >>> //print_r($result); >>> if ( $query->lastErrorCode != 0 ) { >>> AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); >>> } else { >>> $searchDbs = explode("," , REQUIRED_DBS); >>> $dataString = serialize($result['data']); >>> foreach ( $searchDbs as $key=>$dbName ) { >>> if ( strpos($dataString , $dbName) === false ) { >>> $newError = "The " . $dbName . " database was not available."; >>> AddError($newError , $strError); >>> } >>> } >>> } >>> if ( $strError != '' ) >>> include_once "{$AppLoc}src/error.php"; >>> >>> >>> With these settings at the top of the page... >>> >>> // db access files >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; >>> >>> // db defaults >>> define ("REQUIRED_DBS", "File1, File2, etc."); >>> define ("GROUP_SIZE", "all"); >>> define ("ERROR_SPACE", "
   "); >>> >>> // fx interface functions >>> >>> function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { >>> $query = new FX(FM_IP, FM_PORT, FM_VERSION); >>> if ( $layout != '' ) >>> $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); >>> $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); >>> return $query; >>> } >>> >>> I hope that helps, >>> >>> Steve >>> >>> >>> On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: >>> >>>> A while back someone posted their code for monitoring whether a web server is responding to FX queries. >>>> >>>> I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. >>>> >>>> I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) >>>> >>>> I'd love to get a copy of that code; I think it might've been Webko? >>>> >>>> Thanks, >>>> >>>> Bob Patin From bob at patin.com Wed Sep 25 14:34:07 2013 From: bob at patin.com (Bob Patin) Date: Wed Sep 25 13:24:50 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> Message-ID: <945A67BF-3A03-4D6E-97D0-2EEBC43C4953@patin.com> I already had that, but first I needed to be sure that the server's actually up and running. The interesting thing is this: I pointed to a non-existent server, and because the server didn't exist, the page stalled out; now I put the fsockopen test ABOVE my query; if the server isn't there, it never gets to the query; if the server IS there, it does the query. However... What if the server is there, but WPE is stalled out for some reason? Without disabling one of my WPEs (which I can't do), I can't really test that state. If anyone has code to test for that, I'd appreciate it... Thanks, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10, 11& 12 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Sep 25, 2013, at 12:19 PM, Steven Thoms wrote: > It seems the strongest assurance would come from putting the wpe test code in the /* DO A QUERY NOW */ statement block... > > Steve > 207 798-0171 > > On Sep 25, 2013, at 12:50 PM, Bob Patin wrote: > >> I found Webko's example, which I added here: >> >> if( !fsockopen ($server, 80, $errno, $errstr, 2) ){ >> $color = "#FFADA7"; >> $body = $machine." IS NOT RESPONDING."; >> }else{ >> /* DO A QUERY NOW */ >> } >> >> Works great... not sure why I never implemented it before now... :) >> >> BP >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10, 11& 12 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: >> >>> Bob, >>> >>> The simplest solution I have found is to test each required file with a -findany request. >>> If you get an error, the server isn't responding. >>> >>> Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: >>> >>> >>> // confirmDatabases >>> $strError = ''; >>> $resultError = 0; >>> $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... >>> $result = $query -> FMDBNames(); >>> //print_r($result); >>> if ( $query->lastErrorCode != 0 ) { >>> AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); >>> } else { >>> $searchDbs = explode("," , REQUIRED_DBS); >>> $dataString = serialize($result['data']); >>> foreach ( $searchDbs as $key=>$dbName ) { >>> if ( strpos($dataString , $dbName) === false ) { >>> $newError = "The " . $dbName . " database was not available."; >>> AddError($newError , $strError); >>> } >>> } >>> } >>> if ( $strError != '' ) >>> include_once "{$AppLoc}src/error.php"; >>> >>> >>> With these settings at the top of the page... >>> >>> // db access files >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; >>> >>> // db defaults >>> define ("REQUIRED_DBS", "File1, File2, etc."); >>> define ("GROUP_SIZE", "all"); >>> define ("ERROR_SPACE", "
   "); >>> >>> // fx interface functions >>> >>> function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { >>> $query = new FX(FM_IP, FM_PORT, FM_VERSION); >>> if ( $layout != '' ) >>> $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); >>> $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); >>> return $query; >>> } >>> >>> I hope that helps, >>> >>> Steve >>> >>> >>> On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: >>> >>>> A while back someone posted their code for monitoring whether a web server is responding to FX queries. >>>> >>>> I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. >>>> >>>> I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) >>>> >>>> I'd love to get a copy of that code; I think it might've been Webko? >>>> >>>> Thanks, >>>> >>>> Bob Patin >>>> Longterm Solutions LLC >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> FileMaker 9, 10, 11& 12 Certified Developer >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> -- >>>> Twitter: bobpatin >>>> AIM: longterm1954 >>>> iChat: bobpatin >>>> -- >>>> Expert FileMaker Consulting >>>> FileMaker Hosting for all versions of FileMaker >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130925/5c835ff8/attachment.html From tim.webko at gmail.com Wed Sep 25 16:39:06 2013 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Wed Sep 25 15:29:49 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: <945A67BF-3A03-4D6E-97D0-2EEBC43C4953@patin.com> References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> <945A67BF-3A03-4D6E-97D0-2EEBC43C4953@patin.com> Message-ID: That code was designed to test if the machine as up or not - in my experience, if you can reach Port 80 on the WPE machine, the WPE is running, as we always use a webserver for the actual web pages... I've got a server here that doesn't get used for production, I'll try and find 10 minutes today to test against that when it's running and turn the WPE off - I suspect it will say the machine isn't available, but I'll check CHeers Webko On 26 September 2013 06:34, Bob Patin wrote: > I already had that, but first I needed to be sure that the server's > actually up and running. > > The interesting thing is this: I pointed to a non-existent server, and > because the server didn't exist, the page stalled out; now I put the > fsockopen test ABOVE my query; if the server isn't there, it never gets to > the query; if the server IS there, it does the query. > > However... > > What if the server is there, but WPE is stalled out for some reason? > Without disabling one of my WPEs (which I can't do), I can't really test > that state. > > If anyone has code to test for that, I'd appreciate it... > > Thanks, > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > On Sep 25, 2013, at 12:19 PM, Steven Thoms wrote: > > It seems the strongest assurance would come from putting the wpe test code > in the /* DO A QUERY NOW */ statement block... > > Steve > 207 798-0171 > > On Sep 25, 2013, at 12:50 PM, Bob Patin wrote: > > I found Webko's example, which I added here: > > if( !fsockopen ($server, 80, $errno, $errstr, 2) ){ > $color = "#FFADA7"; > $body = $machine." IS NOT RESPONDING."; > }else{ > /* DO A QUERY NOW */ > } > > Works great... not sure why I never implemented it before now... :) > > BP > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: > > Bob, > > The simplest solution I have found is to test each required file with a > -findany request. > If you get an error, the server isn't responding. > > Before version 11, I think, but maybe sooner the FMDBNames() stopped > working in FX. But I used to use this code to test and it was very quick > and worked a charm: > > > // confirmDatabases > $strError = ''; > $resultError = 0; > $query = fmConnect(); // does not require a dbname, for obvious reasons; > see below... > $result = $query -> FMDBNames(); > //print_r($result); > if ( $query->lastErrorCode != 0 ) { > AddError("The databases are not available.
The Web Publishing Engine > is not responding. ErrorCode:" . $query->lastErrorCode , $strError); > } else { > $searchDbs = explode("," , REQUIRED_DBS); > $dataString = serialize($result['data']); > foreach ( $searchDbs as $key=>$dbName ) { > if ( strpos($dataString , $dbName) === false ) { > $newError = "The " . $dbName . " database was not available."; > AddError($newError , $strError); > } > } > } > if ( $strError != '' ) > include_once "{$AppLoc}src/error.php"; > > > With these settings at the top of the page... > > // db access files > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; > require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; > > // db defaults > define ("REQUIRED_DBS", "File1, File2, etc."); > define ("GROUP_SIZE", "all"); > define ("ERROR_SPACE", "
   "); > > // fx interface functions > > function fmConnect($layout = '' , $groupSize = GROUP_SIZE, > $responseLayout='') { > $query = new FX(FM_IP, FM_PORT, FM_VERSION); > if ( $layout != '' ) > $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); > $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); > return $query; > } > > I hope that helps, > > Steve > > > On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: > > A while back someone posted their code for monitoring whether a web server > is responding to FX queries. > > I have a little test database on each of my FM servers and wrote a page > that does a quick query every N minutes, but I don't think it's really > telling me the truth. > > I say that because I retired one of my FM servers, and yet my page still > reports that it's functioning normally... :) > > I'd love to get a copy of that code; I think it might've been Webko? > > Thanks, > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10, 11& 12 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130926/4db80e60/attachment-0001.html From chris at iViking.org Wed Sep 25 21:25:46 2013 From: chris at iViking.org (Chris Hansen) Date: Wed Sep 25 20:16:26 2013 Subject: [FX.php List] Making sure servers are responding to FX queries In-Reply-To: References: <9CDB7147-BF4B-4262-BCB4-BF84A57E203D@patin.com> <22790ED0-3800-41B6-A0A0-0260272DA8F8@wavecomm.com> <992CBF06-04D3-4CD4-9A6D-66A696DC8289@patin.com> Message-ID: <4AA43CF8-4B98-4FD4-9F89-1BFDA1F03DF2@iViking.org> Yes, I am lurking, and I will look at things when I get the chance. That said, there's been some great stuff on this thread. Thanks everyone! --Chris On Sep 25, 2013, at 11:15 AM, Steven Thoms wrote: > That is nice, but it seems that it answers the question 'is port 80 open?', not specifically, 'is the wpe running?' > > The version I used with the DBNames call was really fast and accurate. > > Maybe if Chris is lurking, he could look into that specific call;) > > Steve > 207 798-0171 > > On Sep 25, 2013, at 12:50 PM, Bob Patin wrote: > >> I found Webko's example, which I added here: >> >> if( !fsockopen ($server, 80, $errno, $errstr, 2) ){ >> $color = "#FFADA7"; >> $body = $machine." IS NOT RESPONDING."; >> }else{ >> /* DO A QUERY NOW */ >> } >> >> Works great... not sure why I never implemented it before now... :) >> >> BP >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10, 11& 12 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> On Sep 25, 2013, at 10:32 AM, Steven Thoms wrote: >> >>> Bob, >>> >>> The simplest solution I have found is to test each required file with a -findany request. >>> If you get an error, the server isn't responding. >>> >>> Before version 11, I think, but maybe sooner the FMDBNames() stopped working in FX. But I used to use this code to test and it was very quick and worked a charm: >>> >>> >>> // confirmDatabases >>> $strError = ''; >>> $resultError = 0; >>> $query = fmConnect(); // does not require a dbname, for obvious reasons; see below... >>> $result = $query -> FMDBNames(); >>> //print_r($result); >>> if ( $query->lastErrorCode != 0 ) { >>> AddError("The databases are not available.
The Web Publishing Engine is not responding. ErrorCode:" . $query->lastErrorCode , $strError); >>> } else { >>> $searchDbs = explode("," , REQUIRED_DBS); >>> $dataString = serialize($result['data']); >>> foreach ( $searchDbs as $key=>$dbName ) { >>> if ( strpos($dataString , $dbName) === false ) { >>> $newError = "The " . $dbName . " database was not available."; >>> AddError($newError , $strError); >>> } >>> } >>> } >>> if ( $strError != '' ) >>> include_once "{$AppLoc}src/error.php"; >>> >>> >>> With these settings at the top of the page... >>> >>> // db access files >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FM_Errors.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/FX_Error.php"; >>> require_once "{$_SERVER['DOCUMENT_ROOT']}/FX/server_data.php"; >>> >>> // db defaults >>> define ("REQUIRED_DBS", "File1, File2, etc."); >>> define ("GROUP_SIZE", "all"); >>> define ("ERROR_SPACE", "
   "); >>> >>> // fx interface functions >>> >>> function fmConnect($layout = '' , $groupSize = GROUP_SIZE, $responseLayout='') { >>> $query = new FX(FM_IP, FM_PORT, FM_VERSION); >>> if ( $layout != '' ) >>> $query -> SetDBData(FMDB, $layout, $groupSize, $responseLayout); >>> $query -> SetDBUserPass(FM_USERNAME, FM_PASSWORD); >>> return $query; >>> } >>> >>> I hope that helps, >>> >>> Steve >>> >>> >>> On Sep 25, 2013, at 11:03 AM, Bob Patin wrote: >>> >>>> A while back someone posted their code for monitoring whether a web server is responding to FX queries. >>>> >>>> I have a little test database on each of my FM servers and wrote a page that does a quick query every N minutes, but I don't think it's really telling me the truth. >>>> >>>> I say that because I retired one of my FM servers, and yet my page still reports that it's functioning normally... :) >>>> >>>> I'd love to get a copy of that code; I think it might've been Webko? >>>> >>>> Thanks, >>>> >>>> Bob Patin >>>> Longterm Solutions LLC >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> FileMaker 9, 10, 11& 12 Certified Developer >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> -- >>>> Twitter: bobpatin >>>> AIM: longterm1954 >>>> iChat: bobpatin >>>> -- >>>> Expert FileMaker Consulting >>>> FileMaker Hosting for all versions of FileMaker >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list >