From jsfmp at earthlink.net Fri May 2 14:41:52 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri May 2 14:42:03 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? Message-ID: Hi all This may be a dumb question... but there *are* no dumb questions, right? ( ahem ;-) I know it's important not to have more fields on a web-accessed layout than will be used for those web calls. Is there *any* impact on performance caused by having non-field objects on a web-accessed layout? (text objects, graphic objects (boxes, lines), colors...) TIA, -Joel From ggt667 at gmail.com Fri May 2 14:48:53 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri May 2 14:48:59 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: Message-ID: I have no clue, but I always make a separate layout for each query no matter what. I even make a layout for each php file that queries that particular table regardless. ggt 2008/5/2 Joel Shapiro : > Hi all > > This may be a dumb question... but there *are* no dumb questions, right? ( > ahem ;-) > > I know it's important not to have more fields on a web-accessed layout than > will be used for those web calls. > > Is there *any* impact on performance caused by having non-field objects on > a web-accessed layout? (text objects, graphic objects (boxes, lines), > colors...) > > TIA, > -Joel > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From tim at nicheit.com.au Sun May 4 17:35:14 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Sun May 4 17:35:29 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: Message-ID: On 03/05/2008, at 6:41 AM, Joel Shapiro wrote: > Hi all > > This may be a dumb question... but there *are* no dumb questions, > right? ( ahem ;-) > > I know it's important not to have more fields on a web-accessed > layout than will be used for those web calls. > > Is there *any* impact on performance caused by having non-field > objects on a web-accessed layout? (text objects, graphic objects > (boxes, lines), colors...) As only data can be returned in the array from the layout, and it's queried through XML, I would assume that there is no overhead from having non-data objects on the layout... If I get the time, I may well create a layout with a huge number of objects and do a side-by-side test... Webko From bob at patin.com Sun May 4 18:06:14 2008 From: bob at patin.com (Bob Patin) Date: Sun May 4 18:06:27 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: Message-ID: Tim, That's interesting; I had always thought that extra objects on a web layout affected performance. I always create web-specific layouts for web apps, that only contain the fields that I need. Maybe it's an extra step, but it's easy to see my data that way too... I always assumed it helped speed a little bit. Chris may have some info on this... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On May 4, 2008, at 6:35 PM, Tim 'Webko' Booth wrote: > > On 03/05/2008, at 6:41 AM, Joel Shapiro wrote: > >> Hi all >> >> This may be a dumb question... but there *are* no dumb questions, >> right? ( ahem ;-) >> >> I know it's important not to have more fields on a web-accessed >> layout than will be used for those web calls. >> >> Is there *any* impact on performance caused by having non-field >> objects on a web-accessed layout? (text objects, graphic objects >> (boxes, lines), colors...) > > As only data can be returned in the array from the layout, and it's > queried through XML, I would assume that there is no overhead from > having non-data objects on the layout... If I get the time, I may > well create a layout with a huge number of objects and do a side-by- > side test... > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tim at nicheit.com.au Sun May 4 18:09:41 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Sun May 4 18:09:55 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: Message-ID: Dear Bob, > > That's interesting; I had always thought that extra objects on a web > layout affected performance. > > I always create web-specific layouts for web apps, that only contain > the fields that I need. Maybe it's an extra step, but it's easy to > see my data that way too... I always assumed it helped speed a > little bit. I do this as well but thinking about it, I can't really see how they can affect the speed... it's all about the data, there are no screen redraws through XML, and only data can pass through that pipe. But I will test this on my test db sometime soon, to get something a bit more empirical ;-) Webko From derrick at fogles.net Sun May 4 18:56:02 2008 From: derrick at fogles.net (Derrick Fogle) Date: Sun May 4 18:56:25 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: Message-ID: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> Recent thread comments: >> I always create web-specific layouts for web apps... > I do this as well but thinking about it, I can't really see how they > can affect the speed... it's all about the data, there are no screen > redraws through XML In Filemaker, the access to the data, I think, is very GUI-based. Otherwise, why do we need to create web-specific layouts? I'm betting it does make a difference. I doubt a few text objects would make much difference ( I will sometimes leave headers in my web-based list layouts), but what about a biggish form layout with a graphic or two? This really does need tried and tested. (points finger at rest of list ;-) From tim at nicheit.com.au Sun May 4 19:25:09 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Sun May 4 19:25:23 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> Message-ID: Dear All, > Recent thread comments: > >>> I always create web-specific layouts for web apps... > >> I do this as well but thinking about it, I can't really see how >> they can affect the speed... it's all about the data, there are no >> screen redraws through XML > > In Filemaker, the access to the data, I think, is very GUI-based. > Otherwise, why do we need to create web-specific layouts? I'm > betting it does make a difference. I doubt a few text objects would > make much difference ( I will sometimes leave headers in my web- > based list layouts), but what about a biggish form layout with a > graphic or two? This really does need tried and tested. (points > finger at rest of list ;-) The *FileMaker* access is indeed heavily GUI oriented - but not the XML interface... And the web specific layouts are usually to reduce the size of the returned data array as much as possible. Anyway, initial anecdotal test is at: http://test.nicheit.com.au/test/acph/list.php?memName=* //Nothing except data fields on layout vs http://test.nicheit.com.au/test/acph/list_pics.php?memName=* // Additional 30 MB of pictures on layout I can't see a discernible difference in speed of response... Cheers Webko From wouter.moerdijk at gmail.com Mon May 5 03:23:44 2008 From: wouter.moerdijk at gmail.com (Wouter Moerdijk) Date: Mon May 5 03:23:58 2008 Subject: [FX.php List] Connection problem Message-ID: <882eea500805050223j27191e5fw4e03f6b3ee0d981d@mail.gmail.com> Hi, I have a problem with a FX setup at one of my clients. The setup is as follows: 1 XP pro machine with apache 2.0, Filemaker 5.5 and the latest FX. The client is using the older 5.5 FM client because they have a special academic licence for it. This setup hase been running for 2 year without a problem, but recently they had the change the server and since then FX reports the "Cannot use object of type FX_Error as array in ... on line ...". The error occurs anywhere on the site and at random places in the site. The error line is always a "FmFind()" line. On one particular page I have to perform multiple searches (9 in total). The page will fail in one place, but after a refresh (F5), it will fail in another place. On this page I turned on the debug mode, and all individual FM requests give a quick response and without a problem. This to me sounds like a connection problem between FX and filemaker, but I do not know how to solve it. W. -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080505/4e39b1a3/attachment.html From ggt667 at gmail.com Mon May 5 03:31:08 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 5 03:31:21 2008 Subject: [FX.php List] Connection problem In-Reply-To: <882eea500805050223j27191e5fw4e03f6b3ee0d981d@mail.gmail.com> References: <882eea500805050223j27191e5fw4e03f6b3ee0d981d@mail.gmail.com> Message-ID: What change in server was done? perhaps you only need to turn on sharing in web publishing plug-in and change IP address in php scripts? ggt 2008/5/5 Wouter Moerdijk : > Hi, > > I have a problem with a FX setup at one of my clients. The setup is as > follows: > > 1 XP pro machine with apache 2.0, Filemaker 5.5 and the latest FX. > > The client is using the older 5.5 FM client because they have a special > academic licence for it. This setup hase been running for 2 year without a > problem, but recently they had the change the server and since then FX > reports the "Cannot use object of type FX_Error as array in ... on line > ...". The error occurs anywhere on the site and at random places in the > site. The error line is always a "FmFind()" line. > On one particular page I have to perform multiple searches (9 in total). > The page will fail in one place, but after a refresh (F5), it will fail in > another place. On this page I turned on the debug mode, and all individual > FM requests give a quick response and without a problem. This to me sounds > like a connection problem between FX and filemaker, but I do not know how to > solve it. > > W. > > > -- > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From jsfmp at earthlink.net Mon May 5 20:33:19 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon May 5 20:33:36 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> Message-ID: <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> Hey Webko Thanks for setting up the test. Do you notice any difference if the results per page is greater than 25? It seems to me that only field data could be recognized by FileMaker's XML processes, but still I've always kept my web layouts to a bare minimum -- even though adding some more info could probably be helpful to any future developer. It would be nice to hear something definitive on this. Thanks, -Joel On May 4, 2008, at 6:25 PM, Tim 'Webko' Booth wrote: > Dear All, > >> Recent thread comments: >> >>>> I always create web-specific layouts for web apps... >> >>> I do this as well but thinking about it, I can't really see how >>> they can affect the speed... it's all about the data, there are >>> no screen redraws through XML >> >> In Filemaker, the access to the data, I think, is very GUI-based. >> Otherwise, why do we need to create web-specific layouts? I'm >> betting it does make a difference. I doubt a few text objects >> would make much difference ( I will sometimes leave headers in my >> web-based list layouts), but what about a biggish form layout with >> a graphic or two? This really does need tried and tested. (points >> finger at rest of list ;-) > > The *FileMaker* access is indeed heavily GUI oriented - but not the > XML interface... And the web specific layouts are usually to reduce > the size of the returned data array as much as possible. > > Anyway, initial anecdotal test is at: > > http://test.nicheit.com.au/test/acph/list.php?memName=* //Nothing > except data fields on layout > vs > http://test.nicheit.com.au/test/acph/list_pics.php?memName=* // > Additional 30 MB of pictures on layout > > I can't see a discernible difference in speed of response... > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tim at nicheit.com.au Mon May 5 21:03:38 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Mon May 5 21:03:56 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> Message-ID: > Hey Webko > > Thanks for setting up the test. Do you notice any difference if the > results per page is greater than 25? OK, took out the pagination and am returning all 433 records that are in that system. http://test.nicheit.com.au/test/acph/test_list.php vs http://test.nicheit.com.au/test/acph/test_list_pics.php //Added even more pics to the layout here... Getting (hand timed) 8 seconds to return everything vs 8 seconds to return everything... > > > It seems to me that only field data could be recognized by > FileMaker's XML processes, but still I've always kept my web layouts > to a bare minimum -- even though adding some more info could > probably be helpful to any future developer. It would be nice to > hear something definitive on this. It's just one test, but it seems to me that layout objects have little if any effect on returning data... Cheers Webko From jsfmp at earthlink.net Mon May 5 21:28:07 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon May 5 21:28:21 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> Message-ID: On May 5, 2008, at 8:03 PM, Tim 'Webko' Booth wrote: > It's just one test, but it seems to me that layout objects have > little if any effect on returning data... Seems that way to me too. Thanks Webko! -Joel From ggt667 at gmail.com Tue May 6 02:19:03 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue May 6 02:19:18 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> Message-ID: That is true, the actual time of query, but did you find a way to measure RAM spent on server machine? Is that the same too? ggt 2008/5/6 Joel Shapiro : > On May 5, 2008, at 8:03 PM, Tim 'Webko' Booth wrote: > > > > It's just one test, but it seems to me that layout objects have little if > any effect on returning data... > > > > Seems that way to me too. > > Thanks Webko! > > -Joel > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From someone at gagayaya.com Tue May 6 10:20:36 2008 From: someone at gagayaya.com (Someone) Date: Tue May 6 10:21:00 2008 Subject: [FX.php List] Re: PayPal and Interac In-Reply-To: <20080430202651.4F6CF7A540D@mail.iviking.org> References: <20080430202651.4F6CF7A540D@mail.iviking.org> Message-ID: <276029AD-C2D5-4511-806C-1F6ABDD4658F@gagayaya.com> Hi, Any idea where to look for php/mysql programmers, possibly in the Toronto, Canada area? Thanks Frank From ardy.aryan at gmail.com Tue May 6 10:53:51 2008 From: ardy.aryan at gmail.com (Ardy Aryan) Date: Tue May 6 10:54:08 2008 Subject: [FX.php List] Re: PayPal and Interac In-Reply-To: <276029AD-C2D5-4511-806C-1F6ABDD4658F@gagayaya.com> References: <20080430202651.4F6CF7A540D@mail.iviking.org> <276029AD-C2D5-4511-806C-1F6ABDD4658F@gagayaya.com> Message-ID: <48208d1e.2cf0220a.3a25.ffffaa36@mx.google.com> Hey Frank, I live in Toronto, I'm not a pro in php but might be able to help. You can search http://toronto.craigslist.com too, there are tons of adds in there. Cheers Ardy -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Someone Sent: Tuesday, May 06, 2008 12:21 PM To: fx.php_list@mail.iviking.org Subject: [FX.php List] Re: PayPal and Interac Hi, Any idea where to look for php/mysql programmers, possibly in the Toronto, Canada area? Thanks Frank _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From tim at nicheit.com.au Tue May 6 17:44:16 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Tue May 6 17:44:25 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> Message-ID: <37DD8290-8883-4502-975D-9BE6C17B43A0@nicheit.com.au> On 06/05/2008, at 6:19 PM, Gjermund Gusland Thorsen wrote: > That is true, the actual time of query, but did you find a way to > measure RAM spent on server machine? > Is that the same too? I did say 'anecdotal test' - I didn't go into the test too deeply, it was a quick one to just anecdotally see if there was an obvious difference. That database has also been replaced with a new one now, so I can't re- test in any case. Cheers Webko From derrick at fogles.net Wed May 7 07:27:15 2008 From: derrick at fogles.net (Derrick Fogle) Date: Wed May 7 07:27:32 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: <37DD8290-8883-4502-975D-9BE6C17B43A0@nicheit.com.au> References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> <37DD8290-8883-4502-975D-9BE6C17B43A0@nicheit.com.au> Message-ID: <51972E65-DFBC-44E8-90AF-2C0702A2A229@fogles.net> Being the one that fueled the fire of this thread, I'm glad I "lost my bet" about non-field objects affecting FX.php performance. I will at least keep field labels on all my FX layouts in the future. On May 6, 2008, at 6:44 PM, Tim 'Webko' Booth wrote: > > On 06/05/2008, at 6:19 PM, Gjermund Gusland Thorsen wrote: > >> That is true, the actual time of query, but did you find a way to >> measure RAM spent on server machine? >> Is that the same too? > > I did say 'anecdotal test' - I didn't go into the test too deeply, > it was a quick one to just anecdotally see if there was an obvious > difference. > > That database has also been replaced with a new one now, so I can't > re-test in any case. > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Wed May 7 07:36:13 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed May 7 07:36:19 2008 Subject: [FX.php List] Do non-field objects on layout affect performance? In-Reply-To: <51972E65-DFBC-44E8-90AF-2C0702A2A229@fogles.net> References: <18E94455-B0A5-4072-A082-CE5E99443F04@fogles.net> <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> <37DD8290-8883-4502-975D-9BE6C17B43A0@nicheit.com.au> <51972E65-DFBC-44E8-90AF-2C0702A2A229@fogles.net> Message-ID: I guess the suggested practice should be, as little as possible, but as much as necessary for the purpose of each layout. And if you go to the level where you make one layout for each query or FX.php-purpose you should be optimized. ggt 2008/5/7 Derrick Fogle : > Being the one that fueled the fire of this thread, I'm glad I "lost my bet" > about non-field objects affecting FX.php performance. I will at least keep > field labels on all my FX layouts in the future. > > > > On May 6, 2008, at 6:44 PM, Tim 'Webko' Booth wrote: > > > > > > On 06/05/2008, at 6:19 PM, Gjermund Gusland Thorsen wrote: > > > > > > > That is true, the actual time of query, but did you find a way to > > > measure RAM spent on server machine? > > > Is that the same too? > > > > > > > I did say 'anecdotal test' - I didn't go into the test too deeply, it was > a quick one to just anecdotally see if there was an obvious difference. > > > > That database has also been replaced with a new one now, so I can't > re-test in any case. > > > > Cheers > > > > Webko > > _______________________________________________ > > 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 Thu May 8 18:08:13 2008 From: bob at patin.com (Bob Patin) Date: Thu May 8 18:08:23 2008 Subject: [FX.php List] Value list error testing Message-ID: Is there a way in PHP to test whether a value list exists, or to trap an error? In other words, if I were to do this: foreach($vlResult['valueLists']['bogus_list_name'] as $key=>$value) { ... } is there a way for me to first determine whether that list name actually exists? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting From jsfmp at earthlink.net Thu May 8 18:14:51 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu May 8 18:15:01 2008 Subject: [FX.php List] Value list error testing In-Reply-To: References: Message-ID: <099B29E9-8709-4B3D-A632-2C19E777DCC5@earthlink.net> Hey Bob Can you just test for: isset($vlResult['valueLists']['bogus_list_name']) ? -Joel On May 8, 2008, at 5:08 PM, Bob Patin wrote: > Is there a way in PHP to test whether a value list exists, or to > trap an error? > > In other words, if I were to do this: > > foreach($vlResult['valueLists']['bogus_list_name'] as $key=>$value) { > > ... > > } > > is there a way for me to first determine whether that list name > actually exists? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions > of FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > _______________________________________________ > 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 May 8 18:18:35 2008 From: bob at patin.com (Bob Patin) Date: Thu May 8 18:18:43 2008 Subject: [FX.php List] Value list error testing In-Reply-To: <099B29E9-8709-4B3D-A632-2C19E777DCC5@earthlink.net> References: <099B29E9-8709-4B3D-A632-2C19E777DCC5@earthlink.net> Message-ID: <424D9835-6FCA-4802-92F2-D0E9FC9DB9E3@patin.com> Perfectamundo! Thanks, Joel! BP On May 8, 2008, at 7:14 PM, Joel Shapiro wrote: > Hey Bob > > Can you just test for: > isset($vlResult['valueLists']['bogus_list_name']) > ? > > -Joel > > > On May 8, 2008, at 5:08 PM, Bob Patin wrote: > >> Is there a way in PHP to test whether a value list exists, or to >> trap an error? >> >> In other words, if I were to do this: >> >> foreach($vlResult['valueLists']['bogus_list_name'] as $key=>$value) { >> >> ... >> >> } >> >> is there a way for me to first determine whether that list name >> actually exists? >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> -------------------------- >> Contact us for FileMaker hosting and programming for all versions >> of FileMaker >> PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> _______________________________________________ >> 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 Fri May 9 14:22:18 2008 From: bob at patin.com (Bob Patin) Date: Fri May 9 14:22:31 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field Message-ID: I need to set up a query that searches a single field for any of a set of numbers (in other words, multiple find requests). I might have 2 values, I might have 20; so I need to find 1 2 3 4 5 in the "myNum" field and return all matched records. Would I need to do a separate query for each search value, and concatenate the resulting arrays, or can i do this in a single query? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting From bob at patin.com Fri May 9 14:26:16 2008 From: bob at patin.com (Bob Patin) Date: Fri May 9 14:26:27 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field In-Reply-To: References: Message-ID: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> Just found the answer, the SetLogicalOR(); ... BP On May 9, 2008, at 3:22 PM, Bob Patin wrote: > I need to set up a query that searches a single field for any of a > set of numbers (in other words, multiple find requests). > > I might have 2 values, I might have 20; so I need to find > > 1 > 2 > 3 > 4 > 5 > > in the "myNum" field > > and return all matched records. Would I need to do a separate query > for each search value, and concatenate the resulting arrays, or can > i do this in a single query? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions of > FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Fri May 9 14:27:29 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri May 9 14:27:50 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field In-Reply-To: References: Message-ID: <23A42711-0478-4E15-90B9-953635769848@tds.net> Hi Bob, If there are other search criteria, I would search on those and then filter the results based on the presence of one or more of your numbers below. Dale On May 9, 2008, at 3:22 PM, Bob Patin wrote: > I need to set up a query that searches a single field for any of a > set of numbers (in other words, multiple find requests). > > I might have 2 values, I might have 20; so I need to find > > 1 > 2 > 3 > 4 > 5 > > in the "myNum" field > > and return all matched records. Would I need to do a separate query > for each search value, and concatenate the resulting arrays, or can > i do this in a single query? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions of > FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tim at nicheit.com.au Sun May 11 18:11:03 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Sun May 11 18:11:22 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field In-Reply-To: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> Message-ID: On 10/05/2008, at 6:26 AM, Bob Patin wrote: > Just found the answer, the SetLogicalOR(); From experience, if you do this, you cannot use an AND search in the same query... Cheers Webko From bob at patin.com Sun May 11 18:17:34 2008 From: bob at patin.com (Bob Patin) Date: Sun May 11 18:17:50 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field In-Reply-To: References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> Message-ID: <9166EC60-7009-4176-97BB-B6FD87E40DB6@patin.com> Right, but I don't need to... :) BP What I needed to do is On May 11, 2008, at 7:11 PM, Tim 'Webko' Booth wrote: > > On 10/05/2008, at 6:26 AM, Bob Patin wrote: > >> Just found the answer, the SetLogicalOR(); > > From experience, if you do this, you cannot use an AND search in the > same query... > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From rp272 at cam.ac.uk Mon May 12 01:54:51 2008 From: rp272 at cam.ac.uk (Roger Price) Date: Mon May 12 01:55:17 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> Message-ID: This is something that I have tried (and failed) to do previously. It has been my understanding that even using SetLogicalOR() you cannot query the same field more than once so that the following does not work: $query->AddDBParam('fieldname', 'something', 'eq'); $query->AddDBParam('fieldname', 'somethingelse','eq'); When I have done this only the 'somethingelse' value seems to be returned! Roger -------------------------------------------------- From: "Tim 'Webko' Booth" Sent: Monday, May 12, 2008 1:11 AM To: "FX.php Discussion List" Subject: Re: [FX.php List] Finding multiple records from multiple values forsame field > > On 10/05/2008, at 6:26 AM, Bob Patin wrote: > >> Just found the answer, the SetLogicalOR(); > > From experience, if you do this, you cannot use an AND search in the same > query... > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From wouter.moerdijk at gmail.com Mon May 12 04:28:18 2008 From: wouter.moerdijk at gmail.com (Wouter Moerdijk) Date: Mon May 12 04:28:44 2008 Subject: [FX.php List] Re: Connection problem Message-ID: <882eea500805120328q7d76d4ffr7122cb7b84f38b75@mail.gmail.com> Hi, The server was changed because it crashed. It was a 2000 macine before, now it is XP proffessional. The IP address and web-companion settings are the same as before. It is not that the scripts do not connect, it is that they fail in 30% of the cases. After a simple refresh (F5) they do work. The FM server is still the same so all needed tabels have sharing and web-companion turned on. Wouter. 2008/5/6 : > Send FX.php_List mailing list submissions to > fx.php_list@mail.iviking.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.iviking.org/mailman/listinfo/fx.php_list > or, via email, send a message with subject or body 'help' to > fx.php_list-request@mail.iviking.org > > You can reach the person managing the list at > fx.php_list-owner@mail.iviking.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of FX.php_List digest..." > > > Today's Topics: > > 1. Connection problem (Wouter Moerdijk) > 2. Re: Connection problem (Gjermund Gusland Thorsen) > 3. Re: Do non-field objects on layout affect performance? > (Joel Shapiro) > 4. Re: Do non-field objects on layout affect performance? > (Tim 'Webko' Booth) > 5. Re: Do non-field objects on layout affect performance? > (Joel Shapiro) > 6. Re: Do non-field objects on layout affect performance? > (Gjermund Gusland Thorsen) > 7. Re: PayPal and Interac (Someone) > 8. RE: Re: PayPal and Interac (Ardy Aryan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 5 May 2008 11:23:44 +0200 > From: "Wouter Moerdijk" > Subject: [FX.php List] Connection problem > To: fx.php_list@mail.iviking.org > Message-ID: > <882eea500805050223j27191e5fw4e03f6b3ee0d981d@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > I have a problem with a FX setup at one of my clients. The setup is as > follows: > > 1 XP pro machine with apache 2.0, Filemaker 5.5 and the latest FX. > > The client is using the older 5.5 FM client because they have a special > academic licence for it. This setup hase been running for 2 year without a > problem, but recently they had the change the server and since then FX > reports the "Cannot use object of type FX_Error as array in ... on line > ...". The error occurs anywhere on the site and at random places in the > site. The error line is always a "FmFind()" line. > On one particular page I have to perform multiple searches (9 in total). > The > page will fail in one place, but after a refresh (F5), it will fail in > another place. On this page I turned on the debug mode, and all individual > FM requests give a quick response and without a problem. This to me sounds > like a connection problem between FX and filemaker, but I do not know how > to > solve it. > > W. > > > -- > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://www.iviking.org/pipermail/fx.php_list/attachments/20080505/4e39b1a3/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Mon, 5 May 2008 11:31:08 +0200 > From: "Gjermund Gusland Thorsen" > Subject: Re: [FX.php List] Connection problem > To: "FX.php Discussion List" > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > What change in server was done? > > perhaps you only need to turn on sharing in web publishing plug-in and > change IP address in php scripts? > > ggt > > 2008/5/5 Wouter Moerdijk : > > Hi, > > > > I have a problem with a FX setup at one of my clients. The setup is as > > follows: > > > > 1 XP pro machine with apache 2.0, Filemaker 5.5 and the latest FX. > > > > The client is using the older 5.5 FM client because they have a special > > academic licence for it. This setup hase been running for 2 year without > a > > problem, but recently they had the change the server and since then FX > > reports the "Cannot use object of type FX_Error as array in ... on line > > ...". The error occurs anywhere on the site and at random places in the > > site. The error line is always a "FmFind()" line. > > On one particular page I have to perform multiple searches (9 in > total). > > The page will fail in one place, but after a refresh (F5), it will fail > in > > another place. On this page I turned on the debug mode, and all > individual > > FM requests give a quick response and without a problem. This to me > sounds > > like a connection problem between FX and filemaker, but I do not know > how to > > solve it. > > > > W. > > > > > > -- > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > ------------------------------ > > Message: 3 > Date: Mon, 5 May 2008 19:33:19 -0700 > From: Joel Shapiro > Subject: Re: [FX.php List] Do non-field objects on layout affect > performance? > To: "FX.php Discussion List" > Message-ID: <31A40068-729A-4B96-88E8-8821585D410F@earthlink.net> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Hey Webko > > Thanks for setting up the test. Do you notice any difference if the > results per page is greater than 25? > > It seems to me that only field data could be recognized by > FileMaker's XML processes, but still I've always kept my web layouts > to a bare minimum -- even though adding some more info could probably > be helpful to any future developer. It would be nice to hear > something definitive on this. > > Thanks, > -Joel > > > On May 4, 2008, at 6:25 PM, Tim 'Webko' Booth wrote: > > > Dear All, > > > >> Recent thread comments: > >> > >>>> I always create web-specific layouts for web apps... > >> > >>> I do this as well but thinking about it, I can't really see how > >>> they can affect the speed... it's all about the data, there are > >>> no screen redraws through XML > >> > >> In Filemaker, the access to the data, I think, is very GUI-based. > >> Otherwise, why do we need to create web-specific layouts? I'm > >> betting it does make a difference. I doubt a few text objects > >> would make much difference ( I will sometimes leave headers in my > >> web-based list layouts), but what about a biggish form layout with > >> a graphic or two? This really does need tried and tested. (points > >> finger at rest of list ;-) > > > > The *FileMaker* access is indeed heavily GUI oriented - but not the > > XML interface... And the web specific layouts are usually to reduce > > the size of the returned data array as much as possible. > > > > Anyway, initial anecdotal test is at: > > > > http://test.nicheit.com.au/test/acph/list.php?memName=* //Nothing > > except data fields on layout > > vs > > http://test.nicheit.com.au/test/acph/list_pics.php?memName=* // > > Additional 30 MB of pictures on layout > > > > I can't see a discernible difference in speed of response... > > > > Cheers > > > > Webko > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > ------------------------------ > > Message: 4 > Date: Tue, 6 May 2008 13:03:38 +1000 > From: Tim 'Webko' Booth > Subject: Re: [FX.php List] Do non-field objects on layout affect > performance? > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > > > Hey Webko > > > > Thanks for setting up the test. Do you notice any difference if the > > results per page is greater than 25? > > OK, took out the pagination and am returning all 433 records that are > in that system. > > http://test.nicheit.com.au/test/acph/test_list.php > vs > http://test.nicheit.com.au/test/acph/test_list_pics.php //Added even > more pics to the layout here... > > Getting (hand timed) 8 seconds to return everything vs 8 seconds to > return everything... > > > > > > It seems to me that only field data could be recognized by > > FileMaker's XML processes, but still I've always kept my web layouts > > to a bare minimum -- even though adding some more info could > > probably be helpful to any future developer. It would be nice to > > hear something definitive on this. > > It's just one test, but it seems to me that layout objects have little > if any effect on returning data... > > Cheers > > Webko > > > ------------------------------ > > Message: 5 > Date: Mon, 5 May 2008 20:28:07 -0700 > From: Joel Shapiro > Subject: Re: [FX.php List] Do non-field objects on layout affect > performance? > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > On May 5, 2008, at 8:03 PM, Tim 'Webko' Booth wrote: > > > It's just one test, but it seems to me that layout objects have > > little if any effect on returning data... > > Seems that way to me too. > > Thanks Webko! > > -Joel > > > ------------------------------ > > Message: 6 > Date: Tue, 6 May 2008 10:19:03 +0200 > From: "Gjermund Gusland Thorsen" > Subject: Re: [FX.php List] Do non-field objects on layout affect > performance? > To: "FX.php Discussion List" > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > That is true, the actual time of query, but did you find a way to > measure RAM spent on server machine? > Is that the same too? > > ggt > > 2008/5/6 Joel Shapiro : > > On May 5, 2008, at 8:03 PM, Tim 'Webko' Booth wrote: > > > > > > > It's just one test, but it seems to me that layout objects have little > if > > any effect on returning data... > > > > > > > Seems that way to me too. > > > > Thanks Webko! > > > > -Joel > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > ------------------------------ > > Message: 7 > Date: Tue, 6 May 2008 12:20:36 -0400 > From: Someone > Subject: [FX.php List] Re: PayPal and Interac > To: fx.php_list@mail.iviking.org > Message-ID: <276029AD-C2D5-4511-806C-1F6ABDD4658F@gagayaya.com> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Hi, > Any idea where to look for php/mysql programmers, possibly in the > Toronto, Canada area? > > Thanks > Frank > > > ------------------------------ > > Message: 8 > Date: Tue, 6 May 2008 12:53:51 -0400 > From: "Ardy Aryan" > Subject: RE: [FX.php List] Re: PayPal and Interac > To: "'FX.php Discussion List'" > Message-ID: <48208d1e.2cf0220a.3a25.ffffaa36@mx.google.com> > Content-Type: text/plain; charset="us-ascii" > > Hey Frank, > I live in Toronto, I'm not a pro in php but might be able to help. You can > search http://toronto.craigslist.com too, there are tons of adds in there. > Cheers > Ardy > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Someone > Sent: Tuesday, May 06, 2008 12:21 PM > To: fx.php_list@mail.iviking.org > Subject: [FX.php List] Re: PayPal and Interac > > Hi, > Any idea where to look for php/mysql programmers, possibly in the > Toronto, Canada area? > > Thanks > Frank > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > ------------------------------ > > _______________________________________________ > FX.php_List > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > End of FX.php_List Digest, Vol 46, Issue 2 > ****************************************** > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080512/cbe7e2e2/attachment-0001.html From tcmeyers at troymeyers.com Mon May 12 07:51:46 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon May 12 07:52:05 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field Message-ID: <3690481.245671210600306893.JavaMail.postmaster@troymeyers.com> Roger, I'm able to do it, but I didn't use SetLogicalOR(). Here's how: $familygroup_find->AddDBParam('-lop','or'); $familygroup_find->AddDBParam('Seedling Source TN','=='.'TN2891'); $familygroup_find->AddDBParam('Seedling Source TN','=='.'TN3531'); $familygroup_find->AddDBParam('Seedling Source TN','=='.'TN3827'); This also works if you specify a different field for each find term, but of course it's OR rather than AND if you do. -Troy > This is something that I have tried (and failed) to do previously. It > has been my understanding that even using SetLogicalOR() you cannot > query the same field more than once so that the following does not > work: > > $query->AddDBParam('fieldname', 'something', 'eq'); > $query->AddDBParam('fieldname', 'somethingelse','eq'); > > When I have done this only the 'somethingelse' value seems to be > returned! > > Roger From ggt667 at gmail.com Mon May 12 08:13:13 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 12 08:13:32 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: <3690481.245671210600306893.JavaMail.postmaster@troymeyers.com> References: <3690481.245671210600306893.JavaMail.postmaster@troymeyers.com> Message-ID: Well, the simplest way is to make a new table, with a related field, f ex named query of type text in whixh is related to Seedling Source TN with a portal with the data you need to know. Then perform an fmnew() to this temporary query table using the following data $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . 'TN3827' ); ggt 2008/5/12 Troy Meyers : > Roger, > > I'm able to do it, but I didn't use SetLogicalOR(). Here's how: > > $familygroup_find->AddDBParam('-lop','or'); > $familygroup_find->AddDBParam('Seedling Source TN','=='.'TN2891'); > $familygroup_find->AddDBParam('Seedling Source TN','=='.'TN3531'); > $familygroup_find->AddDBParam('Seedling Source TN','=='.'TN3827'); > > This also works if you specify a different field for each find term, but of course it's OR rather than AND if you do. > > -Troy > > > > > This is something that I have tried (and failed) to do previously. It > > has been my understanding that even using SetLogicalOR() you cannot > > query the same field more than once so that the following does not > > work: > > > > $query->AddDBParam('fieldname', 'something', 'eq'); > > $query->AddDBParam('fieldname', 'somethingelse','eq'); > > > > When I have done this only the 'somethingelse' value seems to be > > returned! > > > > Roger > > > > _______________________________________________ > 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 Mon May 12 08:22:19 2008 From: bob at patin.com (Bob Patin) Date: Mon May 12 08:23:49 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> Message-ID: <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> Roger, It's working fine for me here. In the web app that I'm building, users can compare several records from the current found set, by clicking checkboxes for the desired records. The query will then find the selected records and display this constrained set using this query: So I wrote this, and it's working fine: $query=new FX($serverIP,$webCompanionPort); $query->SetDBData($dbname,$table_name,'all'); $query->SetDBPassword($webpw,$webun); $query->AddSortParam('manufacturer','ascend'); $query->AddSortParam('product','ascend'); $num_records = $_POST['num_records']; // $num_records is the previous foundCount for the found set they were viewing // loop thru the last found set, retrieve all the checkbox values // if it's checked, add its line to the query $x = 0; while ($x<($num_records+1)){ if(strlen($_POST['c_'.$x])>0){ $query->AddDBParam('recid',$_POST['c_'.$x]); } $x++; } $query->SetLogicalOR(); $queryResult=$query->FMFind(); Hope this helps, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On May 12, 2008, at 2:54 AM, Roger Price wrote: > This is something that I have tried (and failed) to do previously. > It has been my understanding that even using SetLogicalOR() you > cannot query the same field more than once so that the following > does not work: > > $query->AddDBParam('fieldname', 'something', 'eq'); > $query->AddDBParam('fieldname', 'somethingelse','eq'); > > When I have done this only the 'somethingelse' value seems to be > returned! > > Roger > > > -------------------------------------------------- > From: "Tim 'Webko' Booth" > Sent: Monday, May 12, 2008 1:11 AM > To: "FX.php Discussion List" > Subject: Re: [FX.php List] Finding multiple records from multiple > values forsame field > >> >> On 10/05/2008, at 6:26 AM, Bob Patin wrote: >> >>> Just found the answer, the SetLogicalOR(); >> >> From experience, if you do this, you cannot use an AND search in >> the same query... >> >> Cheers >> >> Webko >> _______________________________________________ >> 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 ggt667 at gmail.com Mon May 12 08:29:03 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 12 08:29:21 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> Message-ID: Unix $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . 'TN3827' ); $r = $q->FMNew(); or Windows $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . 'TN3827' ); $r = $q->FMNew(); or MacOS Classic $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . 'TN3827' ); $r = $q->FMNew(); 2008/5/12 Bob Patin : > Roger, > > It's working fine for me here. > > In the web app that I'm building, users can compare several records from > the current found set, by clicking checkboxes for the desired records. The > query will then find the selected records and display this constrained set > using this query: > > So I wrote this, and it's working fine: > > $query=new FX($serverIP,$webCompanionPort); > $query->SetDBData($dbname,$table_name,'all'); > $query->SetDBPassword($webpw,$webun); > $query->AddSortParam('manufacturer','ascend'); > $query->AddSortParam('product','ascend'); > $num_records = $_POST['num_records']; // $num_records is the > previous foundCount for the found set they were viewing > > // loop thru the last found set, retrieve all the checkbox values > // if it's checked, add its line to the query > $x = 0; > while ($x<($num_records+1)){ > if(strlen($_POST['c_'.$x])>0){ > $query->AddDBParam('recid',$_POST['c_'.$x]); > } > $x++; > } > > $query->SetLogicalOR(); > $queryResult=$query->FMFind(); > > Hope this helps, > > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions of > FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > > > On May 12, 2008, at 2:54 AM, Roger Price wrote: > > > > This is something that I have tried (and failed) to do previously. It has > been my understanding that even using SetLogicalOR() you cannot query the > same field more than once so that the following does not work: > > > > $query->AddDBParam('fieldname', 'something', 'eq'); > > $query->AddDBParam('fieldname', 'somethingelse','eq'); > > > > When I have done this only the 'somethingelse' value seems to be returned! > > > > Roger > > > > > > -------------------------------------------------- > > From: "Tim 'Webko' Booth" > > Sent: Monday, May 12, 2008 1:11 AM > > To: "FX.php Discussion List" > > Subject: Re: [FX.php List] Finding multiple records from multiple values > forsame field > > > > > > > > > > On 10/05/2008, at 6:26 AM, Bob Patin wrote: > > > > > > > > > > Just found the answer, the SetLogicalOR(); > > > > > > > > > > From experience, if you do this, you cannot use an AND search in the > same query... > > > > > > Cheers > > > > > > Webko > > > _______________________________________________ > > > 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 bob at patin.com Mon May 12 08:28:23 2008 From: bob at patin.com (Bob Patin) Date: Mon May 12 08:29:54 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: References: <3690481.245671210600306893.JavaMail.postmaster@troymeyers.com> Message-ID: That would work if I wanted to use portals, but I have 37 different tables, all related to a single table. Rather than have to use 37 portals on a layout, I query the table directly, depending on which table they were just viewing. Since I'm using the same page for the initial search results and the constrained search, knowing the table name is easy, and since each of the 37 tables uses a very different page for displaying results, I merely had to add this small bit of code into my results page. For any of you who might be interested in musical equipment, here's a link to the app that I'm building, where you will be able to compare products in 37 different mus. equipment categories (digital recording consoles, reference monitors, digital workstations, microphones, synths, etc.); this is going to be a pretty slick site when it's finished: http://penton.longtermsolutions.com Only the first 3rd of the 37 tables are done so far; click the COMPARE checkboxes to see how my constrain query works... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On May 12, 2008, at 9:13 AM, Gjermund Gusland Thorsen wrote: > Well, the simplest way is to make a new table, > with a related field, f ex named query of type text in whixh is > related to Seedling Source TN > with a portal with the data you need to know. > > Then perform an fmnew() to this temporary query table using the > following data > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . > 'TN3827' ); > > ggt From bob at patin.com Mon May 12 08:41:52 2008 From: bob at patin.com (Bob Patin) Date: Mon May 12 08:43:59 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> Message-ID: When you say Unix, Windows, or Mac, is that the server, or would that pertain to the user? ' Would that same function work for FMFind() as well? BP On May 12, 2008, at 9:29 AM, Gjermund Gusland Thorsen wrote: > Unix > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . > 'TN3827' ); > $r = $q->FMNew(); > > or Windows > > $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . > 'TN3827' ); > $r = $q->FMNew(); > > or MacOS Classic > > $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . > 'TN3827' ); > $r = $q->FMNew(); From ggt667 at gmail.com Mon May 12 08:49:02 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 12 08:49:43 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> Message-ID: It worked with find in fm5/6, but not for fm7/8/9 ggt 2008/5/12 Bob Patin : > When you say Unix, Windows, or Mac, is that the server, or would that > pertain to the user? ' > > Would that same function work for FMFind() as well? > > BP > > > > > On May 12, 2008, at 9:29 AM, Gjermund Gusland Thorsen wrote: > > > > Unix > > > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . 'TN3827' ); > > $r = $q->FMNew(); > > > > or Windows > > > > $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . 'TN3827' > ); > > $r = $q->FMNew(); > > > > or MacOS Classic > > > > $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . 'TN3827' ); > > $r = $q->FMNew(); > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From adenman at tmea.org Mon May 12 09:44:19 2008 From: adenman at tmea.org (Andrew Denman) Date: Mon May 12 09:40:29 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> Message-ID: <004f01c8b447$0bfd81a0$23f884e0$@org> Bob, It's in reference to the FM server (I don't think the web server matters in this case). Since my FileMaker server is on a Windows box I have to use the \r\n to separate lines when submitting to the database. Oddly, when FileMaker returns the data it's separated just by \n. I have no idea how it works from a Mac server so you may have to do a test if you want to find out what works. Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Monday, May 12, 2008 9:42 AM To: FX.php Discussion List Subject: Re: [FX.php List] Finding multiple records from multiple values forsame field When you say Unix, Windows, or Mac, is that the server, or would that pertain to the user? ' Would that same function work for FMFind() as well? BP On May 12, 2008, at 9:29 AM, Gjermund Gusland Thorsen wrote: > Unix > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . > 'TN3827' ); > $r = $q->FMNew(); > > or Windows > > $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . > 'TN3827' ); > $r = $q->FMNew(); > > or MacOS Classic > > $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . > 'TN3827' ); > $r = $q->FMNew(); _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Mon May 12 09:43:22 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 12 09:43:39 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: <004f01c8b447$0bfd81a0$23f884e0$@org> References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> <004f01c8b447$0bfd81a0$23f884e0$@org> Message-ID: Now which version of FileMaker is that? 2008/5/12 Andrew Denman : > Bob, > > It's in reference to the FM server (I don't think the web server matters in > this case). Since my FileMaker server is on a Windows box I have to use the > \r\n to separate lines when submitting to the database. Oddly, when > FileMaker returns the data it's separated just by \n. I have no idea how it > works from a Mac server so you may have to do a test if you want to find out > what works. > > Andrew Denman > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin > Sent: Monday, May 12, 2008 9:42 AM > To: FX.php Discussion List > > Subject: Re: [FX.php List] Finding multiple records from multiple values > forsame field > > > > When you say Unix, Windows, or Mac, is that the server, or would that > pertain to the user? ' > > Would that same function work for FMFind() as well? > > BP > > > > On May 12, 2008, at 9:29 AM, Gjermund Gusland Thorsen wrote: > > > Unix > > > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . > > 'TN3827' ); > > $r = $q->FMNew(); > > > > or Windows > > > > $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . > > 'TN3827' ); > > $r = $q->FMNew(); > > > > or MacOS Classic > > > > $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . > > 'TN3827' ); > > $r = $q->FMNew(); > > _______________________________________________ > 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 adenman at tmea.org Mon May 12 09:55:32 2008 From: adenman at tmea.org (Andrew Denman) Date: Mon May 12 09:51:41 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> <004f01c8b447$0bfd81a0$23f884e0$@org> Message-ID: <005c01c8b448$9d7da000$d878e000$@org> FileMaker Server 8v4 on a Windows Server 2003 box. Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen Sent: Monday, May 12, 2008 10:43 AM To: FX.php Discussion List Subject: Re: [FX.php List] Finding multiple records from multiple values forsame field Now which version of FileMaker is that? 2008/5/12 Andrew Denman : > Bob, > > It's in reference to the FM server (I don't think the web server matters in > this case). Since my FileMaker server is on a Windows box I have to use the > \r\n to separate lines when submitting to the database. Oddly, when > FileMaker returns the data it's separated just by \n. I have no idea how it > works from a Mac server so you may have to do a test if you want to find out > what works. > > Andrew Denman > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin > Sent: Monday, May 12, 2008 9:42 AM > To: FX.php Discussion List > > Subject: Re: [FX.php List] Finding multiple records from multiple values > forsame field > > > > When you say Unix, Windows, or Mac, is that the server, or would that > pertain to the user? ' > > Would that same function work for FMFind() as well? > > BP > > > > On May 12, 2008, at 9:29 AM, Gjermund Gusland Thorsen wrote: > > > Unix > > > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . > > 'TN3827' ); > > $r = $q->FMNew(); > > > > or Windows > > > > $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . > > 'TN3827' ); > > $r = $q->FMNew(); > > > > or MacOS Classic > > > > $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . > > 'TN3827' ); > > $r = $q->FMNew(); > > _______________________________________________ > 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 ggt667 at gmail.com Mon May 12 11:04:12 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 12 11:04:37 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: <005c01c8b448$9d7da000$d878e000$@org> References: <7E1B13B5-C937-4610-94D9-50E24702DF5A@patin.com> <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> <004f01c8b447$0bfd81a0$23f884e0$@org> <005c01c8b448$9d7da000$d878e000$@org> Message-ID: Which Filemaker Pro [Advanced] was the file created in? ggt 2008/5/12 Andrew Denman : > FileMaker Server 8v4 on a Windows Server 2003 box. > > Andrew Denman > > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen > Sent: Monday, May 12, 2008 10:43 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Finding multiple records from multiple values forsame field > > Now which version of FileMaker is that? > > 2008/5/12 Andrew Denman : > > Bob, > > > > It's in reference to the FM server (I don't think the web server matters in > > this case). Since my FileMaker server is on a Windows box I have to use the > > \r\n to separate lines when submitting to the database. Oddly, when > > FileMaker returns the data it's separated just by \n. I have no idea how it > > works from a Mac server so you may have to do a test if you want to find out > > what works. > > > > Andrew Denman > > > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org > > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin > > Sent: Monday, May 12, 2008 9:42 AM > > To: FX.php Discussion List > > > > Subject: Re: [FX.php List] Finding multiple records from multiple values > > forsame field > > > > > > > > When you say Unix, Windows, or Mac, is that the server, or would that > > pertain to the user? ' > > > > Would that same function work for FMFind() as well? > > > > BP > > > > > > > > On May 12, 2008, at 9:29 AM, Gjermund Gusland Thorsen wrote: > > > > > Unix > > > > > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . > > > 'TN3827' ); > > > $r = $q->FMNew(); > > > > > > or Windows > > > > > > $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . > > > 'TN3827' ); > > > $r = $q->FMNew(); > > > > > > or MacOS Classic > > > > > > $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . > > > 'TN3827' ); > > > $r = $q->FMNew(); > > > > _______________________________________________ > > 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 > From kbecker at treca.org Mon May 12 11:50:00 2008 From: kbecker at treca.org (Kevin Becker) Date: Mon May 12 11:50:18 2008 Subject: [FX.php List] Limit number of returned Portal rows Message-ID: Is there any way to limit the number of portal records that get returned in the array? I'm trying to reduce the number of queries I send to FileMaker by using multiple portals on a single layout (instead of querying 4 or more different tables), but any gains in speed could be lost when the number of related records starts to approach the hundreds and beyond. Kevin Becker From dan.cynosure at dbmscan.com Mon May 12 12:09:52 2008 From: dan.cynosure at dbmscan.com (DC) Date: Mon May 12 12:10:11 2008 Subject: [FX.php List] Limit number of returned Portal rows In-Reply-To: References: Message-ID: <482887F0.2030503@dbmscan.com> no. even related fields that are not in "portals" on the layout will return *all* of their related records. AFAIK, you can not use the CWP (FX.php) interface to set record return LIMIT on related records. you could try to do some tricky thing with a related global and on your query set a global as part of a calculation field that matches on status(recordnum). but that's too weird to even test if it would work! ;-) spitting out XML and converting XML to arrays is a time-consuming part of the FMP interface - it eats cycles like a sumo wrestler. anything you can do to zero in on the exact records you want will speed up FMP in the most direct way. so, depending on how many related records there are in your related files you would (at some point) be better off making separate queries with a record return limit set through FX.php. Also, try to see if you even have to get records from every one of your related tables on every query. multiple layouts help too - tuned to each query with no wasted fields. dan Kevin Becker wrote: > Is there any way to limit the number of portal records that get returned > in the array? > > I'm trying to reduce the number of queries I send to FileMaker by using > multiple portals on a single layout (instead of querying 4 or more > different tables), but any gains in speed could be lost when the number of > related records starts to approach the hundreds and beyond. > > Kevin Becker > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Mon May 12 12:15:46 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 12 12:16:04 2008 Subject: [FX.php List] Limit number of returned Portal rows In-Reply-To: <482887F0.2030503@dbmscan.com> References: <482887F0.2030503@dbmscan.com> Message-ID: Just make make a good oo model in Filemaker and your problem will be gone, there is from and to in FileMaker 7/8/9. ggt 2008/5/12 DC : > no. even related fields that are not in "portals" on the layout will > return *all* of their related records. AFAIK, you can not use the CWP > (FX.php) interface to set record return LIMIT on related records. > > you could try to do some tricky thing with a related global and on your > query set a global as part of a calculation field that matches on > status(recordnum). but that's too weird to even test if it would work! ;-) > > spitting out XML and converting XML to arrays is a time-consuming part > of the FMP interface - it eats cycles like a sumo wrestler. anything you > can do to zero in on the exact records you want will speed up FMP in the > most direct way. > > so, depending on how many related records there are in your related > files you would (at some point) be better off making separate queries > with a record return limit set through FX.php. Also, try to see if you > even have to get records from every one of your related tables on every > query. > > multiple layouts help too - tuned to each query with no wasted fields. > > dan > > > > Kevin Becker wrote: > > > Is there any way to limit the number of portal records that get returned > > in the array? > > > > I'm trying to reduce the number of queries I send to FileMaker by using > > multiple portals on a single layout (instead of querying 4 or more > > different tables), but any gains in speed could be lost when the number of > > related records starts to approach the hundreds and beyond. > > > > Kevin Becker > > > > > > _______________________________________________ > > 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 ggt667 at gmail.com Mon May 12 12:51:43 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon May 12 12:52:12 2008 Subject: [FX.php List] Finding multiple records from multiple values forsame field In-Reply-To: References: <029374DD-873A-4C4D-A009-9BD4B8D1483F@patin.com> <004f01c8b447$0bfd81a0$23f884e0$@org> <005c01c8b448$9d7da000$d878e000$@org> Message-ID: BTW I have layouts with 400+ relationships on them, it's not a problem, if you give it the right kinda data... ggt 2008/5/12 Gjermund Gusland Thorsen : > Which Filemaker Pro [Advanced] was the file created in? > > ggt > > > > 2008/5/12 Andrew Denman : > > FileMaker Server 8v4 on a Windows Server 2003 box. > > > > Andrew Denman > > > > > > > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen > > Sent: Monday, May 12, 2008 10:43 AM > > To: FX.php Discussion List > > Subject: Re: [FX.php List] Finding multiple records from multiple values forsame field > > > > Now which version of FileMaker is that? > > > > 2008/5/12 Andrew Denman : > > > Bob, > > > > > > It's in reference to the FM server (I don't think the web server matters in > > > this case). Since my FileMaker server is on a Windows box I have to use the > > > \r\n to separate lines when submitting to the database. Oddly, when > > > FileMaker returns the data it's separated just by \n. I have no idea how it > > > works from a Mac server so you may have to do a test if you want to find out > > > what works. > > > > > > Andrew Denman > > > > > > > > > -----Original Message----- > > > From: fx.php_list-bounces@mail.iviking.org > > > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin > > > Sent: Monday, May 12, 2008 9:42 AM > > > To: FX.php Discussion List > > > > > > Subject: Re: [FX.php List] Finding multiple records from multiple values > > > forsame field > > > > > > > > > > > > When you say Unix, Windows, or Mac, is that the server, or would that > > > pertain to the user? ' > > > > > > Would that same function work for FMFind() as well? > > > > > > BP > > > > > > > > > > > > On May 12, 2008, at 9:29 AM, Gjermund Gusland Thorsen wrote: > > > > > > > Unix > > > > > > > > $q->AddDBParam('query', 'TN2891' . "\n" . 'TN3531' . "\n" . > > > > 'TN3827' ); > > > > $r = $q->FMNew(); > > > > > > > > or Windows > > > > > > > > $q->AddDBParam('query', 'TN2891' . "\r\n" . 'TN3531' . "\r\n" . > > > > 'TN3827' ); > > > > $r = $q->FMNew(); > > > > > > > > or MacOS Classic > > > > > > > > $q->AddDBParam('query', 'TN2891' . "\r" . 'TN3531' . "\r" . > > > > 'TN3827' ); > > > > $r = $q->FMNew(); > > > > > > _______________________________________________ > > > 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 > > > From jschwartz at exit445.com Mon May 12 17:26:59 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon May 12 17:27:11 2008 Subject: [FX.php List] [OT] PHP Shorthand Message-ID: Anyone use the following shorthand: versus Just saw this for the first time. Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From whatdoyouwant at gmail.com Mon May 12 18:10:36 2008 From: whatdoyouwant at gmail.com (Nick) Date: Mon May 12 18:10:41 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: References: Message-ID: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> you can but it is not advised to use anything but wrote: > Anyone use the following shorthand: > > > > versus > > > > Just saw this for the first time. > > Jonathan > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-381-1852 > _______________________________________________ > 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://www.iviking.org/pipermail/fx.php_list/attachments/20080512/15a817b5/attachment.html From whatdoyouwant at gmail.com Mon May 12 18:24:03 2008 From: whatdoyouwant at gmail.com (Nick) Date: Mon May 12 18:24:08 2008 Subject: [FX.php List] Limit number of returned Portal rows In-Reply-To: References: Message-ID: <4d370f710805121724g3eb431e1t9106ff4432cd7181@mail.gmail.com> Actually it is possible in two ways: 1) don't put the related fields in a portal and you only ever get the first related record. 2) use -relatedsets.filter to limit the amount of returned related records, a filemaker server 9 feature. see page ~90 in the pdf: http://www.filemaker.com/downloads/pdf/fms9_cwp_xslt_en.pdf On Mon, May 12, 2008 at 12:50 PM, Kevin Becker wrote: > Is there any way to limit the number of portal records that get returned > in the array? > > I'm trying to reduce the number of queries I send to FileMaker by using > multiple portals on a single layout (instead of querying 4 or more > different tables), but any gains in speed could be lost when the number of > related records starts to approach the hundreds and beyond. > > Kevin Becker > > > _______________________________________________ > 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://www.iviking.org/pipermail/fx.php_list/attachments/20080512/08689cc2/attachment.html From whatdoyouwant at gmail.com Mon May 12 20:22:06 2008 From: whatdoyouwant at gmail.com (Nick) Date: Mon May 12 20:22:13 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field In-Reply-To: References: Message-ID: <4d370f710805121922s6725e676v928310471f9b0187@mail.gmail.com> I didn't see this mentioned, but with FileMaker server 9 and FX.php you can use: AddDBParam('query', '(q1);(q2);(q3);(q4);(q5)'); AddDBParam('-q1', 'myNum'); AddDBParam('-q1.value', 1); AddDBParam('-q2', 'myNum'); AddDBParam('-q2.value', 2); AddDBParam('-q3', 'myNum'); AddDBParam('-q3.value', 3); AddDBParam('-q4', 'myNum'); AddDBParam('-q4.value', 4); AddDBParam('-q5', 'myNum'); AddDBParam('-q5.value', 5); FMFindQuery(); // you would have to create add the -findquery piece in the FX.php file. pretty easy to add -Nick On Fri, May 9, 2008 at 3:22 PM, Bob Patin wrote: > I need to set up a query that searches a single field for any of a set of > numbers (in other words, multiple find requests). > > I might have 2 values, I might have 20; so I need to find > > 1 > 2 > 3 > 4 > 5 > > in the "myNum" field > > and return all matched records. Would I need to do a separate query for > each search value, and concatenate the resulting arrays, or can i do this in > a single query? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions of > FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > _______________________________________________ > 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://www.iviking.org/pipermail/fx.php_list/attachments/20080512/43aed408/attachment.html From fx at 9degrees.com Mon May 12 20:29:56 2008 From: fx at 9degrees.com (Michael Layne) Date: Mon May 12 20:30:02 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> References: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> Message-ID: Also, I'm not a PHP contributor, but in PHP5, you have to explicitly allow short tags. From most default PHP5 installations: won't work Got to use Only feel safe with shorthand if you control the server - that's been my experience. Here's a thread that walks you through the argument... http://www.webhostingtalk.com/showthread.php?t=617661 HTH. Michael On May 12, 2008, at 8:10 PM, Nick wrote: > you can but it is not advised to use anything but as various server configurations won't be compatible with the > shorthand versions. > > On Mon, May 12, 2008 at 6:26 PM, Jonathan Schwartz > wrote: > Anyone use the following shorthand: > > > > versus > > > > Just saw this for the first time. > > Jonathan > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-381-1852 > _______________________________________________ > 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://www.iviking.org/pipermail/fx.php_list/attachments/20080512/7b253ff8/attachment-0001.html From bob at patin.com Mon May 12 20:55:52 2008 From: bob at patin.com (Bob Patin) Date: Mon May 12 20:56:15 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field In-Reply-To: <4d370f710805121922s6725e676v928310471f9b0187@mail.gmail.com> References: <4d370f710805121922s6725e676v928310471f9b0187@mail.gmail.com> Message-ID: <8883A2DD-DCF9-4A6A-B436-B3B70C2E0FF2@patin.com> Nick, That looks interesting; have you tried it? BP On May 12, 2008, at 9:22 PM, Nick wrote: > I didn't see this mentioned, but with FileMaker server 9 and FX.php > you can use: > > AddDBParam('query', '(q1);(q2);(q3);(q4);(q5)'); > AddDBParam('-q1', 'myNum'); > AddDBParam('-q1.value', 1); > AddDBParam('-q2', 'myNum'); > AddDBParam('-q2.value', 2); > AddDBParam('-q3', 'myNum'); > AddDBParam('-q3.value', 3); > AddDBParam('-q4', 'myNum'); > AddDBParam('-q4.value', 4); > AddDBParam('-q5', 'myNum'); > AddDBParam('-q5.value', 5); > > FMFindQuery(); // you would have to create add the -findquery piece > in the FX.php file. pretty easy to add From jschwartz at exit445.com Mon May 12 22:24:09 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon May 12 22:24:30 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: References: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> Message-ID: That's what I thought. But the code in question is used liberally in PHPAuction. J At 10:29 PM -0400 5/12/08, Michael Layne wrote: >Also, I'm not a PHP contributor, but in PHP5, you have to explicitly >allow short tags. > >From most default PHP5 installations: > > > >won't work > >Got to use > > > >Only feel safe with shorthand if you control the server - that's >been my experience. > >Here's a thread that walks you through the argument... > >http://www.webhostingtalk.com/showthread.php?t=617661 > >HTH. > >Michael > >On May 12, 2008, at 8:10 PM, Nick wrote: > >>you can but it is not advised to use anything but >as various server configurations won't be compatible with the >>shorthand versions. >> >>On Mon, May 12, 2008 at 6:26 PM, Jonathan Schwartz >><jschwartz@exit445.com> wrote: >> >>Anyone use the following shorthand: >> >> >> >>versus >> >> >> >>Just saw this for the first time. >> >>Jonathan >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-381-1852 >>_______________________________________________ >>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 -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080512/68430bf2/attachment.html From derrick at fogles.net Tue May 13 06:03:57 2008 From: derrick at fogles.net (Derrick Fogle) Date: Tue May 13 06:04:18 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: References: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> Message-ID: I recently read that PHP6 completely removes the Open Short Tags feature, too. I used them quite liberally back in the day, but I don't anymore. On May 12, 2008, at 11:24 PM, Jonathan Schwartz wrote: > That's what I thought. But the code in question is used liberally > in PHPAuction. > > J > > At 10:29 PM -0400 5/12/08, Michael Layne wrote: >> Also, I'm not a PHP contributor, but in PHP5, you have to >> explicitly allow short tags. >> >> From most default PHP5 installations: >> >> >> >> won't work >> >> Got to use >> >> >> >> Only feel safe with shorthand if you control the server - that's >> been my experience. >> >> Here's a thread that walks you through the argument... >> >> http://www.webhostingtalk.com/showthread.php?t=617661 >> >> HTH. >> >> Michael >> >> On May 12, 2008, at 8:10 PM, Nick wrote: >> >>> you can but it is not advised to use anything but >> as various server configurations won't be compatible with the >>> shorthand versions. >>> On Mon, May 12, 2008 at 6:26 PM, Jonathan Schwartz >> > wrote: >>> Anyone use the following shorthand: >>> >>> >>> >>> versus >>> >>> >>> >>> Just saw this for the first time. >>> >>> Jonathan >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-381-1852 >>> _______________________________________________ >>> 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 > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-381-1852 > _______________________________________________ > 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://www.iviking.org/pipermail/fx.php_list/attachments/20080513/edb46ee0/attachment.html From dan.cynosure at dbmscan.com Tue May 13 07:49:35 2008 From: dan.cynosure at dbmscan.com (DC) Date: Tue May 13 07:49:42 2008 Subject: [FX.php List] Limit number of returned Portal rows In-Reply-To: <4d370f710805121724g3eb431e1t9106ff4432cd7181@mail.gmail.com> References: <4d370f710805121724g3eb431e1t9106ff4432cd7181@mail.gmail.com> Message-ID: <48299C6F.1000000@dbmscan.com> Nick wrote: > Actually it is possible in two ways: > 1) don't put the related fields in a portal and you only ever get the > first related record. Nick, my experience is that when you put a related field on a layout (in a portal or out of a portal) *all* related records are returned. i.e., portals only affect the FMP interface not the CWP/FX output. please check your FX result array with: print_r('
'.$FXresult['data'].'
'); and let us know if this behavior has changed recently. thx, dan From tcmeyers at troymeyers.com Tue May 13 08:02:46 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue May 13 08:02:52 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field Message-ID: <150828.2791210687366696.JavaMail.lacey-jean@troymeyers.com> Nick, What did you mean by: > FMFindQuery(); // you would have to create add the -findquery piece in > the FX.php file. pretty easy to add ...? -Troy > I didn't see this mentioned, but with FileMaker server 9 and FX.php you > can use: > AddDBParam('query', '(q1);(q2);(q3);(q4);(q5)'); AddDBParam('-q1', 'myNum'); AddDBParam('-q1.value', 1); AddDBParam('-q2', 'myNum'); AddDBParam('-q2.value', 2); AddDBParam('-q3', 'myNum'); AddDBParam('-q3.value', 3); AddDBParam('-q4', 'myNum'); AddDBParam('-q4.value', 4); AddDBParam('-q5', 'myNum'); AddDBParam('-q5.value', 5); FMFindQuery(); // you would have to create add the -findquery piece in the FX.php file. pretty easy to add > > -Nick > > On Fri, May 9, 2008 at 3:22 PM, Bob Patin wrote: > > > I need to set up a query that searches a single field for any of a set > of > numbers (in other words, multiple find requests). > > I might have > 2 values, I might have 20; so I need to find > > 1 > 2 > 3 > 4 > 5 > > > in the "myNum" field > > and return all matched records. Would I need to > do a separate query for > each search value, and concatenate the > resulting arrays, or can i do this in > a single query? > > Thanks, > > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9 Certified > Developer > Member of FileMaker Business Alliance and FileMaker TechNet > > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > > ICQ: 159333060 > > -------------------------- > Contact us for > FileMaker hosting and programming for all versions of > FileMaker > PHP > > CDML > > Full email services > > Free DNS hosting > > Colocation > > > Consulting > > _______________________________________________ > > FX.php_List mailing list > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > From dbengston at tds.net Tue May 13 09:04:46 2008 From: dbengston at tds.net (Dale Bengston) Date: Tue May 13 09:05:04 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: References: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> Message-ID: Us too. Since we can't control the client's environment, we have eliminated short tags in our code. Dale On May 13, 2008, at 7:03 AM, Derrick Fogle wrote: > I recently read that PHP6 completely removes the Open Short Tags > feature, too. I used them quite liberally back in the day, but I > don't anymore. > > On May 12, 2008, at 11:24 PM, Jonathan Schwartz wrote: > >> That's what I thought. But the code in question is used liberally >> in PHPAuction. >> >> J >> >> At 10:29 PM -0400 5/12/08, Michael Layne wrote: >>> Also, I'm not a PHP contributor, but in PHP5, you have to >>> explicitly allow short tags. >>> >>> From most default PHP5 installations: >>> >>> >>> >>> won't work >>> >>> Got to use >>> >>> >>> >>> Only feel safe with shorthand if you control the server - that's >>> been my experience. >>> >>> Here's a thread that walks you through the argument... >>> >>> http://www.webhostingtalk.com/showthread.php?t=617661 >>> >>> HTH. >>> >>> Michael >>> >>> On May 12, 2008, at 8:10 PM, Nick wrote: >>> >>>> you can but it is not advised to use anything but >>> as various server configurations won't be compatible with the >>>> shorthand versions. >>>> On Mon, May 12, 2008 at 6:26 PM, Jonathan Schwartz >>> > wrote: >>>> Anyone use the following shorthand: >>>> >>>> >>>> >>>> versus >>>> >>>> >>>> >>>> Just saw this for the first time. >>>> >>>> Jonathan >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-381-1852 >>>> _______________________________________________ >>>> 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 >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-381-1852 >> _______________________________________________ >> 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://www.iviking.org/pipermail/fx.php_list/attachments/20080513/732c686f/attachment-0001.html From ggt667 at gmail.com Tue May 13 09:14:06 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue May 13 09:14:12 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: References: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> Message-ID: Well at the time when I started scripting php it really did not matter, these days there are more filetypes... Therefore is the way to go. ggt 2008/5/13 Dale Bengston : > Us too. Since we can't control the client's environment, we have eliminated > short tags in our code. > > Dale > > > > > On May 13, 2008, at 7:03 AM, Derrick Fogle wrote: > > I recently read that PHP6 completely removes the Open Short Tags feature, > too. I used them quite liberally back in the day, but I don't anymore. > > > On May 12, 2008, at 11:24 PM, Jonathan Schwartz wrote: > > That's what I thought. But the code in question is used liberally in > PHPAuction. > > J > > At 10:29 PM -0400 5/12/08, Michael Layne wrote: > Also, I'm not a PHP contributor, but in PHP5, you have to explicitly allow > short tags. > > From most default PHP5 installations: > > > > won't work > > Got to use > > > > Only feel safe with shorthand if you control the server - that's been my > experience. > > Here's a thread that walks you through the argument... > > http://www.webhostingtalk.com/showthread.php?t=617661 > > HTH. > > Michael > > On May 12, 2008, at 8:10 PM, Nick wrote: > > you can but it is not advised to use anything but as various server configurations won't be compatible with the shorthand > versions. > On Mon, May 12, 2008 at 6:26 PM, Jonathan Schwartz > wrote: > Anyone use the following shorthand: > > > > versus > > > > Just saw this for the first time. > > Jonathan > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-381-1852 > _______________________________________________ > 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 > > > -- > > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-381-1852_______________________________________________ > 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 jschwartz at exit445.com Tue May 13 09:19:18 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue May 13 09:20:45 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: References: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> Message-ID: Thanks guys. I just wanted to know if the shorthand was something new. Had never seen "" before. It not only skips the opening "php", it skips the "echo" and closing semicolon. J At 5:14 PM +0200 5/13/08, Gjermund Gusland Thorsen wrote: >Well at the time when I started scripting php it really did not >matter, these days there are more filetypes... > >Therefore ?> > >is the way to go. > >ggt > >2008/5/13 Dale Bengston : >> Us too. Since we can't control the client's environment, we have eliminated >> short tags in our code. >> >> Dale >> >> >> >> >> On May 13, 2008, at 7:03 AM, Derrick Fogle wrote: >> >> I recently read that PHP6 completely removes the Open Short Tags feature, >> too. I used them quite liberally back in the day, but I don't anymore. >> >> >> On May 12, 2008, at 11:24 PM, Jonathan Schwartz wrote: >> >> That's what I thought. But the code in question is used liberally in >> PHPAuction. >> >> J >> >> At 10:29 PM -0400 5/12/08, Michael Layne wrote: >> Also, I'm not a PHP contributor, but in PHP5, you have to explicitly allow >> short tags. >> >> From most default PHP5 installations: >> >> >> >> won't work >> >> Got to use >> >> >> >> Only feel safe with shorthand if you control the server - that's been my >> experience. >> >> Here's a thread that walks you through the argument... >> >> http://www.webhostingtalk.com/showthread.php?t=617661 >> >> HTH. >> >> Michael >> >> On May 12, 2008, at 8:10 PM, Nick wrote: >> >> you can but it is not advised to use anything but > as various server configurations won't be compatible with the shorthand >> versions. >> On Mon, May 12, 2008 at 6:26 PM, Jonathan Schwartz >> wrote: >> Anyone use the following shorthand: >> > > >> >> versus >> >> >> >> Just saw this for the first time. >> >> Jonathan >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-381-1852 >> _______________________________________________ >> 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 >> >> >> -- >> >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-381-1852_______________________________________________ >> 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 -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From derrick at fogles.net Tue May 13 09:26:31 2008 From: derrick at fogles.net (Derrick Fogle) Date: Tue May 13 09:26:47 2008 Subject: [FX.php List] [OT] PHP Shorthand In-Reply-To: References: <4d370f710805121710l3ee5cdf7u83638c42e212046@mail.gmail.com> Message-ID: <504DB7BB-7727-4E93-815D-18280A4D7137@fogles.net> On May 13, 2008, at 10:19 AM, Jonathan Schwartz wrote: > Had never seen "" before. Brought to you by minimalist (or lazy) hand-coders. From kbecker at treca.org Tue May 13 09:51:50 2008 From: kbecker at treca.org (Kevin Becker) Date: Tue May 13 09:51:57 2008 Subject: [FX.php List] Re: Limit number of returned Portal rows In-Reply-To: <20080513023003.E1C717EBA73@mail.iviking.org> References: <20080513023003.E1C717EBA73@mail.iviking.org> Message-ID: @ Nick and Dan 1) I get the same results as Nick for a related field not in a portal. Only the first record gets returned. @Nick 2) The possibility of using -relatedsets.filter (pg.99) and -relatedsets.max (pg.100) is very promising. But how do I incorporate that into an FX.php query? I tried this: $v -> AddDBParam("-relatedsets.max", 10); but I get an error of 958 - Parameter missing in query. Does FX support this? Will it someday? Kevin Becker Nick on Monday, May 12, 2008 at 10:30 PM -0500 wrote: >Actually it is possible in two ways: > 1) don't put the related fields in a portal and you only ever get the >first related record. > 2) use -relatedsets.filter to limit the amount of returned related >records, a filemaker server 9 feature. see page ~90 in the pdf: >http://www.filemaker.com/downloads/pdf/fms9_cwp_xslt_en.pdf From dan.cynosure at dbmscan.com Tue May 13 10:11:24 2008 From: dan.cynosure at dbmscan.com (DC) Date: Tue May 13 10:11:39 2008 Subject: [FX.php List] Re: Limit number of returned Portal rows In-Reply-To: References: <20080513023003.E1C717EBA73@mail.iviking.org> Message-ID: <4829BDAC.8060905@dbmscan.com> Kevin, just to double-check: 1) what version FMP are you on? i am still on 6 for some web stuff. 2) are you sure that there *are* more related records that would show "in" the portal if there were one on the layout for that relationship? that is, are you sure that the related field would actually have more than one related record? 3) are you sure there are not other constraints on the field you are testing? a calculation that would limit the number of related records. 4) are you sure there is no post-processing of the FX result array? thx for checking, dan Kevin Becker wrote: > @ Nick and Dan > 1) I get the same results as Nick for a related field not in a portal. > Only the first record gets returned. > > @Nick > 2) The possibility of using -relatedsets.filter (pg.99) and > -relatedsets.max (pg.100) is very promising. But how do I incorporate > that into an FX.php query? I tried this: > > $v -> AddDBParam("-relatedsets.max", 10); > > but I get an error of 958 - Parameter missing in query. Does FX support > this? Will it someday? > > Kevin Becker > > Nick on Monday, May 12, 2008 at 10:30 PM -0500 wrote: >> Actually it is possible in two ways: >> 1) don't put the related fields in a portal and you only ever get the >> first related record. >> 2) use -relatedsets.filter to limit the amount of returned related >> records, a filemaker server 9 feature. see page ~90 in the pdf: >> http://www.filemaker.com/downloads/pdf/fms9_cwp_xslt_en.pdf > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From chris at iViking.org Tue May 13 10:31:13 2008 From: chris at iViking.org (Chris Hansen) Date: Tue May 13 10:31:19 2008 Subject: [FX.php List] Re: Limit number of returned Portal rows In-Reply-To: References: <20080513023003.E1C717EBA73@mail.iviking.org> Message-ID: <9600CFA3-095C-4AB6-85B6-DFB68542434E@iViking.org> Hey list, sorry not to respond to list earlier... This is a bug in FMS which I have reported to them. In earlier versions of FileMaker, the data returned respected your settings for a given portal -- a portal which only displayed 6 rows, only returned 6 rows, and a vertical scroll bar caused all portal records to be returned. Now, FileMaker has added parameters so that you can specify the behavior, except they don't work with the FMPXMLRESULT grammar (ironic, since this grammar is in place for situations where a less verbose response is preferred.) That said, once this bug is fixed, it will work exactly as Kevin attempted to use it below. In addition, I think it would make sense to add functions to FX.php so that you don't have to remember that FileMaker syntax... Finally, if you look FileMaker's XML documentation, you'll note they've added support now for combining logical AND and OR in a single query via XML! Woot! I haven't had a chance yet to test if this is broken, too. Anybody excited enough to try this out and report back? Best, --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On May 13, 2008, at 9:51 AM, Kevin Becker wrote: > @ Nick and Dan > 1) I get the same results as Nick for a related field not in a portal. > Only the first record gets returned. > > @Nick > 2) The possibility of using -relatedsets.filter (pg.99) and > -relatedsets.max (pg.100) is very promising. But how do I incorporate > that into an FX.php query? I tried this: > > $v -> AddDBParam("-relatedsets.max", 10); > > but I get an error of 958 - Parameter missing in query. Does FX > support > this? Will it someday? > > Kevin Becker > > Nick on Monday, May 12, 2008 at 10:30 PM -0500 wrote: >> Actually it is possible in two ways: >> 1) don't put the related fields in a portal and you only ever get the >> first related record. >> 2) use -relatedsets.filter to limit the amount of returned related >> records, a filemaker server 9 feature. see page ~90 in the pdf: >> http://www.filemaker.com/downloads/pdf/fms9_cwp_xslt_en.pdf > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dan.cynosure at dbmscan.com Tue May 13 11:33:56 2008 From: dan.cynosure at dbmscan.com (DC) Date: Tue May 13 11:34:06 2008 Subject: [FX.php List] Re: Limit number of returned Portal rows In-Reply-To: <9600CFA3-095C-4AB6-85B6-DFB68542434E@iViking.org> References: <20080513023003.E1C717EBA73@mail.iviking.org> <9600CFA3-095C-4AB6-85B6-DFB68542434E@iViking.org> Message-ID: <4829D104.8060100@dbmscan.com> Chris Hansen wrote: a portal which only displayed 6 rows, only returned 6 rows, > and a vertical scroll bar caused all portal records to be returned. so, chris, while you are addressing this... for most recent FMP version, what about the case where you just drop a related field onto the layout without a portal? does it return just the one record or all related records? in FMP6 a related field w/o a portal returns all related records. dan From whatdoyouwant at gmail.com Tue May 13 13:04:02 2008 From: whatdoyouwant at gmail.com (Nick) Date: Tue May 13 13:04:09 2008 Subject: [FX.php List] Finding multiple records from multiple values for same field In-Reply-To: <150828.2791210687366696.JavaMail.lacey-jean@troymeyers.com> References: <150828.2791210687366696.JavaMail.lacey-jean@troymeyers.com> Message-ID: <4d370f710805131204m3e21c98bt5e46c284fa907ec3@mail.gmail.com> Yes Bob, I use the -findquery syntax in a few production sites. It works very well, and it does the queries in order, which is interesting when you combine finds and omits as well as 'and' and 'or' queries. So here's how you would add it to FX.php: If you're using the new FX-4.51 you have to add this line to array var $actionArray in the file FX.php: '-findquery' =>'-findquery', You also have to add this for both of the recent versions of FX.php: function FMFindQuery ($returnDataSet = true, $returnData = 'full', $useInnerArray = true) { return $this->FMAction("-findquery", $returnDataSet, $returnData, $useInnerArray); } the above i think is around line 1937, where the line for the very similar function FMFind is. Keep in mind that this will only work for server 9. I could send my FX.php file to compare but I turn off some things in it that I don't need involving the FMSkipRecords (which seems to cause an error sometimes when I use FX.php) Nick Salonen On Tue, May 13, 2008 at 9:02 AM, Troy Meyers wrote: > Nick, > > What did you mean by: > > > FMFindQuery(); // you would have to create add the -findquery piece in > > the FX.php file. pretty easy to add > > ...? > > -Troy > > > > > I didn't see this mentioned, but with FileMaker server 9 and FX.php you > > can use: > > > AddDBParam('query', '(q1);(q2);(q3);(q4);(q5)'); > AddDBParam('-q1', 'myNum'); > AddDBParam('-q1.value', 1); > AddDBParam('-q2', 'myNum'); > AddDBParam('-q2.value', 2); > AddDBParam('-q3', 'myNum'); > AddDBParam('-q3.value', 3); > AddDBParam('-q4', 'myNum'); > AddDBParam('-q4.value', 4); > AddDBParam('-q5', 'myNum'); > AddDBParam('-q5.value', 5); > > FMFindQuery(); // you would have to create add the -findquery piece in > the > FX.php file. pretty easy to add > > > > -Nick > > > > On Fri, May 9, 2008 at 3:22 PM, Bob Patin wrote: > > > > > I need to set up a query that searches a single field for any of a set > > of > numbers (in other words, multiple find requests). > > I might have > > 2 values, I might have 20; so I need to find > > 1 > 2 > 3 > 4 > 5 > > > > in the "myNum" field > > and return all matched records. Would I need to > > do a separate query for > each search value, and concatenate the > > resulting arrays, or can i do this in > a single query? > > Thanks, > > > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > > > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9 Certified > > Developer > Member of FileMaker Business Alliance and FileMaker TechNet > > > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > > > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > > > ICQ: 159333060 > > -------------------------- > Contact us for > > FileMaker hosting and programming for all versions of > FileMaker > PHP > > > > CDML > > > > Full email services > > > > Free DNS hosting > > > > Colocation > > > > > Consulting > > _______________________________________________ > > > 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://www.iviking.org/pipermail/fx.php_list/attachments/20080513/1087c751/attachment-0001.html From rodney at fmpro2go.com Tue May 13 13:11:40 2008 From: rodney at fmpro2go.com (Rodney Schmidt) Date: Tue May 13 13:11:56 2008 Subject: [FX.php List] Turing number generator Message-ID: The ugly browser form porn spam bots!! Does anyone have a PHP Turing Number generator they would be welling to share? Or Javascript for that matter? Thanks a lot. -- Rodney Schmidt From ggt667 at gmail.com Tue May 13 13:18:44 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue May 13 13:18:50 2008 Subject: [FX.php List] Turing number generator In-Reply-To: References: Message-ID: Turing? 2008/5/13 Rodney Schmidt : > The ugly browser form porn spam bots!! > > Does anyone have a PHP Turing Number generator they would be welling to > share? Or Javascript for that matter? > > Thanks a lot. > -- > Rodney Schmidt > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dan.cynosure at dbmscan.com Tue May 13 13:31:11 2008 From: dan.cynosure at dbmscan.com (DC) Date: Tue May 13 13:31:21 2008 Subject: [FX.php List] Turing number generator In-Reply-To: References: Message-ID: <4829EC7F.7020304@dbmscan.com> this is not available in PHP ATM but it sure is the cutest captcha i've ever seen (and would be very difficult for a computer to solve without human intervention): http://www.thepcspy.com/contact seriously, i might use this (socially redeeming captcha) if i were making a captcha: http://recaptcha.net/ dan Rodney Schmidt wrote: > The ugly browser form porn spam bots!! > > Does anyone have a PHP Turing Number generator they would be welling to > share? Or Javascript for that matter? > > Thanks a lot. From ggt667 at gmail.com Tue May 13 1