From bob at patin.com Mon Dec 1 08:08:45 2008 From: bob at patin.com (Bob Patin) Date: Mon Dec 1 08:08:52 2008 Subject: [FX.php List] Google-Like search? In-Reply-To: References: Message-ID: <05A98A6C-6EFF-493D-8BD2-993B80AC2A75@patin.com> Jonathan, I've used the concatenated-field approach many times; if you don't store the calculated results, the "search field" will always contain current data. For example, with a shopping cart, I combine product name, catalog number, description, and any keywords the client enters into a keyword field. Works well, easy to implement, only needs one search field. You can see it on http://www.margem.com; try entering the word "diamond" or "bracelet," for example. Best, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat/AIM: bobpatin FileMaker 9 Certified Developer Member of FileMaker Business Alliance -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Nov 30, 2008, at 2:49 PM, Jonathan Schwartz wrote: > Hi Folks, > > Have been running into web users who don't quite understand the the > "one-search-field-per-data-column" approach that I often implement. > They seem to be wanting for a single filed search, ala Google. > > I can think of two approaches: > 1) Combining fields in FMP and searching this new mega-field. Could > get ugly. > 2) Issuing multiple fx.php searched and combining. This doesn't > smell right, though. > > Anyone else approached this challenge? > > Thanks > > Jonathan > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ernest.cunningham at gmail.com Mon Dec 1 16:40:05 2008 From: ernest.cunningham at gmail.com (Ernest Cunningham) Date: Mon Dec 1 16:40:16 2008 Subject: [FX.php List] Google-Like search? In-Reply-To: <05A98A6C-6EFF-493D-8BD2-993B80AC2A75@patin.com> References: <05A98A6C-6EFF-493D-8BD2-993B80AC2A75@patin.com> Message-ID: <22540CB1-1353-4373-9A89-C2E0C2C394D4@gmail.com> Why concatenate and search an unstored calc in FM when you can use the logical or operator it in FX? Ernest On 2/12/2008, at 4:08 AM, Bob Patin wrote: > Jonathan, > > I've used the concatenated-field approach many times; if you don't > store the calculated results, the "search field" will always contain > current data. For example, with a shopping cart, I combine product > name, catalog number, description, and any keywords the client > enters into a keyword field. Works well, easy to implement, only > needs one search field. > > You can see it on http://www.margem.com; try entering the word > "diamond" or "bracelet," for example. > > Best, > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat/AIM: bobpatin > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Nov 30, 2008, at 2:49 PM, Jonathan Schwartz wrote: > >> Hi Folks, >> >> Have been running into web users who don't quite understand the the >> "one-search-field-per-data-column" approach that I often implement. >> They seem to be wanting for a single filed search, ala Google. >> >> I can think of two approaches: >> 1) Combining fields in FMP and searching this new mega-field. >> Could get ugly. >> 2) Issuing multiple fx.php searched and combining. This doesn't >> smell right, though. >> >> Anyone else approached this challenge? >> >> Thanks >> >> Jonathan >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> 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 william.downs at gmail.com Fri Dec 5 11:55:09 2008 From: william.downs at gmail.com (william.downs) Date: Fri Dec 5 11:56:29 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: Hi There FX.php ers, This may end up off-list - which if so then please excuse me. I mocked up a conditional value list in FX.php - but it really looks very bad. Basically, after selecting a value from Value List 1, I need a Submit button to post the form and populate the values for Value List 2. Terrible I know - in fact utterly atrocious ! The possible values for Value List 2 are simply too many to pick up the first time. There is of course a Value List 3, dependent on Value List 2 - which would need a second Submit button - (taking the michy really) Can someone show me the better way - I am already assuming that the answer will have something to do with Javascript / Ajax (via an Onchange event) - but I can live in hope that I am wrong. Kindest Regards William From dness at bondedbuilders.com Fri Dec 5 12:10:08 2008 From: dness at bondedbuilders.com (David Ness) Date: Fri Dec 5 12:09:50 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: The answer will be AJAX unless the number of values for value list "2" aren't way too numerous... you can read V-L "2" values into a JavaScript array and then build the 2nd options list using the onChange attached to the first. David Allen Ness Database Systems Programmer Web Applications Developer -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of william.downs Sent: Friday, December 05, 2008 1:55 PM To: FX.php Discussion List Subject: [FX.php List] A better way of making a Conditional Value List ? Hi There FX.php ers, This may end up off-list - which if so then please excuse me. I mocked up a conditional value list in FX.php - but it really looks very bad. Basically, after selecting a value from Value List 1, I need a Submit button to post the form and populate the values for Value List 2. Terrible I know - in fact utterly atrocious ! The possible values for Value List 2 are simply too many to pick up the first time. There is of course a Value List 3, dependent on Value List 2 - which would need a second Submit button - (taking the michy really) Can someone show me the better way - I am already assuming that the answer will have something to do with Javascript / Ajax (via an Onchange event) - but I can live in hope that I am wrong. Kindest Regards William _______________________________________________ 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 Dec 5 13:40:52 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 5 13:41:01 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: Also, this can all be triggered by an onchange JavaScript handler attached to popup1 rather than a submit button. Dale On Dec 5, 2008, at 1:10 PM, David Ness wrote: > The answer will be AJAX unless the number of values for value list "2" > aren't way too numerous... you can read V-L "2" values into a > JavaScript > array and then build the 2nd options list using the onChange > attached to > the first. > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of > william.downs > Sent: Friday, December 05, 2008 1:55 PM > To: FX.php Discussion List > Subject: [FX.php List] A better way of making a Conditional Value > List ? > > Hi There FX.php ers, > > This may end up off-list - which if so then please excuse me. > > I mocked up a conditional value list in FX.php - but it really looks > very bad. > > Basically, after selecting a value from Value List 1, I need a Submit > button to post the form and populate the values for Value List 2. > Terrible I know - in fact utterly atrocious ! > > The possible values for Value List 2 are simply too many to pick up > the first time. > > There is of course a Value List 3, dependent on Value List 2 - which > would need a second Submit button - (taking the michy really) > > Can someone show me the better way - I am already assuming that the > answer will have something to do with Javascript / Ajax (via an > Onchange event) - but I can live in hope that I am wrong. > > Kindest Regards > > William > _______________________________________________ > 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 -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1582 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081205/482f0332/smime.bin From dness at bondedbuilders.com Fri Dec 5 13:52:32 2008 From: dness at bondedbuilders.com (David Ness) Date: Fri Dec 5 13:52:12 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: Yes, exactly. A change in popup1 will call a javascript function using the onChange event handler. This called function will "build" the popup2 menu. Like I said, you can even do this without AJAX ix you don't mind populating the Javascript array with ALL the potential values of popup2 during the initial page load, plus of course a key field probably equal to the values in popup1 (although I can think of reasons that values in the array might appear for multiple values of popup1 which would necessitate a little more complexity... not much). Only if the array would be too large or slow to load would you then take it to the next level: using AJAX to retrieve the subset of array values once you know the value in popup1. I'll bet there are examples of how to build popup2 using Javascript and a javascript array out on the web. I'll do some quick looking, although I'll be outta here in about 10 minutes for our company party. David Allen Ness Database Systems Programmer Web Applications Developer -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Friday, December 05, 2008 3:41 PM To: FX.php Discussion List Subject: Re: [FX.php List] A better way of making a Conditional Value List ? Also, this can all be triggered by an onchange JavaScript handler attached to popup1 rather than a submit button. Dale On Dec 5, 2008, at 1:10 PM, David Ness wrote: > The answer will be AJAX unless the number of values for value list "2" > aren't way too numerous... you can read V-L "2" values into a > JavaScript > array and then build the 2nd options list using the onChange > attached to > the first. > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of > william.downs > Sent: Friday, December 05, 2008 1:55 PM > To: FX.php Discussion List > Subject: [FX.php List] A better way of making a Conditional Value > List ? > > Hi There FX.php ers, > > This may end up off-list - which if so then please excuse me. > > I mocked up a conditional value list in FX.php - but it really looks > very bad. > > Basically, after selecting a value from Value List 1, I need a Submit > button to post the form and populate the values for Value List 2. > Terrible I know - in fact utterly atrocious ! > > The possible values for Value List 2 are simply too many to pick up > the first time. > > There is of course a Value List 3, dependent on Value List 2 - which > would need a second Submit button - (taking the michy really) > > Can someone show me the better way - I am already assuming that the > answer will have something to do with Javascript / Ajax (via an > Onchange event) - but I can live in hope that I am wrong. > > Kindest Regards > > William > _______________________________________________ > 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 dness at bondedbuilders.com Fri Dec 5 13:58:14 2008 From: dness at bondedbuilders.com (David Ness) Date: Fri Dec 5 13:57:58 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: This looks like a good example of the non-AJAX approach: http://www.javascriptkit.com/javatutors/selectcontent2.shtml David Allen Ness Database Systems Programmer Web Applications Developer -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Friday, December 05, 2008 3:41 PM To: FX.php Discussion List Subject: Re: [FX.php List] A better way of making a Conditional Value List ? Also, this can all be triggered by an onchange JavaScript handler attached to popup1 rather than a submit button. Dale On Dec 5, 2008, at 1:10 PM, David Ness wrote: > The answer will be AJAX unless the number of values for value list "2" > aren't way too numerous... you can read V-L "2" values into a > JavaScript > array and then build the 2nd options list using the onChange > attached to > the first. > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of > william.downs > Sent: Friday, December 05, 2008 1:55 PM > To: FX.php Discussion List > Subject: [FX.php List] A better way of making a Conditional Value > List ? > > Hi There FX.php ers, > > This may end up off-list - which if so then please excuse me. > > I mocked up a conditional value list in FX.php - but it really looks > very bad. > > Basically, after selecting a value from Value List 1, I need a Submit > button to post the form and populate the values for Value List 2. > Terrible I know - in fact utterly atrocious ! > > The possible values for Value List 2 are simply too many to pick up > the first time. > > There is of course a Value List 3, dependent on Value List 2 - which > would need a second Submit button - (taking the michy really) > > Can someone show me the better way - I am already assuming that the > answer will have something to do with Javascript / Ajax (via an > Onchange event) - but I can live in hope that I am wrong. > > Kindest Regards > > William > _______________________________________________ > 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 dness at bondedbuilders.com Fri Dec 5 14:02:21 2008 From: dness at bondedbuilders.com (David Ness) Date: Fri Dec 5 14:02:02 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Friday, December 05, 2008 3:41 PM To: FX.php Discussion List Subject: Re: [FX.php List] A better way of making a Conditional Value List ? Also, this can all be triggered by an onchange JavaScript handler attached to popup1 rather than a submit button. Dale ------------------------------- (Pardon me if this response comes through twice. The original never seemed to make it through) Yes, exactly. A change in popup1 will call a javascript function using the onChange event handler. This called function will "build" the popup2 menu. Like I said, you can even do this without AJAX ix you don't mind populating the Javascript array with ALL the potential values of popup2 during the initial page load, plus of course a key field probably equal to the values in popup1 (although I can think of reasons that values in the array might appear for multiple values of popup1 which would necessitate a little more complexity... not much). Only if the array would be too large or slow to load would you then take it to the next level: using AJAX to retrieve the subset of array values once you know the value in popup1. I'll bet there are examples of how to build popup2 using Javascript and a javascript array out on the web. I'll do some quick looking, although I'll be out of here in about 10 minutes for our company party. David Allen Ness Database Systems Programmer Web Applications Developer From derrick at fogles.net Fri Dec 5 14:21:51 2008 From: derrick at fogles.net (Derrick Fogle) Date: Fri Dec 5 14:22:04 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> As for speed issues... I've got a 100-record primary list with an average of about 5-6 sub- list items coming out of Filemaker for a total of about 550 sub-list items. The sub-list items come from a portal on the layout of the primary list layout, so there's only a single find and PHP handles putting the sub-select portal records into the Javascript array. Coming from FM Server 7 Advanced running on old, slow hardware (Dual G4 533MHz, 512Mb RAM, stock [slow] HD, OS 10.4.11), the find and array load overhead is about 4 seconds. Of course if it were data from MySQL, the list would just *be there*, no waiting, but... 4 seconds is tolerable for this task. On Dec 5, 2008, at 3:02 PM, David Ness wrote: > Only if the array would be too large or slow to load would you then > take > it to the next level: using AJAX to retrieve the subset of array > values > once you know the value in popup1. Derrick From william.downs at gmail.com Fri Dec 5 14:39:49 2008 From: william.downs at gmail.com (william.downs) Date: Fri Dec 5 14:41:10 2008 Subject: [FX.php List] A better way of making a Conditional Value List ? In-Reply-To: References: Message-ID: <5D06A121-840C-4A48-BD66-076385410B25@gmail.com> Many thanks David, actually, this looks fine for part of what I need - but I will be needing AJAX for further requirements, oh dear, kindest Regards William On 5 Dec 2008, at 20:58, David Ness wrote: This looks like a good example of the non-AJAX approach: http://www.javascriptkit.com/javatutors/selectcontent2.shtml David Allen Ness Database Systems Programmer Web Applications Developer -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Friday, December 05, 2008 3:41 PM To: FX.php Discussion List Subject: Re: [FX.php List] A better way of making a Conditional Value List ? Also, this can all be triggered by an onchange JavaScript handler attached to popup1 rather than a submit button. Dale On Dec 5, 2008, at 1:10 PM, David Ness wrote: > The answer will be AJAX unless the number of values for value list "2" > aren't way too numerous... you can read V-L "2" values into a > JavaScript > array and then build the 2nd options list using the onChange > attached to > the first. > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of > william.downs > Sent: Friday, December 05, 2008 1:55 PM > To: FX.php Discussion List > Subject: [FX.php List] A better way of making a Conditional Value > List ? > > Hi There FX.php ers, > > This may end up off-list - which if so then please excuse me. > > I mocked up a conditional value list in FX.php - but it really looks > very bad. > > Basically, after selecting a value from Value List 1, I need a Submit > button to post the form and populate the values for Value List 2. > Terrible I know - in fact utterly atrocious ! > > The possible values for Value List 2 are simply too many to pick up > the first time. > > There is of course a Value List 3, dependent on Value List 2 - which > would need a second Submit button - (taking the michy really) > > Can someone show me the better way - I am already assuming that the > answer will have something to do with Javascript / Ajax (via an > Onchange event) - but I can live in hope that I am wrong. > > Kindest Regards > > William > _______________________________________________ > 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 dw at coredbs.com Fri Dec 5 16:39:53 2008 From: dw at coredbs.com (David Walton) Date: Sat Dec 6 11:18:17 2008 Subject: [FX.php List] Multiple FMEdits from a List View In-Reply-To: <20081205214112.100B717DF15@mail.iviking.org> References: <20081205214112.100B717DF15@mail.iviking.org> Message-ID: I have a page which returns data from a collection of records, 20 or so. I wish to enter values on some or all of the records, making simple selections from a drop-down list. I want to click Submit and have the value submit to the individual records. I recognize several possible ways to do this -- 20 submits; or edit a single field and use a script. Would anyone be able to give me a push in the right direction? Thanks, if so. DSW -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081205/9d7ad035/attachment.html From bob at patin.com Sat Dec 6 11:38:50 2008 From: bob at patin.com (Bob Patin) Date: Sat Dec 6 11:38:56 2008 Subject: [FX.php List] Multiple FMEdits from a List View In-Reply-To: References: <20081205214112.100B717DF15@mail.iviking.org> Message-ID: I think I'd probably use an EDIT function for each displayed record... You'd need to write a loop that would edit each record that was displayed... You could then have a button or link that would send the page to the processing page, where the loop would do an EDIT for each record in your found set, regardless of whether any fields were changed in that record. You could use Javascript to set a hidden field for each record when it's edited, so that it's flagged as having been edited, but failing that, you'll need to do an EDIT for every record. Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat/AIM: bobpatin FileMaker 9 Certified Developer Member of FileMaker Business Alliance -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2008, at 5:39 PM, David Walton wrote: > I have a page which returns data from a collection of records, 20 or > so. > > I wish to enter values on some or all of the records, making simple > selections from a drop-down list. > > I want to click Submit and have the value submit to the individual > records. > > I recognize several possible ways to do this -- 20 submits; or edit > a single field and use a script. > > Would anyone be able to give me a push in the right direction? > Thanks, if so. > > DSW -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081206/74608199/attachment.html From jschwartz at exit445.com Sat Dec 6 11:56:08 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Dec 6 12:00:56 2008 Subject: [FX.php List] Multiple FMEdits from a List View In-Reply-To: References: <20081205214112.100B717DF15@mail.iviking.org> Message-ID: Hi David, Bet you killed some brain cells on this one...like I did. ;-) Here's what I do, as assisted by ggt. 1) Instead of making each line item it's own POST form, put the form tags at the top and bottom so that they surround all the lines. 2) Add the following square brackets to the input field name. Example: gets changed to This tells PHP to create an array containing an entry for each row submitted, allowing multiple fields with the same name to be submitted. Then, on the page receiving the POST, you loop through the POSTed values and perform an edit for each. To see what is happening, print out the POST on the target page: echo "; print_r($_POST); echo ""; One wrinkle, In this case, you need to also have the recid in order to perform an edit. More than one way to do this. One way: repeat the above steps with a hidden input field that contains recid. Then you have two arrays, one containing the inpt value, and one with the recid. In looping thru, you simply call the same array element from each array to retrieve the corresponding value and recid. Hope that helps. Let me know if you need the looping script. J At 6:39 PM -0500 12/5/08, David Walton wrote: >I have a page which returns data from a collection of records, 20 or so. > >I wish to enter values on some or all of the records, making simple >selections from a drop-down list. > >I want to click Submit and have the value submit to the individual records. > >I recognize several possible ways to do this -- 20 submits; or edit >a single field and use a script. > >Would anyone be able to give me a push in the right direction? Thanks, if so. > >DSW > >_______________________________________________ >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-370-5011 From william.downs at gmail.com Mon Dec 8 08:05:10 2008 From: william.downs at gmail.com (william.downs) Date: Mon Dec 8 08:05:17 2008 Subject: [FX.php List] Summary of Records In-Reply-To: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> Message-ID: Hi there List, If an array was to return more than one record, and a value was repeated, how do I strip out the individual values ? Example : If the returned values were Team1 Team2 Team1 Team3 Team1 I would ONLY want to see Team1 Team2 Team3 In Filemaker, I could create a value list, or a sub-summary list, and this would give me the individual records. Kindest Regards William From steve at bluecrocodile.co.nz Mon Dec 8 08:35:16 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Mon Dec 8 08:35:26 2008 Subject: [FX.php List] Summary of Records In-Reply-To: References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> Message-ID: Hi William, You could go with something like this; $uniqueList = array() foreach($teamList as $team) { if(!in_array($team, $uniqueList) { $uniqueList[] = $team; } } Then $uniqueArray will have only one entry for each $team. You may also then want to do a sort on that array prior to output in case the data that it received was Team3 Team1 Team3 Team2 Cheers Steve On 8 Dec 2008, at 15:05, william.downs wrote: > > Hi there List, > > If an array was to return more than one record, and a value was > repeated, how do I strip out the individual values ? > > Example : > > If the returned values were > > Team1 > Team2 > Team1 > Team3 > Team1 > > I would ONLY want to see > Team1 > Team2 > Team3 > > In Filemaker, I could create a value list, or a sub-summary list, > and this would give me the individual records. > > > Kindest Regards > > William > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From andersm at alamark.com Mon Dec 8 08:41:19 2008 From: andersm at alamark.com (Anders Monsen) Date: Mon Dec 8 08:41:23 2008 Subject: [FX.php List] Summary of Records In-Reply-To: References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> Message-ID: <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> How about array_unique? $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); $uniqueList = array_unique($theList); sort($uniqueLists); Anders On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: > Hi William, > > You could go with something like this; > > $uniqueList = array() > > foreach($teamList as $team) { > if(!in_array($team, $uniqueList) { > $uniqueList[] = $team; > } > } > > Then $uniqueArray will have only one entry for each $team. You may > also then want to do a sort on that array prior to output in case > the data that it received was > > Team3 > Team1 > Team3 > Team2 > > Cheers > Steve > > > > > On 8 Dec 2008, at 15:05, william.downs wrote: > >> >> Hi there List, >> >> If an array was to return more than one record, and a value was >> repeated, how do I strip out the individual values ? >> >> Example : >> >> If the returned values were >> >> Team1 >> Team2 >> Team1 >> Team3 >> Team1 >> >> I would ONLY want to see >> Team1 >> Team2 >> Team3 >> >> In Filemaker, I could create a value list, or a sub-summary list, >> and this would give me the individual records. >> >> >> Kindest Regards >> >> William >> _______________________________________________ >> 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 Dec 8 08:48:47 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Dec 8 08:48:49 2008 Subject: [FX.php List] Summary of Records In-Reply-To: <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> Message-ID: I am under the impression that usually you will have to traverse the array of returned records prior to your formatting of the output, so the simple way to resolve this issue is to make a summary array: foreach( $r['data'] as $k => $v ) { $sumarryOfField[$v['team'][0]] = $sumarryOfField[$v['team'][0]] + $v['Field'][0]; } or foreach( $r['data'] as $k => $v ) { $fieldsToSum[$v['team'][0]][] = $v['Field'][0]; } but then you will have to sum the array after, however you could do weighted values to check for validity in values. ggt 2008/12/8 Anders Monsen : > How about array_unique? > > $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); > $uniqueList = array_unique($theList); > sort($uniqueLists); > > Anders > > On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: > >> Hi William, >> >> You could go with something like this; >> >> $uniqueList = array() >> >> foreach($teamList as $team) { >> if(!in_array($team, $uniqueList) { >> $uniqueList[] = $team; >> } >> } >> >> Then $uniqueArray will have only one entry for each $team. You may also >> then want to do a sort on that array prior to output in case the data that >> it received was >> >> Team3 >> Team1 >> Team3 >> Team2 >> >> Cheers >> Steve >> >> >> >> >> On 8 Dec 2008, at 15:05, william.downs wrote: >> >>> >>> Hi there List, >>> >>> If an array was to return more than one record, and a value was repeated, >>> how do I strip out the individual values ? >>> >>> Example : >>> >>> If the returned values were >>> >>> Team1 >>> Team2 >>> Team1 >>> Team3 >>> Team1 >>> >>> I would ONLY want to see >>> Team1 >>> Team2 >>> Team3 >>> >>> In Filemaker, I could create a value list, or a sub-summary list, and >>> this would give me the individual records. >>> >>> >>> Kindest Regards >>> >>> William >>> _______________________________________________ >>> 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 william.downs at gmail.com Mon Dec 8 11:10:04 2008 From: william.downs at gmail.com (william.downs) Date: Mon Dec 8 11:10:11 2008 Subject: [FX.php List] Summary of Records In-Reply-To: <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> Message-ID: Hi Anders (and Co) i like the array_unique() - just what I needed. Now I need to turn $uniqueList into a select (html drop down) Any idea how that could be done ? Kindest Regards William On 8 Dec 2008, at 15:41, Anders Monsen wrote: How about array_unique? $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); $uniqueList = array_unique($theList); sort($uniqueLists); Anders On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: > Hi William, > > You could go with something like this; > > $uniqueList = array() > > foreach($teamList as $team) { > if(!in_array($team, $uniqueList) { > $uniqueList[] = $team; > } > } > > Then $uniqueArray will have only one entry for each $team. You may > also then want to do a sort on that array prior to output in case > the data that it received was > > Team3 > Team1 > Team3 > Team2 > > Cheers > Steve > > > > > On 8 Dec 2008, at 15:05, william.downs wrote: > >> >> Hi there List, >> >> If an array was to return more than one record, and a value was >> repeated, how do I strip out the individual values ? >> >> Example : >> >> If the returned values were >> >> Team1 >> Team2 >> Team1 >> Team3 >> Team1 >> >> I would ONLY want to see >> Team1 >> Team2 >> Team3 >> >> In Filemaker, I could create a value list, or a sub-summary list, >> and this would give me the individual records. >> >> >> Kindest Regards >> >> William >> _______________________________________________ >> 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 gareth.evans at schawk.com Mon Dec 8 11:15:46 2008 From: gareth.evans at schawk.com (Gareth Evans) Date: Mon Dec 8 11:15:52 2008 Subject: [FX.php List] Summary of Records In-Reply-To: Message-ID: This is one way of doing it: $teamMenu = ''; echo $teamMenu; -- GARETH EVANS > From: "william.downs" > Reply-To: "FX.php Discussion List" > Date: Mon, 8 Dec 2008 18:10:04 +0000 > To: "FX.php Discussion List" > Subject: Re: [FX.php List] Summary of Records > > Hi Anders (and Co) > > i like the array_unique() - just what I needed. > > Now I need to turn $uniqueList into a select (html drop down) > > Any idea how that could be done ? > > Kindest Regards > > William > > On 8 Dec 2008, at 15:41, Anders Monsen wrote: > > How about array_unique? > > $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); > $uniqueList = array_unique($theList); > sort($uniqueLists); > > Anders > > On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: > >> Hi William, >> >> You could go with something like this; >> >> $uniqueList = array() >> >> foreach($teamList as $team) { >> if(!in_array($team, $uniqueList) { >> $uniqueList[] = $team; >> } >> } >> >> Then $uniqueArray will have only one entry for each $team. You may >> also then want to do a sort on that array prior to output in case >> the data that it received was >> >> Team3 >> Team1 >> Team3 >> Team2 >> >> Cheers >> Steve >> >> >> >> >> On 8 Dec 2008, at 15:05, william.downs wrote: >> >>> >>> Hi there List, >>> >>> If an array was to return more than one record, and a value was >>> repeated, how do I strip out the individual values ? >>> >>> Example : >>> >>> If the returned values were >>> >>> Team1 >>> Team2 >>> Team1 >>> Team3 >>> Team1 >>> >>> I would ONLY want to see >>> Team1 >>> Team2 >>> Team3 >>> >>> In Filemaker, I could create a value list, or a sub-summary list, >>> and this would give me the individual records. >>> >>> >>> Kindest Regards >>> >>> William >>> _______________________________________________ >>> 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 andy at fmpug.com Mon Dec 8 11:16:26 2008 From: andy at fmpug.com (Andy Gaunt) Date: Mon Dec 8 11:16:31 2008 Subject: [FX.php List] Summary of Records In-Reply-To: References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> Message-ID: <7D878E54-31A9-48BE-BF48-C998A7BEFF48@fmpug.com> William, From your array you can use a foreach loop to build your select items. $selectMenu = ""; echo $selectMenu; HTH Andy Gaunt T: 321-206-3658 andy@fmpug.com http://www.fmpug.com FMPug.com: A Developer's best Friend! FindFileMakerDevelopers.com - The #1 listings engine for FileMaker Professionals On Dec 8, 2008, at 1:10 PM, william.downs wrote: > Hi Anders (and Co) > > i like the array_unique() - just what I needed. > > Now I need to turn $uniqueList into a select (html drop down) > > Any idea how that could be done ? > > Kindest Regards > > William > > On 8 Dec 2008, at 15:41, Anders Monsen wrote: > > How about array_unique? > > $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); > $uniqueList = array_unique($theList); > sort($uniqueLists); > > Anders > > On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: > >> Hi William, >> >> You could go with something like this; >> >> $uniqueList = array() >> >> foreach($teamList as $team) { >> if(!in_array($team, $uniqueList) { >> $uniqueList[] = $team; >> } >> } >> >> Then $uniqueArray will have only one entry for each $team. You may >> also then want to do a sort on that array prior to output in case >> the data that it received was >> >> Team3 >> Team1 >> Team3 >> Team2 >> >> Cheers >> Steve >> >> >> >> >> On 8 Dec 2008, at 15:05, william.downs wrote: >> >>> >>> Hi there List, >>> >>> If an array was to return more than one record, and a value was >>> repeated, how do I strip out the individual values ? >>> >>> Example : >>> >>> If the returned values were >>> >>> Team1 >>> Team2 >>> Team1 >>> Team3 >>> Team1 >>> >>> I would ONLY want to see >>> Team1 >>> Team2 >>> Team3 >>> >>> In Filemaker, I could create a value list, or a sub-summary list, >>> and this would give me the individual records. >>> >>> >>> Kindest Regards >>> >>> William >>> _______________________________________________ >>> 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 william.downs at gmail.com Mon Dec 8 11:20:13 2008 From: william.downs at gmail.com (william.downs) Date: Mon Dec 8 11:20:25 2008 Subject: [FX.php List] Summary of Records In-Reply-To: <7D878E54-31A9-48BE-BF48-C998A7BEFF48@fmpug.com> References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> <7D878E54-31A9-48BE-BF48-C998A7BEFF48@fmpug.com> Message-ID: Hi Andy, - very helpful indeed, many thanks William On 8 Dec 2008, at 18:16, Andy Gaunt wrote: William, From your array you can use a foreach loop to build your select items. $selectMenu = ""; echo $selectMenu; HTH Andy Gaunt T: 321-206-3658 andy@fmpug.com http://www.fmpug.com FMPug.com: A Developer's best Friend! FindFileMakerDevelopers.com - The #1 listings engine for FileMaker Professionals On Dec 8, 2008, at 1:10 PM, william.downs wrote: > Hi Anders (and Co) > > i like the array_unique() - just what I needed. > > Now I need to turn $uniqueList into a select (html drop down) > > Any idea how that could be done ? > > Kindest Regards > > William > > On 8 Dec 2008, at 15:41, Anders Monsen wrote: > > How about array_unique? > > $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); > $uniqueList = array_unique($theList); > sort($uniqueLists); > > Anders > > On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: > >> Hi William, >> >> You could go with something like this; >> >> $uniqueList = array() >> >> foreach($teamList as $team) { >> if(!in_array($team, $uniqueList) { >> $uniqueList[] = $team; >> } >> } >> >> Then $uniqueArray will have only one entry for each $team. You may >> also then want to do a sort on that array prior to output in case >> the data that it received was >> >> Team3 >> Team1 >> Team3 >> Team2 >> >> Cheers >> Steve >> >> >> >> >> On 8 Dec 2008, at 15:05, william.downs wrote: >> >>> >>> Hi there List, >>> >>> If an array was to return more than one record, and a value was >>> repeated, how do I strip out the individual values ? >>> >>> Example : >>> >>> If the returned values were >>> >>> Team1 >>> Team2 >>> Team1 >>> Team3 >>> Team1 >>> >>> I would ONLY want to see >>> Team1 >>> Team2 >>> Team3 >>> >>> In Filemaker, I could create a value list, or a sub-summary list, >>> and this would give me the individual records. >>> >>> >>> Kindest Regards >>> >>> William >>> _______________________________________________ >>> 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 _______________________________________________ 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 Dec 8 11:22:09 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Dec 8 11:22:12 2008 Subject: [FX.php List] Summary of Records In-Reply-To: References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> <7D878E54-31A9-48BE-BF48-C998A7BEFF48@fmpug.com> Message-ID: Ahh that one is simple, I thought you wanted to do summary, why not make valuelist from field and use FMView to give you the valuelist? ggt 2008/12/8 william.downs : > Hi Andy, > > - very helpful indeed, > > many thanks > > William > > On 8 Dec 2008, at 18:16, Andy Gaunt wrote: > > William, > > From your array you can use a foreach loop to build your select items. > > $selectMenu = ""; > > echo $selectMenu; > > HTH > > Andy Gaunt > T: 321-206-3658 > andy@fmpug.com > http://www.fmpug.com > > FMPug.com: A Developer's best Friend! > > FindFileMakerDevelopers.com - > The #1 listings engine for FileMaker Professionals > > > > > > > On Dec 8, 2008, at 1:10 PM, william.downs wrote: > >> Hi Anders (and Co) >> >> i like the array_unique() - just what I needed. >> >> Now I need to turn $uniqueList into a select (html drop down) >> >> Any idea how that could be done ? >> >> Kindest Regards >> >> William >> >> On 8 Dec 2008, at 15:41, Anders Monsen wrote: >> >> How about array_unique? >> >> $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); >> $uniqueList = array_unique($theList); >> sort($uniqueLists); >> >> Anders >> >> On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: >> >>> Hi William, >>> >>> You could go with something like this; >>> >>> $uniqueList = array() >>> >>> foreach($teamList as $team) { >>> if(!in_array($team, $uniqueList) { >>> $uniqueList[] = $team; >>> } >>> } >>> >>> Then $uniqueArray will have only one entry for each $team. You may also >>> then want to do a sort on that array prior to output in case the data that >>> it received was >>> >>> Team3 >>> Team1 >>> Team3 >>> Team2 >>> >>> Cheers >>> Steve >>> >>> >>> >>> >>> On 8 Dec 2008, at 15:05, william.downs wrote: >>> >>>> >>>> Hi there List, >>>> >>>> If an array was to return more than one record, and a value was >>>> repeated, how do I strip out the individual values ? >>>> >>>> Example : >>>> >>>> If the returned values were >>>> >>>> Team1 >>>> Team2 >>>> Team1 >>>> Team3 >>>> Team1 >>>> >>>> I would ONLY want to see >>>> Team1 >>>> Team2 >>>> Team3 >>>> >>>> In Filemaker, I could create a value list, or a sub-summary list, and >>>> this would give me the individual records. >>>> >>>> >>>> Kindest Regards >>>> >>>> William >>>> _______________________________________________ >>>> 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 > > _______________________________________________ > 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 william.downs at gmail.com Mon Dec 8 11:27:11 2008 From: william.downs at gmail.com (william.downs) Date: Mon Dec 8 11:27:18 2008 Subject: [FX.php List] Summary of Records In-Reply-To: References: <6353F266-7A56-4506-BD55-BFE687EB3AFC@fogles.net> <963733A5-8031-482D-A7A6-CF48923A1291@alamark.com> <7D878E54-31A9-48BE-BF48-C998A7BEFF48@fmpug.com> Message-ID: I never explain myelf properly - excuse me. I have to FMFind first - Then with the results, work out all the unique records - (as in a value list) Then create an html select - messy, but the list does not exist until the search returns some values. Hope thats clearer - I have a nice drop down from below now, many thanks William On 8 Dec 2008, at 18:22, Gjermund Gusland Thorsen wrote: Ahh that one is simple, I thought you wanted to do summary, why not make valuelist from field and use FMView to give you the valuelist? ggt 2008/12/8 william.downs : > Hi Andy, > > - very helpful indeed, > > many thanks > > William > > On 8 Dec 2008, at 18:16, Andy Gaunt wrote: > > William, > > From your array you can use a foreach loop to build your select items. > > $selectMenu = ""; > > echo $selectMenu; > > HTH > > Andy Gaunt > T: 321-206-3658 > andy@fmpug.com > http://www.fmpug.com > > FMPug.com: A Developer's best Friend! > > FindFileMakerDevelopers.com - > The #1 listings engine for FileMaker Professionals > > > > > > > On Dec 8, 2008, at 1:10 PM, william.downs wrote: > >> Hi Anders (and Co) >> >> i like the array_unique() - just what I needed. >> >> Now I need to turn $uniqueList into a select (html drop down) >> >> Any idea how that could be done ? >> >> Kindest Regards >> >> William >> >> On 8 Dec 2008, at 15:41, Anders Monsen wrote: >> >> How about array_unique? >> >> $theList = array('Team1','Team1','Team2','Team3','Team1','Team2' ); >> $uniqueList = array_unique($theList); >> sort($uniqueLists); >> >> Anders >> >> On Dec 8, 2008, at 9:35 AM, Steve Winter wrote: >> >>> Hi William, >>> >>> You could go with something like this; >>> >>> $uniqueList = array() >>> >>> foreach($teamList as $team) { >>> if(!in_array($team, $uniqueList) { >>> $uniqueList[] = $team; >>> } >>> } >>> >>> Then $uniqueArray will have only one entry for each $team. You >>> may also >>> then want to do a sort on that array prior to output in case the >>> data that >>> it received was >>> >>> Team3 >>> Team1 >>> Team3 >>> Team2 >>> >>> Cheers >>> Steve >>> >>> >>> >>> >>> On 8 Dec 2008, at 15:05, william.downs wrote: >>> >>>> >>>> Hi there List, >>>> >>>> If an array was to return more than one record, and a value was >>>> repeated, how do I strip out the individual values ? >>>> >>>> Example : >>>> >>>> If the returned values were >>>> >>>> Team1 >>>> Team2 >>>> Team1 >>>> Team3 >>>> Team1 >>>> >>>> I would ONLY want to see >>>> Team1 >>>> Team2 >>>> Team3 >>>> >>>> In Filemaker, I could create a value list, or a sub-summary >>>> list, and >>>> this would give me the individual records. >>>> >>>> >>>> Kindest Regards >>>> >>>> William >>>> _______________________________________________ >>>> 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 > > _______________________________________________ > 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 Dec 8 14:38:34 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon Dec 8 14:39:36 2008 Subject: [FX.php List] [OFF] IWP proposed as alternative to buying FMP license Message-ID: Hi Folks, Help me out with this one. A rather "frugal" client presently accesses an FMP solution with a single copy of FMP 9 client. I serve the file from FMSA 8 remotely to make remote development easier. The client now needs to add another user. They tried to use two installations of the same FMP license with epected results. Rather than buy another copy of FMP, the client wants to follow FMI's suggestion that the file be served up using IWP....as an alternative to buying a second FMP license. (!) I'm not running IWP on my FMSA 8, nor do I intended to. However, I need to respond back to the client to tell them why it is not a good substitute...sort of why a screwdriver is not a good substitute for a hammer, although it can be done. Any suggestions? J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From ggt667 at gmail.com Mon Dec 8 14:50:21 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Dec 8 14:50:23 2008 Subject: [FX.php List] [OFF] IWP proposed as alternative to buying FMP license In-Reply-To: References: Message-ID: Well performance wise you would probably need another FMSA 8 sooner, not to disappoint your FX.php clients. As IWP hogs more bandwidth then plain XML traffic. ggt 2008/12/8 Jonathan Schwartz : > Hi Folks, > > Help me out with this one. > > A rather "frugal" client presently accesses an FMP solution with a single > copy of FMP 9 client. I serve the file from FMSA 8 remotely to make remote > development easier. The client now needs to add another user. They tried to > use two installations of the same FMP license with epected results. Rather > than buy another copy of FMP, the client wants to follow FMI's suggestion > that the file be served up using IWP....as an alternative to buying a second > FMP license. (!) > > I'm not running IWP on my FMSA 8, nor do I intended to. > > However, I need to respond back to the client to tell them why it is not a > good substitute...sort of why a screwdriver is not a good substitute for a > hammer, although it can be done. > > Any suggestions? > > J > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From derrick at fogles.net Mon Dec 8 15:01:43 2008 From: derrick at fogles.net (Derrick Fogle) Date: Mon Dec 8 15:01:56 2008 Subject: [FX.php List] [OFF] IWP proposed as alternative to buying FMP license In-Reply-To: References: Message-ID: <7B150FDC-C72C-4484-A5AE-CA4E1033726C@fogles.net> You should also give them a quote for your labor for what it *would* take to turn on IWP for them. Make sure it's just as much or more than the cost of another license (which it probably really is). Then point out that IWP is not really not an 'exact' match, and there could be unexpected problems with operation via the IWP. Just a few hours of tweaking on an application to make it work correctly in IWP ends up being more expensive than the native client. If you want a few horror stories about how much time and effort it takes to "IWP Sanitize" a solution - even a fairly basic one, I can provide that. (And yes, I know other people seem to be able use it, but I've never found IWP to be functional enough for anything more complex than a basic "guestbook" level application.) On Dec 8, 2008, at 3:50 PM, Gjermund Gusland Thorsen wrote: > Well performance wise you would probably need another FMSA 8 sooner, > not to disappoint your FX.php clients. > > As IWP hogs more bandwidth then plain XML traffic. > > ggt > > 2008/12/8 Jonathan Schwartz : >> Hi Folks, >> >> Help me out with this one. >> >> A rather "frugal" client presently accesses an FMP solution with a >> single >> copy of FMP 9 client. I serve the file from FMSA 8 remotely to make >> remote >> development easier. The client now needs to add another user. They >> tried to >> use two installations of the same FMP license with epected results. >> Rather >> than buy another copy of FMP, the client wants to follow FMI's >> suggestion >> that the file be served up using IWP....as an alternative to buying >> a second >> FMP license. (!) >> >> I'm not running IWP on my FMSA 8, nor do I intended to. >> >> However, I need to respond back to the client to tell them why it >> is not a >> good substitute...sort of why a screwdriver is not a good >> substitute for a >> hammer, although it can be done. >> >> Any suggestions? >> >> J >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> 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 Derrick From jschwartz at exit445.com Mon Dec 8 15:08:27 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon Dec 8 15:12:27 2008 Subject: [FX.php List] [OFF] IWP proposed as alternative to buying FMP license In-Reply-To: <7B150FDC-C72C-4484-A5AE-CA4E1033726C@fogles.net> References: <7B150FDC-C72C-4484-A5AE-CA4E1033726C@fogles.net> Message-ID: Excellent! That's what I needed. Never thought I would have to explain that one. J At 4:01 PM -0600 12/8/08, Derrick Fogle wrote: >You should also give them a quote for your labor for what it *would* >take to turn on IWP for them. Make sure it's just as much or more >than the cost of another license (which it probably really is). Then >point out that IWP is not really not an 'exact' match, and there >could be unexpected problems with operation via the IWP. Just a few >hours of tweaking on an application to make it work correctly in IWP >ends up being more expensive than the native client. > >If you want a few horror stories about how much time and effort it >takes to "IWP Sanitize" a solution - even a fairly basic one, I can >provide that. (And yes, I know other people seem to be able use it, >but I've never found IWP to be functional enough for anything more >complex than a basic "guestbook" level application.) > >On Dec 8, 2008, at 3:50 PM, Gjermund Gusland Thorsen wrote: > >>Well performance wise you would probably need another FMSA 8 sooner, >>not to disappoint your FX.php clients. >> >>As IWP hogs more bandwidth then plain XML traffic. >> >>ggt >> >>2008/12/8 Jonathan Schwartz : >>>Hi Folks, >>> >>>Help me out with this one. >>> >>>A rather "frugal" client presently accesses an FMP solution with a single >>>copy of FMP 9 client. I serve the file from FMSA 8 remotely to make remote >>>development easier. The client now needs to add another user. They tried to >>>use two installations of the same FMP license with epected results. Rather >>>than buy another copy of FMP, the client wants to follow FMI's suggestion >>>that the file be served up using IWP....as an alternative to buying a second >>>FMP license. (!) >>> >>>I'm not running IWP on my FMSA 8, nor do I intended to. >>> >>>However, I need to respond back to the client to tell them why it is not a >>>good substitute...sort of why a screwdriver is not a good substitute for a >>>hammer, although it can be done. >>> >>>Any suggestions? >>> >>>J >>>-- >>>Jonathan Schwartz >>>Exit 445 Group >>>jonathan@exit445.com >>>http://www.exit445.com >>>415-370-5011 >>>_______________________________________________ >>>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 > > >Derrick > >_______________________________________________ >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-370-5011 From ggt667 at gmail.com Mon Dec 8 16:38:49 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Dec 8 16:38:53 2008 Subject: [FX.php List] [OFF] IWP proposed as alternative to buying FMP license In-Reply-To: References: <7B150FDC-C72C-4484-A5AE-CA4E1033726C@fogles.net> Message-ID: Well sometimes the obvious has to be told... 2008/12/8 Jonathan Schwartz : > Excellent! That's what I needed. > > Never thought I would have to explain that one. > > J > > > At 4:01 PM -0600 12/8/08, Derrick Fogle wrote: >> >> You should also give them a quote for your labor for what it *would* take >> to turn on IWP for them. Make sure it's just as much or more than the cost >> of another license (which it probably really is). Then point out that IWP is >> not really not an 'exact' match, and there could be unexpected problems with >> operation via the IWP. Just a few hours of tweaking on an application to >> make it work correctly in IWP ends up being more expensive than the native >> client. >> >> If you want a few horror stories about how much time and effort it takes >> to "IWP Sanitize" a solution - even a fairly basic one, I can provide that. >> (And yes, I know other people seem to be able use it, but I've never found >> IWP to be functional enough for anything more complex than a basic >> "guestbook" level application.) >> >> On Dec 8, 2008, at 3:50 PM, Gjermund Gusland Thorsen wrote: >> >>> Well performance wise you would probably need another FMSA 8 sooner, >>> not to disappoint your FX.php clients. >>> >>> As IWP hogs more bandwidth then plain XML traffic. >>> >>> ggt >>> >>> 2008/12/8 Jonathan Schwartz : >>>> >>>> Hi Folks, >>>> >>>> Help me out with this one. >>>> >>>> A rather "frugal" client presently accesses an FMP solution with a >>>> single >>>> copy of FMP 9 client. I serve the file from FMSA 8 remotely to make >>>> remote >>>> development easier. The client now needs to add another user. They >>>> tried to >>>> use two installations of the same FMP license with epected results. >>>> Rather >>>> than buy another copy of FMP, the client wants to follow FMI's >>>> suggestion >>>> that the file be served up using IWP....as an alternative to buying a >>>> second >>>> FMP license. (!) >>>> >>>> I'm not running IWP on my FMSA 8, nor do I intended to. >>>> >>>> However, I need to respond back to the client to tell them why it is not >>>> a >>>> good substitute...sort of why a screwdriver is not a good substitute for >>>> a >>>> hammer, although it can be done. >>>> >>>> Any suggestions? >>>> >>>> J >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> 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 >> >> >> Derrick >> >> _______________________________________________ >> 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-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dw at coredbs.com Mon Dec 8 15:04:57 2008 From: dw at coredbs.com (David Walton) Date: Mon Dec 8 21:11:05 2008 Subject: [FX.php List] Re: FX.php_List Digest, Vol 53, Issue 3 In-Reply-To: <20081208154850.DA8BB1812C5@mail.iviking.org> References: <20081208154850.DA8BB1812C5@mail.iviking.org> Message-ID: Thank you Jonathan and Bob for those very helpful responses. I am grateful for your insights. Best, DSW -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081208/420fcc2e/attachment.html From jschwartz at exit445.com Tue Dec 9 09:38:20 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 9 09:43:30 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto Message-ID: Hi Folks, I still haven't 100% licked the spaces-in-field-names issue yet. Now I realize why, and I'm just looking for a sanity check. It appears that spaces in file names produces different behavior depending whether the FMP query is a FIND parameter versus a SORT parameter. It boils down to this: FMP Field Definition: Alpha Beta Alpha Beta Field Value: John Smith Browser POST: Alpha_Beta (Apache Server replaces space with underline) FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in URL) FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" in URL) Here's an actual URL that shows the existence of both methods in the same URL: http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find So... The html form displays the field name with the space. Apache POST replaces the space with an underline. FX/PHP replaces the space in a FIELD NAMEwith a "+" FX/PHP replaces the space in a SORT NAMEwith a "%20" Argh. If this is correct, then a single remedy won't work. A different remedy has to be applied to SEARCH fields versus SORT fields. I did get suggestions last time I posted this problem, but each time I applied the remedy, it broke the other half. Now I see why. Before I move forward....any comments? J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From ggt667 at gmail.com Tue Dec 9 10:40:16 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 10:40:19 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: &20 is ascii value of the space character + is urlencoding of the space character ggt 2008/12/9 Jonathan Schwartz : > Hi Folks, > > I still haven't 100% licked the spaces-in-field-names issue yet. Now I > realize why, and I'm just looking for a sanity check. > > It appears that spaces in file names produces different behavior depending > whether the FMP query is a FIND parameter versus a SORT parameter. > > It boils down to this: > > FMP Field Definition: Alpha Beta > Alpha Beta Field Value: John Smith > Browser POST: Alpha_Beta (Apache Server replaces space with > underline) > FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in URL) > FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" in > URL) > > Here's an actual URL that shows the existence of both methods in the same > URL: > > http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find > > So... > The html form displays the field name with the space. > Apache POST replaces the space with an underline. > FX/PHP replaces the space in a FIELD NAMEwith a "+" > FX/PHP replaces the space in a SORT NAMEwith a "%20" > > > Argh. > > > If this is correct, then a single remedy won't work. A different remedy has > to be applied to SEARCH fields versus SORT fields. > > I did get suggestions last time I posted this problem, but each time I > applied the remedy, it broke the other half. Now I see why. > > Before I move forward....any comments? > > J > > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > 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 Tue Dec 9 10:44:30 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 10:44:34 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: dec oct hex bin 032 040 020 00100000 SP (Space) ggt667 2008/12/9 Gjermund Gusland Thorsen : > &20 is ascii value of the space character > + is urlencoding of the space character > > ggt > > 2008/12/9 Jonathan Schwartz : >> Hi Folks, >> >> I still haven't 100% licked the spaces-in-field-names issue yet. Now I >> realize why, and I'm just looking for a sanity check. >> >> It appears that spaces in file names produces different behavior depending >> whether the FMP query is a FIND parameter versus a SORT parameter. >> >> It boils down to this: >> >> FMP Field Definition: Alpha Beta >> Alpha Beta Field Value: John Smith >> Browser POST: Alpha_Beta (Apache Server replaces space with >> underline) >> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in URL) >> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" in >> URL) >> >> Here's an actual URL that shows the existence of both methods in the same >> URL: >> >> http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >> >> So... >> The html form displays the field name with the space. >> Apache POST replaces the space with an underline. >> FX/PHP replaces the space in a FIELD NAMEwith a "+" >> FX/PHP replaces the space in a SORT NAMEwith a "%20" >> >> >> Argh. >> >> >> If this is correct, then a single remedy won't work. A different remedy has >> to be applied to SEARCH fields versus SORT fields. >> >> I did get suggestions last time I posted this problem, but each time I >> applied the remedy, it broke the other half. Now I see why. >> >> Before I move forward....any comments? >> >> J >> >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> 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 Tue Dec 9 10:45:49 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 10:45:52 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: http://www.blooberry.com/indexdot/html/topics/urlencoding.htm Significant sequences of spaces may be lost in some uses (especially multiple spaces) ggt 2008/12/9 Gjermund Gusland Thorsen : > dec oct hex bin > 032 040 020 00100000 SP (Space) > > ggt667 > > 2008/12/9 Gjermund Gusland Thorsen : >> &20 is ascii value of the space character >> + is urlencoding of the space character >> >> ggt >> >> 2008/12/9 Jonathan Schwartz : >>> Hi Folks, >>> >>> I still haven't 100% licked the spaces-in-field-names issue yet. Now I >>> realize why, and I'm just looking for a sanity check. >>> >>> It appears that spaces in file names produces different behavior depending >>> whether the FMP query is a FIND parameter versus a SORT parameter. >>> >>> It boils down to this: >>> >>> FMP Field Definition: Alpha Beta >>> Alpha Beta Field Value: John Smith >>> Browser POST: Alpha_Beta (Apache Server replaces space with >>> underline) >>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in URL) >>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" in >>> URL) >>> >>> Here's an actual URL that shows the existence of both methods in the same >>> URL: >>> >>> http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>> >>> So... >>> The html form displays the field name with the space. >>> Apache POST replaces the space with an underline. >>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>> >>> >>> Argh. >>> >>> >>> If this is correct, then a single remedy won't work. A different remedy has >>> to be applied to SEARCH fields versus SORT fields. >>> >>> I did get suggestions last time I posted this problem, but each time I >>> applied the remedy, it broke the other half. Now I see why. >>> >>> Before I move forward....any comments? >>> >>> J >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> 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 Dec 9 10:53:05 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 9 10:53:23 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: OK. Now how do I fix my problem? The previous suggestions were to use str_replace, but there are a variety of places to do this, and I'm running out of combinations. In the form? In the fx.php AddDBParam? Plus...what characters am I replacing with what? For reference, the application here is my super duper search page engine that serves multiple db's and web sites simultaneously. I need to get this right so that it works for everyone because I can no longer skirt the issue by requiring fieldnames with no spaces. I'm not giving up until I crack this thing. J At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >&20 is ascii value of the space character >+ is urlencoding of the space character > >ggt > >2008/12/9 Jonathan Schwartz : >> Hi Folks, >> >> I still haven't 100% licked the spaces-in-field-names issue yet. Now I >> realize why, and I'm just looking for a sanity check. >> >> It appears that spaces in file names produces different behavior depending >> whether the FMP query is a FIND parameter versus a SORT parameter. >> >> It boils down to this: >> >> FMP Field Definition: Alpha Beta >> Alpha Beta Field Value: John Smith >> Browser POST: Alpha_Beta (Apache Server replaces space with >> underline) >> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in URL) >> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" in >> URL) >> >> Here's an actual URL that shows the existence of both methods in the same >> URL: >> >> >>http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >> >> So... >> The html form displays the field name with the space. >> Apache POST replaces the space with an underline. >> FX/PHP replaces the space in a FIELD NAMEwith a "+" >> FX/PHP replaces the space in a SORT NAMEwith a "%20" >> >> >> Argh. >> >> >> If this is correct, then a single remedy won't work. A different remedy has >> to be applied to SEARCH fields versus SORT fields. >> >> I did get suggestions last time I posted this problem, but each time I >> applied the remedy, it broke the other half. Now I see why. >> >> Before I move forward....any comments? >> >> J >> >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> 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-370-5011 From ggt667 at gmail.com Tue Dec 9 11:40:10 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 11:40:14 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: What works? + is good? or %20 is good? %20%20%20%20%20 can be in sequence, while +++++ sometimes turns out as just 1 space... 2008/12/9 Jonathan Schwartz : > OK. > > Now how do I fix my problem? > > The previous suggestions were to use str_replace, but there are a variety of > places to do this, and I'm running out of combinations. > > In the form? > In the fx.php AddDBParam? > > Plus...what characters am I replacing with what? > > For reference, the application here is my super duper search page engine > that serves multiple db's and web sites simultaneously. I need to get this > right so that it works for everyone because I can no longer skirt the issue > by requiring fieldnames with no spaces. > > I'm not giving up until I crack this thing. > > J > > At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >> >> &20 is ascii value of the space character >> + is urlencoding of the space character >> >> ggt >> >> 2008/12/9 Jonathan Schwartz : >>> >>> Hi Folks, >>> >>> I still haven't 100% licked the spaces-in-field-names issue yet. Now I >>> realize why, and I'm just looking for a sanity check. >>> >>> It appears that spaces in file names produces different behavior >>> depending >>> whether the FMP query is a FIND parameter versus a SORT parameter. >>> >>> It boils down to this: >>> >>> FMP Field Definition: Alpha Beta >>> Alpha Beta Field Value: John Smith >>> Browser POST: Alpha_Beta (Apache Server replaces space with >>> underline) >>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in >>> URL) >>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" >>> in >>> URL) >>> >>> Here's an actual URL that shows the existence of both methods in the >>> same >>> URL: >>> >>> >>> >>> http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>> >>> So... >>> The html form displays the field name with the space. >>> Apache POST replaces the space with an underline. >>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>> >>> >>> Argh. >>> >>> >>> If this is correct, then a single remedy won't work. A different remedy >>> has >>> to be applied to SEARCH fields versus SORT fields. >>> >>> I did get suggestions last time I posted this problem, but each time I >>> applied the remedy, it broke the other half. Now I see why. >>> >>> Before I move forward....any comments? >>> >>> J >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> 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-370-5011 > _______________________________________________ > 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 Dec 9 11:45:29 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 9 11:48:25 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: Sorry to be dense, but where exactly in the code is urlencode or str_replace used? J At 7:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >What works? + is good? or %20 is good? > >%20%20%20%20%20 can be in sequence, while +++++ sometimes turns out as >just 1 space... > >2008/12/9 Jonathan Schwartz : >> OK. >> >> Now how do I fix my problem? >> >> The previous suggestions were to use str_replace, but there are a variety of >> places to do this, and I'm running out of combinations. >> >> In the form? >> In the fx.php AddDBParam? >> >> Plus...what characters am I replacing with what? >> >> For reference, the application here is my super duper search page engine >> that serves multiple db's and web sites simultaneously. I need to get this >> right so that it works for everyone because I can no longer skirt the issue >> by requiring fieldnames with no spaces. >> >> I'm not giving up until I crack this thing. >> >> J >> >> At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>> >>> &20 is ascii value of the space character >>> + is urlencoding of the space character >>> >>> ggt >>> >>> 2008/12/9 Jonathan Schwartz : >>>> >>>> Hi Folks, >>>> >>>> I still haven't 100% licked the spaces-in-field-names issue yet. Now I >>>> realize why, and I'm just looking for a sanity check. >>>> >>>> It appears that spaces in file names produces different behavior >>>> depending >>>> whether the FMP query is a FIND parameter versus a SORT parameter. >>>> >>>> It boils down to this: >>>> >>>> FMP Field Definition: Alpha Beta >>>> Alpha Beta Field Value: John Smith >>>> Browser POST: Alpha_Beta (Apache Server replaces space with >>>> underline) >>>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in >>>> URL) >>>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" >>>> in >>>> URL) >>>> >>>> Here's an actual URL that shows the existence of both methods in the >>>> same >>>> URL: >>>> >>>> >>>> >>>> >>>>http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>>> >>>> So... >>>> The html form displays the field name with the space. >>>> Apache POST replaces the space with an underline. >>>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>>> >>>> >>>> Argh. >>>> >>>> >>>> If this is correct, then a single remedy won't work. A different remedy >>>> has >>>> to be applied to SEARCH fields versus SORT fields. >>>> >>>> I did get suggestions last time I posted this problem, but each time I >>>> applied the remedy, it broke the other half. Now I see why. >>>> >>>> Before I move forward....any comments? >>>> >>>> J >>>> >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> 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-370-5011 >> _______________________________________________ >> 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-370-5011 From ggt667 at gmail.com Tue Dec 9 12:04:59 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 12:05:03 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: Please answer the question: What works? is "+" or "%20" good? ggt 2008/12/9 Jonathan Schwartz : > Sorry to be dense, but where exactly in the code is urlencode or str_replace > used? > > J > > At 7:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >> >> What works? + is good? or %20 is good? >> >> %20%20%20%20%20 can be in sequence, while +++++ sometimes turns out as >> just 1 space... >> >> 2008/12/9 Jonathan Schwartz : >>> >>> OK. >>> >>> Now how do I fix my problem? >>> >>> The previous suggestions were to use str_replace, but there are a >>> variety of >>> places to do this, and I'm running out of combinations. >>> >>> In the form? >>> In the fx.php AddDBParam? >>> >>> Plus...what characters am I replacing with what? >>> >>> For reference, the application here is my super duper search page engine >>> that serves multiple db's and web sites simultaneously. I need to get >>> this >>> right so that it works for everyone because I can no longer skirt the >>> issue >>> by requiring fieldnames with no spaces. >>> >>> I'm not giving up until I crack this thing. >>> >>> J >>> >>> At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>> >>>> &20 is ascii value of the space character >>>> + is urlencoding of the space character >>>> >>>> ggt >>>> >>>> 2008/12/9 Jonathan Schwartz : >>>>> >>>>> Hi Folks, >>>>> >>>>> I still haven't 100% licked the spaces-in-field-names issue yet. Now >>>>> I >>>>> realize why, and I'm just looking for a sanity check. >>>>> >>>>> It appears that spaces in file names produces different behavior >>>>> depending >>>>> whether the FMP query is a FIND parameter versus a SORT parameter. >>>>> >>>>> It boils down to this: >>>>> >>>>> FMP Field Definition: Alpha Beta >>>>> Alpha Beta Field Value: John Smith >>>>> Browser POST: Alpha_Beta (Apache Server replaces space with >>>>> underline) >>>>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in >>>>> URL) >>>>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with >>>>> "%20" >>>>> in >>>>> URL) >>>>> >>>>> Here's an actual URL that shows the existence of both methods in the >>>>> same >>>>> URL: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>>>> >>>>> So... >>>>> The html form displays the field name with the space. >>>>> Apache POST replaces the space with an underline. >>>>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>>>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>>>> >>>>> >>>>> Argh. >>>>> >>>>> >>>>> If this is correct, then a single remedy won't work. A different >>>>> remedy >>>>> has >>>>> to be applied to SEARCH fields versus SORT fields. >>>>> >>>>> I did get suggestions last time I posted this problem, but each time I >>>>> applied the remedy, it broke the other half. Now I see why. >>>>> >>>>> Before I move forward....any comments? >>>>> >>>>> J >>>>> >>>>> >>>>> >>>>> -- >>>>> Jonathan Schwartz >>>>> Exit 445 Group >>>>> jonathan@exit445.com >>>>> http://www.exit445.com >>>>> 415-370-5011 >>>>> _______________________________________________ >>>>> 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-370-5011 >>> _______________________________________________ >>> 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-370-5011 > _______________________________________________ > 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 Dec 9 12:23:32 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 9 12:28:26 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: I'll answer your question when you answer my question. ;-) What do I test and where? I don't whether you are referring to urlencode or str_replace, and where in the script to use the functions. J At 8:04 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >Please answer the question: What works? > >is "+" or "%20" good? > >ggt > >2008/12/9 Jonathan Schwartz : >> Sorry to be dense, but where exactly in the code is urlencode or str_replace >> used? >> >> J >> >> At 7:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>> >>> What works? + is good? or %20 is good? >>> >>> %20%20%20%20%20 can be in sequence, while +++++ sometimes turns out as >>> just 1 space... >>> >>> 2008/12/9 Jonathan Schwartz : >>>> >>>> OK. >>>> >>>> Now how do I fix my problem? >>>> >>>> The previous suggestions were to use str_replace, but there are a >>>> variety of >>>> places to do this, and I'm running out of combinations. >>>> >>>> In the form? >>>> In the fx.php AddDBParam? >>>> >>>> Plus...what characters am I replacing with what? >>>> >>>> For reference, the application here is my super duper search page engine >>>> that serves multiple db's and web sites simultaneously. I need to get >>>> this >>>> right so that it works for everyone because I can no longer skirt the >>>> issue >>>> by requiring fieldnames with no spaces. >>>> >>>> I'm not giving up until I crack this thing. >>>> >>>> J >>>> >>>> At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>> >>>>> &20 is ascii value of the space character >>>>> + is urlencoding of the space character >>>>> >>>>> ggt >>>>> >>>>> 2008/12/9 Jonathan Schwartz : >>>>>> >>>>>> Hi Folks, >>>>>> >>>>>> I still haven't 100% licked the spaces-in-field-names issue yet. Now >>>>>> I >>>>>> realize why, and I'm just looking for a sanity check. >>>>>> >>>>>> It appears that spaces in file names produces different behavior >>>>>> depending >>>>>> whether the FMP query is a FIND parameter versus a SORT parameter. >>>>>> >>>>>> It boils down to this: >>>>>> >>>>>> FMP Field Definition: Alpha Beta >>>>>> Alpha Beta Field Value: John Smith >>>>>> Browser POST: Alpha_Beta (Apache Server replaces space with >>>>>> underline) >>>>>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in >>>>>> URL) >>>>>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with >>>>>> "%20" >>>>>> in >>>>>> URL) >>>>>> >>>>>> Here's an actual URL that shows the existence of both methods in the >>>>>> same >>>>>> URL: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>>>>> >>>>>> So... >>>>>> The html form displays the field name with the space. >>>>>> Apache POST replaces the space with an underline. >>>>>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>>>>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>>>>> >>>>>> >>>>>> Argh. >>>>>> >>>>>> >>>>>> If this is correct, then a single remedy won't work. A different >>>>>> remedy >>>>>> has >>>>>> to be applied to SEARCH fields versus SORT fields. >>>>>> >>>>>> I did get suggestions last time I posted this problem, but each time I >>>>>> applied the remedy, it broke the other half. Now I see why. >>>>>> >>>>>> Before I move forward....any comments? >>>>>> >>>>>> J >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Jonathan Schwartz >>>>>> Exit 445 Group >>>>>> jonathan@exit445.com >>>>>> http://www.exit445.com >>>>>> 415-370-5011 >>>>>> _______________________________________________ >>>>>> 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-370-5011 >>>> _______________________________________________ >>>> 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-370-5011 >> _______________________________________________ >> 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-370-5011 From tcmeyers at troymeyers.com Tue Dec 9 12:43:54 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Dec 9 12:44:13 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto Message-ID: <4131696.9031228851834809.JavaMail.tcmeyers@troymeyers.com> Jonathan, Not to muddy the waters, but I've never had a problem with spaces in a field name using FX.php, as far as I can recall, not for sorts, finds, or edits. I seem to recall that you have used actual field names as part of the URL that a user might submit. Maybe the problem is there instead? That's something I never do. If you are applying a "fix" where it's not needed (in the FX calls) instead of someplace else, that could contribute to your dual misbehavior. What it a user's URL for a typical situation where the problem crops up? What is the code for FX you are using, and the code to get from the URL to the FX part? -Troy From ggt667 at gmail.com Tue Dec 9 12:51:30 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 12:51:33 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: I am asking a question about this: http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find Does this parameter: Alpha+Beta=John+Smith or this parameter work: -sortfield.1=Alpha%20Beta There is no urlencode() or str_replace(). ggt 2008/12/9 Jonathan Schwartz : > I'll answer your question when you answer my question. ;-) > > What do I test and where? I don't whether you are referring to urlencode or > str_replace, and where in the script to use the functions. > > > J > > At 8:04 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >> >> Please answer the question: What works? >> >> is "+" or "%20" good? >> >> ggt >> >> 2008/12/9 Jonathan Schwartz : >>> >>> Sorry to be dense, but where exactly in the code is urlencode or >>> str_replace >>> used? >>> >>> J >>> >>> At 7:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>> >>>> What works? + is good? or %20 is good? >>>> >>>> %20%20%20%20%20 can be in sequence, while +++++ sometimes turns out as >>>> just 1 space... >>>> >>>> 2008/12/9 Jonathan Schwartz : >>>>> >>>>> OK. >>>>> >>>>> Now how do I fix my problem? >>>>> >>>>> The previous suggestions were to use str_replace, but there are a >>>>> variety of >>>>> places to do this, and I'm running out of combinations. >>>>> >>>>> In the form? >>>>> In the fx.php AddDBParam? >>>>> >>>>> Plus...what characters am I replacing with what? >>>>> >>>>> For reference, the application here is my super duper search page >>>>> engine >>>>> that serves multiple db's and web sites simultaneously. I need to get >>>>> this >>>>> right so that it works for everyone because I can no longer skirt the >>>>> issue >>>>> by requiring fieldnames with no spaces. >>>>> >>>>> I'm not giving up until I crack this thing. >>>>> >>>>> J >>>>> >>>>> At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>>> >>>>>> &20 is ascii value of the space character >>>>>> + is urlencoding of the space character >>>>>> >>>>>> ggt >>>>>> >>>>>> 2008/12/9 Jonathan Schwartz : >>>>>>> >>>>>>> Hi Folks, >>>>>>> >>>>>>> I still haven't 100% licked the spaces-in-field-names issue yet. >>>>>>> Now >>>>>>> I >>>>>>> realize why, and I'm just looking for a sanity check. >>>>>>> >>>>>>> It appears that spaces in file names produces different behavior >>>>>>> depending >>>>>>> whether the FMP query is a FIND parameter versus a SORT parameter. >>>>>>> >>>>>>> It boils down to this: >>>>>>> >>>>>>> FMP Field Definition: Alpha Beta >>>>>>> Alpha Beta Field Value: John Smith >>>>>>> Browser POST: Alpha_Beta (Apache Server replaces space >>>>>>> with >>>>>>> underline) >>>>>>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" >>>>>>> in >>>>>>> URL) >>>>>>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with >>>>>>> "%20" >>>>>>> in >>>>>>> URL) >>>>>>> >>>>>>> Here's an actual URL that shows the existence of both methods in the >>>>>>> same >>>>>>> URL: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>>>>>> >>>>>>> So... >>>>>>> The html form displays the field name with the space. >>>>>>> Apache POST replaces the space with an underline. >>>>>>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>>>>>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>>>>>> >>>>>>> >>>>>>> Argh. >>>>>>> >>>>>>> >>>>>>> If this is correct, then a single remedy won't work. A different >>>>>>> remedy >>>>>>> has >>>>>>> to be applied to SEARCH fields versus SORT fields. >>>>>>> >>>>>>> I did get suggestions last time I posted this problem, but each time >>>>>>> I >>>>>>> applied the remedy, it broke the other half. Now I see why. >>>>>>> >>>>>>> Before I move forward....any comments? >>>>>>> >>>>>>> J >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Jonathan Schwartz >>>>>>> Exit 445 Group >>>>>>> jonathan@exit445.com >>>>>>> http://www.exit445.com >>>>>>> 415-370-5011 >>>>>>> _______________________________________________ >>>>>>> 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-370-5011 >>>>> _______________________________________________ >>>>> 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-370-5011 >>> _______________________________________________ >>> 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-370-5011 > _______________________________________________ > 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 Tue Dec 9 13:12:03 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 13:12:07 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: Does this work? http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find or this: http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha+Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find or this: http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha%20Beta=John%20Smith&-find ggt 2008/12/9 Gjermund Gusland Thorsen : > I am asking a question about this: > http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find > > Does this parameter: Alpha+Beta=John+Smith > or this parameter work: -sortfield.1=Alpha%20Beta > > There is no urlencode() or str_replace(). > > ggt > > 2008/12/9 Jonathan Schwartz : >> I'll answer your question when you answer my question. ;-) >> >> What do I test and where? I don't whether you are referring to urlencode or >> str_replace, and where in the script to use the functions. >> >> >> J >> >> At 8:04 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>> >>> Please answer the question: What works? >>> >>> is "+" or "%20" good? >>> >>> ggt >>> >>> 2008/12/9 Jonathan Schwartz : >>>> >>>> Sorry to be dense, but where exactly in the code is urlencode or >>>> str_replace >>>> used? >>>> >>>> J >>>> >>>> At 7:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>> >>>>> What works? + is good? or %20 is good? >>>>> >>>>> %20%20%20%20%20 can be in sequence, while +++++ sometimes turns out as >>>>> just 1 space... >>>>> >>>>> 2008/12/9 Jonathan Schwartz : >>>>>> >>>>>> OK. >>>>>> >>>>>> Now how do I fix my problem? >>>>>> >>>>>> The previous suggestions were to use str_replace, but there are a >>>>>> variety of >>>>>> places to do this, and I'm running out of combinations. >>>>>> >>>>>> In the form? >>>>>> In the fx.php AddDBParam? >>>>>> >>>>>> Plus...what characters am I replacing with what? >>>>>> >>>>>> For reference, the application here is my super duper search page >>>>>> engine >>>>>> that serves multiple db's and web sites simultaneously. I need to get >>>>>> this >>>>>> right so that it works for everyone because I can no longer skirt the >>>>>> issue >>>>>> by requiring fieldnames with no spaces. >>>>>> >>>>>> I'm not giving up until I crack this thing. >>>>>> >>>>>> J >>>>>> >>>>>> At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>>>> >>>>>>> &20 is ascii value of the space character >>>>>>> + is urlencoding of the space character >>>>>>> >>>>>>> ggt >>>>>>> >>>>>>> 2008/12/9 Jonathan Schwartz : >>>>>>>> >>>>>>>> Hi Folks, >>>>>>>> >>>>>>>> I still haven't 100% licked the spaces-in-field-names issue yet. >>>>>>>> Now >>>>>>>> I >>>>>>>> realize why, and I'm just looking for a sanity check. >>>>>>>> >>>>>>>> It appears that spaces in file names produces different behavior >>>>>>>> depending >>>>>>>> whether the FMP query is a FIND parameter versus a SORT parameter. >>>>>>>> >>>>>>>> It boils down to this: >>>>>>>> >>>>>>>> FMP Field Definition: Alpha Beta >>>>>>>> Alpha Beta Field Value: John Smith >>>>>>>> Browser POST: Alpha_Beta (Apache Server replaces space >>>>>>>> with >>>>>>>> underline) >>>>>>>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" >>>>>>>> in >>>>>>>> URL) >>>>>>>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with >>>>>>>> "%20" >>>>>>>> in >>>>>>>> URL) >>>>>>>> >>>>>>>> Here's an actual URL that shows the existence of both methods in the >>>>>>>> same >>>>>>>> URL: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>>>>>>> >>>>>>>> So... >>>>>>>> The html form displays the field name with the space. >>>>>>>> Apache POST replaces the space with an underline. >>>>>>>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>>>>>>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>>>>>>> >>>>>>>> >>>>>>>> Argh. >>>>>>>> >>>>>>>> >>>>>>>> If this is correct, then a single remedy won't work. A different >>>>>>>> remedy >>>>>>>> has >>>>>>>> to be applied to SEARCH fields versus SORT fields. >>>>>>>> >>>>>>>> I did get suggestions last time I posted this problem, but each time >>>>>>>> I >>>>>>>> applied the remedy, it broke the other half. Now I see why. >>>>>>>> >>>>>>>> Before I move forward....any comments? >>>>>>>> >>>>>>>> J >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Jonathan Schwartz >>>>>>>> Exit 445 Group >>>>>>>> jonathan@exit445.com >>>>>>>> http://www.exit445.com >>>>>>>> 415-370-5011 >>>>>>>> _______________________________________________ >>>>>>>> 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-370-5011 >>>>>> _______________________________________________ >>>>>> 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-370-5011 >>>> _______________________________________________ >>>> 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-370-5011 >> _______________________________________________ >> 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 Dec 9 14:59:20 2008 From: dbengston at tds.net (Dale Bengston) Date: Tue Dec 9 14:59:29 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: Encoding of query elements is done by FX.php without interaction from us. Reference the sub-functions CreateCurrentSort() and CreateCurrentSearch() in the FX.php script file. Dale On Dec 9, 2008, at 1:51 PM, Gjermund Gusland Thorsen wrote: > I am asking a question about this: > http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&- > lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha > +Beta=John+Smith&-find > > Does this parameter: Alpha+Beta=John+Smith > or this parameter work: -sortfield.1=Alpha%20Beta > > There is no urlencode() or str_replace(). > > ggt > > 2008/12/9 Jonathan Schwartz : >> I'll answer your question when you answer my question. ;-) >> >> What do I test and where? I don't whether you are referring to >> urlencode or >> str_replace, and where in the script to use the functions. >> >> >> J >> >> At 8:04 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>> >>> Please answer the question: What works? >>> >>> is "+" or "%20" good? >>> >>> ggt >>> >>> 2008/12/9 Jonathan Schwartz : >>>> >>>> Sorry to be dense, but where exactly in the code is urlencode or >>>> str_replace >>>> used? >>>> >>>> J >>>> >>>> At 7:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>> >>>>> What works? + is good? or %20 is good? >>>>> >>>>> %20%20%20%20%20 can be in sequence, while +++++ sometimes turns >>>>> out as >>>>> just 1 space... >>>>> >>>>> 2008/12/9 Jonathan Schwartz : >>>>>> >>>>>> OK. >>>>>> >>>>>> Now how do I fix my problem? >>>>>> >>>>>> The previous suggestions were to use str_replace, but there are a >>>>>> variety of >>>>>> places to do this, and I'm running out of combinations. >>>>>> >>>>>> In the form? >>>>>> In the fx.php AddDBParam? >>>>>> >>>>>> Plus...what characters am I replacing with what? >>>>>> >>>>>> For reference, the application here is my super duper search page >>>>>> engine >>>>>> that serves multiple db's and web sites simultaneously. I need >>>>>> to get >>>>>> this >>>>>> right so that it works for everyone because I can no longer >>>>>> skirt the >>>>>> issue >>>>>> by requiring fieldnames with no spaces. >>>>>> >>>>>> I'm not giving up until I crack this thing. >>>>>> >>>>>> J >>>>>> >>>>>> At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>>>> >>>>>>> &20 is ascii value of the space character >>>>>>> + is urlencoding of the space character >>>>>>> >>>>>>> ggt >>>>>>> >>>>>>> 2008/12/9 Jonathan Schwartz : >>>>>>>> >>>>>>>> Hi Folks, >>>>>>>> >>>>>>>> I still haven't 100% licked the spaces-in-field-names issue >>>>>>>> yet. >>>>>>>> Now >>>>>>>> I >>>>>>>> realize why, and I'm just looking for a sanity check. >>>>>>>> >>>>>>>> It appears that spaces in file names produces different >>>>>>>> behavior >>>>>>>> depending >>>>>>>> whether the FMP query is a FIND parameter versus a SORT >>>>>>>> parameter. >>>>>>>> >>>>>>>> It boils down to this: >>>>>>>> >>>>>>>> FMP Field Definition: Alpha Beta >>>>>>>> Alpha Beta Field Value: John Smith >>>>>>>> Browser POST: Alpha_Beta (Apache Server replaces >>>>>>>> space >>>>>>>> with >>>>>>>> underline) >>>>>>>> FMP FIND URL: Alpha+Beta (FX (?) replaces space >>>>>>>> with "+" >>>>>>>> in >>>>>>>> URL) >>>>>>>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space >>>>>>>> with >>>>>>>> "%20" >>>>>>>> in >>>>>>>> URL) >>>>>>>> >>>>>>>> Here's an actual URL that shows the existence of both methods >>>>>>>> in the >>>>>>>> same >>>>>>>> URL: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>>>>>>> >>>>>>>> So... >>>>>>>> The html form displays the field name with the space. >>>>>>>> Apache POST replaces the space with an underline. >>>>>>>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>>>>>>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>>>>>>> >>>>>>>> >>>>>>>> Argh. >>>>>>>> >>>>>>>> >>>>>>>> If this is correct, then a single remedy won't work. A >>>>>>>> different >>>>>>>> remedy >>>>>>>> has >>>>>>>> to be applied to SEARCH fields versus SORT fields. >>>>>>>> >>>>>>>> I did get suggestions last time I posted this problem, but >>>>>>>> each time >>>>>>>> I >>>>>>>> applied the remedy, it broke the other half. Now I see why. >>>>>>>> >>>>>>>> Before I move forward....any comments? >>>>>>>> >>>>>>>> J >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Jonathan Schwartz >>>>>>>> Exit 445 Group >>>>>>>> jonathan@exit445.com >>>>>>>> http://www.exit445.com >>>>>>>> 415-370-5011 >>>>>>>> _______________________________________________ >>>>>>>> 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-370-5011 >>>>>> _______________________________________________ >>>>>> 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-370-5011 >>>> _______________________________________________ >>>> 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-370-5011 >> _______________________________________________ >> 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 -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1582 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081209/66f2a24c/smime-0001.bin From jschwartz at exit445.com Tue Dec 9 15:21:52 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 9 15:23:23 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: ggt, Each one of the URLs below work. That is, when the command to FMP is issued to via URL all is fine, whether the space in the field name is replaced with "%20" or "+", FMP responds appropriately. So that's not the problem. The problem is the step before: When fields with spaces in their names are POSTed via a FORM, the resulting POST is automatically replacing the space with an underline: From the Form: From the POST Array: Array ( [Alpha_Beta] => John Smith ) Notice "Alpha Beta" (with space) field name is POSTed as "Alpha_Beta" (with underline). I'm observing this using a print_r($_POST); command. So, when I build an Fx.php query, it does so with "Alpha_Beta" (with underline) and an error 102 is produced because the field in FMP is "Alpha Beta (no underline). That is the base problem. Not sure why I'm the only one with this problem. I've always dealt with the problem by redefining FMP Field names to eliminate spaces. No longer have that luxury. So...where do insert urlencode or str_replace? I tried this: "> and it did produce this POST: Array ( [Alpha+Beta] => John Smith ) But that post produced this URL, and of course failed with the same 102 error (note the %2B): http://.....Alpha%2BBeta=John+Smith.... I'm trying! J At 9:12 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >Does this work? > >http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find > >or this: > >http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha+Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find > >or this: > >http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha%20Beta=John%20Smith&-find > >ggt > >2008/12/9 Gjermund Gusland Thorsen : >> I am asking a question about this: >> >>http://user:pass@server:port/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >> >> Does this parameter: Alpha+Beta=John+Smith >> or this parameter work: -sortfield.1=Alpha%20Beta >> >> There is no urlencode() or str_replace(). >> >> ggt >> >> 2008/12/9 Jonathan Schwartz : >>> I'll answer your question when you answer my question. ;-) >>> >>> What do I test and where? I don't whether you are referring to urlencode or >>> str_replace, and where in the script to use the functions. >>> >>> >>> J >>> >>> At 8:04 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>> >>>> Please answer the question: What works? >>>> >>>> is "+" or "%20" good? >>>> >>>> ggt >>>> >>>> 2008/12/9 Jonathan Schwartz : >>>>> >>>>> Sorry to be dense, but where exactly in the code is urlencode or >>>>> str_replace >>>>> used? >>>>> >>>>> J >>>>> >>>>> At 7:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>>> >>>>>> What works? + is good? or %20 is good? >>>>>> >>>>>> %20%20%20%20%20 can be in sequence, while +++++ sometimes turns out as >>>>>> just 1 space... >>>>>> >>>>>> 2008/12/9 Jonathan Schwartz : >>>>>>> >>>>>>> OK. >>>>>>> >>>>>>> Now how do I fix my problem? >>>>>>> >>>>>>> The previous suggestions were to use str_replace, but there are a >>>>>>> variety of >>>>>>> places to do this, and I'm running out of combinations. >>>>>>> >>>>>>> In the form? >>>>>>> In the fx.php AddDBParam? >>>>>>> >>>>>>> Plus...what characters am I replacing with what? >>>>>>> >>>>>>> For reference, the application here is my super duper search page >>>>>>> engine >>>>>>> that serves multiple db's and web sites simultaneously. I need to get >>>>>>> this >>>>>>> right so that it works for everyone because I can no longer skirt the >>>>>>> issue >>>>>>> by requiring fieldnames with no spaces. > >>>>>> >>>>>>> I'm not giving up until I crack this thing. >>>>>>> >>>>>>> J >>>>>>> >>>>>>> At 6:40 PM +0100 12/9/08, Gjermund Gusland Thorsen wrote: >>>>>>>> >>>>>>>> &20 is ascii value of the space character >>>>>>>> + is urlencoding of the space character >>>>>>>> >>>>>>>> ggt >>>>>>>> >>>>>>>> 2008/12/9 Jonathan Schwartz : >>>>>>>>> >>>>>>>>> Hi Folks, >>>>>>>>> >>>>>>>>> I still haven't 100% licked the spaces-in-field-names issue yet. >>>>>>>>> Now >>>>>>>>> I >>>>>>>>> realize why, and I'm just looking for a sanity check. >>>>>>>>> >>>>>>>>> It appears that spaces in file names produces different behavior >>>>>>>>> depending >>>>>>>>> whether the FMP query is a FIND parameter versus a SORT parameter. >>>>>>>>> >>>>>>>>> It boils down to this: >>>>>>>>> >>>>>>>>> FMP Field Definition: Alpha Beta >>>>>>>>> Alpha Beta Field Value: John Smith >>>>>>>>> Browser POST: Alpha_Beta (Apache Server replaces space >>>>>>>>> with >>>>>>>>> underline) >>>>>>>>> FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" >>>>>>>>> in >>>>>>>>> URL) >>>>>>>>> FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with >>>>>>>>> "%20" >>>>>>>>> in >>>>>>>>> URL) >>>>>>>>> >>>>>>>>> Here's an actual URL that shows the existence of both methods in the >>>>>>>>> same >>>>>>>>> URL: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find >>>>>>>>> >>>>>>>>> So... >>>>>>>>> The html form displays the field name with the space. >>>>>>>>> Apache POST replaces the space with an underline. >>>>>>>>> FX/PHP replaces the space in a FIELD NAMEwith a "+" >>>>>>>>> FX/PHP replaces the space in a SORT NAMEwith a "%20" >>>>>>>>> >>>>>>>>> >>>>>>>>> Argh. >>>>>>>>> >>>>>>>>> >>>>>>>>> If this is correct, then a single remedy won't work. A different >>>>>>>>> remedy >>>>>>>>> has >>>>>>>>> to be applied to SEARCH fields versus SORT fields. >>>>>>>>> >>>>>>>>> I did get suggestions last time I posted this problem, but each time >>>>>>>>> I >>>>>>>>> applied the remedy, it broke the other half. Now I see why. >>>>>>>>> >>>>>>>>> Before I move forward....any comments? >>>>>>>>> >>>>>>>>> J >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Jonathan Schwartz >>>>>>>>> Exit 445 Group >>>>>>>>> jonathan@exit445.com >>>>>>>>> http://www.exit445.com >>>>>>>>> 415-370-5011 >>>>>>>>> _______________________________________________ >>>>>>>>> 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-370-5011 >>>>>>> _______________________________________________ >>>>>>> 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-370-5011 >>>>> _______________________________________________ >>>>> 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-370-5011 >>> _______________________________________________ >>> 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-370-5011 From master at take-sat.de Tue Dec 9 09:54:58 2008 From: master at take-sat.de (Thomas Neumann) Date: Tue Dec 9 15:31:07 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: Message-ID: <493EA2E2.8050603@take-sat.de> try urlencode() Tomy Jonathan Schwartz schrieb: > Hi Folks, > > I still haven't 100% licked the spaces-in-field-names issue yet. Now > I realize why, and I'm just looking for a sanity check. > > It appears that spaces in file names produces different behavior > depending whether the FMP query is a FIND parameter versus a SORT > parameter. > > It boils down to this: > > FMP Field Definition: Alpha Beta > Alpha Beta Field Value: John Smith > Browser POST: Alpha_Beta (Apache Server replaces space with > underline) > FMP FIND URL: Alpha+Beta (FX (?) replaces space with "+" in URL) > FMP SORT FIELD URL: Alpha%20Beta (FX (?) replaces space with "%20" > in URL) > > Here's an actual URL that shows the existence of both methods in the > same URL: > > http://Admin:Admin@000.000.000.000:80/fmi/xml/FMPXMLRESULT.xml?-db=DB.fp7&-lay=web&-max=50&-sortfield.1=Alpha%20Beta&-sortorder.1=ascend&Alpha+Beta=John+Smith&-find > > > So... > The html form displays the field name with the space. > Apache POST replaces the space with an underline. > FX/PHP replaces the space in a FIELD NAMEwith a "+" > FX/PHP replaces the space in a SORT NAMEwith a "%20" > > > Argh. > > > If this is correct, then a single remedy won't work. A different > remedy has to be applied to SEARCH fields versus SORT fields. > > I did get suggestions last time I posted this problem, but each time I > applied the remedy, it broke the other half. Now I see why. > > Before I move forward....any comments? > > J > > > -- Dipl.- Ing (FH) Thomas Neumann Carl-Maria-von-Weber-Str. 26 D-95448 Bayreuth Germany Steuernummer 208/254/80340 SATlive http://www.take-sat.de SATlive Forum: Http://www.board-4you.de/v18/boards/35 From kfutter at sbc.vic.edu.au Tue Dec 9 15:32:36 2008 From: kfutter at sbc.vic.edu.au (Kevin Futter) Date: Tue Dec 9 15:34:33 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: Message-ID: On 10/12/08 9:21 AM, "Jonathan Schwartz" wrote: > ggt, > > Each one of the URLs below work. That is, when the command to FMP is > issued to via URL all is fine, whether the space in the field name is > replaced with "%20" or "+", FMP responds appropriately. > > So that's not the problem. > > The problem is the step before: When fields with spaces in their > names are POSTed via a FORM, the resulting POST is automatically > replacing the space with an underline: > From the Form: > Jonathan, Spaces are not allowed in the 'name' attribute for form fields (they're not allowed to start with numbers either, FWIW). You'll need to add a replacement character and then parse them out as part of your normal form processing. The simplest thing is to not base the form's 'name' attribute value on the name of the FileMaker field. Just parse the POST data and convert it there. Quick example: $fmFieldData = $_POST['Alpha_Beta']; $FMQuery->SetDBData('Alpha Beta', $fmFieldData); This is really how you should do it anyway. There's no real need to tie DB field names to the 'name' attribute value, and in fact you probably shouldn't for security reasons. That's what form processing is for! If you're sucking field names out of FM to populate the 'name' attribute, you'll have to parse them for illegal characters too. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. From tcmeyers at troymeyers.com Tue Dec 9 15:39:39 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Dec 9 15:39:45 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto Message-ID: <6155682.10111228862379293.JavaMail.tcmeyers@troymeyers.com> J, This is what I was alluding to in my prior post. I recommend that you DON'T treat input fields as same-name entities as FileMaker fields. Have: ...in your form instead, then in the PHP that sets up the query, have something like: if (isset($_POST['alphabeta'])) { $your_find->AddDBParam('Alpha Beta','=='.$_POST['alphabeta']) } This way you not only keep the difference between form field names and values divorced from the FileMaker field names --until you want them associated-- but you also give away fewer clues about how to hack your pages, and have much stronger control over what can and can't be done with your page. -Troy > ggt, > > Each one of the URLs below work. That is, when the command to FMP is > issued to via URL all is fine, whether the space in the field name is > replaced with "%20" or "+", FMP responds appropriately. > > So that's not the problem. > > The problem is the step before: When fields with spaces in their names > are POSTed via a FORM, the resulting POST is automatically replacing > the space with an underline: > > From the Form: > > > > From the POST Array: > > Array > > ( > > [Alpha_Beta] => John Smith > > ) > > Notice "Alpha Beta" (with space) field name is POSTed as > "Alpha_Beta" (with underline). > > I'm observing this using a print_r($_POST); command. > > So, when I build an Fx.php query, it does so with "Alpha_Beta" (with > underline) and an error 102 is produced because the field in FMP is > "Alpha Beta (no underline). > > That is the base problem. > > Not sure why I'm the only one with this problem. I've always dealt > with the problem by redefining FMP Field names to eliminate spaces. No > longer have that luxury. > > So...where do insert urlencode or str_replace? > > I tried this: > > "> > > and it did produce this POST: > > Array > > ( > > [Alpha+Beta] => John Smith > > ) > > But that post produced this URL, and of course failed with the same > 102 error (note the %2B): > > http://.....Alpha%2BBeta=John+Smith.... > > I'm trying! > > J From kfutter at sbc.vic.edu.au Tue Dec 9 15:45:22 2008 From: kfutter at sbc.vic.edu.au (Kevin Futter) Date: Tue Dec 9 15:45:08 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: <~B493ef2290000.493ef41c0000.0001.mml.450832272@sbc.vic.edu.au> Message-ID: On 10/12/08 9:32 AM, "Kevin Futter" wrote: > > $FMQuery->SetDBData('Alpha Beta', $fmFieldData); Oops. That should of course read: $FMQuery->AddDBParam('Alpha Beta', $fmFieldData); -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. From derrick at fogles.net Tue Dec 9 15:51:01 2008 From: derrick at fogles.net (Derrick Fogle) Date: Tue Dec 9 15:51:14 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: <6155682.10111228862379293.JavaMail.tcmeyers@troymeyers.com> References: <6155682.10111228862379293.JavaMail.tcmeyers@troymeyers.com> Message-ID: <77003377-D4EB-4C87-A5E3-1A832C46EACF@fogles.net> I'll point out that this is probably a heck of a lot of rote code to write for what appears to be a generic engine for anyone's database. Then again, doing this means that there must be some kind of 'special character' management for all FMP field names. As another pointed out, spaces won't be the only problem. I'd start with the previously recommended urlencode() function, and go from there. On Dec 9, 2008, at 4:39 PM, Troy Meyers wrote: > J, > > This is what I was alluding to in my prior post. > > I recommend that you DON'T treat input fields as same-name entities > as FileMaker fields. > > Have: > > ...in your form instead, then in the PHP that sets up the query, > have something like: > if (isset($_POST['alphabeta'])) { > $your_find->AddDBParam('Alpha Beta','=='.$_POST['alphabeta']) > } > > This way you not only keep the difference between form field names > and values divorced from the FileMaker field names --until you want > them associated-- but you also give away fewer clues about how to > hack your pages, and have much stronger control over what can and > can't be done with your page. > > -Troy > > >> ggt, >> >> Each one of the URLs below work. That is, when the command to FMP is >> issued to via URL all is fine, whether the space in the field name is >> replaced with "%20" or "+", FMP responds appropriately. >> >> So that's not the problem. >> >> The problem is the step before: When fields with spaces in their >> names >> are POSTed via a FORM, the resulting POST is automatically >> replacing >> the space with an underline: >> >> From the Form: >> >> >> >> From the POST Array: >> >> Array >> >> ( >> >> [Alpha_Beta] => John Smith >> >> ) >> >> Notice "Alpha Beta" (with space) field name is POSTed as >> "Alpha_Beta" (with underline). >> >> I'm observing this using a print_r($_POST); command. >> >> So, when I build an Fx.php query, it does so with "Alpha_Beta" (with >> underline) and an error 102 is produced because the field in FMP is >> "Alpha Beta (no underline). >> >> That is the base problem. >> >> Not sure why I'm the only one with this problem. I've always dealt >> with the problem by redefining FMP Field names to eliminate >> spaces. No >> longer have that luxury. >> >> So...where do insert urlencode or str_replace? >> >> I tried this: >> >> "> >> >> and it did produce this POST: >> >> Array >> >> ( >> >> [Alpha+Beta] => John Smith >> >> ) >> >> But that post produced this URL, and of course failed with the same >> 102 error (note the %2B): >> >> http://.....Alpha%2BBeta=John+Smith.... >> >> I'm trying! >> >> J > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Derrick From tcmeyers at troymeyers.com Tue Dec 9 16:13:41 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Dec 9 16:13:45 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto Message-ID: <3349968.10191228864421890.JavaMail.tcmeyers@troymeyers.com> Yes, if this is a self-generating form, then the naming of the input fields should deal spaces and other characters in a predictable way, that can be deciphered on the PHP page that receives the POST data. The thing that I think is the problem is that the FileMaker field names must be exactly as they are in the database. If the form's input field becomes name="Alpha_Beta" then the PHP that generates the AddDBParam() instances must have the FileMaker field name as 'Alpha Beta' since that's really what it is in FileMaker. This can either be done by looping through the $_POST array or by rote programming. My point is that the encoding or altering of the name of the is what's needed, NOT the FileMaker field name, neither in the database nor the field name specification in the AddDBParam() function. Maybe I'm wrong, but Jonathan, aren't you changing it there? If the FileMaker field names are being recreated from the POST data on the fly, then they must be DEcoded as appropriate to how they were ENcoded on the page the generates the original form. -Troy > I'll point out that this is probably a heck of a lot of rote code to > write for what appears to be a generic engine for anyone's database. > Then again, doing this means that there must be some kind of 'special > character' management for all FMP field names. As another pointed out, > spaces won't be the only problem. I'd start with the previously > recommended urlencode() function, and go from there. From jschwartz at exit445.com Tue Dec 9 16:58:47 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 9 17:03:27 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: <3349968.10191228864421890.JavaMail.tcmeyers@troymeyers.com> References: <3349968.10191228864421890.JavaMail.tcmeyers@troymeyers.com> Message-ID: Hold on...I'm trying to digest this. J At 3:13 PM -0800 12/9/08, Troy Meyers wrote: >Yes, if this is a self-generating form, then the naming of the input >fields should deal spaces and other characters in a predictable way, >that can be deciphered on the PHP page that receives the POST data. > >The thing that I think is the problem is that the FileMaker field >names must be exactly as they are in the database. If the form's >input field becomes name="Alpha_Beta" then the PHP that generates >the AddDBParam() instances must have the FileMaker field name as >'Alpha Beta' since that's really what it is in FileMaker. This can >either be done by looping through the $_POST array or by rote >programming. > >My point is that the encoding or altering of the name of the /> is what's needed, NOT the FileMaker field name, neither in the >database nor the field name specification in the AddDBParam() >function. > >Maybe I'm wrong, but Jonathan, aren't you changing it there? > >If the FileMaker field names are being recreated from the POST data >on the fly, then they must be DEcoded as appropriate to how they >were ENcoded on the page the generates the original form. > >-Troy > > > >> I'll point out that this is probably a heck of a lot of rote code to >> write for what appears to be a generic engine for anyone's database. >> Then again, doing this means that there must be some kind of 'special >> character' management for all FMP field names. As another pointed out, >> spaces won't be the only problem. I'd start with the previously >> recommended urlencode() function, and go from there. > >_______________________________________________ >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-370-5011 From tcmeyers at troymeyers.com Tue Dec 9 17:09:34 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Dec 9 17:09:44 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto Message-ID: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> J- If we knew how your form page was created, then I could speak less ambiguously, I think. Is the form page hand-coded, or are you using PHP to generate it? What PHP? -Troy > Hold on...I'm trying to digest this. From ggt667 at gmail.com Tue Dec 9 18:05:42 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 18:05:45 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> References: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> Message-ID: You can not fix this with a string replace, what if the name has underscore? If your really want to do this, use FMView() and use the index number for the field, instead of the fieldname. ggt 2008/12/10 Troy Meyers : > J- > > If we knew how your form page was created, then I could speak less ambiguously, I think. > > Is the form page hand-coded, or are you using PHP to generate it? What PHP? > > -Troy > > >> Hold on...I'm trying to digest this. > > _______________________________________________ > 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 Tue Dec 9 18:06:25 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 9 18:06:28 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> References: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> Message-ID: Of course he is using php to generate it, it's a universal approach. ggt 2008/12/10 Troy Meyers : > J- > > If we knew how your form page was created, then I could speak less ambiguously, I think. > > Is the form page hand-coded, or are you using PHP to generate it? What PHP? > > -Troy > > >> Hold on...I'm trying to digest this. > > _______________________________________________ > 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 Dec 10 01:31:33 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Dec 10 01:31:35 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> Message-ID: Sorry, not FMView(), you only need to use the $r['fields'] array in any result made by query, that way you can keep the " " from the result array. ggt 2008/12/10 Gjermund Gusland Thorsen : > Of course he is using php to generate it, it's a universal approach. > > ggt > > 2008/12/10 Troy Meyers : >> J- >> >> If we knew how your form page was created, then I could speak less ambiguously, I think. >> >> Is the form page hand-coded, or are you using PHP to generate it? What PHP? >> >> -Troy >> >> >>> Hold on...I'm trying to digest this. >> >> _______________________________________________ >> 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 Dec 10 01:33:53 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Dec 10 01:33:55 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> Message-ID: Well it's probably most bandwidth cost efficient to do an FMView() for the forms page or FMFindAny() ggt 2008/12/10 Gjermund Gusland Thorsen : > Sorry, not FMView(), you only need to use the $r['fields'] array in > any result made by query, that way you can keep the " " from the > result array. > > ggt > > 2008/12/10 Gjermund Gusland Thorsen : >> Of course he is using php to generate it, it's a universal approach. >> >> ggt >> >> 2008/12/10 Troy Meyers : >>> J- >>> >>> If we knew how your form page was created, then I could speak less ambiguously, I think. >>> >>> Is the form page hand-coded, or are you using PHP to generate it? What PHP? >>> >>> -Troy >>> >>> >>>> Hold on...I'm trying to digest this. >>> >>> _______________________________________________ >>> 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 Dec 10 01:47:38 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Dec 10 01:47:41 2008 Subject: [FX.php List] Spaces in Field Names...one more time with gusto In-Reply-To: References: <6965476.10951228867774344.JavaMail.tcmeyers@troymeyers.com> Message-ID: What I am suggesting --- SetDBData( $dbname, 'index.php' ); $q->SetDBPassword( $xmlPass, $xmlUser ); $r = $q->FMFindAny(); foreach( $r['fields'] as $k => $v ) { $field[] = '
  • ' . $v['name'] . '
  • '; } ?> Test script for FX.php list ' . implode( "\n", $field ) . ''; echo '
    ';
    print_r( $r );
    echo '
    '; ?> --- My code might not look like poetry, but I guess it can kick some ham. ggt From ben at batfastad.com Wed Dec 10 04:49:35 2008 From: ben at batfastad.com (Ben Bradley) Date: Wed Dec 10 04:49:39 2008 Subject: [FX.php List] OT: US window envelopes, window position on US letter paper Message-ID: <6970ac50812100349n62773c66ic22fe580606cbe50@mail.gmail.com> Hi everyone I've got a quick request. I'm in the UK and putting the final touches on a PHP/FX invoicing system. However I'd like our US remote workers to be able to download the PDF invoices in US letter format. Not a problem, since I'm using TCPDF which has paper sizes built-in. But I wonder if any of you US-based folks could possibly do me a favour / favor! ;) and measure the size of the window on standard US window envelopes? Whatever the standard size is for you guys when posting letters, the type of envelope where you fold up a US-letter sheet into 3 horizontally. Is that a #10 envelope? In Europe our equivalent for A4 paper is a DL envelope. Just wondering what the standard/most used window envelopes are in the US Also could someone measure where the position of the window appears on a folded US letter bit of paper? Just want to get it so the addresses are positioned properly on US letter paper. Thanks, B -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/3e349509/attachment-0001.html From ggt667 at gmail.com Wed Dec 10 04:52:19 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Dec 10 04:52:21 2008 Subject: [FX.php List] OT: US window envelopes, window position on US letter paper In-Reply-To: <6970ac50812100349n62773c66ic22fe580606cbe50@mail.gmail.com> References: <6970ac50812100349n62773c66ic22fe580606cbe50@mail.gmail.com> Message-ID: This is what I did for one of the global solutions I have, avoid violence find a bigger hammer, I made a new papersize, A4 wide, Letter tall. Prints everywhere. ggt 2008/12/10 Ben Bradley : > Hi everyone > > I've got a quick request. > I'm in the UK and putting the final touches on a PHP/FX invoicing system. > However I'd like our US remote workers to be able to download the PDF > invoices in US letter format. Not a problem, since I'm using TCPDF which has > paper sizes built-in. > > But I wonder if any of you US-based folks could possibly do me a favour / > favor! ;) and measure the size of the window on standard US window > envelopes? > Whatever the standard size is for you guys when posting letters, the type of > envelope where you fold up a US-letter sheet into 3 horizontally. > Is that a #10 envelope? > > In Europe our equivalent for A4 paper is a DL envelope. Just wondering what > the standard/most used window envelopes are in the US > > Also could someone measure where the position of the window appears on a > folded US letter bit of paper? > Just want to get it so the addresses are positioned properly on US letter > paper. > > > Thanks, B > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From dness at bondedbuilders.com Wed Dec 10 06:39:47 2008 From: dness at bondedbuilders.com (David Ness) Date: Wed Dec 10 06:39:23 2008 Subject: [FX.php List] OT: US window envelopes, window position on US letter paper In-Reply-To: <6970ac50812100349n62773c66ic22fe580606cbe50@mail.gmail.com> References: <6970ac50812100349n62773c66ic22fe580606cbe50@mail.gmail.com> Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 12953 bytes Desc: image001.gif Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/af075b90/attachment-0001.gif From dbengston at tds.net Wed Dec 10 07:29:40 2008 From: dbengston at tds.net (Dale Bengston) Date: Wed Dec 10 07:29:45 2008 Subject: [FX.php List] OT: US window envelopes, window position on US letter paper In-Reply-To: References: <6970ac50812100349n62773c66ic22fe580606cbe50@mail.gmail.com> Message-ID: <877705C5-36EC-4616-9B77-A1C4081EA2D0@tds.net> In my experience, there can be different window sizes and locations on a #10 envelope. There is not a single standard. Some #10 window envelopes even come with two windows, one for the addressee and one (upper left) for the return address to show through - both addresses from the paper inside. I would suggest having your client's US staff measure the envelopes they are actually using and provide you with the window size and location. Hope this helps, Dale On Dec 10, 2008, at 7:39 AM, David Ness wrote: > The window on the following sizes (#10) is 4? inches by 1 1/8 > inches, and is located 7?8 inch from the left and ? inch from the > bottom. > > http://www.sizes.com/materls/envelopes.htm > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Ben Bradley > Sent: Wednesday, December 10, 2008 6:50 AM > To: FX.php Discussion List > Subject: [FX.php List] OT: US window envelopes,window position on US > letter paper > > Hi everyone > > I've got a quick request. > I'm in the UK and putting the final touches on a PHP/FX invoicing > system. > However I'd like our US remote workers to be able to download the > PDF invoices in US letter format. Not a problem, since I'm using > TCPDF which has paper sizes built-in. > > But I wonder if any of you US-based folks could possibly do me a > favour / favor! ;) and measure the size of the window on standard US > window envelopes? > Whatever the standard size is for you guys when posting letters, the > type of envelope where you fold up a US-letter sheet into 3 > horizontally. > Is that a #10 envelope? > > In Europe our equivalent for A4 paper is a DL envelope. Just > wondering what the standard/most used window envelopes are in the US > > Also could someone measure where the position of the window appears > on a folded US letter bit of paper? > Just want to get it so the addresses are positioned properly on US > letter paper. > > > Thanks, B > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1582 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/da70e80f/smime.bin From dness at bondedbuilders.com Wed Dec 10 08:49:06 2008 From: dness at bondedbuilders.com (David Ness) Date: Wed Dec 10 08:48:39 2008 Subject: [FX.php List] Multiple windows with Session Variables Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 12953 bytes Desc: image001.gif Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/1c968a61/attachment-0001.gif From ggt667 at gmail.com Wed Dec 10 09:37:30 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Dec 10 09:37:33 2008 Subject: [FX.php List] Multiple windows with Session Variables In-Reply-To: References: Message-ID: Hmm, I have never bumped into this problem however my $_SESSION rolls one level deeper. $_SESSION[$projectKey][$applicationname]= array(); ggt 2008/12/10 David Ness : > Dear fx.php associates, > > > > I've just discovered that I might have a problem with my fx.php solution, > and wanted to know if anyone else has faced this and developed a workaround. > > > > My online solution allows users to enter, save, edit and 'finalize' > application forms online. During the entry and processing of the form, > several pages are loaded and the form data is saved and retrieved in various > ways and at various points in the process. I save the record ID of the > FileMaker record into a $_SESSION variable ($_SESSION['application_recid'], > along with a whole bunch of other $_SESSION variable values) in order keep > track of the record I'm working with. After the application reaches a > certain status (finalized), the record is no longer available for editing, > only review. > > > > My problem is that I've discovered some users were able to overwrite a > previously finalized record with a new record. Upon interviewing the user, > he mentioned he commonly opened a window with a previous record to reference > when entering a new record in another window or tab within the same browser. > > > > My theory is that one array of $_SESSION variables is being 'shared' among > windows, and this is the root cause of my problem. So my question is: are > the $_SESSION variables shared among windows, or is a separate set of > $_SESSION variables created for each window? If the $_SESSION variables > *are* shared, what methods do you use to prevent the unwanted co-mingling of > variables? > > > > A little Googling seems to confirm this. Multiple windows seem to share the > same $_SESSION variables. Yikes! This fundamental construct flaw in my > program would initially seem to be really hard to work around, as I would > need to carry forward lots and lots of variables using some other method. > > > > Ideas or comments? > > > > > > David Allen Ness > > Database Systems Programmer > > Web Applications Developer > > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From steve at bluecrocodile.co.nz Wed Dec 10 09:38:21 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 10 09:38:31 2008 Subject: [FX.php List] Multiple windows with Session Variables In-Reply-To: References: Message-ID: <1DA10DE7-8037-4162-A722-42437E1A0617@bluecrocodile.co.nz> Hi David, You're correct in thinking that multiple windows of the same browser share the same session, as do multiple tabs of the same window (which is perhaps more to be expected). The other interesting thing is that if your user is on a Mac, even if they close all the windows, but not the application itself, then the session variables are maintained. My suggestion for 'resolving' this would be that you destroy the session, or at least unset the relevant variables stored there within at the time that you 'finalise' the record, that way the data is totally destroyed... In a shopping cart solution which I have developed I pass a lot of data in a session variable $_SESSION['cart']. When the user has got to the end of the process, and paid for their items, I duplicate that data into another session variable $_SESSION['completedCart'] and completely clear the 'cart' variable... that way if they go back into the 'shop' their cart is empty and they can add more things if they wish... I retain the most recent completed 'cart' in a variable in case they reload the confirmation page... it never displays content from 'cart' only 'completedCart'... You can destroy the session a number of ways including; - session_destroy(); - unset($_SESSION); - unset($_SESSION['yourVariableThatMatters']; HTH Cheers Steve On 10 Dec 2008, at 15:49, David Ness wrote: > Dear fx.php associates, > > I?ve just discovered that I might have a problem with my fx.php > solution, and wanted to know if anyone else has faced this and > developed a workaround. > > My online solution allows users to enter, save, edit and ?finalize? > application forms online. During the entry and processing of the > form, several pages are loaded and the form data is saved and > retrieved in various ways and at various points in the process. I > save the record ID of the FileMaker record into a $_SESSION variable > ($_SESSION['application_recid'], along with a whole bunch of other > $_SESSION variable values) in order keep track of the record I?m > working with. After the application reaches a certain status > (finalized), the record is no longer available for editing, only > review. > > My problem is that I?ve discovered some users were able to overwrite > a previously finalized record with a new record. Upon interviewing > the user, he mentioned he commonly opened a window with a previous > record to reference when entering a new record in another window or > tab within the same browser. > > My theory is that one array of $_SESSION variables is being ?shared? > among windows, and this is the root cause of my problem. So my > question is: are the $_SESSION variables shared among windows, or is > a separate set of $_SESSION variables created for each window? If > the $_SESSION variables *are* shared, what methods do you use to > prevent the unwanted co-mingling of variables? > > A little Googling seems to confirm this. Multiple windows seem to > share the same $_SESSION variables. Yikes! This fundamental > construct flaw in my program would initially seem to be really hard > to work around, as I would need to carry forward lots and lots of > variables using some other method. > > Ideas or comments? > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/b71432d6/attachment.html From sam at smilepix.com Wed Dec 10 07:25:56 2008 From: sam at smilepix.com (Sam Laundon) Date: Wed Dec 10 10:32:12 2008 Subject: [FX.php List] Problem displaying image in Container Message-ID: <31ADDEE4-7283-47AE-BF90-0A455E7899ED@smilepix.com> I had the problem solved years ago when hosting the FileMaker on my own computer, but not it has reared it's ugly head again. The following has worked for years: $Thumb ="../FX/image_proxy.php?FXimage=".vignereEncryptURL($resultData ['thumbnail'][0]); and in the body: Now I want to have a remote host of FileMaker. The above code works fine when the php files are hosted on the same server as the FileMaker Database. The thumbnail displays. In this new solution the FileMaker Server is at one IP address and the php web pages are at another IP address. In this configuration I can access all the fields in a record fine except for the container field which shows the broken icon. Is what I am trying to do possible? Does something need to be changed in the image_proxy.php file? Thanks in advance - Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/4504e5cc/attachment.html From sam at smilepix.com Wed Dec 10 12:57:03 2008 From: sam at smilepix.com (Sam Laundon) Date: Wed Dec 10 12:57:08 2008 Subject: [FX.php List] Problem displaying image in Container Message-ID: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> My apologies if this has been posted twice. I had the problem solved years ago when hosting the FileMaker on my own computer, but not it has reared it's ugly head again. The following has worked for years: $Thumb ="../FX/image_proxy.php?FXimage=".vignereEncryptURL($resultData ['thumbnail'][0]); and in the body: Now I want to have a remote host of FileMaker. The above code works fine when the php files are hosted on the same server as the FileMaker Database. The thumbnail displays. In this new solution the FileMaker Server is at one IP address and the php web pages are at another IP address. In this configuration I can access all the fields in a record fine except for the container field which shows the broken icon. Is what I am trying to do possible? Does something need to be changed in the image_proxy.php file? Thanks in advance - Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/2f7840b6/attachment-0001.html From dbengston at tds.net Wed Dec 10 14:44:29 2008 From: dbengston at tds.net (Dale Bengston) Date: Wed Dec 10 14:44:34 2008 Subject: [FX.php List] Problem displaying image in Container In-Reply-To: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> References: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> Message-ID: <19B5A3A4-BC66-42B8-A630-EF45DEA1E079@tds.net> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1582 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/872fe157/smime.bin From master at take-sat.de Wed Dec 10 15:01:58 2008 From: master at take-sat.de (Thomas Neumann) Date: Wed Dec 10 15:07:48 2008 Subject: [FX.php List] Problem displaying image in Container In-Reply-To: <19B5A3A4-BC66-42B8-A630-EF45DEA1E079@tds.net> References: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> <19B5A3A4-BC66-42B8-A630-EF45DEA1E079@tds.net> Message-ID: <49403C56.4020808@take-sat.de> An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081210/83f033ef/attachment.html From tim at nicheit.com.au Wed Dec 10 18:20:13 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Wed Dec 10 18:20:21 2008 Subject: [FX.php List] Problem displaying image in Container In-Reply-To: <49403C56.4020808@take-sat.de> References: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> <19B5A3A4-BC66-42B8-A630-EF45DEA1E079@tds.net> <49403C56.4020808@take-sat.de> Message-ID: >> >> On Dec 10, 2008, at 1:57 PM, Sam Laundon wrote: >> >>> My apologies if this has been posted twice. >>> >>> I had the problem solved years ago when hosting the FileMaker on >>> my own computer, but not it has reared it's ugly head again. >>> The following has worked for years: >>> >>> $Thumb ="../FX/image_proxy.php? >>> FXimage=".vignereEncryptURL($resultData['thumbnail'][0]); >>> and in the body: >>> >>> >>> Now I want to have a remote host of FileMaker. The above code >>> works fine when the php files are hosted on the same server as the >>> FileMaker Database. The thumbnail displays. >>> >>> In this new solution the FileMaker Server is at one IP address and >>> the php web pages are at another IP address. In this configuration >>> I can access all the fields in a record fine except for the >>> container field which shows the broken icon. >>> >>> Is what I am trying to do possible? Does something need to be >>> changed in the image_proxy.php file? This should work - http://office.nicheit.com.au/acph/detail.php?id=01 does exactly what you describe - the actual FM db is on a completely different machine... Oddly, this is about the third one of these issues I've heard about this week, but I can't make it happen myself And my exact code to make the page above work:

    -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081211/b61ad66e/attachment.html From ggt667 at gmail.com Thu Dec 11 01:02:31 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Dec 11 01:02:34 2008 Subject: [FX.php List] Problem displaying image in Container In-Reply-To: References: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> <19B5A3A4-BC66-42B8-A630-EF45DEA1E079@tds.net> <49403C56.4020808@take-sat.de> Message-ID: Well bringing out content from container fields... brings out the same bottle necks as IWP would do. ggt 2008/12/11 Tim 'Webko' Booth : > > > On Dec 10, 2008, at 1:57 PM, Sam Laundon wrote: > > My apologies if this has been posted twice. > > I had the problem solved years ago when hosting the FileMaker on my own > computer, but not it has reared it's ugly head again. > The following has worked for years: > $Thumb > ="../FX/image_proxy.php?FXimage=".vignereEncryptURL($resultData['thumbnail'][0]); > and in the body: > > Now I want to have a remote host of FileMaker. The above code works fine > when the php files are hosted on the same server as the FileMaker Database. > The thumbnail displays. > In this new solution the FileMaker Server is at one IP address and the php > web pages are at another IP address. In this configuration I can access all > the fields in a record fine except for the container field which shows the > broken icon. > Is what I am trying to do possible? Does something need to be changed in the > image_proxy.php file? > > This should work - http://office.nicheit.com.au/acph/detail.php?id=01 does > exactly what you describe - the actual FM db is on a completely different > machine... > Oddly, this is about the third one of these issues I've heard about this > week, but I can't make it happen myself > And my exact code to make the page above work: > $photo1="include/FX/image_proxy.php?FXimage=".vignereEncryptURL($thememorialData['ImageFile1'][0]); ?> >

    align="right" /> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From 1265 at lucerneblvd.org Thu Dec 11 13:05:29 2008 From: 1265 at lucerneblvd.org (david weiner) Date: Thu Dec 11 13:05:33 2008 Subject: [FX.php List] Problem displaying image in Container In-Reply-To: References: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> <19B5A3A4-BC66-42B8-A630-EF45DEA1E079@tds.net> <49403C56.4020808@take-sat.de> Message-ID: <2106c8ec0812111205p579a9558q90d47170f45eb5f1@mail.gmail.com> For what it's worth when I had a problem earlier this year I got in touch with Chris Hansen and he had me replace the image_proxy file with a new version he had worked on. Have you tried updating all the FX files to the most recent release? - David On Thu, Dec 11, 2008 at 12:02 AM, Gjermund Gusland Thorsen wrote: > Well bringing out content from container fields... > brings out the same bottle necks as IWP would do. > > ggt > > 2008/12/11 Tim 'Webko' Booth : > > > > > > On Dec 10, 2008, at 1:57 PM, Sam Laundon wrote: > > > > My apologies if this has been posted twice. > > > > I had the problem solved years ago when hosting the FileMaker on my own > > computer, but not it has reared it's ugly head again. > > The following has worked for years: > > $Thumb > > > ="../FX/image_proxy.php?FXimage=".vignereEncryptURL($resultData['thumbnail'][0]); > > and in the body: > > > > Now I want to have a remote host of FileMaker. The above code works fine > > when the php files are hosted on the same server as the FileMaker > Database. > > The thumbnail displays. > > In this new solution the FileMaker Server is at one IP address and the > php > > web pages are at another IP address. In this configuration I can access > all > > the fields in a record fine except for the container field which shows > the > > broken icon. > > Is what I am trying to do possible? Does something need to be changed in > the > > image_proxy.php file? > > > > This should work - http://office.nicheit.com.au/acph/detail.php?id=01does > > exactly what you describe - the actual FM db is on a completely different > > machine... > > Oddly, this is about the third one of these issues I've heard about this > > week, but I can't make it happen myself > > And my exact code to make the page above work: > > > > $photo1="include/FX/image_proxy.php?FXimage=".vignereEncryptURL($thememorialData['ImageFile1'][0]); > ?> > >

    > align="right" /> > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081211/24aef780/attachment.html From ggt667 at gmail.com Thu Dec 11 15:51:26 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Dec 11 15:51:29 2008 Subject: [FX.php List] Problem displaying image in Container In-Reply-To: <2106c8ec0812111205p579a9558q90d47170f45eb5f1@mail.gmail.com> References: <46C9DEBF-1951-4D46-B294-A0E980405557@smilepix.com> <19B5A3A4-BC66-42B8-A630-EF45DEA1E079@tds.net> <49403C56.4020808@take-sat.de> <2106c8ec0812111205p579a9558q90d47170f45eb5f1@mail.gmail.com> Message-ID: I am not sure if that file is in the release. ggt 2008/12/11 david weiner <1265@lucerneblvd.org>: > For what it's worth when I had a problem earlier this year I got in touch > with Chris Hansen and he had me replace the image_proxy file with a new > version he had worked on. > > Have you tried updating all the FX files to the most recent release? > > - David > > On Thu, Dec 11, 2008 at 12:02 AM, Gjermund Gusland Thorsen > wrote: >> >> Well bringing out content from container fields... >> brings out the same bottle necks as IWP would do. >> >> ggt >> >> 2008/12/11 Tim 'Webko' Booth : >> > >> > >> > On Dec 10, 2008, at 1:57 PM, Sam Laundon wrote: >> > >> > My apologies if this has been posted twice. >> > >> > I had the problem solved years ago when hosting the FileMaker on my own >> > computer, but not it has reared it's ugly head again. >> > The following has worked for years: >> > $Thumb >> > >> > ="../FX/image_proxy.php?FXimage=".vignereEncryptURL($resultData['thumbnail'][0]); >> > and in the body: >> > >> > Now I want to have a remote host of FileMaker. The above code works fine >> > when the php files are hosted on the same server as the FileMaker >> > Database. >> > The thumbnail displays. >> > In this new solution the FileMaker Server is at one IP address and the >> > php >> > web pages are at another IP address. In this configuration I can access >> > all >> > the fields in a record fine except for the container field which shows >> > the >> > broken icon. >> > Is what I am trying to do possible? Does something need to be changed in >> > the >> > image_proxy.php file? >> > >> > This should work - http://office.nicheit.com.au/acph/detail.php?id=01 >> > does >> > exactly what you describe - the actual FM db is on a completely >> > different >> > machine... >> > Oddly, this is about the third one of these issues I've heard about this >> > week, but I can't make it happen myself >> > And my exact code to make the page above work: >> > > > >> > $photo1="include/FX/image_proxy.php?FXimage=".vignereEncryptURL($thememorialData['ImageFile1'][0]); >> > ?> >> >

    > > align="right" /> >> > _______________________________________________ >> > 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 fmweb at belsaas.no Fri Dec 12 06:04:59 2008 From: fmweb at belsaas.no (Baard Belsaas) Date: Fri Dec 12 11:13:55 2008 Subject: [FX.php List] Trouble with mails in fx.php In-Reply-To: Message-ID: Hallo I have made a site in fx.php, but I get trouble to send email whwn I create a new post in Filemaker. The Norwegian letters ?/?-?/? and ?/? will not print the right way, like in the mail under where ?= ??. Do You have some ide how to resolve this? The aktual php-site is attached. YS Baard Belsaas Norway ------ Forwarded Message From: IGM Reply-To: IGM Date: Tue, 9 Dec 2008 00:05:36 +0100 (CET) To: Subject: IGM har mottatt en p??melding IGM har registrert en kursp??melding med nr 619. Kursplassen din vil bli bekreftet innen 1-3 dager p?? epost. ------ End of Forwarded Message ------ End of Forwarded Message -------------- next part -------------- A non-text attachment was scrubbed... Name: paamelding.php Type: application/octet-stream Size: 19497 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081212/904a1b58/paamelding-0001.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: paamelding2.php Type: application/octet-stream Size: 22400 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081212/904a1b58/paamelding2-0001.obj From bob at patin.com Fri Dec 12 11:35:29 2008 From: bob at patin.com (Bob Patin) Date: Fri Dec 12 11:35:34 2008 Subject: [FX.php List] Error reporting in PHP Message-ID: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> One of my clients is asking if I have errors supressed on one of my web servers, and in looking at PHPINFO, I'm not sure which variable I need to check for this. Could someone tell me what variable I should be looking at for supression of PHP errors, and also, what setting I *should* be using in order NOT to supress PHP errors? Thanks, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat/AIM: bobpatin FileMaker 9 Certified Developer Member of FileMaker Business Alliance -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From jschwartz at exit445.com Fri Dec 12 11:41:35 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 12 11:41:45 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> Message-ID: Hiya Bob, The 'display_errors' setting determines if any errors get displayed at all. The 'error_reporting' setting determines the level of errors that get displayed. The following displays errors, but not "Notices". ini_set ('display_errors',1); error_reporting (E_ALL & ~ E_NOTICE); HTH J At 12:35 PM -0600 12/12/08, Bob Patin wrote: >One of my clients is asking if I have errors supressed on one of my >web servers, and in looking at PHPINFO, I'm not sure which variable >I need to check for this. > >Could someone tell me what variable I should be looking at for >supression of PHP errors, and also, what setting I *should* be using >in order NOT to supress PHP errors? > >Thanks, > >Bob Patin >Longterm Solutions LLC >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com >iChat/AIM: bobpatin >FileMaker 9 Certified Developer >Member of FileMaker Business Alliance >-------------------------- >FileMaker hosting and consulting for all versions of FileMaker >PHP * 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 -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From bob at patin.com Fri Dec 12 11:53:51 2008 From: bob at patin.com (Bob Patin) Date: Fri Dec 12 11:53:57 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> Message-ID: You are a man of wisdom. :) So I can either change the PHP.ini setting to ON or else use ini_set ('display_errors',1); is that right? Thanks, BP On Dec 12, 2008, at 12:41 PM, Jonathan Schwartz wrote: > Hiya Bob, > > The 'display_errors' setting determines if any errors get displayed > at all. > > The 'error_reporting' setting determines the level of errors that > get displayed. > > The following displays errors, but not "Notices". > ini_set ('display_errors',1); > error_reporting (E_ALL & ~ E_NOTICE); > > HTH > > J > > At 12:35 PM -0600 12/12/08, Bob Patin wrote: >> One of my clients is asking if I have errors supressed on one of my >> web servers, and in looking at PHPINFO, I'm not sure which variable >> I need to check for this. >> >> Could someone tell me what variable I should be looking at for >> supression of PHP errors, and also, what setting I *should* be >> using in order NOT to supress PHP errors? >> >> Thanks, >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat/AIM: bobpatin >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP * 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 > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081212/7bdfbd69/attachment.html From jschwartz at exit445.com Fri Dec 12 12:03:30 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 12 12:06:36 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> Message-ID: I'm a friend of yours. How much wisdom could I have . ;-) Suppressing errors on the whole server would affect all solutions. Perhaps you want errors on solutions in development or debug mode. In my opinion, better to suppress on the page or in a solution wide include file. BTW, ON is either "1" or "On" or "True". OFF is either ")" or "OFF" or "False" Depends on the your server. J At 12:53 PM -0600 12/12/08, Bob Patin wrote: >You are a man of wisdom. :) > >So I can either change the PHP.ini setting to ON or else use > >ini_set ('display_errors',1); > >is that right? > >Thanks, > >BP > > > >On Dec 12, 2008, at 12:41 PM, Jonathan Schwartz wrote: > >>Hiya Bob, >> >>The 'display_errors' setting determines if any errors get displayed at all. >> >>The 'error_reporting' setting determines the level of errors that >>get displayed. >> >>The following displays errors, but not "Notices". >>ini_set ('display_errors',1); >>error_reporting (E_ALL & ~ E_NOTICE); >> >>HTH >> >>J >> >>At 12:35 PM -0600 12/12/08, Bob Patin wrote: >> >>>One of my clients is asking if I have errors supressed on one of >>>my web servers, and in looking at PHPINFO, I'm not sure which >>>variable I need to check for this. >>> >>> >>>Could someone tell me what variable I should be looking at for >>>supression of PHP errors, and also, what setting I *should* be >>>using in order NOT to supress PHP errors? >>> >>> >>>Thanks, >>> >>> >>>Bob Patin >>> >>>Longterm Solutions LLC >>> >>>bob@longtermsolutions.com >>> >>>615-333-6858 >>> >>>http://www.longtermsolutions.com >>> >>>iChat/AIM: bobpatin >>> >>>FileMaker 9 Certified Developer >>> >>>Member of FileMaker Business Alliance >>> >>>-------------------------- >>> >>>FileMaker hosting and consulting for all versions of FileMaker >>> >>>PHP * 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 >>> >> >> >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>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-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081212/6da866ab/attachment.html From sam at smilepix.com Fri Dec 12 13:03:55 2008 From: sam at smilepix.com (Sam Laundon) Date: Fri Dec 12 13:04:01 2008 Subject: [FX.php List] Re: FX.php_List Digest, Vol 53, Issue 14 In-Reply-To: <20081212181357.9A42E189363@mail.iviking.org> References: <20081212181357.9A42E189363@mail.iviking.org> Message-ID: <2AFB8403-11C6-4002-9619-2986E7B315DA@smilepix.com> Thank you all for trying to help me with this issue. I have changed my mind because of the problems involved and have decided to reference the jpg files instead of having them in a container. Eliminating the container also drastically reduces the file size of the database (10,000 records) and because I am not going to host it myself anymore, that will make a big difference. Exporting FileMaker containers as jpg files has brought up a host of other issues which I am close to solving and would be happy to pass on the information if anyone is interested. Thanks again - Sam On Dec 12, 2008, at 1:13 PM, fx.php_list-request@mail.iviking.org wrote: > 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. Re: Problem displaying image in Container (david weiner) > 2. Re: Problem displaying image in Container > (Gjermund Gusland Thorsen) > 3. Trouble with mails in fx.php (Baard Belsaas) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 11 Dec 2008 12:05:29 -0800 > From: "david weiner" <1265@lucerneblvd.org> > Subject: Re: [FX.php List] Problem displaying image in Container > To: "FX.php Discussion List" > Message-ID: > <2106c8ec0812111205p579a9558q90d47170f45eb5f1@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > For what it's worth when I had a problem earlier this year I got in > touch > with Chris Hansen and he had me replace the image_proxy file with a > new > version he had worked on. > > Have you tried updating all the FX files to the most recent release? > > - David > > On Thu, Dec 11, 2008 at 12:02 AM, Gjermund Gusland Thorsen > > wrote: > >> Well bringing out content from container fields... >> brings out the same bottle necks as IWP would do. >> >> ggt >> >> 2008/12/11 Tim 'Webko' Booth : >>> >>> >>> On Dec 10, 2008, at 1:57 PM, Sam Laundon wrote: >>> >>> My apologies if this has been posted twice. >>> >>> I had the problem solved years ago when hosting the FileMaker on >>> my own >>> computer, but not it has reared it's ugly head again. >>> The following has worked for years: >>> $Thumb >>> >> ="../FX/image_proxy.php?FXimage=".vignereEncryptURL($resultData >> ['thumbnail'][0]); >>> and in the body: >>> >>> Now I want to have a remote host of FileMaker. The above code >>> works fine >>> when the php files are hosted on the same server as the FileMaker >> Database. >>> The thumbnail displays. >>> In this new solution the FileMaker Server is at one IP address >>> and the >> php >>> web pages are at another IP address. In this configuration I can >>> access >> all >>> the fields in a record fine except for the container field which >>> shows >> the >>> broken icon. >>> Is what I am trying to do possible? Does something need to be >>> changed in >> the >>> image_proxy.php file? >>> >>> This should work - http://office.nicheit.com.au/acph/detail.php? >>> id=01does >>> exactly what you describe - the actual FM db is on a completely >>> different >>> machine... >>> Oddly, this is about the third one of these issues I've heard >>> about this >>> week, but I can't make it happen myself >>> And my exact code to make the page above work: >>> >> >> $photo1="include/FX/image_proxy.php?FXimage=".vignereEncryptURL >> ($thememorialData['ImageFile1'][0]); >> ?> >>>

    >> align="right" /> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/ > 20081211/24aef780/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Thu, 11 Dec 2008 23:51:26 +0100 > From: "Gjermund Gusland Thorsen" > Subject: Re: [FX.php List] Problem displaying image in Container > To: "FX.php Discussion List" > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > I am not sure if that file is in the release. > > ggt > > 2008/12/11 david weiner <1265@lucerneblvd.org>: >> For what it's worth when I had a problem earlier this year I got >> in touch >> with Chris Hansen and he had me replace the image_proxy file with >> a new >> version he had worked on. >> >> Have you tried updating all the FX files to the most recent release? >> >> - David >> >> On Thu, Dec 11, 2008 at 12:02 AM, Gjermund Gusland Thorsen >> wrote: >>> >>> Well bringing out content from container fields... >>> brings out the same bottle necks as IWP would do. >>> >>> ggt >>> >>> 2008/12/11 Tim 'Webko' Booth : >>>> >>>> >>>> On Dec 10, 2008, at 1:57 PM, Sam Laundon wrote: >>>> >>>> My apologies if this has been posted twice. >>>> >>>> I had the problem solved years ago when hosting the FileMaker on >>>> my own >>>> computer, but not it has reared it's ugly head again. >>>> The following has worked for years: >>>> $Thumb >>>> >>>> ="../FX/image_proxy.php?FXimage=".vignereEncryptURL($resultData >>>> ['thumbnail'][0]); >>>> and in the body: >>>> >>>> Now I want to have a remote host of FileMaker. The above code >>>> works fine >>>> when the php files are hosted on the same server as the FileMaker >>>> Database. >>>> The thumbnail displays. >>>> In this new solution the FileMaker Server is at one IP address >>>> and the >>>> php >>>> web pages are at another IP address. In this configuration I can >>>> access >>>> all >>>> the fields in a record fine except for the container field which >>>> shows >>>> the >>>> broken icon. >>>> Is what I am trying to do possible? Does something need to be >>>> changed in >>>> the >>>> image_proxy.php file? >>>> >>>> This should work - http://office.nicheit.com.au/acph/detail.php? >>>> id=01 >>>> does >>>> exactly what you describe - the actual FM db is on a completely >>>> different >>>> machine... >>>> Oddly, this is about the third one of these issues I've heard >>>> about this >>>> week, but I can't make it happen myself >>>> And my exact code to make the page above work: >>>> >>> >>>> $photo1="include/FX/image_proxy.php?FXimage=".vignereEncryptURL >>>> ($thememorialData['ImageFile1'][0]); >>>> ?> >>>>

    >>> align="right" /> >>>> _______________________________________________ >>>> 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 >> >> > > > ------------------------------ > > Message: 3 > Date: Fri, 12 Dec 2008 14:04:59 +0100 > From: Baard Belsaas > Subject: [FX.php List] Trouble with mails in fx.php > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Hallo > > I have made a site in fx.php, but I get trouble to send email whwn > I create > a new post in Filemaker. The Norwegian letters ?/?-?/? and ?/? will > not > print the right way, like in the mail under where ?= ??. > > Do You have some ide how to resolve this? The aktual php-site is > attached. > > > YS > Baard Belsaas > Norway > > ------ Forwarded Message > From: IGM > Reply-To: IGM > Date: Tue, 9 Dec 2008 00:05:36 +0100 (CET) > To: > Subject: IGM har mottatt en p??melding > > IGM har registrert en kursp??melding med nr 619. Kursplassen din > vil bli > bekreftet innen 1-3 dager p?? epost. > > > ------ End of Forwarded Message > > ------ End of Forwarded Message > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: paamelding.php > Type: application/octet-stream > Size: 19497 bytes > Desc: not available > Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/ > 20081212/904a1b58/paamelding.obj > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: paamelding2.php > Type: application/octet-stream > Size: 22400 bytes > Desc: not available > Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/ > 20081212/904a1b58/paamelding2.obj > > ------------------------------ > > _______________________________________________ > 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 53, Issue 14 > ******************************************* ---------- Sam Laundon SmilePix "Picturing the Perfect Smile" http://www.smilepix.com 866-532-1843 From dbengston at tds.net Fri Dec 12 13:09:39 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 12 13:09:45 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> Message-ID: <4F89648B-A321-445C-8B56-15EABB3FC544@tds.net> Bob, I have had mixed results using ini_set() on client servers, particularly linux and Windows. I use: error_reporting (E_ALL); ... as part of the debug code for all my sites. Dale On Dec 12, 2008, at 1:03 PM, Jonathan Schwartz wrote: > I'm a friend of yours. How much wisdom could I have . ;-) > > Suppressing errors on the whole server would affect all solutions. > Perhaps you want errors on solutions in development or debug mode. > In my opinion, better to suppress on the page or in a solution wide > include file. > > BTW, ON is either "1" or "On" or "True". OFF is either ")" or "OFF" > or "False" > > Depends on the your server. > > J > > At 12:53 PM -0600 12/12/08, Bob Patin wrote: >> You are a man of wisdom. :) >> >> So I can either change the PHP.ini setting to ON or else use >> >> ini_set ('display_errors',1); >> >> is that right? >> >> Thanks, >> >> BP >> >> >> >> On Dec 12, 2008, at 12:41 PM, Jonathan Schwartz wrote: >> >>> Hiya Bob, >>> >>> The 'display_errors' setting determines if any errors get >>> displayed at all. >>> >>> The 'error_reporting' setting determines the level of errors that >>> get displayed. >>> >>> The following displays errors, but not "Notices". >>> ini_set ('display_errors',1); >>> error_reporting (E_ALL & ~ E_NOTICE); >>> >>> HTH >>> >>> J >>> >>> At 12:35 PM -0600 12/12/08, Bob Patin wrote: >>>> One of my clients is asking if I have errors supressed on one of >>>> my web servers, and in looking at PHPINFO, I'm not sure which >>>> variable I need to check for this. >>>> >>>> Could someone tell me what variable I should be looking at for >>>> supression of PHP errors, and also, what setting I *should* be >>>> using in order NOT to supress PHP errors? >>>> >>>> Thanks, >>>> >>>> Bob Patin >>>> Longterm Solutions LLC >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> iChat/AIM: bobpatin >>>> FileMaker 9 Certified Developer >>>> Member of FileMaker Business Alliance >>>> -------------------------- >>>> FileMaker hosting and consulting for all versions of FileMaker >>>> PHP * 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 >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> 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-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081212/3acf8e6b/attachment.html From bob at patin.com Fri Dec 12 14:19:17 2008 From: bob at patin.com (Bob Patin) Date: Fri Dec 12 14:19:23 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: <4F89648B-A321-445C-8B56-15EABB3FC544@tds.net> References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> <4F89648B-A321-445C-8B56-15EABB3FC544@tds.net> Message-ID: <83334410-B03A-407D-A1A5-F09BA13434C7@patin.com> What about on a Mac server running OS X Server? I rarely venture out to servers other than my own... :) Should I leave my PHP settings as they are, with display_errors set to OFF? That's how it was set when I installed OS X Server... More specifically, if I do turn it on, will it then report the stupid typos that I make that cause me to waste time? :) BP On Dec 12, 2008, at 2:09 PM, Dale Bengston wrote: > I have had mixed results using ini_set() on client servers, > particularly linux and Windows. I use: > > error_reporting (E_ALL); > > ... as part of the debug code for all my sites. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081212/1426ca9e/attachment.html From jschwartz at exit445.com Fri Dec 12 14:35:49 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 12 14:36:40 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: <83334410-B03A-407D-A1A5-F09BA13434C7@patin.com> References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> <4F89648B-A321-445C-8B56-15EABB3FC544@tds.net> <83334410-B03A-407D-A1A5-F09BA13434C7@patin.com> Message-ID: At 3:19 PM -0600 12/12/08, Bob Patin wrote: > >More specifically, if I do turn it on, will it >then report the stupid typos that I make that >cause me to waste time? :) > >BP Isn't that when you WANT to see the error...to identify it more quickly? In my opinion, this whole subject of Error Handling doesn't get the attention it deserves. It's the other side...the dark side...of code that doesn't work perfectly in all situations, whether the error is user error, server error, FMP error, data error, communications error, intentional hacking, and on. I've beefed up my own error handling over the past year with improvements to logging, email notifications, etc. I would love to see a DevCon session devoted to error handling. My 2?. I'll get of my soap box now. J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From headhoncho at customikesolutions.com Fri Dec 12 15:00:12 2008 From: headhoncho at customikesolutions.com (Head Honcho) Date: Fri Dec 12 15:00:19 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> Message-ID: <928FE63B-500D-4461-97CE-1B0EB50E962E@customikesolutions.com> Hi Bob, On 13/12/2008, at 5:35 AM, Bob Patin wrote: > One of my clients is asking if I have errors supressed on one of my > web servers, and in looking at PHPINFO, I'm not sure which variable > I need to check for this. > > Could someone tell me what variable I should be looking at for > supression of PHP errors, and also, what setting I *should* be using > in order NOT to supress PHP errors? This gives you a good start on error reporting: Regards Michael Ward -- Head Honcho CustoMike Solutions Member, FileMaker Business Alliance Member, FileMaker Technical Network FileMaker 7 Certified Developer FileMaker 8 Certified Developer FileMaker 9 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From bob at patin.com Fri Dec 12 15:03:00 2008 From: bob at patin.com (Bob Patin) Date: Fri Dec 12 15:03:05 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: <928FE63B-500D-4461-97CE-1B0EB50E962E@customikesolutions.com> References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> <928FE63B-500D-4461-97CE-1B0EB50E962E@customikesolutions.com> Message-ID: <0DEC4D2D-C7DE-447D-8DE6-C7C3E98607C1@patin.com> Very cool! Thanks Michael; hope you're doing well. Best, BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat/AIM: bobpatin FileMaker 9 Certified Developer Member of FileMaker Business Alliance -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 12, 2008, at 4:00 PM, Head Honcho wrote: > Hi Bob, > > On 13/12/2008, at 5:35 AM, Bob Patin wrote: > >> One of my clients is asking if I have errors supressed on one of my >> web servers, and in looking at PHPINFO, I'm not sure which variable >> I need to check for this. >> >> Could someone tell me what variable I should be looking at for >> supression of PHP errors, and also, what setting I *should* be >> using in order NOT to supress PHP errors? > > This gives you a good start on error reporting: > > > > Regards > > Michael Ward > -- > Head Honcho > CustoMike Solutions > Member, FileMaker Business Alliance > Member, FileMaker Technical Network > FileMaker 7 Certified Developer > FileMaker 8 Certified Developer > FileMaker 9 Certified Developer > 10 Wandoo Crt > Wheelers Hill, 3150 > ph 0414 562 501 > headhoncho@customikesolutions.com > > > > _______________________________________________ > 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 Dec 12 15:17:44 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 12 15:17:49 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: <83334410-B03A-407D-A1A5-F09BA13434C7@patin.com> References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> <4F89648B-A321-445C-8B56-15EABB3FC544@tds.net> <83334410-B03A-407D-A1A5-F09BA13434C7@patin.com> Message-ID: <28ACDFFD-1238-4F8F-BB57-C9886EF2608A@tds.net> Actually, I think that pertains to the Leopard install of PHP as well - errors didn't show unless I used error_reporting(E_ALL). i'd leave the settings alone on your server and control it at the page level. Dale On Dec 12, 2008, at 3:19 PM, Bob Patin wrote: > What about on a Mac server running OS X Server? I rarely venture out > to servers other than my own... :) > > Should I leave my PHP settings as they are, with display_errors set > to OFF? That's how it was set when I installed OS X Server... > > More specifically, if I do turn it on, will it then report the > stupid typos that I make that cause me to waste time? :) > > BP > > On Dec 12, 2008, at 2:09 PM, Dale Bengston wrote: > >> I have had mixed results using ini_set() on client servers, >> particularly linux and Windows. I use: >> >> error_reporting (E_ALL); >> >> ... as part of the debug code for all my sites. > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081212/cbdc0dda/attachment-0001.html From tim at nicheit.com.au Sun Dec 14 19:57:47 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Sun Dec 14 19:57:54 2008 Subject: [FX.php List] Error reporting in PHP In-Reply-To: <28ACDFFD-1238-4F8F-BB57-C9886EF2608A@tds.net> References: <762284E6-456C-4209-B3D1-BBBC6AF21F42@patin.com> <4F89648B-A321-445C-8B56-15EABB3FC544@tds.net> <83334410-B03A-407D-A1A5-F09BA13434C7@patin.com> <28ACDFFD-1238-4F8F-BB57-C9886EF2608A@tds.net> Message-ID: On 13/12/2008, at 9:17 AM, Dale Bengston wrote: > Actually, I think that pertains to the Leopard install of PHP as > well - errors didn't show unless I used error_reporting(E_ALL). i'd > leave the settings alone on your server and control it at the page > level. Indeed - if I need this control, I usually include it in my FX server data file, as I *know* that will already be called on every page in a particular solution... Cheers Webko From chris at iViking.org Tue Dec 16 11:08:44 2008 From: chris at iViking.org (Chris Hansen) Date: Tue Dec 16 11:08:46 2008 Subject: [FX.php List] Problem displaying image in Container In-Reply-To: <31ADDEE4-7283-47AE-BF90-0A455E7899ED@smilepix.com> References: <31ADDEE4-7283-47AE-BF90-0A455E7899ED@smilepix.com> Message-ID: <9414095E-3188-4771-A24F-FBA971970348@iViking.org> Sorry about the slow response folks... Busy, busy, busy... :-p The image_proxy.php file uses the settings in server_data.php to know where to point for the needed data. Make sure that file is up-to-date. --Chris On Dec 10, 2008, at 7:25 AM, Sam Laundon wrote: > I had the problem solved years ago when hosting the FileMaker on my > own computer, but not it has reared it's ugly head again. > The following has worked for years: > > $Thumb ="../FX/image_proxy.php? > FXimage=".vignereEncryptURL($resultData['thumbnail'][0]); > and in the body: > > > Now I want to have a remote host of FileMaker. The above code works > fine when the php files are hosted on the same server as the > FileMaker Database. The thumbnail displays. > > In this new solution the FileMaker Server is at one IP address and > the php web pages are at another IP address. In this configuration I > can access all the fields in a record fine except for the container > field which shows the broken icon. > > Is what I am trying to do possible? Does something need to be > changed in the image_proxy.php file? > > Thanks in advance - Sam > > > _______________________________________________ > 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 Tue Dec 16 16:16:02 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 16 16:16:05 2008 Subject: [FX.php List] [OT] FileMaker Server backups Message-ID: The clean and nice way, as I picture it in my head, My setup XServe with 3x 75GB RAID5 2 external drives Seagate FreeAgent Pro in my case Here is the deal, FileMaker Server can not serve or do backups to internal volumes, and 135 GB is sometimes too little for a database set and backup here is how I configured mine: RAID has two folders: databases and backups external drive 1 has MacOS X and the temporary files for rebuilding a crashed database external drive 2 has an external backup or 3 actually; Monday Wedneday Friday all done at 03:00 hrs ggt667 From dw at coredbs.com Wed Dec 17 12:06:24 2008 From: dw at coredbs.com (David Walton) Date: Wed Dec 17 13:03:33 2008 Subject: [FX.php List] FMPServer 9: Performance Issues Message-ID: I have sites hosted on two instances of Filemaker Server 9 running on Mac OS X 10.5 Server, interacting with Apache for CWP. Both machines have fast processors and lots of RAM. In one instance, both FMPS and the WPE are on the same machine. In the second instance, FMPS is on one machine, and Apache and the WPE are on the other machine. Both sites receive fairly heavy traffic with lots of CWP interactions using FX. My issue is that performance gradually deteriorates. After restart, things move well. But, according to Activity Monitor, nearly all Free RAM is consumed by the end of the day. And things get comparably slow. I write to ask if others have suggestions on how to optimize long-term performance, or if there is a reference which lists best practices for server configurations. (I have FMPS configured for peak performance, I believe.) Any suggestions would be welcomed and appreciated. Best, DSW -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081217/ef58c266/attachment.html From STEVE at BLUECROCODILE.CO.NZ Thu Dec 18 16:11:51 2008 From: STEVE at BLUECROCODILE.CO.NZ (Steve Winter) Date: Thu Dec 18 16:11:57 2008 Subject: [FX.php List] XML login failing Message-ID: Hi all, I've got a really weird situation that I've never seen before, and which I can't seem to resolve... We've just set up a new FMSA 9 server, uploaded a number of databases, and some code from an existing server. Some of the databases will play happily, but two of them simply won't... If I turn on debug, then I get links generated as I would expect... on one page I have three db calls, two to one database which fail, one to a different db which is fine... When I click on the debug links for the two calls to the db that fail I get prompted to login, which I try to do, using the credentials for the db, but it just fails... with the link that does work, I don't get prompted for the username and password, I just get the XMl data as I would expect... I tried turning off the XML permission for the files that are a problem, and when I do that I correctly get an 802 error back... turn XML interface back on, I get an FX error...!!! The weirdest thing is that I have the exact same dbs running on a different installation, which is fine... This is the latest updates of FMSA 9 on Win 2k3, IIS... Anyone seen this before or got any ideas... this is really doing my head in...!! Thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081218/ba0ca3ee/attachment.html From dbengston at tds.net Thu Dec 18 16:50:20 2008 From: dbengston at tds.net (Dale Bengston) Date: Thu Dec 18 16:50:25 2008 Subject: [FX.php List] XML login failing In-Reply-To: References: Message-ID: <4C9EC50D-626E-46A3-B791-97E736176336@tds.net> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1582 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081218/a6af549d/smime.bin From steve at bluecrocodile.co.nz Fri Dec 19 00:09:42 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Dec 19 00:09:51 2008 Subject: [FX.php List] XML login failing In-Reply-To: <4C9EC50D-626E-46A3-B791-97E736176336@tds.net> References: <4C9EC50D-626E-46A3-B791-97E736176336@tds.net> Message-ID: Hi Dale, I stopped the FMS they were on. Zipped up the files. used ftp to transfer the zip file. Unzipped them, to the desktop, then opened the FMSA admin panel and did a 'load database'... Thanks Steve On 18 Dec 2008, at 23:50, Dale Bengston wrote: > Hi Steve, > > What medium did you use to transfer the files from one server to the > other? > > Dale > > On Dec 18, 2008, at 5:11 PM, Steve Winter wrote: > >> Hi all, >> >> I've got a really weird situation that I've never seen before, and >> which I can't seem to resolve... >> >> We've just set up a new FMSA 9 server, uploaded a number of >> databases, and some code from an existing server. Some of the >> databases will play happily, but two of them simply won't... If I >> turn on debug, then I get links generated as I would expect... on >> one page I have three db calls, two to one database which fail, one >> to a different db which is fine... >> >> When I click on the debug links for the two calls to the db that >> fail I get prompted to login, which I try to do, using the >> credentials for the db, but it just fails... with the link that >> does work, I don't get prompted for the username and password, I >> just get the XMl data as I would expect... >> >> I tried turning off the XML permission for the files that are a >> problem, and when I do that I correctly get an 802 error back... >> turn XML interface back on, I get an FX error...!!! >> >> The weirdest thing is that I have the exact same dbs running on a >> different installation, which is fine... >> >> This is the latest updates of FMSA 9 on Win 2k3, IIS... >> >> Anyone seen this before or got any ideas... this is really doing my >> head in...!! >> >> Thanks >> Steve >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081219/76103e2e/attachment-0001.html From dbengston at tds.net Fri Dec 19 11:06:25 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 19 11:06:31 2008 Subject: [FX.php List] XML login failing In-Reply-To: References: <4C9EC50D-626E-46A3-B791-97E736176336@tds.net> Message-ID: <0D4DA559-3B44-4B0B-8F54-D8656F572E46@tds.net> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1582 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20081219/a0365e8d/smime.bin From jsfmp at earthlink.net Fri Dec 19 11:51:34 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Dec 19 11:51:41 2008 Subject: [FX.php List] XML login failing In-Reply-To: References: Message-ID: <2A7EE308-AA4E-4321-94A6-BCA9581C0ACD@earthlink.net> Hey Steve Just taking stabs... Is the 'web' account set to Active in FMP? Is the 'web' account set to the correct privilege set with fmxml extended privileges? If you're using some form of file separation in FMP (data & web), are the above set in all relevant files? Can you connect to the problem file in FMP client? Can you try adding the fmapp extended priv. to the 'web' account priv. set and then try connecting in FMP using that 'web' acct? ... -Joel On Dec 18, 2008, at 3:11 PM, Steve Winter wrote: > Hi all, > > I've got a really weird situation that I've never seen before, and > which I can't seem to resolve... > > We've just set up a new FMSA 9 server, uploaded a number of > databases, and some code from an existing server. Some of the > databases will play happily, but two of them simply won't... If I > turn on debug, then I get links generated as I would expect... on > one page I have three db calls, two to one database which fail, one > to a different db which is fine... > > When I click on the debug links for the two calls to the db that > fail I get prompted to login, which I try to do, using the > credentials for the db, but it just fails... with the link that > does work, I don't get prompted for the username and password, I > just get the XMl data as I would expect... > > I tried turning off the XML permission for the files that are a > problem, and when I do that I correctly get an 802 error back... > turn XML interface back on, I get an FX error...!!! > > The weirdest thing is that I have the exact same dbs running on a > different installation, which is fine... > > This is the latest updates of FMSA 9 on Win 2k3, IIS... > > Anyone seen this before or got any ideas... this is really doing my > head in...!! > > Thanks > Steve > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list