From ggt667 at gmail.com Wed Jul 1 11:26:42 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Jul 1 11:26:46 2009 Subject: [FX.php List] [OT] iPhone interface Anyone looked at this? Message-ID: http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone/. From jfunk at criticalsolution.com Thu Jul 2 05:35:06 2009 From: jfunk at criticalsolution.com (John Funk) Date: Thu Jul 2 05:35:11 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result Message-ID: In my solution the user fills out a from to request a label, the label record is created and shown on a php from. Now my client wants to have the user to be able to enter the number of labels required and each label ( a diferent FM record) presented to the user on a separate web page, one after one. Is there a php function /class I could use to print? And then I could find the next record and display. Thanks John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/341b5d54/attachment.html From steve at bluecrocodile.co.nz Thu Jul 2 05:46:43 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Jul 2 05:46:51 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: Message-ID: <2E7800F9-603B-4034-8EAB-45D571428927@bluecrocodile.co.nz> Hi John, Not sure that I follow, but I'll throw up a few ideas and see what sticks... 1. what about using fpdf to create a multipage pdf document which contains all the labels, which the user can then print...? 2. css does offer 'pagebreak' options, which most modern browsers will obey, so you could insert those between the labels, on just one page... 3. you could show the first label, use javascript to pop-up the users print dialog, so that they can print that doc, then have a 'NEXT LABEL' button at the top of the label which takes the user to the next page in the set, and use a print specific css sheet to hide that button... Any help...? did I miss the point completely...?? Cheers Steve On 2 Jul 2009, at 12:35, John Funk wrote: > In my solution the user fills out a from to request a label, the > label record is created and shown on a php from. > Now my client wants to have the user to be able to enter the number > of labels required and each label ( a diferent FM record) presented > to the user on a separate web page, one after one. > Is there a php function /class I could use to print? And then I > could find the next record and display. > Thanks > John > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/8f087e66/attachment.html From jfunk at criticalsolution.com Thu Jul 2 06:01:42 2009 From: jfunk at criticalsolution.com (John Funk) Date: Thu Jul 2 06:01:48 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <2E7800F9-603B-4034-8EAB-45D571428927@bluecrocodile.co.nz> Message-ID: I like option 1 but I already have my php page that builds the label in html. Looks like I would need to reconstruct the page withfpdf? Option 2 seem the most logical.....is there any PHP function / code that will do the printing from a button? I?d like to stay away from java. Option 3, again Javascript.... Good ideas, thanks On 7/2/09 6:46 AM, "Steve Winter" wrote: > Hi John, > > Not sure that I follow, but I'll throw up a few ideas and see what sticks... > > 1. what about using fpdf to create a multipage pdf document which contains all > the labels, which the user can then print...? > 2. css does offer 'pagebreak' options, which most modern browsers will obey, > so you could insert those between the labels, on just one page... > 3. you could show the first label, use javascript to pop-up the users print > dialog, so that they can print that doc, then have a 'NEXT LABEL' button at > the top of the label which takes the user to the next page in the set, and use > a print specific css sheet to hide that button... > > Any help...? did I miss the point completely...?? > > Cheers > Steve > > On 2 Jul 2009, at 12:35, John Funk wrote: > >> In my solution the user fills out a from to request a label, the label >> record is created and shown on a php from. >> Now my client wants to have the user to be able to enter the number of >> labels required and each label ( a diferent FM record) presented to the user >> on a separate web page, one after one. >> Is there a php function /class I could use to print? And then I could find >> the next record and display. >> Thanks >> John >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court, Channel Way > Ocean Village, Southampton SO14 3GR > > > > > _______________________________________________ > 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/20090702/014fbb5c/attachment.html From dbengston at tds.net Thu Jul 2 06:26:19 2009 From: dbengston at tds.net (Dale Bengston) Date: Thu Jul 2 06:26:32 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: Message-ID: <53E1D5DD-01E1-459E-A6E5-C8DAAA9DB1CB@tds.net> Hi John, If you're attempting to reproduce a precise layout with perfectly- positioned elements for printing, I'd go with PDF creation. CSS/HTML is just not a great, consistent cross-platform environment for printing. If it doesn't matter so much what the final result looks like, then CSS/HTML is much more convenient to code. Dale On Jul 2, 2009, at 7:01 AM, John Funk wrote: > I like option 1 but I already have my php page that builds the label > in html. Looks like I would need to reconstruct the page withfpdf? > Option 2 seem the most logical.....is there any PHP function / code > that will do the printing from a button? I?d like to stay away from > java. > Option 3, again Javascript.... > > Good ideas, thanks > > > On 7/2/09 6:46 AM, "Steve Winter" wrote: > >> Hi John, >> >> Not sure that I follow, but I'll throw up a few ideas and see what >> sticks... >> >> 1. what about using fpdf to create a multipage pdf document which >> contains all the labels, which the user can then print...? >> 2. css does offer 'pagebreak' options, which most modern browsers >> will obey, so you could insert those between the labels, on just >> one page... >> 3. you could show the first label, use javascript to pop-up the >> users print dialog, so that they can print that doc, then have a >> 'NEXT LABEL' button at the top of the label which takes the user to >> the next page in the set, and use a print specific css sheet to >> hide that button... >> >> Any help...? did I miss the point completely...?? >> >> Cheers >> Steve >> >> On 2 Jul 2009, at 12:35, John Funk wrote: >> >>> In my solution the user fills out a from to request a label, the >>> label record is created and shown on a php from. >>> Now my client wants to have the user to be able to enter the >>> number of labels required and each label ( a diferent FM record) >>> presented to the user on a separate web page, one after one. >>> Is there a php function /class I could use to print? And then I >>> could find the next record and display. >>> Thanks >>> John >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> Steve Winter >> steve@bluecrocodile.co.nz >> m: +44 77 7852 4776 >> 3 Calshot Court, Channel Way >> Ocean Village, Southampton SO14 3GR >> >> >> >> _______________________________________________ >> 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/20090702/72ea68cc/attachment-0001.html From steve at bluecrocodile.co.nz Thu Jul 2 06:27:07 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Jul 2 06:27:24 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: Message-ID: <13EEF113-6C90-4D21-8A1B-1BB5FEB9D5F0@bluecrocodile.co.nz> Hi John, I'd suggest staying far, far away from Java...! though I presume in this instance you mean JavaScript... and unfortunately if you want to do anything client-side that's really your only option (other than plugins, or Java, or flash or some other technology), and I'm afraid the triggering the print dialog needs to be done client side.... note that this won't actually print the document, it has the same effect as the user doing CTRL-P or CMD-P on their keyboard, they then need to click the 'ok' button... Yes, option one involves re-writing what you've already done, however my experience in this is that anything which you want the user to print, and in which the layout/formatting is important, is best managed through a pdf... it's why when you checkin online with most airlines you end up with a pdf... The css pagebreak code works, to some degree or another, but it's far from 'bullet-proof', see http://reference.sitepoint.com/css/page-break-after#compatibilitysection for more on this... Option 3, yes, it involves javascript, however it only involves minor changes to the label generation functionality that you have now... Cheers Steve On 2 Jul 2009, at 13:01, John Funk wrote: > I like option 1 but I already have my php page that builds the label > in html. Looks like I would need to reconstruct the page withfpdf? > Option 2 seem the most logical.....is there any PHP function / code > that will do the printing from a button? I?d like to stay away from > java. > Option 3, again Javascript.... > > Good ideas, thanks > > > On 7/2/09 6:46 AM, "Steve Winter" wrote: > >> Hi John, >> >> Not sure that I follow, but I'll throw up a few ideas and see what >> sticks... >> >> 1. what about using fpdf to create a multipage pdf document which >> contains all the labels, which the user can then print...? >> 2. css does offer 'pagebreak' options, which most modern browsers >> will obey, so you could insert those between the labels, on just >> one page... >> 3. you could show the first label, use javascript to pop-up the >> users print dialog, so that they can print that doc, then have a >> 'NEXT LABEL' button at the top of the label which takes the user to >> the next page in the set, and use a print specific css sheet to >> hide that button... >> >> Any help...? did I miss the point completely...?? >> >> Cheers >> Steve >> >> On 2 Jul 2009, at 12:35, John Funk wrote: >> >>> In my solution the user fills out a from to request a label, the >>> label record is created and shown on a php from. >>> Now my client wants to have the user to be able to enter the >>> number of labels required and each label ( a diferent FM record) >>> presented to the user on a separate web page, one after one. >>> Is there a php function /class I could use to print? And then I >>> could find the next record and display. >>> Thanks >>> John >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> Steve Winter >> steve@bluecrocodile.co.nz >> m: +44 77 7852 4776 >> 3 Calshot Court, Channel Way >> Ocean Village, Southampton SO14 3GR >> >> >> >> _______________________________________________ >> 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 Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/7298f058/attachment.html From leo at finalresort.org Thu Jul 2 06:33:51 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Jul 2 06:33:56 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <13EEF113-6C90-4D21-8A1B-1BB5FEB9D5F0@bluecrocodile.co.nz> References: <13EEF113-6C90-4D21-8A1B-1BB5FEB9D5F0@bluecrocodile.co.nz> Message-ID: <78B3897C-DA85-4B39-BCB4-08FCE84EE736@finalresort.org> I've seen a lot of mentioning of fpdf lately, and would like to recommend PDFlib instead. PDFlib comes in both free and payable versions, where the first one lacks some options but I think it's still really usable. I think the lack of kerning is one thing, but AFAIK fpdf doesn't (at least didn't) have it either. IMO PDFlib is a better designed library. The downside is that PDFlib consists of an extension file to PHP that you need to place on the web server, so I guess a lot of people will use fpdf since it is a pure PHP library. I think there's also a set of PDF functions in PHP, you might want to check out the manual. Anyhow, just saying that PDFlib is one really nice piece of software. Cheers. 2 jul 2009 kl. 14.27 skrev Steve Winter: > Hi John, > > I'd suggest staying far, far away from Java...! though I presume in > this instance you mean JavaScript... and unfortunately if you want > to do anything client-side that's really your only option (other > than plugins, or Java, or flash or some other technology), and I'm > afraid the triggering the print dialog needs to be done client > side.... note that this won't actually print the document, it has > the same effect as the user doing CTRL-P or CMD-P on their keyboard, > they then need to click the 'ok' button... > > Yes, option one involves re-writing what you've already done, > however my experience in this is that anything which you want the > user to print, and in which the layout/formatting is important, is > best managed through a pdf... it's why when you checkin online with > most airlines you end up with a pdf... > > The css pagebreak code works, to some degree or another, but it's > far from 'bullet-proof', see http://reference.sitepoint.com/css/page-break-after#compatibilitysection > for more on this... > > Option 3, yes, it involves javascript, however it only involves > minor changes to the label generation functionality that you have > now... > > Cheers > Steve > > > > On 2 Jul 2009, at 13:01, John Funk wrote: > >> I like option 1 but I already have my php page that builds the >> label in html. Looks like I would need to reconstruct the page >> withfpdf? >> Option 2 seem the most logical.....is there any PHP function / code >> that will do the printing from a button? I?d like to stay away from >> java. >> Option 3, again Javascript.... >> >> Good ideas, thanks >> >> >> On 7/2/09 6:46 AM, "Steve Winter" wrote: >> >>> Hi John, >>> >>> Not sure that I follow, but I'll throw up a few ideas and see what >>> sticks... >>> >>> 1. what about using fpdf to create a multipage pdf document which >>> contains all the labels, which the user can then print...? >>> 2. css does offer 'pagebreak' options, which most modern browsers >>> will obey, so you could insert those between the labels, on just >>> one page... >>> 3. you could show the first label, use javascript to pop-up the >>> users print dialog, so that they can print that doc, then have a >>> 'NEXT LABEL' button at the top of the label which takes the user >>> to the next page in the set, and use a print specific css sheet to >>> hide that button... >>> >>> Any help...? did I miss the point completely...?? >>> >>> Cheers >>> Steve >>> >>> On 2 Jul 2009, at 12:35, John Funk wrote: >>> >>>> In my solution the user fills out a from to request a label, the >>>> label record is created and shown on a php from. >>>> Now my client wants to have the user to be able to enter the >>>> number of labels required and each label ( a diferent FM record) >>>> presented to the user on a separate web page, one after one. >>>> Is there a php function /class I could use to print? And then I >>>> could find the next record and display. >>>> Thanks >>>> John >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> >>> Steve Winter >>> steve@bluecrocodile.co.nz >>> m: +44 77 7852 4776 >>> 3 Calshot Court, Channel Way >>> Ocean Village, Southampton SO14 3GR >>> >>> >>> >>> _______________________________________________ >>> 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 > > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court, Channel Way > Ocean Village, Southampton SO14 3GR > > _______________________________________________ > 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/20090702/d7c21a9b/attachment-0001.html From jfunk at criticalsolution.com Thu Jul 2 11:21:48 2009 From: jfunk at criticalsolution.com (John Funk) Date: Thu Jul 2 11:21:54 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <13EEF113-6C90-4D21-8A1B-1BB5FEB9D5F0@bluecrocodile.co.nz> Message-ID: It seems I may have run full circle, my original plan was to have FileMaker make the PDFs from an FM layout, but export to PDF is NOT supported on FMServer, so I changed to a PHP / FM generated HTML page but now found out having css / multiple pages is a web browser compatibility problem. For simplicity, I am thinking of creating the HTML labels one by one with a javascript print button and a next button to get the next record / label. Make sense? John On 7/2/09 7:27 AM, "Steve Winter" wrote: > Hi John, > > I'd suggest staying far, far away from Java...! though I presume in this > instance you mean JavaScript... and unfortunately if you want to do anything > client-side that's really your only option (other than plugins, or Java, or > flash or some other technology), and I'm afraid the triggering the print > dialog needs to be done client side.... note that this won't actually print > the document, it has the same effect as the user doing CTRL-P or CMD-P on > their keyboard, they then need to click the 'ok' button... > > Yes, option one involves re-writing what you've already done, however my > experience in this is that anything which you want the user to print, and in > which the layout/formatting is important, is best managed through a pdf... > it's why when you checkin online with most airlines you end up with a pdf... > > The css pagebreak code works, to some degree or another, but it's far from > 'bullet-proof', see > http://reference.sitepoint.com/css/page-break-after#compatibilitysection for > more on this... > > Option 3, yes, it involves javascript, however it only involves minor changes > to the label generation functionality that you have now... > > Cheers > Steve > > > > On 2 Jul 2009, at 13:01, John Funk wrote: > >> I like option 1 but I already have my php page that builds the label in >> html. Looks like I would need to reconstruct the page withfpdf? >> Option 2 seem the most logical.....is there any PHP function / code that >> will do the printing from a button? I?d like to stay away from java. >> Option 3, again Javascript.... >> >> Good ideas, thanks >> >> >> On 7/2/09 6:46 AM, "Steve Winter" wrote: >> >> >>> Hi John, >>> >>> Not sure that I follow, but I'll throw up a few ideas and see what >>> sticks... >>> >>> 1. what about using fpdf to create a multipage pdf document which contains >>> all the labels, which the user can then print...? >>> 2. css does offer 'pagebreak' options, which most modern browsers will >>> obey, so you could insert those between the labels, on just one page... >>> 3. you could show the first label, use javascript to pop-up the users print >>> dialog, so that they can print that doc, then have a 'NEXT LABEL' button at >>> the top of the label which takes the user to the next page in the set, and >>> use a print specific css sheet to hide that button... >>> >>> Any help...? did I miss the point completely...?? >>> >>> Cheers >>> Steve >>> >>> On 2 Jul 2009, at 12:35, John Funk wrote: >>> >>> >>>> In my solution the user fills out a from to request a label, the label >>>> record is created and shown on a php from. >>>> Now my client wants to have the user to be able to enter the number of >>>> labels required and each label ( a diferent FM record) presented to the >>>> user on a separate web page, one after one. >>>> Is there a php function /class I could use to print? And then I could >>>> find the next record and display. >>>> Thanks >>>> John >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> >>> >>> Steve Winter >>> steve@bluecrocodile.co.nz >>> m: +44 77 7852 4776 >>> 3 Calshot Court, Channel Way >>> Ocean Village, Southampton SO14 3GR >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 > > > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court, Channel Way > Ocean Village, Southampton SO14 3GR > > > > > _______________________________________________ > 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/20090702/b1ce61dd/attachment.html From steve at bluecrocodile.co.nz Thu Jul 2 11:34:57 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Jul 2 11:35:11 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: Message-ID: Hi John, In many ways you have come full circle, in that .pdf generation was the way to go... rather than abandoning that idea it may have been better to move the location of that pdf generation from FMP to PHP, which is what the fpdf class I've mentioned and PDFlib which Leo mentioned would have helped you do... ;-) That said, yes, your current solution makes sense, and was my 'suggestion 3'.... Cheers Steve On 2 Jul 2009, at 18:21, John Funk wrote: > It seems I may have run full circle, my original plan was to have > FileMaker make the PDFs from an FM layout, but export to PDF is NOT > supported on FMServer, so I changed to a PHP / FM generated HTML > page but now found out having css / multiple pages is a web browser > compatibility problem. > For simplicity, I am thinking of creating the HTML labels one by one > with a javascript print button and a next button to get the next > record / label. > Make sense? > John > > > On 7/2/09 7:27 AM, "Steve Winter" wrote: > >> Hi John, >> >> I'd suggest staying far, far away from Java...! though I presume in >> this instance you mean JavaScript... and unfortunately if you want >> to do anything client-side that's really your only option (other >> than plugins, or Java, or flash or some other technology), and I'm >> afraid the triggering the print dialog needs to be done client >> side.... note that this won't actually print the document, it has >> the same effect as the user doing CTRL-P or CMD-P on their >> keyboard, they then need to click the 'ok' button... >> >> Yes, option one involves re-writing what you've already done, >> however my experience in this is that anything which you want the >> user to print, and in which the layout/formatting is important, is >> best managed through a pdf... it's why when you checkin online with >> most airlines you end up with a pdf... >> >> The css pagebreak code works, to some degree or another, but it's >> far from 'bullet-proof', see http://reference.sitepoint.com/css/page-break-after#compatibilitysection >> for more on this... >> >> Option 3, yes, it involves javascript, however it only involves >> minor changes to the label generation functionality that you have >> now... >> >> Cheers >> Steve >> >> >> >> On 2 Jul 2009, at 13:01, John Funk wrote: >> >>> I like option 1 but I already have my php page that builds the >>> label in html. Looks like I would need to reconstruct the page >>> withfpdf? >>> Option 2 seem the most logical.....is there any PHP function / >>> code that will do the printing from a button? I?d like to stay >>> away from java. >>> Option 3, again Javascript.... >>> >>> Good ideas, thanks >>> >>> >>> On 7/2/09 6:46 AM, "Steve Winter" >>> wrote: >>> >>> >>>> Hi John, >>>> >>>> Not sure that I follow, but I'll throw up a few ideas and see >>>> what sticks... >>>> >>>> 1. what about using fpdf to create a multipage pdf document >>>> which contains all the labels, which the user can then print...? >>>> 2. css does offer 'pagebreak' options, which most modern >>>> browsers will obey, so you could insert those between the labels, >>>> on just one page... >>>> 3. you could show the first label, use javascript to pop-up the >>>> users print dialog, so that they can print that doc, then have a >>>> 'NEXT LABEL' button at the top of the label which takes the user >>>> to the next page in the set, and use a print specific css sheet >>>> to hide that button... >>>> >>>> Any help...? did I miss the point completely...?? >>>> >>>> Cheers >>>> Steve >>>> >>>> On 2 Jul 2009, at 12:35, John Funk wrote: >>>> >>>> >>>>> In my solution the user fills out a from to request a label, the >>>>> label record is created and shown on a php from. >>>>> Now my client wants to have the user to be able to enter the >>>>> number of labels required and each label ( a diferent FM record) >>>>> presented to the user on a separate web page, one after one. >>>>> Is there a php function /class I could use to print? And then >>>>> I could find the next record and display. >>>>> Thanks >>>>> John >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> >>>> >>>> >>>> Steve Winter >>>> steve@bluecrocodile.co.nz >>>> m: +44 77 7852 4776 >>>> 3 Calshot Court, Channel Way >>>> Ocean Village, Southampton SO14 3GR >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> >> >> Steve Winter >> steve@bluecrocodile.co.nz >> m: +44 77 7852 4776 >> 3 Calshot Court, Channel Way >> Ocean Village, Southampton SO14 3GR >> >> >> >> _______________________________________________ >> 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 Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/66275039/attachment-0001.html From jfunk at criticalsolution.com Thu Jul 2 11:48:42 2009 From: jfunk at criticalsolution.com (John Funk) Date: Thu Jul 2 11:48:47 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: Message-ID: Would writing the code to make a simple label with 6 or so text fields a logo and 3 barcodes (jpg images) from dynamic data be very complicated? (I know how to make the barcode images) I am not sure I have the time for my learning curve with using the libs. John On 7/2/09 12:34 PM, "Steve Winter" wrote: > the fpdf class I've mentioned and PDFlib which Leo mentioned would have helped > you do... ;-) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/f547efd2/attachment.html From jschwartz at exit445.com Thu Jul 2 11:56:20 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Jul 2 11:56:35 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: Message-ID: Lesson: Always listen to Steve Winter. ;-) Jonathan Schwartz Exit 445 Group 415-370-5011 On Jul 2, 2009, at 1:34 PM, Steve Winter wrote: > Hi John, > > In many ways you have come full circle, in that .pdf generation was > the way to go... rather than abandoning that idea it may have been > better to move the location of that pdf generation from FMP to PHP, > which is what the fpdf class I've mentioned and PDFlib which Leo > mentioned would have helped you do... ;-) > > That said, yes, your current solution makes sense, and was my > 'suggestion 3'.... > > Cheers > Steve > > > On 2 Jul 2009, at 18:21, John Funk wrote: > >> It seems I may have run full circle, my original plan was to have >> FileMaker make the PDFs from an FM layout, but export to PDF is NOT >> supported on FMServer, so I changed to a PHP / FM generated HTML >> page but now found out having css / multiple pages is a web browser >> compatibility problem. >> For simplicity, I am thinking of creating the HTML labels one by >> one with a javascript print button and a next button to get the >> next record / label. >> Make sense? >> John >> >> >> On 7/2/09 7:27 AM, "Steve Winter" wrote: >> >>> Hi John, >>> >>> I'd suggest staying far, far away from Java...! though I presume >>> in this instance you mean JavaScript... and unfortunately if you >>> want to do anything client-side that's really your only option >>> (other than plugins, or Java, or flash or some other technology), >>> and I'm afraid the triggering the print dialog needs to be done >>> client side.... note that this won't actually print the document, >>> it has the same effect as the user doing CTRL-P or CMD-P on their >>> keyboard, they then need to click the 'ok' button... >>> >>> Yes, option one involves re-writing what you've already done, >>> however my experience in this is that anything which you want the >>> user to print, and in which the layout/formatting is important, is >>> best managed through a pdf... it's why when you checkin online >>> with most airlines you end up with a pdf... >>> >>> The css pagebreak code works, to some degree or another, but it's >>> far from 'bullet-proof', see http://reference.sitepoint.com/css/page-break-after#compatibilitysection >>> for more on this... >>> >>> Option 3, yes, it involves javascript, however it only involves >>> minor changes to the label generation functionality that you have >>> now... >>> >>> Cheers >>> Steve >>> >>> >>> >>> On 2 Jul 2009, at 13:01, John Funk wrote: >>> >>>> I like option 1 but I already have my php page that builds the >>>> label in html. Looks like I would need to reconstruct the page >>>> withfpdf? >>>> Option 2 seem the most logical.....is there any PHP function / >>>> code that will do the printing from a button? I?d like to stay >>>> away from java. >>>> Option 3, again Javascript.... >>>> >>>> Good ideas, thanks >>>> >>>> >>>> On 7/2/09 6:46 AM, "Steve Winter" >>>> wrote: >>>> >>>> >>>>> Hi John, >>>>> >>>>> Not sure that I follow, but I'll throw up a few ideas and see >>>>> what sticks... >>>>> >>>>> 1. what about using fpdf to create a multipage pdf document >>>>> which contains all the labels, which the user can then print...? >>>>> 2. css does offer 'pagebreak' options, which most modern >>>>> browsers will obey, so you could insert those between the >>>>> labels, on just one page... >>>>> 3. you could show the first label, use javascript to pop-up the >>>>> users print dialog, so that they can print that doc, then have a >>>>> 'NEXT LABEL' button at the top of the label which takes the user >>>>> to the next page in the set, and use a print specific css sheet >>>>> to hide that button... >>>>> >>>>> Any help...? did I miss the point completely...?? >>>>> >>>>> Cheers >>>>> Steve >>>>> >>>>> On 2 Jul 2009, at 12:35, John Funk wrote: >>>>> >>>>> >>>>>> In my solution the user fills out a from to request a label, >>>>>> the label record is created and shown on a php from. >>>>>> Now my client wants to have the user to be able to enter the >>>>>> number of labels required and each label ( a diferent FM >>>>>> record) presented to the user on a separate web page, one after >>>>>> one. >>>>>> Is there a php function /class I could use to print? And then >>>>>> I could find the next record and display. >>>>>> Thanks >>>>>> John >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>> >>>>> >>>>> >>>>> Steve Winter >>>>> steve@bluecrocodile.co.nz >>>>> m: +44 77 7852 4776 >>>>> 3 Calshot Court, Channel Way >>>>> Ocean Village, Southampton SO14 3GR >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> >>> >>> Steve Winter >>> steve@bluecrocodile.co.nz >>> m: +44 77 7852 4776 >>> 3 Calshot Court, Channel Way >>> Ocean Village, Southampton SO14 3GR >>> >>> >>> >>> _______________________________________________ >>> 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 > > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court, Channel Way > Ocean Village, Southampton SO14 3GR > > _______________________________________________ > 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/20090702/a2e725c1/attachment.html From steve at bluecrocodile.co.nz Thu Jul 2 12:21:43 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Jul 2 12:21:51 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: Message-ID: <740E012F-09CE-4B5F-8714-CCC19104418B@bluecrocodile.co.nz> Umm... I'm not so sure about that, but thanks for the vote of confidence ;-) Cheers Steve On 2 Jul 2009, at 18:56, Jonathan Schwartz wrote: > Lesson: Always listen to Steve Winter. > > ;-) > > Jonathan Schwartz > Exit 445 Group > 415-370-5011 > > On Jul 2, 2009, at 1:34 PM, Steve Winter > wrote: > >> Hi John, >> >> In many ways you have come full circle, in that .pdf generation was >> the way to go... rather than abandoning that idea it may have been >> better to move the location of that pdf generation from FMP to PHP, >> which is what the fpdf class I've mentioned and PDFlib which Leo >> mentioned would have helped you do... ;-) >> >> That said, yes, your current solution makes sense, and was my >> 'suggestion 3'.... >> >> Cheers >> Steve >> >> >> On 2 Jul 2009, at 18:21, John Funk wrote: >> >>> It seems I may have run full circle, my original plan was to have >>> FileMaker make the PDFs from an FM layout, but export to PDF is >>> NOT supported on FMServer, so I changed to a PHP / FM generated >>> HTML page but now found out having css / multiple pages is a web >>> browser compatibility problem. >>> For simplicity, I am thinking of creating the HTML labels one by >>> one with a javascript print button and a next button to get the >>> next record / label. >>> Make sense? >>> John >>> >>> >>> On 7/2/09 7:27 AM, "Steve Winter" wrote: >>> >>>> Hi John, >>>> >>>> I'd suggest staying far, far away from Java...! though I presume >>>> in this instance you mean JavaScript... and unfortunately if you >>>> want to do anything client-side that's really your only option >>>> (other than plugins, or Java, or flash or some other technology), >>>> and I'm afraid the triggering the print dialog needs to be done >>>> client side.... note that this won't actually print the document, >>>> it has the same effect as the user doing CTRL-P or CMD-P on their >>>> keyboard, they then need to click the 'ok' button... >>>> >>>> Yes, option one involves re-writing what you've already done, >>>> however my experience in this is that anything which you want the >>>> user to print, and in which the layout/formatting is important, >>>> is best managed through a pdf... it's why when you checkin online >>>> with most airlines you end up with a pdf... >>>> >>>> The css pagebreak code works, to some degree or another, but it's >>>> far from 'bullet-proof', see http://reference.sitepoint.com/css/page-break-after#compatibilitysection >>>> for more on this... >>>> >>>> Option 3, yes, it involves javascript, however it only involves >>>> minor changes to the label generation functionality that you have >>>> now... >>>> >>>> Cheers >>>> Steve >>>> >>>> >>>> >>>> On 2 Jul 2009, at 13:01, John Funk wrote: >>>> >>>>> I like option 1 but I already have my php page that builds the >>>>> label in html. Looks like I would need to reconstruct the page >>>>> withfpdf? >>>>> Option 2 seem the most logical.....is there any PHP function / >>>>> code that will do the printing from a button? I?d like to stay >>>>> away from java. >>>>> Option 3, again Javascript.... >>>>> >>>>> Good ideas, thanks >>>>> >>>>> >>>>> On 7/2/09 6:46 AM, "Steve Winter" >>>>> wrote: >>>>> >>>>> >>>>>> Hi John, >>>>>> >>>>>> Not sure that I follow, but I'll throw up a few ideas and see >>>>>> what sticks... >>>>>> >>>>>> 1. what about using fpdf to create a multipage pdf document >>>>>> which contains all the labels, which the user can then print...? >>>>>> 2. css does offer 'pagebreak' options, which most modern >>>>>> browsers will obey, so you could insert those between the >>>>>> labels, on just one page... >>>>>> 3. you could show the first label, use javascript to pop-up >>>>>> the users print dialog, so that they can print that doc, then >>>>>> have a 'NEXT LABEL' button at the top of the label which takes >>>>>> the user to the next page in the set, and use a print specific >>>>>> css sheet to hide that button... >>>>>> >>>>>> Any help...? did I miss the point completely...?? >>>>>> >>>>>> Cheers >>>>>> Steve >>>>>> >>>>>> On 2 Jul 2009, at 12:35, John Funk wrote: >>>>>> >>>>>> >>>>>>> In my solution the user fills out a from to request a label, >>>>>>> the label record is created and shown on a php from. >>>>>>> Now my client wants to have the user to be able to enter the >>>>>>> number of labels required and each label ( a diferent FM >>>>>>> record) presented to the user on a separate web page, one >>>>>>> after one. >>>>>>> Is there a php function /class I could use to print? And >>>>>>> then I could find the next record and display. >>>>>>> Thanks >>>>>>> John >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Steve Winter >>>>>> steve@bluecrocodile.co.nz >>>>>> m: +44 77 7852 4776 >>>>>> 3 Calshot Court, Channel Way >>>>>> Ocean Village, Southampton SO14 3GR >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> >>>> >>>> >>>> Steve Winter >>>> steve@bluecrocodile.co.nz >>>> m: +44 77 7852 4776 >>>> 3 Calshot Court, Channel Way >>>> Ocean Village, Southampton SO14 3GR >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> >> Steve Winter >> steve@bluecrocodile.co.nz >> m: +44 77 7852 4776 >> 3 Calshot Court, Channel Way >> Ocean Village, Southampton SO14 3GR >> >> _______________________________________________ >> 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 Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/5d089f80/attachment-0001.html From steve at bluecrocodile.co.nz Thu Jul 2 12:24:35 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Jul 2 12:24:41 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: Message-ID: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> I can't speak for PDFlib, but in terms of fpdf, it's relatively straight forward, take a look at http://www.fpdf.org/ and more particularly the tutorials which are there and show you pretty quickly how to create a pdf document... Cheers Steve On 2 Jul 2009, at 18:48, John Funk wrote: > Would writing the code to make a simple label with 6 or so text > fields a logo and 3 barcodes (jpg images) from dynamic data be very > complicated? (I know how to make the barcode images) I am not sure I > have the time for my learning curve with using the libs. > John > > > On 7/2/09 12:34 PM, "Steve Winter" wrote: > >> the fpdf class I've mentioned and PDFlib which Leo mentioned would >> have helped you do... ;-) > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/b95b34bd/attachment.html From leo at finalresort.org Thu Jul 2 14:24:08 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Jul 2 14:24:14 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> References: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> Message-ID: I can't really speak for fpdf because last time I used it was over two years ago. At that time I was evaluating FPDF and PDFlib and found that the latter was way more mature and competent. I cannot tell what shortcomings FPDF had though, it's too long since. I just know that there was no doubt about which one to choose :) In this specific case though, it sounds like what you want to do isn't that big of a deal, so I think both products will do what you need them to. And to be realistic, fpdf is the easiest to "install" since it's only a bunch of PHP files. The PDFlib extension is something you must install, and if you're on some crappy shared hosting you might run into trouble because you can't do it yourself. Regarding ease of use I don't think either one of them is hard in any way, and for a very small project it's a "whichever". It's natural that whichever you choose, you must read SOME about it. On the PDFlib side there's a cookbook at http://www.pdflib.com/en/developer/ cookbook/ , but I highly recommend the PDFlib tutorial which comes with the download -- it's very balanced reading both on details and "how to". Any one of them will probably do, pick something that just works[tm] :-) -| 2 jul 2009 kl. 20.24 skrev Steve Winter: > I can't speak for PDFlib, but in terms of fpdf, it's relatively > straight forward, take a look at http://www.fpdf.org/ and more > particularly the tutorials which are there and show you pretty > quickly how to create a pdf document... > > Cheers > Steve > > > On 2 Jul 2009, at 18:48, John Funk wrote: > >> Would writing the code to make a simple label with 6 or so text >> fields a logo and 3 barcodes (jpg images) from dynamic data be very >> complicated? (I know how to make the barcode images) I am not sure >> I have the time for my learning curve with using the libs. >> John >> >> >> On 7/2/09 12:34 PM, "Steve Winter" wrote: >> >>> the fpdf class I've mentioned and PDFlib which Leo mentioned would >>> have helped you do... ;-) >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court, Channel Way > Ocean Village, Southampton SO14 3GR > > _______________________________________________ > 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/20090702/8f10dea2/attachment.html From dbengston at tds.net Thu Jul 2 15:04:52 2009 From: dbengston at tds.net (Dale Bengston) Date: Thu Jul 2 15:05:03 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> Message-ID: Hi Leo, I started using FPDF in 2001 or 2002, and I had the exact opposite reaction when I compared it to PDFlib. One of the biggest detractions from PDFlib is the necessity to have it compiled into PHP. I rarely have control over client web server installs to the extent that I can modify or mandate the way PHP is installed. Another big detraction is cost: the free version of PDFlib is only licensed for private or research work, which excludes its use in commercial solutions like those I produce unless I pay US$995. The documentation for FPDF is very good. It's a nice, portable PHP class like FX.php. It is extendable in many ways (like the wonderful FPDI). And the price is right. Dale On Jul 2, 2009, at 3:24 PM, Leo R. Lundgren wrote: > I can't really speak for fpdf because last time I used it was over > two years ago. At that time I was evaluating FPDF and PDFlib and > found that the latter was way more mature and competent. I cannot > tell what shortcomings FPDF had though, it's too long since. I just > know that there was no doubt about which one to choose :) > > In this specific case though, it sounds like what you want to do > isn't that big of a deal, so I think both products will do what you > need them to. And to be realistic, fpdf is the easiest to "install" > since it's only a bunch of PHP files. The PDFlib extension is > something you must install, and if you're on some crappy shared > hosting you might run into trouble because you can't do it yourself. > > Regarding ease of use I don't think either one of them is hard in > any way, and for a very small project it's a "whichever". It's > natural that whichever you choose, you must read SOME about it. On > the PDFlib side there's a cookbook at http://www.pdflib.com/en/developer/cookbook/ > , but I highly recommend the PDFlib tutorial which comes with the > download -- it's very balanced reading both on details and "how to". > > Any one of them will probably do, pick something that just > works[tm] :-) > > -| > > 2 jul 2009 kl. 20.24 skrev Steve Winter: > >> I can't speak for PDFlib, but in terms of fpdf, it's relatively >> straight forward, take a look at http://www.fpdf.org/ and more >> particularly the tutorials which are there and show you pretty >> quickly how to create a pdf document... >> >> Cheers >> Steve >> >> >> On 2 Jul 2009, at 18:48, John Funk wrote: >> >>> Would writing the code to make a simple label with 6 or so text >>> fields a logo and 3 barcodes (jpg images) from dynamic data be >>> very complicated? (I know how to make the barcode images) I am not >>> sure I have the time for my learning curve with using the libs. >>> John >>> >>> >>> On 7/2/09 12:34 PM, "Steve Winter" >>> wrote: >>> >>>> the fpdf class I've mentioned and PDFlib which Leo mentioned >>>> would have helped you do... ;-) >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> Steve Winter >> steve@bluecrocodile.co.nz >> m: +44 77 7852 4776 >> 3 Calshot Court, Channel Way >> Ocean Village, Southampton SO14 3GR >> >> _______________________________________________ >> 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/20090702/12e77882/attachment-0001.html From leo at finalresort.org Thu Jul 2 15:28:57 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Jul 2 15:29:01 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: References: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> Message-ID: <0CF5D70C-012F-4ECC-9449-2CCFAD82F9D6@finalresort.org> I see, I guess the free PDFlib option is out of the question then, unless its cost is justified for this project :) IMO the installation and the coding usage are two very different things; If both are possible then I'd choose the one that gives the best coding experience, but if the first one is a no-do then of course there's only one choice left :) It all probably boils down to what level of detail and functions one need. For example, does FPDF use kerning data in the fonts? Does it support Unicode? What about templates, querying various types of information from placed objects (for example textflows where you need to determine how much have been placed, maybe because you need to continue with another page) and so on. There is a myriad of things I think of that I need, and that's why I use PDFlib. This is off-php-topic, but when searching for a decent PDF product a couple of years ago I found http://www.reportlab.org/ as well. It is/ was for Python, but I've seen some interest in Python on this list so I might as well mention it :) It looks good as well. In any case, the right tool for the job.. -| 2 jul 2009 kl. 23.04 skrev Dale Bengston: > Hi Leo, > > I started using FPDF in 2001 or 2002, and I had the exact opposite > reaction when I compared it to PDFlib. One of the biggest > detractions from PDFlib is the necessity to have it compiled into > PHP. I rarely have control over client web server installs to the > extent that I can modify or mandate the way PHP is installed. > Another big detraction is cost: the free version of PDFlib is only > licensed for private or research work, which excludes its use in > commercial solutions like those I produce unless I pay US$995. > > The documentation for FPDF is very good. It's a nice, portable PHP > class like FX.php. It is extendable in many ways (like the wonderful > FPDI). And the price is right. > > Dale > > > On Jul 2, 2009, at 3:24 PM, Leo R. Lundgren wrote: > >> I can't really speak for fpdf because last time I used it was over >> two years ago. At that time I was evaluating FPDF and PDFlib and >> found that the latter was way more mature and competent. I cannot >> tell what shortcomings FPDF had though, it's too long since. I just >> know that there was no doubt about which one to choose :) >> >> In this specific case though, it sounds like what you want to do >> isn't that big of a deal, so I think both products will do what you >> need them to. And to be realistic, fpdf is the easiest to "install" >> since it's only a bunch of PHP files. The PDFlib extension is >> something you must install, and if you're on some crappy shared >> hosting you might run into trouble because you can't do it yourself. >> >> Regarding ease of use I don't think either one of them is hard in >> any way, and for a very small project it's a "whichever". It's >> natural that whichever you choose, you must read SOME about it. On >> the PDFlib side there's a cookbook at http://www.pdflib.com/en/developer/cookbook/ >> , but I highly recommend the PDFlib tutorial which comes with the >> download -- it's very balanced reading both on details and "how to". >> >> Any one of them will probably do, pick something that just >> works[tm] :-) >> >> -| >> >> 2 jul 2009 kl. 20.24 skrev Steve Winter: >> >>> I can't speak for PDFlib, but in terms of fpdf, it's relatively >>> straight forward, take a look at http://www.fpdf.org/ and more >>> particularly the tutorials which are there and show you pretty >>> quickly how to create a pdf document... >>> >>> Cheers >>> Steve >>> >>> >>> On 2 Jul 2009, at 18:48, John Funk wrote: >>> >>>> Would writing the code to make a simple label with 6 or so text >>>> fields a logo and 3 barcodes (jpg images) from dynamic data be >>>> very complicated? (I know how to make the barcode images) I am >>>> not sure I have the time for my learning curve with using the libs. >>>> John >>>> >>>> >>>> On 7/2/09 12:34 PM, "Steve Winter" >>>> wrote: >>>> >>>>> the fpdf class I've mentioned and PDFlib which Leo mentioned >>>>> would have helped you do... ;-) >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> Steve Winter >>> steve@bluecrocodile.co.nz >>> m: +44 77 7852 4776 >>> 3 Calshot Court, Channel Way >>> Ocean Village, Southampton SO14 3GR >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -| >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090702/6da5f8c6/attachment.html From dbengston at tds.net Fri Jul 3 15:33:36 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Jul 3 15:33:50 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <0CF5D70C-012F-4ECC-9449-2CCFAD82F9D6@finalresort.org> References: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> <0CF5D70C-012F-4ECC-9449-2CCFAD82F9D6@finalresort.org> Message-ID: <8AC831B1-76B4-4913-B251-9C7B2B499B22@tds.net> Hi Leo, The font support for FPDF is ISO-8859-1. The documentation says use utf8_decode() to work around it. If by kerning you mean adjusting larger sizes to have tighter kerning, or allowing kerning of individual letter pairs, I would consider that outside the scope of an automated system. FPDF does, however, use the letter spacing data in the font files to properly space characters. I find it more than satisfactory, and it's pleased picky graphic designers on several solutions I've made that feed print workflows. FPDF is also very good at handling page breaks under a variety of conditions involving variable data, and it's quite easy to keep track of the current x/y coordinates after an element is written. And with FPDI, which extends FPDF, you can draw on existing PDF templates. There are other FPDF extensions as well for handling .EPS graphics, several formats of bar codes, support of graphics with alpha channels, and much more. PDFlib is a fine product, which is widely used and well regarded. Likewise, FPDF is a fine product, and worthy of consideration. Dale On Jul 2, 2009, at 4:28 PM, Leo R. Lundgren wrote: > I see, I guess the free PDFlib option is out of the question then, > unless its cost is justified for this project :) > > IMO the installation and the coding usage are two very different > things; If both are possible then I'd choose the one that gives the > best coding experience, but if the first one is a no-do then of > course there's only one choice left :) > > It all probably boils down to what level of detail and functions one > need. For example, does FPDF use kerning data in the fonts? Does it > support Unicode? What about templates, querying various types of > information from placed objects (for example textflows where you > need to determine how much have been placed, maybe because you need > to continue with another page) and so on. There is a myriad of > things I think of that I need, and that's why I use PDFlib. > > This is off-php-topic, but when searching for a decent PDF product a > couple of years ago I found http://www.reportlab.org/ as well. It is/ > was for Python, but I've seen some interest in Python on this list > so I might as well mention it :) It looks good as well. > > In any case, the right tool for the job.. > > -| > > > 2 jul 2009 kl. 23.04 skrev Dale Bengston: > >> Hi Leo, >> >> I started using FPDF in 2001 or 2002, and I had the exact opposite >> reaction when I compared it to PDFlib. One of the biggest >> detractions from PDFlib is the necessity to have it compiled into >> PHP. I rarely have control over client web server installs to the >> extent that I can modify or mandate the way PHP is installed. >> Another big detraction is cost: the free version of PDFlib is only >> licensed for private or research work, which excludes its use in >> commercial solutions like those I produce unless I pay US$995. >> >> The documentation for FPDF is very good. It's a nice, portable PHP >> class like FX.php. It is extendable in many ways (like the >> wonderful FPDI). And the price is right. >> >> Dale >> >> >> On Jul 2, 2009, at 3:24 PM, Leo R. Lundgren wrote: >> >>> I can't really speak for fpdf because last time I used it was over >>> two years ago. At that time I was evaluating FPDF and PDFlib and >>> found that the latter was way more mature and competent. I cannot >>> tell what shortcomings FPDF had though, it's too long since. I >>> just know that there was no doubt about which one to choose :) >>> >>> In this specific case though, it sounds like what you want to do >>> isn't that big of a deal, so I think both products will do what >>> you need them to. And to be realistic, fpdf is the easiest to >>> "install" since it's only a bunch of PHP files. The PDFlib >>> extension is something you must install, and if you're on some >>> crappy shared hosting you might run into trouble because you can't >>> do it yourself. >>> >>> Regarding ease of use I don't think either one of them is hard in >>> any way, and for a very small project it's a "whichever". It's >>> natural that whichever you choose, you must read SOME about it. On >>> the PDFlib side there's a cookbook at http://www.pdflib.com/en/developer/cookbook/ >>> , but I highly recommend the PDFlib tutorial which comes with the >>> download -- it's very balanced reading both on details and "how to". >>> >>> Any one of them will probably do, pick something that just >>> works[tm] :-) >>> >>> -| >>> >>> 2 jul 2009 kl. 20.24 skrev Steve Winter: >>> >>>> I can't speak for PDFlib, but in terms of fpdf, it's relatively >>>> straight forward, take a look at http://www.fpdf.org/ and more >>>> particularly the tutorials which are there and show you pretty >>>> quickly how to create a pdf document... >>>> >>>> Cheers >>>> Steve >>>> >>>> >>>> On 2 Jul 2009, at 18:48, John Funk wrote: >>>> >>>>> Would writing the code to make a simple label with 6 or so text >>>>> fields a logo and 3 barcodes (jpg images) from dynamic data be >>>>> very complicated? (I know how to make the barcode images) I am >>>>> not sure I have the time for my learning curve with using the >>>>> libs. >>>>> John >>>>> >>>>> >>>>> On 7/2/09 12:34 PM, "Steve Winter" >>>>> wrote: >>>>> >>>>>> the fpdf class I've mentioned and PDFlib which Leo mentioned >>>>>> would have helped you do... ;-) >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> Steve Winter >>>> steve@bluecrocodile.co.nz >>>> m: +44 77 7852 4776 >>>> 3 Calshot Court, Channel Way >>>> Ocean Village, Southampton SO14 3GR >>>> >>>> _______________________________________________ >>>> 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 Sun Jul 5 13:56:37 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Jul 5 13:57:24 2009 Subject: [FX.php List] LinkFirst and LinkLast Message-ID: Hi Folks, Back in January 2006, there was a thread regarding the addition of code to fx.php that would add the linkFirst and linkLast commands. Some code was posted for editing fx 4.2, but it doesn't seem to work. What are folks using for Fiest and Last? Thx J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From headhoncho at customikesolutions.com Sun Jul 5 21:42:25 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Sun Jul 5 21:42:31 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <8AC831B1-76B4-4913-B251-9C7B2B499B22@tds.net> References: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> <0CF5D70C-012F-4ECC-9449-2CCFAD82F9D6@finalresort.org> <8AC831B1-76B4-4913-B251-9C7B2B499B22@tds.net> Message-ID: <74FA7539-23C4-4D92-92B9-9D19A65C2E99@customikesolutions.com> Hi all, Coming in [very] late... (I've been away). I have had very good success with TCPDF which is based on fpdf but seems to work better. 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 FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From dbengston at tds.net Sun Jul 5 22:08:53 2009 From: dbengston at tds.net (Dale Bengston) Date: Sun Jul 5 22:08:59 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <74FA7539-23C4-4D92-92B9-9D19A65C2E99@customikesolutions.com> References: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz> <0CF5D70C-012F-4ECC-9449-2CCFAD82F9D6@finalresort.org> <8AC831B1-76B4-4913-B251-9C7B2B499B22@tds.net> <74FA7539-23C4-4D92-92B9-9D19A65C2E99@customikesolutions.com> Message-ID: <78F3E325-86DA-484E-8B0A-52060E6B7B60@tds.net> Michael, Wow! I just might start singing a different tune! Dale On Jul 5, 2009, at 10:42 PM, Head Honcho wrote: > Hi all, > > Coming in [very] late... (I've been away). > > I have had very good success with TCPDF which > is based on fpdf but seems to work better. > > > > 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 > FileMaker 10 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 ggt667 at gmail.com Mon Jul 6 04:26:41 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Jul 6 04:26:45 2009 Subject: [FX.php List] [philosophical diversion of] PHP question: Presenting the user with multiple pages from each result philosophical diversion Message-ID: This is the internet, to my knowledge grasping Tellus in total, at what time of the day do you consider early late? And in which time zone? ggt > 2009/7/6 Head Honcho : > Hi all, > > Coming in [very] late... (I've been away). > > I have had very good success with TCPDF which is > based on fpdf but seems to work better. > > > > 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 > FileMaker 10 Certified Developer > 10 Wandoo Crt > Wheelers Hill, 3150 > ph 0414 562 501 > headhoncho@customikesolutions.com From paul at mancomp.co.nz Tue Jul 7 20:01:51 2009 From: paul at mancomp.co.nz (Paul) Date: Tue Jul 7 20:01:51 2009 Subject: [FX.php List] Install problems, some help please Message-ID: Hi Glenn How did you solve this: Using socket [POST /fmi/xml/FMPXMLRESULT.xml HTTP/1.0 ] - FileMaker URL: http://Admin:@localhost:80/fmi/xml/FMPXMLRESULT.xml?-db=Book_List.fp7 &-lay=B ook_List&-max=50&-findall Domain and Protocol are localhost Unable to parse FileMaker XML. Use the DEBUG constant and try connecting with the resulting URL manually. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I have same problem. I know I have correct password and name as when I change them I get a different message. Database file is loaded and open and active. I have created folders under wwwhost called fmi/xml. Also same folders under Filemaker Server - to hold what I imagine is a sort of temp file FMPXMLRESULT.xml It is getting an error when it des the actual findall - but why? Would appreciate any comments. Paul paul@mancomp.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090708/edfb6080/attachment.html From glenn at possiblesolutions.com.au Tue Jul 7 20:53:18 2009 From: glenn at possiblesolutions.com.au (Glenn Singleton) Date: Tue Jul 7 20:53:25 2009 Subject: [FX.php List] Install problems, some help please In-Reply-To: Message-ID: <20090708025317.URTJ26776.nskntotgx03p.mx.bigpond.com@centoris> Paul, Sorry I cannot remember the specific fix for that, but since, I have always found that until you can run all of the FM technology tests (after your Filemaker server install) and get them to pass, then this will be tough. No you dont create folders called fmi/xml , this is part of the fmserver web service and you must install this as part of the options for Filemaker Server install. (for mac or windows) To make sure your web server install is correct, in your root web folder on windows c:\inetpub\wwwroot , create a file called p.php and put one line in it with , and then using browser try \\localhost\p.php and you should get a stack of php setup info. If this doesnt happen your php install (again part of fmserver install) has not worked properly. fx.php files need to be a sub-folder of the wwwroot folder as well. Hope this helps Regards Glenn Singleton B.App.Sc possible SOLUTIONS (Australia) 2/12 Nabiac Street, Nabiac NSW 2312 www.possiblesolutions.com.au P: 02 6554 1001 F: 02 6554 1038 M: 0411 282 290 Get Free OzCodes Australian Postcode Software by possible SOLUTIONS The information in this email is confidential and may be legally privileged. It is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Paul Sent: Wednesday, 8 July 2009 12:02 PM To: fx.php_list@mail.iviking.org Subject: [FX.php List] Install problems, some help please Hi Glenn How did you solve this: Using socket [POST /fmi/xml/FMPXMLRESULT.xml HTTP/1.0 ] - FileMaker URL: http://Admin:@localhost:80/fmi/xml/FMPXMLRESULT.xml?-db=Book_List.fp7 &-lay=B ook_List&-max=50&-findall Domain and Protocol are localhost Unable to parse FileMaker XML. Use the DEBUG constant and try connecting with the resulting URL manually. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I have same problem. I know I have correct password and name as when I change them I get a different message. Database file is loaded and open and active. I have created folders under wwwhost called fmi/xml. Also same folders under Filemaker Server - to hold what I imagine is a sort of temp file FMPXMLRESULT.xml It is getting an error when it des the actual findall - but why? Would appreciate any comments. Paul paul@mancomp.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090708/852d445f/attachment-0001.html From jfunk at criticalsolution.com Tue Jul 7 21:13:32 2009 From: jfunk at criticalsolution.com (John Funk) Date: Tue Jul 7 21:13:37 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result In-Reply-To: <78F3E325-86DA-484E-8B0A-52060E6B7B60@tds.net> Message-ID: An update to how I resolved my project: I ended up creating these pages all in FX/PHP/HTML, I used: PHP Barcode Image Generator by Charles J. Scheffold with GD Lib to make my barcodes and presented the user with one label at a time with a JavaScript print button and a next button to get the next record / label. Simple but effective and the customer is pleased. The next time around I will try one of the PDF methods. Thanks for ALL your help. John Funk From paul at mancomp.co.nz Wed Jul 8 05:11:43 2009 From: paul at mancomp.co.nz (Paul) Date: Wed Jul 8 05:11:39 2009 Subject: [FX.php List] Parsing FP7 XML data Message-ID: Hi I have spent a good few hours trying to get FX to work, but cannot get the find queries working. I have FPServer 9 Advanced on a PC. PHP is working fine. IIS is also installed; although I can stop it - with no beneficial effect. IIS is 127.0.0.1 - localhost FMS is set to 192.168.29.252 and port 16000 - as IIS has copped 80. I try FX_tester.php - getting the IP and port and FP7 correct etc. It does connect to the server - if I change the username or password to something false it tells me that it does not connect to the server. So it is connecting with Admin and no password However I get this message - which many others get until they get FX sussed and working OK. Using FileMaker URL: http://Admin:@192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml?-db=Contacts .fp7 &-lay=web_list&-max=all&-findall Now I understand some of the code but not all. But this line tells me that we are trying to create an XML file 192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml and then parse it. Now for a PC this is not a valid address. Maybe my thinking is wrong and this file is never supposed to be created - like virtual - After the lines Ob_start(); Curl_exec etc $data = trim (ob_get_contents() ); ob_end_clean(); $data is not empty - it has 1108 bytes - but only fHTML formatting code - no data from the database - Contacts.fp7. Same with other databases I have tried Any ideas? Guess a lot of people are using Macs - where it may be straight forward and perhaps that URL is valid. Should I completely re-install without IIS???? - or do you guys have IIS installed - if you are using PC. I suppose you use Apache on Mac. I would really like to use FX - but have come to a dead stop. Cheers Paul paul@mancomp.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090708/dea0d368/attachment.html From headhoncho at customikesolutions.com Wed Jul 8 05:39:29 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Wed Jul 8 05:39:35 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: References: Message-ID: Hi Paul, I think you're thinking too much... The way it works is [very basically].... The browser talks to IIS... which talks to PHP... which talks to FX... which does all the connecting to FMS... which gives FX the XML to process... which is passed back to PHP... which is giving to IIS... which passes it back to the browser. So... Forget about changing any settings in FileMaker [ports or anything else], Forget about the fmi/xml/FMPXMLRESULT.xml stuff [this is handled by FileMaker]... and the parsing is all handled by FX. All you need to do is ensure that the fmxml privilege set is turned on for the user/password setting you are using in your "calling" page. Create a valid call to to IIS and it will "just work". Your call should be something like. 192.168.29.252/myTestPage.php, assuming myTestPage.php has the correct code in it. If I recall, there's a set of instructions for setting all this up that comes with the FX download, including a sample file. [I don't work much with FX anymore as I use FileMaker's API... but the theory is the same] Why not just set that up to see what is necessary and then work on developing your own thing. BTW, it shouldn't matter which webserver you are using (IIS [Win] or Apache [Mac]), as long as PHP is installed and working, and the fmxml privilege set is correct, it will "just work". Hope this helps. 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 FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com On 08/07/2009, at 9:11 PM, Paul wrote: > Hi > > I have spent a good few hours trying to get FX to work, but cannot > get the find queries working. > > I have FPServer 9 Advanced on a PC. > > PHP is working fine. > > IIS is also installed; although I can stop it ? with no beneficial > effect. > > IIS is 127.0.0.1 ? localhost > > FMS is set to 192.168.29.252 and port 16000 ? as IIS has copped 80. > > I try FX_tester.php ? getting the IP and port and FP7 correct etc. > It does connect to the server ? if I change the username or password > to something false it tells me that it does not connect to the > server. So it is connecting with Admin and no password > > However I get this message ? which many others get until they get FX > sussed and working OK. > > Using FileMaker URL: http://Admin:@192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml?-db=Contacts.fp7&-lay=web_list&-max=all&-findall > > > Now I understand some of the code but not all. But this line tells > me that we are trying to create an XML file > 192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml > > and then parse it. > > Now for a PC this is not a valid address. > > Maybe my thinking is wrong and this file is never supposed to be > created ? like virtual ? > > After the lines > Ob_start(); > > Curl_exec etc > $data = trim (ob_get_contents() ); > > ob_end_clean(); > > > > $data is not empty ? it has 1108 bytes ? but only fHTML formatting > code ? no data from the database ? Contacts.fp7. > > Same with other databases I have tried > > Any ideas? Guess a lot of people are using Macs ? where it may be > straight forward and perhaps that URL is valid. > > Should I completely re-install without IIS???? ? or do you guys have > IIS installed ? if you are using PC. I suppose you use Apache on Mac. > > I would really like to use FX ? but have come to a dead stop. > > Cheers > > Paul > > paul@mancomp.co.nz > > > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Wed Jul 8 09:47:16 2009 From: chris at iViking.org (Chris Hansen) Date: Wed Jul 8 09:47:18 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: References: Message-ID: <239FC65D-A505-4215-990E-5E299ECA8ED6@iViking.org> Paul, Yes IIS has port 80. And so should FileMaker. You see, the way that FileMaker works is that server installs a customized version of a java application server (Tomcat, I believe) which is integrated with IIS on Windows or Apache on the Mac (this is what the Web Publishing Engine -- WPE -- is.) ALL requests, go through the active web server (IIS in your case), and requests for FileMaker data (distinguishable by that "/ fmi/xml/" in the path get redirected to that application server BY the web server. Okay, so that URL that comes up should work when you click on it. If you've configured everything correctly, that URL will connect to the web server, which will note that it's a request for FileMaker data, and pass on the request to the WPE. At that point, the WPE will grab the data from FileMaker, and IIS will return the resulting XML to the browser. So, what happens if you click on that URL? (Yes, that URL works just fine with PCs -- most clients that I've worked with use PCs.) Let's start with that, and go from there. --Chris On Jul 8, 2009, at 5:11 AM, Paul wrote: > Hi > > I have spent a good few hours trying to get FX to work, but cannot > get the find queries working. > > I have FPServer 9 Advanced on a PC. > > PHP is working fine. > > IIS is also installed; although I can stop it ? with no beneficial > effect. > > IIS is 127.0.0.1 ? localhost > > FMS is set to 192.168.29.252 and port 16000 ? as IIS has copped 80. > > I try FX_tester.php ? getting the IP and port and FP7 correct etc. > It does connect to the server ? if I change the username or password > to something false it tells me that it does not connect to the > server. So it is connecting with Admin and no password > > However I get this message ? which many others get until they get FX > sussed and working OK. > > Using FileMaker URL: http://Admin:@192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml?-db=Contacts.fp7&-lay=web_list&-max=all&-findall > > > Now I understand some of the code but not all. But this line tells > me that we are trying to create an XML file > 192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml > > and then parse it. > > Now for a PC this is not a valid address. > > Maybe my thinking is wrong and this file is never supposed to be > created ? like virtual ? > > After the lines > Ob_start(); > > Curl_exec etc > $data = trim (ob_get_contents() ); > > ob_end_clean(); > > > > $data is not empty ? it has 1108 bytes ? but only fHTML formatting > code ? no data from the database ? Contacts.fp7. > > Same with other databases I have tried > > Any ideas? Guess a lot of people are using Macs ? where it may be > straight forward and perhaps that URL is valid. > > Should I completely re-install without IIS???? ? or do you guys have > IIS installed ? if you are using PC. I suppose you use Apache on Mac. > > I would really like to use FX ? but have come to a dead stop. > > Cheers > > Paul > > paul@mancomp.co.nz > > > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From paul at mancomp.co.nz Wed Jul 8 14:03:42 2009 From: paul at mancomp.co.nz (Paul) Date: Wed Jul 8 14:03:37 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: <239FC65D-A505-4215-990E-5E299ECA8ED6@iViking.org> Message-ID: Hi Chris Thanks for the quick reply. I was sleeping when it arrived - we are out of kilter with you guys, us being in new Zealand. I changed the port to 80. Clicking on the link I get a Page cannot be found error from the Browser Internet Explorer. Both with port = 80 and port = 16000. Just wondering: The Home IP for the browser is 127.0.0.1 Filemaker Server is 192.168.29.252 - the IP address of the computer. I think that is the correct thing to do isn't it? I set it up to do the Filemaker test pages which work OK. But there is something else strange. I used Filemaker Site Assistant which works OK with the Filemaker example file. But if I try to make a site with Book_List.fp7 or Contacts.fp7 using Admin and no password I tells me I have the wrong Username and/or password. I did add PHP priv to Book_List. I do not understand that - the Account Admin does have full access and no password. Is it OK to have everything on one computer? I do have a network so I can spread it around - but tried that and it made no diff. Cheers- and thanks for you time - the DEBUG and DEBUG FUZZY look great; well so does the whole thing. Paul -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Chris Hansen Sent: Thursday, 9 July 2009 3:47 a.m. To: FX.php Discussion List Subject: Re: [FX.php List] Parsing FP7 XML data Paul, Yes IIS has port 80. And so should FileMaker. You see, the way that FileMaker works is that server installs a customized version of a java application server (Tomcat, I believe) which is integrated with IIS on Windows or Apache on the Mac (this is what the Web Publishing Engine -- WPE -- is.) ALL requests, go through the active web server (IIS in your case), and requests for FileMaker data (distinguishable by that "/ fmi/xml/" in the path get redirected to that application server BY the web server. Okay, so that URL that comes up should work when you click on it. If you've configured everything correctly, that URL will connect to the web server, which will note that it's a request for FileMaker data, and pass on the request to the WPE. At that point, the WPE will grab the data from FileMaker, and IIS will return the resulting XML to the browser. So, what happens if you click on that URL? (Yes, that URL works just fine with PCs -- most clients that I've worked with use PCs.) Let's start with that, and go from there. --Chris On Jul 8, 2009, at 5:11 AM, Paul wrote: > Hi > > I have spent a good few hours trying to get FX to work, but cannot > get the find queries working. > > I have FPServer 9 Advanced on a PC. > > PHP is working fine. > > IIS is also installed; although I can stop it - with no beneficial > effect. > > IIS is 127.0.0.1 - localhost > > FMS is set to 192.168.29.252 and port 16000 - as IIS has copped 80. > > I try FX_tester.php - getting the IP and port and FP7 correct etc. > It does connect to the server - if I change the username or password > to something false it tells me that it does not connect to the > server. So it is connecting with Admin and no password > > However I get this message - which many others get until they get FX > sussed and working OK. > > Using FileMaker URL: http://Admin:@192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml?-db=Contacts .fp7&-lay=web_list&-max=all&-findall > > > Now I understand some of the code but not all. But this line tells > me that we are trying to create an XML file > 192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml > > and then parse it. > > Now for a PC this is not a valid address. > > Maybe my thinking is wrong and this file is never supposed to be > created - like virtual - > > After the lines > Ob_start(); > > Curl_exec etc > $data = trim (ob_get_contents() ); > > ob_end_clean(); > > > > $data is not empty - it has 1108 bytes - but only fHTML formatting > code - no data from the database - Contacts.fp7. > > Same with other databases I have tried > > Any ideas? Guess a lot of people are using Macs - where it may be > straight forward and perhaps that URL is valid. > > Should I completely re-install without IIS???? - or do you guys have > IIS installed - if you are using PC. I suppose you use Apache on Mac. > > I would really like to use FX - but have come to a dead stop. > > Cheers > > Paul > > paul@mancomp.co.nz > > > > > > > > > _______________________________________________ > 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 tcmeyers at troymeyers.com Wed Jul 8 14:11:52 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Wed Jul 8 14:11:55 2009 Subject: [FX.php List] PHP question: Presenting the user with multiple pages from each result Message-ID: <5572E75B.BBD8.4ED3.BA58.24E8C41566FF@102.988809> John, OMG how easy is that! I've been watching your thread because I'll be approaching a barcode problem soon, and I just tried Scheffold's work... in my case I do NOT need to look any further. Thanks for posting your solution. -Troy > An update to how I resolved my project: > > I ended up creating these pages all in FX/PHP/HTML, I used: PHP Barcode > Image Generator by Charles J. Scheffold with GD Lib to make my barcodes > and presented the user with one label at a time with a JavaScript print > button and a next button to get the next record / label. Simple but > effective and the customer is pleased. > > The next time around I will try one of the PDF methods. Thanks for ALL > your help. > > John Funk From bob at patin.com Wed Jul 8 14:37:08 2009 From: bob at patin.com (Bob Patin) Date: Wed Jul 8 14:37:15 2009 Subject: [FX.php List] [OFF] Submitting a POST automatically Message-ID: <571533B2-22CD-4D80-873C-676A8C549709@patin.com> I've got a rather odd need on a site: In this site, members login to the site, and are verified in the database. So far so good. As members, they can also go to another site; to get to it, I have to use a POST to send specific variables to the 2nd site, but I only want logged-in members to be able to do so. If they're NOT logged-in already, I'd like to have the login process page validate them, then automatically submit a FORM that I've put on the same page. I tried using header("location: javascript:form2.submit();"); at the end of my PHP, but it wouldn't process. So here's my question: is there a way for me to do this: 1. query the db, validate the user (already done this) 2. submit a form that uses a POST (can't be a GET) without user interaction There's probably a simple way, but I haven't found it yet; thanks, Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090708/90c51a26/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From bob at patin.com Wed Jul 8 14:38:33 2009 From: bob at patin.com (Bob Patin) Date: Wed Jul 8 14:39:35 2009 Subject: [FX.php List] Never mind, just thought of it... Message-ID: I put an ONLOAD command in the FORM tag and trigger the form that way... Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090708/7e9c07a4/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From webmaster at studentpress.org Wed Jul 8 15:08:12 2009 From: webmaster at studentpress.org (NSPA/ACP) Date: Wed Jul 8 15:08:44 2009 Subject: [FX.php List] Re: PHP question: Presenting the user with multiple pages from each result In-Reply-To: <20090708025326.D6A082D5CD9@mail.iviking.org> References: <20090708025326.D6A082D5CD9@mail.iviking.org> Message-ID: I looked at TCPDF when this link was posted and it looked promising. I didn't see anything specific about one feature I would want, though: is it possible to write content onto an existing PDF file and present that to the user? For example, take a blank form PDF, fill in some blanks with data from FileMaker and let the user download it, fill out the rest and mail? Marc Wood Mpls. On Jul 7, 2009, at 9:53 PM, fx.php_list-request@mail.iviking.org wrote: > Message: 1 > Date: Sun, 5 Jul 2009 23:08:53 -0500 > From: Dale Bengston > Subject: Re: [FX.php List] PHP question: Presenting the user with > multiple pages from each result > To: "FX.php Discussion List" > Message-ID: <78F3E325-86DA-484E-8B0A-52060E6B7B60@tds.net> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > Michael, > > Wow! I just might start singing a different tune! > > Dale > > > On Jul 5, 2009, at 10:42 PM, Head Honcho wrote: > >> Hi all, >> >> Coming in [very] late... (I've been away). >> >> I have had very good success with TCPDF which >> is based on fpdf but seems to work better. >> >> >> >> Regards >> >> Michael Ward From adenman at tmea.org Wed Jul 8 15:22:53 2009 From: adenman at tmea.org (Andrew Denman) Date: Wed Jul 8 15:17:26 2009 Subject: [FX.php List] [OFF] Submitting a POST automatically In-Reply-To: <571533B2-22CD-4D80-873C-676A8C549709@patin.com> References: <571533B2-22CD-4D80-873C-676A8C549709@patin.com> Message-ID: <94A602F7D7242349A5B8846DEC4A5F8B1627D6EA58@mail> Bob, I can't tell if this code does what you want it to do, but I ran across it the other day when searching for header() help. It's posted on the php.net header() manual comments: http://us2.php.net/manual/en/function.header.php#89447 Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Wednesday, July 08, 2009 3:37 PM To: FX.php Discussion List Subject: [FX.php List] [OFF] Submitting a POST automatically I've got a rather odd need on a site: In this site, members login to the site, and are verified in the database. So far so good. As members, they can also go to another site; to get to it, I have to use a POST to send specific variables to the 2nd site, but I only want logged-in members to be able to do so. If they're NOT logged-in already, I'd like to have the login process page validate them, then automatically submit a FORM that I've put on the same page. I tried using header("location: javascript:form2.submit();"); at the end of my PHP, but it wouldn't process. So here's my question: is there a way for me to do this: 1. query the db, validate the user (already done this) 2. submit a form that uses a POST (can't be a GET) without user interaction There's probably a simple way, but I haven't found it yet; thanks, Bob Patin From bob at patin.com Wed Jul 8 15:50:43 2009 From: bob at patin.com (Bob Patin) Date: Wed Jul 8 15:52:18 2009 Subject: [FX.php List] [OFF] Submitting a POST automatically In-Reply-To: <94A602F7D7242349A5B8846DEC4A5F8B1627D6EA58@mail> References: <571533B2-22CD-4D80-873C-676A8C549709@patin.com> <94A602F7D7242349A5B8846DEC4A5F8B1627D6EA58@mail> Message-ID: <16FFD886-0103-4018-B1D0-8C9F187DC49C@patin.com> Andrew, Thanks for the response; once I thought more about it, I realized the solution: I just put this in the BODY tag: onload="javascript:form2.submit();" and it submits the form after the PHP processes, which is exactly what I was needing to do. Best, Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090708/a82a30c5/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 8, 2009, at 4:22 PM, Andrew Denman wrote: > Bob, > > I can't tell if this code does what you want it to do, but I ran > across it the other day when searching for header() help. It's > posted on the php.net header() manual comments: http://us2.php.net/manual/en/function.header.php#89447 > > $host = "www.example.com"; > $path = "/path/to/script.php"; > $data = "data1=value1&data2=value2"; > $data = urlencode($data); > > header("POST $path HTTP/1.1\r\n" ); > header("Host: $host\r\n" ); > header("Content-type: application/x-www-form-urlencoded\r\n" ); > header("Content-length: " . strlen($data) . "\r\n" ); > header("Connection: close\r\n\r\n" ); > header($data); > ?> > > Andrew Denman > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Bob Patin > Sent: Wednesday, July 08, 2009 3:37 PM > To: FX.php Discussion List > Subject: [FX.php List] [OFF] Submitting a POST automatically > > I've got a rather odd need on a site: > > In this site, members login to the site, and are verified in the > database. So far so good. > > As members, they can also go to another site; to get to it, I have > to use a POST to send specific variables to the 2nd site, but I only > want logged-in members to be able to do so. > > If they're NOT logged-in already, I'd like to have the login process > page validate them, then automatically submit a FORM that I've put > on the same page. > > I tried using > > header("location: javascript:form2.submit();"); > > at the end of my PHP, but it wouldn't process. So here's my question: > is there a way for me to do this: > > 1. query the db, validate the user (already done this) 2. submit a > form that uses a POST (can't be a GET) without user interaction > > There's probably a simple way, but I haven't found it yet; thanks, > > Bob Patin > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Wed Jul 8 16:47:59 2009 From: chris at iViking.org (Chris Hansen) Date: Wed Jul 8 16:48:01 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: References: Message-ID: <9ADD54E8-9E59-400D-A109-63F5585587D6@iViking.org> Paul, Tricky things those time zones and permissions :-p In order for FX.php to work, XML access needs to be enabled. PHP access is something that FileMaker set up for their API (since they don't want it tied to the XML API.) Try turning that extended privilege on, and see if that doesn't help. And thanks for the kudos! Best, --Chris On Jul 8, 2009, at 2:03 PM, Paul wrote: > Hi Chris > > Thanks for the quick reply. I was sleeping when it arrived - we are > out > of kilter with you guys, us being in new Zealand. > > I changed the port to 80. > > Clicking on the link I get a Page cannot be found error from the > Browser > Internet Explorer. Both with port = 80 and port = 16000. > > Just wondering: > The Home IP for the browser is 127.0.0.1 > Filemaker Server is 192.168.29.252 - the IP address of the computer. > > I think that is the correct thing to do isn't it? I set it up to do > the > Filemaker test pages which work OK. > > > > But there is something else strange. I used Filemaker Site Assistant > which works OK with the Filemaker example file. > > But if I try to make a site with Book_List.fp7 or Contacts.fp7 using > Admin and no password I tells me I have the wrong Username and/or > password. I did add PHP priv to Book_List. > > I do not understand that - the Account Admin does have full access and > no password. > > Is it OK to have everything on one computer? I do have a network so I > can spread it around - but tried that and it made no diff. > > Cheers- and thanks for you time - the DEBUG and DEBUG FUZZY look > great; > well so does the whole thing. > > Paul > > > > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Chris > Hansen > Sent: Thursday, 9 July 2009 3:47 a.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] Parsing FP7 XML data > > Paul, > > Yes IIS has port 80. And so should FileMaker. You see, the way that > FileMaker works is that server installs a customized version of a java > application server (Tomcat, I believe) which is integrated with IIS on > Windows or Apache on the Mac (this is what the Web Publishing Engine > -- WPE -- is.) ALL requests, go through the active web server (IIS > in > your case), and requests for FileMaker data (distinguishable by that > "/ > fmi/xml/" in the path get redirected to that application server BY the > web server. > > Okay, so that URL that comes up should work when you click on it. If > you've configured everything correctly, that URL will connect to the > web server, which will note that it's a request for FileMaker data, > and pass on the request to the WPE. At that point, the WPE will grab > the data from FileMaker, and IIS will return the resulting XML to the > browser. So, what happens if you click on that URL? (Yes, that URL > works just fine with PCs -- most clients that I've worked with use > PCs.) Let's start with that, and go from there. > > --Chris > > On Jul 8, 2009, at 5:11 AM, Paul wrote: > >> Hi >> >> I have spent a good few hours trying to get FX to work, but cannot >> get the find queries working. >> >> I have FPServer 9 Advanced on a PC. >> >> PHP is working fine. >> >> IIS is also installed; although I can stop it - with no beneficial >> effect. >> >> IIS is 127.0.0.1 - localhost >> >> FMS is set to 192.168.29.252 and port 16000 - as IIS has copped 80. >> >> I try FX_tester.php - getting the IP and port and FP7 correct etc. >> It does connect to the server - if I change the username or password >> to something false it tells me that it does not connect to the >> server. So it is connecting with Admin and no password >> >> However I get this message - which many others get until they get FX >> sussed and working OK. >> >> Using FileMaker URL: > http://Admin:@192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml?-db=Contacts > .fp7&-lay=web_list&-max=all&-findall >> >> >> Now I understand some of the code but not all. But this line tells >> me that we are trying to create an XML file >> 192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml >> >> and then parse it. >> >> Now for a PC this is not a valid address. >> >> Maybe my thinking is wrong and this file is never supposed to be >> created - like virtual - >> >> After the lines >> Ob_start(); >> >> Curl_exec etc >> $data = trim (ob_get_contents() ); >> >> ob_end_clean(); >> >> >> >> $data is not empty - it has 1108 bytes - but only fHTML formatting >> code - no data from the database - Contacts.fp7. >> >> Same with other databases I have tried >> >> Any ideas? Guess a lot of people are using Macs - where it may be >> straight forward and perhaps that URL is valid. >> >> Should I completely re-install without IIS???? - or do you guys have >> IIS installed - if you are using PC. I suppose you use Apache on Mac. >> >> I would really like to use FX - but have come to a dead stop. >> >> Cheers >> >> Paul >> >> paul@mancomp.co.nz >> >> >> >> >> >> >> >> >> _______________________________________________ >> 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 paul at mancomp.co.nz Thu Jul 9 00:20:27 2009 From: paul at mancomp.co.nz (Paul) Date: Thu Jul 9 00:20:24 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: <9ADD54E8-9E59-400D-A109-63F5585587D6@iViking.org> Message-ID: <2BECD7615A81436388742D6B60C71E43@Dual3> Hi Chris Actually XML is on for that database - your samples. It is early evening here and we are off to a Tchaikovsky concert - so all on hold till tomorrow morning, However I am thinking of popping the other hard drive into my research computer. This is the one with Apache PHP MySQL running - and running for the past five years. I am going to install FM server and see if I can get them all to talk to each other. Do you know of people using Apache with FX on PC? I think Apache is much better - for one thing it gives good messages on start-up if things are wrong - missing. I shall have to play around with PHP.INI I suppose - any knowledge on this? I have to enable curl I think. What I have been doing was done using the Filemaker setup - their PHP.INI so that it would run their test programmes - but maybe there is some interference. Anyway - it is worth an hours work. I don't like Microsoft on principle and so that spreads to IIS. Any comments - help? Paul -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Chris Hansen Sent: Thursday, 9 July 2009 10:48 a.m. To: FX.php Discussion List Subject: Re: [FX.php List] Parsing FP7 XML data Paul, Tricky things those time zones and permissions :-p In order for FX.php to work, XML access needs to be enabled. PHP access is something that FileMaker set up for their API (since they don't want it tied to the XML API.) Try turning that extended privilege on, and see if that doesn't help. And thanks for the kudos! Best, --Chris On Jul 8, 2009, at 2:03 PM, Paul wrote: > Hi Chris > > Thanks for the quick reply. I was sleeping when it arrived - we are > out > of kilter with you guys, us being in new Zealand. > > I changed the port to 80. > > Clicking on the link I get a Page cannot be found error from the > Browser > Internet Explorer. Both with port = 80 and port = 16000. > > Just wondering: > The Home IP for the browser is 127.0.0.1 > Filemaker Server is 192.168.29.252 - the IP address of the computer. > > I think that is the correct thing to do isn't it? I set it up to do > the > Filemaker test pages which work OK. > > > > But there is something else strange. I used Filemaker Site Assistant > which works OK with the Filemaker example file. > > But if I try to make a site with Book_List.fp7 or Contacts.fp7 using > Admin and no password I tells me I have the wrong Username and/or > password. I did add PHP priv to Book_List. > > I do not understand that - the Account Admin does have full access and > no password. > > Is it OK to have everything on one computer? I do have a network so I > can spread it around - but tried that and it made no diff. > > Cheers- and thanks for you time - the DEBUG and DEBUG FUZZY look > great; > well so does the whole thing. > > Paul > > > > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Chris > Hansen > Sent: Thursday, 9 July 2009 3:47 a.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] Parsing FP7 XML data > > Paul, > > Yes IIS has port 80. And so should FileMaker. You see, the way that > FileMaker works is that server installs a customized version of a java > application server (Tomcat, I believe) which is integrated with IIS on > Windows or Apache on the Mac (this is what the Web Publishing Engine > -- WPE -- is.) ALL requests, go through the active web server (IIS > in > your case), and requests for FileMaker data (distinguishable by that > "/ > fmi/xml/" in the path get redirected to that application server BY the > web server. > > Okay, so that URL that comes up should work when you click on it. If > you've configured everything correctly, that URL will connect to the > web server, which will note that it's a request for FileMaker data, > and pass on the request to the WPE. At that point, the WPE will grab > the data from FileMaker, and IIS will return the resulting XML to the > browser. So, what happens if you click on that URL? (Yes, that URL > works just fine with PCs -- most clients that I've worked with use > PCs.) Let's start with that, and go from there. > > --Chris > > On Jul 8, 2009, at 5:11 AM, Paul wrote: > >> Hi >> >> I have spent a good few hours trying to get FX to work, but cannot >> get the find queries working. >> >> I have FPServer 9 Advanced on a PC. >> >> PHP is working fine. >> >> IIS is also installed; although I can stop it - with no beneficial >> effect. >> >> IIS is 127.0.0.1 - localhost >> >> FMS is set to 192.168.29.252 and port 16000 - as IIS has copped 80. >> >> I try FX_tester.php - getting the IP and port and FP7 correct etc. >> It does connect to the server - if I change the username or password >> to something false it tells me that it does not connect to the >> server. So it is connecting with Admin and no password >> >> However I get this message - which many others get until they get FX >> sussed and working OK. >> >> Using FileMaker URL: > http://Admin:@192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml?-db=Contacts > .fp7&-lay=web_list&-max=all&-findall >> >> >> Now I understand some of the code but not all. But this line tells >> me that we are trying to create an XML file >> 192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml >> >> and then parse it. >> >> Now for a PC this is not a valid address. >> >> Maybe my thinking is wrong and this file is never supposed to be >> created - like virtual - >> >> After the lines >> Ob_start(); >> >> Curl_exec etc >> $data = trim (ob_get_contents() ); >> >> ob_end_clean(); >> >> >> >> $data is not empty - it has 1108 bytes - but only fHTML formatting >> code - no data from the database - Contacts.fp7. >> >> Same with other databases I have tried >> >> Any ideas? Guess a lot of people are using Macs - where it may be >> straight forward and perhaps that URL is valid. >> >> Should I completely re-install without IIS???? - or do you guys have >> IIS installed - if you are using PC. I suppose you use Apache on Mac. >> >> I would really like to use FX - but have come to a dead stop. >> >> Cheers >> >> Paul >> >> paul@mancomp.co.nz >> >> >> >> >> >> >> >> >> _______________________________________________ >> 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 steve at bluecrocodile.co.nz Thu Jul 9 01:10:25 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Jul 9 01:10:36 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: <2BECD7615A81436388742D6B60C71E43@Dual3> References: <2BECD7615A81436388742D6B60C71E43@Dual3> Message-ID: <9C9412A5-4D5A-4912-A5DD-D67E487AB449@bluecrocodile.co.nz> Hi Paul, Greetings from a fellow kiwi, though I'm currently living on the dark side in the UK...! I've been running Apache/FMP/FX on Windows for a number of years, including in several production environments, and have found it to be simpler to maintain and understand than the IIS equivalent. As Chris has explained, the FM web engine is actually 'just' Tomcat, and a couple of connectors... The guys at FMWebschool discovered the way to build those necesary connections for Apache on PC. See http://www.fmwebschool.com/resources/WPE_Apache_FMS9.pdf if you're using FMS 9, or http://www.fmwebschool.com/resources/WPE_Apache.pdf for FM 10... Good luck...! Cheers Steve On 9 Jul 2009, at 07:20, Paul wrote: > > Hi Chris > > Actually XML is on for that database - your samples. > > It is early evening here and we are off to a Tchaikovsky concert - so > all on hold till tomorrow morning, > > However I am thinking of popping the other hard drive into my research > computer. This is the one with Apache PHP MySQL running - and running > for the past five years. I am going to install FM server and see if I > can get them all to talk to each other. > > Do you know of people using Apache with FX on PC? > > I think Apache is much better - for one thing it gives good messages > on > start-up if things are wrong - missing. > > I shall have to play around with PHP.INI I suppose - any knowledge on > this? > > I have to enable curl I think. > > What I have been doing was done using the Filemaker setup - their > PHP.INI so that it would run their test programmes - but maybe there > is > some interference. Anyway - it is worth an hours work. > > I don't like Microsoft on principle and so that spreads to IIS. > > Any comments - help? > > Paul > > > > > > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Chris > Hansen > Sent: Thursday, 9 July 2009 10:48 a.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] Parsing FP7 XML data > > Paul, > > Tricky things those time zones and permissions :-p In order for > FX.php to work, XML access needs to be enabled. PHP access is > something that FileMaker set up for their API (since they don't want > it tied to the XML API.) Try turning that extended privilege on, and > see if that doesn't help. And thanks for the kudos! Best, > > --Chris > > On Jul 8, 2009, at 2:03 PM, Paul wrote: > >> Hi Chris >> >> Thanks for the quick reply. I was sleeping when it arrived - we are >> out >> of kilter with you guys, us being in new Zealand. >> >> I changed the port to 80. >> >> Clicking on the link I get a Page cannot be found error from the >> Browser >> Internet Explorer. Both with port = 80 and port = 16000. >> >> Just wondering: >> The Home IP for the browser is 127.0.0.1 >> Filemaker Server is 192.168.29.252 - the IP address of the computer. >> >> I think that is the correct thing to do isn't it? I set it up to do >> the >> Filemaker test pages which work OK. >> >> >> >> But there is something else strange. I used Filemaker Site Assistant >> which works OK with the Filemaker example file. >> >> But if I try to make a site with Book_List.fp7 or Contacts.fp7 using >> Admin and no password I tells me I have the wrong Username and/or >> password. I did add PHP priv to Book_List. >> >> I do not understand that - the Account Admin does have full access >> and >> no password. >> >> Is it OK to have everything on one computer? I do have a network so I >> can spread it around - but tried that and it made no diff. >> >> Cheers- and thanks for you time - the DEBUG and DEBUG FUZZY look >> great; >> well so does the whole thing. >> >> Paul >> >> >> >> >> >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Chris >> Hansen >> Sent: Thursday, 9 July 2009 3:47 a.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Parsing FP7 XML data >> >> Paul, >> >> Yes IIS has port 80. And so should FileMaker. You see, the way that >> FileMaker works is that server installs a customized version of a >> java >> application server (Tomcat, I believe) which is integrated with IIS >> on >> Windows or Apache on the Mac (this is what the Web Publishing Engine >> -- WPE -- is.) ALL requests, go through the active web server (IIS >> in >> your case), and requests for FileMaker data (distinguishable by that >> "/ >> fmi/xml/" in the path get redirected to that application server BY >> the >> web server. >> >> Okay, so that URL that comes up should work when you click on it. If >> you've configured everything correctly, that URL will connect to the >> web server, which will note that it's a request for FileMaker data, >> and pass on the request to the WPE. At that point, the WPE will grab >> the data from FileMaker, and IIS will return the resulting XML to the >> browser. So, what happens if you click on that URL? (Yes, that URL >> works just fine with PCs -- most clients that I've worked with use >> PCs.) Let's start with that, and go from there. >> >> --Chris >> >> On Jul 8, 2009, at 5:11 AM, Paul wrote: >> >>> Hi >>> >>> I have spent a good few hours trying to get FX to work, but cannot >>> get the find queries working. >>> >>> I have FPServer 9 Advanced on a PC. >>> >>> PHP is working fine. >>> >>> IIS is also installed; although I can stop it - with no beneficial >>> effect. >>> >>> IIS is 127.0.0.1 - localhost >>> >>> FMS is set to 192.168.29.252 and port 16000 - as IIS has copped 80. >>> >>> I try FX_tester.php - getting the IP and port and FP7 correct etc. >>> It does connect to the server - if I change the username or password >>> to something false it tells me that it does not connect to the >>> server. So it is connecting with Admin and no password >>> >>> However I get this message - which many others get until they get FX >>> sussed and working OK. >>> >>> Using FileMaker URL: >> > http://Admin:@192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml?-db=Contacts >> .fp7&-lay=web_list&-max=all&-findall >>> >>> >>> Now I understand some of the code but not all. But this line tells >>> me that we are trying to create an XML file >>> 192.168.29.252:16000/fmi/xml/FMPXMLRESULT.xml >>> >>> and then parse it. >>> >>> Now for a PC this is not a valid address. >>> >>> Maybe my thinking is wrong and this file is never supposed to be >>> created - like virtual - >>> >>> After the lines >>> Ob_start(); >>> >>> Curl_exec etc >>> $data = trim (ob_get_contents() ); >>> >>> ob_end_clean(); >>> >>> >>> >>> $data is not empty - it has 1108 bytes - but only fHTML formatting >>> code - no data from the database - Contacts.fp7. >>> >>> Same with other databases I have tried >>> >>> Any ideas? Guess a lot of people are using Macs - where it may be >>> straight forward and perhaps that URL is valid. >>> >>> Should I completely re-install without IIS???? - or do you guys have >>> IIS installed - if you are using PC. I suppose you use Apache on >>> Mac. >>> >>> I would really like to use FX - but have come to a dead stop. >>> >>> Cheers >>> >>> Paul >>> >>> paul@mancomp.co.nz >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090709/d5fd9d4e/attachment-0001.html From dennis at gandrpublishing.com Fri Jul 10 09:08:44 2009 From: dennis at gandrpublishing.com (Dennis Dalziel) Date: Fri Jul 10 09:08:54 2009 Subject: [FX.php List] Performance/Error Question Message-ID: <002901ca0170$52bd40e0$f837c2a0$@com> I'm working on a website that uses both MySQL and Filemaker as the backend databases. The queries to Filemaker are in fx.php and occasionally a page will load and generate an Undefined Variable error on a page that works most of the time and I know that I query for that variable. My question is what causes these intermittent errors? I have a feeling it's a performance issue and that Filemaker is just not getting the information back fast enough so php throws an error. I don't seem to see these kinds of errors from the MySQL queries. Is there a php.ini setting that I need to change to get rid of these errors? Thanks! Dennis Dalziel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090710/a588330b/attachment.html From steve at bluecrocodile.co.nz Fri Jul 10 09:41:10 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Jul 10 09:41:27 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: <002901ca0170$52bd40e0$f837c2a0$@com> References: <002901ca0170$52bd40e0$f837c2a0$@com> Message-ID: Hi Dennis, If you're actually getting a page back then it's not an FMP speed issue, since that would prevent the entire page from loading... Potentially if you're using something like $myResults['data'] [$resultKey]['fieldName'][0] to output a value, or to use it in an if or something, and the record which you've queried has doesn't have a value for that field, you'll get the type of warning that you seem to be getting... Cheers Steve On 10 Jul 2009, at 16:08, Dennis Dalziel wrote: > I?m working on a website that uses both MySQL and Filemaker as the > backend databases. The queries to Filemaker are in fx.php and > occasionally a page will load and generate an Undefined Variable > error on a page that works most of the time and I know that I query > for that variable. > > My question is what causes these intermittent errors? I have a > feeling it?s a performance issue and that Filemaker is just not > getting the information back fast enough so php throws an error. I > don?t seem to see these kinds of errors from the MySQL queries. > > Is there a php.ini setting that I need to change to get rid of these > errors? > > Thanks! > > Dennis Dalziel > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090710/fe0f4d28/attachment.html From dennis at gandrpublishing.com Fri Jul 10 09:51:31 2009 From: dennis at gandrpublishing.com (Dennis Dalziel) Date: Fri Jul 10 09:51:41 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: References: <002901ca0170$52bd40e0$f837c2a0$@com> Message-ID: <004001ca0176$4d277280$e7765780$@com> Steve, What is odd is that if I refresh the page then the errors go away and the Filemaker data is displayed, so I know the fields have values in them. Thanks, Dennis Dalziel Production Manager G & R Publishing Co. 507 Industrial Street Waverly, IA 50677 319-352-5391 From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Steve Winter Sent: Friday, July 10, 2009 10:41 AM To: FX.php Discussion List Subject: Re: [FX.php List] Performance/Error Question Hi Dennis, If you're actually getting a page back then it's not an FMP speed issue, since that would prevent the entire page from loading... Potentially if you're using something like $myResults['data'][$resultKey]['fieldName'][0] to output a value, or to use it in an if or something, and the record which you've queried has doesn't have a value for that field, you'll get the type of warning that you seem to be getting... Cheers Steve On 10 Jul 2009, at 16:08, Dennis Dalziel wrote: I'm working on a website that uses both MySQL and Filemaker as the backend databases. The queries to Filemaker are in fx.php and occasionally a page will load and generate an Undefined Variable error on a page that works most of the time and I know that I query for that variable. My question is what causes these intermittent errors? I have a feeling it's a performance issue and that Filemaker is just not getting the information back fast enough so php throws an error. I don't seem to see these kinds of errors from the MySQL queries. Is there a php.ini setting that I need to change to get rid of these errors? Thanks! Dennis Dalziel _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090710/27bbd199/attachment-0001.html From leo at finalresort.org Fri Jul 10 09:56:00 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Fri Jul 10 09:56:06 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: <004001ca0176$4d277280$e7765780$@com> References: <002901ca0170$52bd40e0$f837c2a0$@com> <004001ca0176$4d277280$e7765780$@com> Message-ID: Presumably the error message would tell you what file and where the error occurs? 10 jul 2009 kl. 17.51 skrev Dennis Dalziel: > Steve, > > What is odd is that if I refresh the page then the > errors go away and the Filemaker data is displayed, so I know the > fields have values in them. > > Thanks, > > Dennis Dalziel > Production Manager > G & R Publishing Co. > 507 Industrial Street > Waverly, IA 50677 > 319-352-5391 > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Steve Winter > Sent: Friday, July 10, 2009 10:41 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Performance/Error Question > > Hi Dennis, > > If you're actually getting a page back then it's not an FMP speed > issue, since that would prevent the entire page from loading... > > Potentially if you're using something like $myResults['data'] > [$resultKey]['fieldName'][0] to output a value, or to use it in an > if or something, and the record which you've queried has doesn't > have a value for that field, you'll get the type of warning that you > seem to be getting... > > Cheers > Steve > > > On 10 Jul 2009, at 16:08, Dennis Dalziel wrote: > > > I?m working on a website that uses both MySQL and Filemaker as the > backend databases. The queries to Filemaker are in fx.php and > occasionally a page will load and generate an Undefined Variable > error on a page that works most of the time and I know that I query > for that variable. > > My question is what causes these intermittent errors? I have a > feeling it?s a performance issue and that Filemaker is just not > getting the information back fast enough so php throws an error. I > don?t seem to see these kinds of errors from the MySQL queries. > > Is there a php.ini setting that I need to change to get rid of these > errors? > > Thanks! > > Dennis Dalziel > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court, Channel Way > Ocean Village, Southampton SO14 3GR > > _______________________________________________ > 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/20090710/45f8adee/attachment.html From tcmeyers at troymeyers.com Fri Jul 10 09:57:14 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Fri Jul 10 09:57:16 2009 Subject: [FX.php List] Performance/Error Question Message-ID: Dennis, Are you relying on a session variable or cookie that might not have existed on the first load of the page? What exactly is the error, and what line number does it occur on... and what's the code of that line? -Troy > Steve, > > What is odd is that if I refresh the page then the > errors go away and the Filemaker data is displayed, so I know the fields > have values in them. From jschwartz at exit445.com Fri Jul 10 10:10:33 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Jul 10 10:12:33 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: References: Message-ID: I'll bet there isn't any. I get this all the time...a web blank page with just that error. However, a refresh resolves the error. It's on my long list of problems to investigate when I get free time. ;-) FYI, I use Safari 4. J At 8:57 AM -0700 7/10/09, Troy Meyers wrote: > >What exactly is the error, and what line number does it occur on... >and what's the code of that line? > >-Troy > -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dennis at gandrpublishing.com Fri Jul 10 10:12:49 2009 From: dennis at gandrpublishing.com (Dennis Dalziel) Date: Fri Jul 10 10:12:57 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: References: Message-ID: <005401ca0179$46b81460$d4283d20$@com> I don't think that it's looking for a session variable but I'll check that out next time it occurs. The errors are so intermittent that it makes it difficult to diagnose. It's not a problem that I can easily duplicate. As I'm working on this site I may load a page 20 times without problems and then I get the error on the 21st load, strange. Thanks, Dennis Dalziel Production Manager G & R Publishing Co. 507 Industrial Street Waverly, IA 50677 319-352-5391 -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Troy Meyers Sent: Friday, July 10, 2009 10:57 AM To: FX.php Discussion List Subject: RE: [FX.php List] Performance/Error Question Dennis, Are you relying on a session variable or cookie that might not have existed on the first load of the page? What exactly is the error, and what line number does it occur on... and what's the code of that line? -Troy > Steve, > > What is odd is that if I refresh the page then the > errors go away and the Filemaker data is displayed, so I know the fields > have values in them. _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From dennis at gandrpublishing.com Fri Jul 10 10:14:41 2009 From: dennis at gandrpublishing.com (Dennis Dalziel) Date: Fri Jul 10 10:14:48 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: References: Message-ID: <005501ca0179$88fb6d90$9af248b0$@com> So when the site is live and error display is turned off, the user just gets a blank page. Dennis Dalziel Production Manager G & R Publishing Co. 507 Industrial Street Waverly, IA 50677 319-352-5391 -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan Schwartz Sent: Friday, July 10, 2009 11:11 AM To: FX.php Discussion List Subject: RE: [FX.php List] Performance/Error Question I'll bet there isn't any. I get this all the time...a web blank page with just that error. However, a refresh resolves the error. It's on my long list of problems to investigate when I get free time. ;-) FYI, I use Safari 4. J At 8:57 AM -0700 7/10/09, Troy Meyers wrote: > >What exactly is the error, and what line number does it occur on... >and what's the code of that line? > >-Troy > -- 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 1265 at lucerneblvd.org Fri Jul 10 10:18:39 2009 From: 1265 at lucerneblvd.org (david weiner) Date: Fri Jul 10 10:18:44 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: <005401ca0179$46b81460$d4283d20$@com> References: <005401ca0179$46b81460$d4283d20$@com> Message-ID: <801D273D-04FB-4BAC-A92A-BFF0AA8B6B02@lucerneblvd.org> I've never seen this - I wonder if it's a variable outside of the libraries themselves and is related to either the server version or the coding? In my case I've used FX in situations where most people think it's a little ridiculous - like a Mac Mini on a cable modem serving huge finds of FM data to a Webserver in a remote location on a shared site, so if it were a time out issue I'd definitely see it. I've had no problems like this with FMS 8.5 and FMS 10 - David On Jul 10, 2009, at 9:12 AM, Dennis Dalziel wrote: > I don't think that it's looking for a session variable but I'll > check that > out next time it occurs. The errors are so intermittent that it > makes it > difficult to diagnose. It's not a problem that I can easily > duplicate. As > I'm working on this site I may load a page 20 times without problems > and > then I get the error on the 21st load, strange. > > Thanks, > > Dennis Dalziel > Production Manager > G & R Publishing Co. > 507 Industrial Street > Waverly, IA 50677 > 319-352-5391 > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Troy Meyers > Sent: Friday, July 10, 2009 10:57 AM > To: FX.php Discussion List > Subject: RE: [FX.php List] Performance/Error Question > > Dennis, > > Are you relying on a session variable or cookie that might not have > existed > on the first load of the page? > > What exactly is the error, and what line number does it occur on... > and > what's the code of that line? > > -Troy > >> Steve, >> >> What is odd is that if I refresh the page then the >> errors go away and the Filemaker data is displayed, so I know the >> fields >> have values in them. > > _______________________________________________ > 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 leo at finalresort.org Fri Jul 10 10:22:49 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Fri Jul 10 10:22:52 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: <801D273D-04FB-4BAC-A92A-BFF0AA8B6B02@lucerneblvd.org> References: <005401ca0179$46b81460$d4283d20$@com> <801D273D-04FB-4BAC-A92A-BFF0AA8B6B02@lucerneblvd.org> Message-ID: <96414B27-D4FF-46DB-A16F-A375BBEAD78A@finalresort.org> The processing of a PHP script happens sequentally, not in parallel, so I don't think there's some timeing or race issue. It would be great if you could get the error message from somewhere. Unless you/the code supress it using @ before the offending statement, or the settings in your PHP installation silence errors, you should have it output as part of the page or otherwise in the error log of the web server or the PHP process. 10 jul 2009 kl. 18.18 skrev david weiner: > I've never seen this - I wonder if it's a variable outside of the > libraries themselves and is related to either the server version or > the coding? > In my case I've used FX in situations where most people think it's a > little ridiculous - like a Mac Mini on a cable modem serving huge > finds of FM data to a Webserver in a remote location on a shared > site, so if it were a time out issue I'd definitely see it. > > I've had no problems like this with FMS 8.5 and FMS 10 > > - David > > > On Jul 10, 2009, at 9:12 AM, Dennis Dalziel wrote: > >> I don't think that it's looking for a session variable but I'll >> check that >> out next time it occurs. The errors are so intermittent that it >> makes it >> difficult to diagnose. It's not a problem that I can easily >> duplicate. As >> I'm working on this site I may load a page 20 times without >> problems and >> then I get the error on the 21st load, strange. >> >> Thanks, >> >> Dennis Dalziel >> Production Manager >> G & R Publishing Co. >> 507 Industrial Street >> Waverly, IA 50677 >> 319-352-5391 >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Troy >> Meyers >> Sent: Friday, July 10, 2009 10:57 AM >> To: FX.php Discussion List >> Subject: RE: [FX.php List] Performance/Error Question >> >> Dennis, >> >> Are you relying on a session variable or cookie that might not have >> existed >> on the first load of the page? >> >> What exactly is the error, and what line number does it occur on... >> and >> what's the code of that line? >> >> -Troy >> >>> Steve, >>> >>> What is odd is that if I refresh the page then the >>> errors go away and the Filemaker data is displayed, so I know the >>> fields >>> have values in them. >> >> _______________________________________________ >> 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 dennis at gandrpublishing.com Fri Jul 10 10:24:28 2009 From: dennis at gandrpublishing.com (Dennis Dalziel) Date: Fri Jul 10 10:24:36 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: <801D273D-04FB-4BAC-A92A-BFF0AA8B6B02@lucerneblvd.org> References: <005401ca0179$46b81460$d4283d20$@com> <801D273D-04FB-4BAC-A92A-BFF0AA8B6B02@lucerneblvd.org> Message-ID: <005601ca017a$e75118d0$b5f34a70$@com> David, I've just upgraded to FMS 10 and it's a one machine, Windows 2003 server, deployment, I know this has caused performance problems before. It sure could be my coding. :-( Dennis Dalziel Production Manager G & R Publishing Co. 507 Industrial Street Waverly, IA 50677 319-352-5391 -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of david weiner Sent: Friday, July 10, 2009 11:19 AM To: FX.php Discussion List Subject: Re: [FX.php List] Performance/Error Question I've never seen this - I wonder if it's a variable outside of the libraries themselves and is related to either the server version or the coding? In my case I've used FX in situations where most people think it's a little ridiculous - like a Mac Mini on a cable modem serving huge finds of FM data to a Webserver in a remote location on a shared site, so if it were a time out issue I'd definitely see it. I've had no problems like this with FMS 8.5 and FMS 10 - David On Jul 10, 2009, at 9:12 AM, Dennis Dalziel wrote: > I don't think that it's looking for a session variable but I'll > check that > out next time it occurs. The errors are so intermittent that it > makes it > difficult to diagnose. It's not a problem that I can easily > duplicate. As > I'm working on this site I may load a page 20 times without problems > and > then I get the error on the 21st load, strange. > > Thanks, > > Dennis Dalziel > Production Manager > G & R Publishing Co. > 507 Industrial Street > Waverly, IA 50677 > 319-352-5391 > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Troy Meyers > Sent: Friday, July 10, 2009 10:57 AM > To: FX.php Discussion List > Subject: RE: [FX.php List] Performance/Error Question > > Dennis, > > Are you relying on a session variable or cookie that might not have > existed > on the first load of the page? > > What exactly is the error, and what line number does it occur on... > and > what's the code of that line? > > -Troy > >> Steve, >> >> What is odd is that if I refresh the page then the >> errors go away and the Filemaker data is displayed, so I know the >> fields >> have values in them. > > _______________________________________________ > 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 1265 at lucerneblvd.org Fri Jul 10 10:32:55 2009 From: 1265 at lucerneblvd.org (david weiner) Date: Fri Jul 10 10:33:00 2009 Subject: [FX.php List] Performance/Error Question In-Reply-To: <005601ca017a$e75118d0$b5f34a70$@com> References: <005401ca0179$46b81460$d4283d20$@com> <801D273D-04FB-4BAC-A92A-BFF0AA8B6B02@lucerneblvd.org> <005601ca017a$e75118d0$b5f34a70$@com> Message-ID: <7945C314-78CD-4F79-862C-38E4CD4ED574@lucerneblvd.org> I suppose if you have the time and energy you can try cutting out parts of the page and hitting reload excessively to see at what point the errors comes back in - I'd do that and take a look at the error logs to see if I could figure out what's causing the error to occur. Often the error is just before or after the code that's getting reported as the stop point. On Jul 10, 2009, at 9:24 AM, Dennis Dalziel wrote: > David, > > I've just upgraded to FMS 10 and it's a one machine, Windows 2003 > server, deployment, I know this has caused performance problems > before. It > sure could be my coding. :-( > > Dennis Dalziel > Production Manager > G & R Publishing Co. > 507 Industrial Street > Waverly, IA 50677 > 319-352-5391 > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of david > weiner > Sent: Friday, July 10, 2009 11:19 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Performance/Error Question > > I've never seen this - I wonder if it's a variable outside of the > libraries themselves and is related to either the server version or > the coding? > In my case I've used FX in situations where most people think it's a > little ridiculous - like a Mac Mini on a cable modem serving huge > finds of FM data to a Webserver in a remote location on a shared site, > so if it were a time out issue I'd definitely see it. > > I've had no problems like this with FMS 8.5 and FMS 10 > > - David > > > On Jul 10, 2009, at 9:12 AM, Dennis Dalziel wrote: > >> I don't think that it's looking for a session variable but I'll >> check that >> out next time it occurs. The errors are so intermittent that it >> makes it >> difficult to diagnose. It's not a problem that I can easily >> duplicate. As >> I'm working on this site I may load a page 20 times without problems >> and >> then I get the error on the 21st load, strange. >> >> Thanks, >> >> Dennis Dalziel >> Production Manager >> G & R Publishing Co. >> 507 Industrial Street >> Waverly, IA 50677 >> 319-352-5391 >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Troy >> Meyers >> Sent: Friday, July 10, 2009 10:57 AM >> To: FX.php Discussion List >> Subject: RE: [FX.php List] Performance/Error Question >> >> Dennis, >> >> Are you relying on a session variable or cookie that might not have >> existed >> on the first load of the page? >> >> What exactly is the error, and what line number does it occur on... >> and >> what's the code of that line? >> >> -Troy >> >>> Steve, >>> >>> What is odd is that if I refresh the page then the >>> errors go away and the Filemaker data is displayed, so I know the >>> fields >>> have values in them. >> >> _______________________________________________ >> 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 jfunk at criticalsolution.com Fri Jul 10 11:54:13 2009 From: jfunk at criticalsolution.com (John Funk) Date: Fri Jul 10 11:54:17 2009 Subject: [FX.php List] FX_Error in iis only Message-ID: I am getting this error when running my solution on my clients iis web server. My development server is Windows / Apache and everything works fine. Any ideas how to patch for iis? Or do I wait for the whole world to switch to Apache :) Thanks, John Funk Fatal error: Cannot use object of type FX_Error as array in C:\Inetpub\wwwroot\CargoTRK\loginvalidate.php on line 20 The first 20 lines of loginvalidate.php are listed here: SetDBData($db, 'web_shippers','1'); $request->SetDBUserPass($fmAccount, $fmPass); $request->AddDBParam('AccountNumber', "==".$AccountNumber); $request->AddDBParam('Pass',"==".$Pass); $result =$request->FMFind(); $records =$result['data']; -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090710/0db42d93/attachment.html From jschwartz at exit445.com Fri Jul 10 12:09:00 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Jul 10 12:12:28 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: References: Message-ID: John, Isn't this the standard error that displays if no records are found and the script is allowed to continue? Error checking at line 19 would catch the error...probably 401. ...unless I'm wrong. ;-) jonathan At 12:54 PM -0500 7/10/09, John Funk wrote: >I am getting this error when running my solution on my clients iis >web server. My development server is Windows / Apache and everything >works fine. >Any ideas how to patch for iis? Or do I wait for the whole world to >switch to Apache :) > >Thanks, >John Funk > >Fatal error: Cannot use object of type FX_Error as array in >C:\Inetpub\wwwroot\CargoTRK\loginvalidate.php on line 20 > >The first 20 lines of loginvalidate.php are listed here: >require_once ('FX/FX.php'); >require_once ('includes/server.php'); >require_once ('includes/includes.php'); >$stime=time(); >//define('DEBUG', True); >//display_post_get(); > >$Submit=$_REQUEST["Submit"]; > >//Query Account Number and Pass for login >$AccountNumber=$_REQUEST["AccountNumber"]; >$Pass=$_REQUEST["Pass"]; >$request = new FX($ServerIP, $port, 'FMPro7'); >$request->SetDBData($db, 'web_shippers','1'); >$request->SetDBUserPass($fmAccount, $fmPass); >$request->AddDBParam('AccountNumber', "==".$AccountNumber); >$request->AddDBParam('Pass',"==".$Pass); >$result =$request->FMFind(); >$records =$result['data']; > >_______________________________________________ >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/20090710/95364078/attachment-0001.html From jschwartz at exit445.com Fri Jul 10 12:14:28 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Jul 10 12:14:37 2009 Subject: [FX.php List] Windows/Apache instead of Windows/IIS Message-ID: Hi Folks, The previous email fro John Funk struck a cord with me. I'm battling a consistent problem at a client where FMP Customer Web Publishing using FMServer 10 and Windows Server 200/IIS simply dies from time to time. Restarting IIS seems to remedy the problem. We have peeked under every rock to try and figure out what is dying and why...to no avail. John's mention of Apache reminder me the Windows/Apache is an alternative. My background is on the OS X Server side, so I have not been part of the client's web server discussion...until now. Thx Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From leo at finalresort.org Fri Jul 10 12:33:06 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Fri Jul 10 12:33:11 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: References: Message-ID: <0766143E-F451-4B4E-934D-84E9FE5610F2@finalresort.org> 10 jul 2009 kl. 19.54 skrev John Funk: > $result =$request->FMFind(); > $records =$result['data']; the $result you get back from $request->FMFind() is an instance of the class FX_Error, and the problem is that you're not checking for this but presuming that the result is not an error, and you try to use it as an array in the second line. As Jonathan said, implement error checking. I'm sure the appropriate code is described in the FX documentation :) -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090710/d13b9a18/attachment.html From dbengston at tds.net Fri Jul 10 12:52:44 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Jul 10 12:52:50 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: <0766143E-F451-4B4E-934D-84E9FE5610F2@finalresort.org> References: <0766143E-F451-4B4E-934D-84E9FE5610F2@finalresort.org> Message-ID: Yes, if your code generates an FX error, $result is a PHP object, not a PHP array. I use the built-in PHP function is_object() to trap this scenario. Dale On Jul 10, 2009, at 1:33 PM, Leo R. Lundgren wrote: > > 10 jul 2009 kl. 19.54 skrev John Funk: > >> $result =$request->FMFind(); >> $records =$result['data']; > > the $result you get back from $request->FMFind() is an instance of > the class FX_Error, and the problem is that you're not checking for > this but presuming that the result is not an error, and you try to > use it as an array in the second line. > > As Jonathan said, implement error checking. I'm sure the appropriate > code is described in the FX documentation :) > > -| > > _______________________________________________ > 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/20090710/a92a2572/attachment.html From jschwartz at exit445.com Fri Jul 10 13:09:30 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Jul 10 13:12:31 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: References: <0766143E-F451-4B4E-934D-84E9FE5610F2@finalresort.org> Message-ID: Interesting. If I can ask...what does the php "is_object" tell you that an $Result['error_Code'] would not reveal? I am learning to appreciate the entire realm of errors that can...AND DO...occur when a php page goes south. This one addressse the scenario where PHP is alive, FMP is alive, WPE is alive, fx.php has executed and can not continue because no data has been returned. J At 1:52 PM -0500 7/10/09, Dale Bengston wrote: >Yes, if your code generates an FX error, $result is a PHP object, >not a PHP array. I use >the built-in PHP function is_object() to trap this scenario. > >Dale > > > -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jfunk at criticalsolution.com Fri Jul 10 13:42:08 2009 From: jfunk at criticalsolution.com (John Funk) Date: Fri Jul 10 13:42:13 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: Message-ID: Thanks for all your input on this, there is an interesting note I did not mention, the resulting web page from this code DOES show the data from FileMaker, infact when dubug is used the xml data will show. Also why and error on iis and not apache? John On 7/10/09 1:09 PM, "Jonathan Schwartz" wrote: > John, > > Isn't this the standard error that displays if no records are found and the > script is allowed to continue? Error checking at line 19 would catch the > error...probably 401. > > ...unless I'm wrong. ;-) > > jonathan > > > > At 12:54 PM -0500 7/10/09, John Funk wrote: >> I am getting this error when running my solution on my clients iis web >> server. My development server is Windows / Apache and everything works fine. >> Any ideas how to patch for iis? Or do I wait for the whole world to switch to >> Apache :) >> >> Thanks, >> John Funk >> >> Fatal error: Cannot use object of type FX_Error as array in >> C:\Inetpub\wwwroot\CargoTRK\loginvalidate.php on line 20 >> >> The first 20 lines of loginvalidate.php are listed here: >> > require_once ('FX/FX.php'); >> require_once ('includes/server.php'); >> require_once ('includes/includes.php'); >> $stime=time(); >> //define('DEBUG', True); >> //display_post_get(); >> >> $Submit=$_REQUEST["Submit"]; >> >> //Query Account Number and Pass for login >> $AccountNumber=$_REQUEST["AccountNumber"]; >> $Pass=$_REQUEST["Pass"]; >> $request = new FX($ServerIP, $port, 'FMPro7'); >> $request->SetDBData($db, 'web_shippers','1'); >> $request->SetDBUserPass($fmAccount, $fmPass); >> $request->AddDBParam('AccountNumber', "==".$AccountNumber); >> $request->AddDBParam('Pass',"==".$Pass); >> $result =$request->FMFind(); >> $records =$result['data']; >> >> _______________________________________________ >> 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/20090710/d7a24ba2/attachment.html From jfunk at criticalsolution.com Fri Jul 10 13:49:13 2009 From: jfunk at criticalsolution.com (John Funk) Date: Fri Jul 10 13:49:27 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: Message-ID: My Bad, it does look like the ip address ised is not returning data. Stay tuned... On 7/10/09 2:42 PM, "John Funk" wrote: > Thanks for all your input on this, there is an interesting note I did not > mention, the resulting web page from this code DOES show the data from > FileMaker, infact when dubug is used the xml data will show. > Also why and error on iis and not apache? > John > > > On 7/10/09 1:09 PM, "Jonathan Schwartz" wrote: > >> John, >> >> Isn't this the standard error that displays if no records are found and the >> script is allowed to continue? Error checking at line 19 would catch the >> error...probably 401. >> >> ...unless I'm wrong. ;-) >> >> jonathan >> >> >> >> At 12:54 PM -0500 7/10/09, John Funk wrote: >>> I am getting this error when running my solution on my clients iis web >>> server. My development server is Windows / Apache and everything works fine. >>> Any ideas how to patch for iis? Or do I wait for the whole world to switch >>> to Apache :) >>> >>> Thanks, >>> John Funk >>> >>> Fatal error: Cannot use object of type FX_Error as array in >>> C:\Inetpub\wwwroot\CargoTRK\loginvalidate.php on line 20 >>> >>> The first 20 lines of loginvalidate.php are listed here: >>> >> require_once ('FX/FX.php'); >>> require_once ('includes/server.php'); >>> require_once ('includes/includes.php'); >>> $stime=time(); >>> //define('DEBUG', True); >>> //display_post_get(); >>> >>> $Submit=$_REQUEST["Submit"]; >>> >>> //Query Account Number and Pass for login >>> $AccountNumber=$_REQUEST["AccountNumber"]; >>> $Pass=$_REQUEST["Pass"]; >>> $request = new FX($ServerIP, $port, 'FMPro7'); >>> $request->SetDBData($db, 'web_shippers','1'); >>> $request->SetDBUserPass($fmAccount, $fmPass); >>> $request->AddDBParam('AccountNumber', "==".$AccountNumber); >>> $request->AddDBParam('Pass',"==".$Pass); >>> $result =$request->FMFind(); >>> $records =$result['data']; >>> >>> _______________________________________________ >>> 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/20090710/92aaf04f/attachment-0001.html From jschwartz at exit445.com Fri Jul 10 13:55:38 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Jul 10 13:57:32 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: References: Message-ID: Hmmm... What do you get when you echo Fx.php error code, if any: $result['errorCode'] (put just after FMFIND line. What do you see if you print the resulting array to screen: print_r($result)? J At 2:42 PM -0500 7/10/09, John Funk wrote: >Thanks for all your input on this, there is an interesting note I >did not mention, the resulting web page from this code DOES show the >data from FileMaker, infact when dubug is used the xml data will >show. >Also why and error on iis and not apache? >John > > >On 7/10/09 1:09 PM, "Jonathan Schwartz" wrote: > >John, > >Isn't this the standard error that displays if no records are found >and the script is allowed to continue? Error checking at line 19 >would catch the error...probably 401. > >...unless I'm wrong. ;-) > >jonathan > > > >At 12:54 PM -0500 7/10/09, John Funk wrote: > >I am getting this error when running my solution on my clients iis >web server. My development server is Windows / Apache and everything >works fine. >Any ideas how to patch for iis? Or do I wait for the whole world to >switch to Apache :) > >Thanks, >John Funk > >Fatal error: Cannot use object of type FX_Error as array in >C:\Inetpub\wwwroot\CargoTRK\loginvalidate.php on line 20 > >The first 20 lines of loginvalidate.php are listed here: >require_once ('FX/FX.php'); >require_once ('includes/server.php'); >require_once ('includes/includes.php'); >$stime=time(); >//define('DEBUG', True); >//display_post_get(); > >$Submit=$_REQUEST["Submit"]; > >//Query Account Number and Pass for login >$AccountNumber=$_REQUEST["AccountNumber"]; >$Pass=$_REQUEST["Pass"]; >$request = new FX($ServerIP, $port, 'FMPro7'); >$request->SetDBData($db, 'web_shippers','1'); >$request->SetDBUserPass($fmAccount, $fmPass); >$request->AddDBParam('AccountNumber', "==".$AccountNumber); >$request->AddDBParam('Pass',"==".$Pass); >$result =$request->FMFind(); >$records =$result['data']; > >_______________________________________________ >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/20090710/3c133b0f/attachment.html From jfunk at criticalsolution.com Fri Jul 10 14:09:33 2009 From: jfunk at criticalsolution.com (John Funk) Date: Fri Jul 10 14:09:38 2009 Subject: [FX.php List] FX_Error in iis only RESOLVED In-Reply-To: Message-ID: I found an upper case letter in a FileMaker Field name in the prod server when on my dev version there was a lower case. It threw everything off... Sorry Bill Gates and iis for wrongful blame, (I still prefer Apache). John Funk On 7/10/09 2:55 PM, "Jonathan Schwartz" wrote: > Hmmm... > > What do you get when you echo Fx.php error code, if any: $result['errorCode'] > (put just after FMFIND line. > > What do you see if you print the resulting array to screen: print_r($result)? > > J > > At 2:42 PM -0500 7/10/09, John Funk wrote: >> Thanks for all your input on this, there is an interesting note I did not >> mention, the resulting web page from this code DOES show the data from >> FileMaker, infact when dubug is used the xml data will show. >> Also why and error on iis and not apache? >> John >> >> >> On 7/10/09 1:09 PM, "Jonathan Schwartz" wrote: >>> John, >>> >>> Isn't this the standard error that displays if no records are found and the >>> script is allowed to continue? Error checking at line 19 would catch the >>> error...probably 401. >>> >>> ...unless I'm wrong. ;-) >>> >>> jonathan >>> >>> >>> >>> At 12:54 PM -0500 7/10/09, John Funk wrote: >>>> I am getting this error when running my solution on my clients iis web >>>> server. My development server is Windows / Apache and everything works >>>> fine. >>>> Any ideas how to patch for iis? Or do I wait for the whole world to switch >>>> to Apache :) >>>> >>>> Thanks, >>>> John Funk >>>> >>>> Fatal error: Cannot use object of type FX_Error as array in >>>> C:\Inetpub\wwwroot\CargoTRK\loginvalidate.php on line 20 >>>> >>>> The first 20 lines of loginvalidate.php are listed here: >>>> >>> require_once ('FX/FX.php'); >>>> require_once ('includes/server.php'); >>>> require_once ('includes/includes.php'); >>>> $stime=time(); >>>> //define('DEBUG', True); >>>> //display_post_get(); >>>> >>>> $Submit=$_REQUEST["Submit"]; >>>> >>>> //Query Account Number and Pass for login >>>> $AccountNumber=$_REQUEST["AccountNumber"]; >>>> $Pass=$_REQUEST["Pass"]; >>>> $request = new FX($ServerIP, $port, 'FMPro7'); >>>> $request->SetDBData($db, 'web_shippers','1'); >>>> $request->SetDBUserPass($fmAccount, $fmPass); >>>> $request->AddDBParam('AccountNumber', "==".$AccountNumber); >>>> $request->AddDBParam('Pass',"==".$Pass); >>>> $result =$request->FMFind(); >>>> $records =$result['data']; >>>> >>>> _______________________________________________ >>>> 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/20090710/36796d74/attachment.html From bob at patin.com Fri Jul 10 14:17:48 2009 From: bob at patin.com (Bob Patin) Date: Fri Jul 10 14:17:55 2009 Subject: [FX.php List] FX_Error in iis only RESOLVED In-Reply-To: References: Message-ID: <10205B45-B552-4E91-BC3D-FB6877DE1F8E@patin.com> John, Glad you solved it (I've been lurking); it's also good to know that it wasn't any sort of FileMaker speed issue. I say this because, in 6 or 7 years doing PHP with FX and the API, I've yet to have a problem that was due to FileMaker choking... Best, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 10, 2009, at 3:09 PM, John Funk wrote: > I found an upper case letter in a FileMaker Field name in the prod > server when on my dev version there was a lower case. It threw > everything off... > Sorry Bill Gates and iis for wrongful blame, (I still prefer Apache). > John Funk > > > On 7/10/09 2:55 PM, "Jonathan Schwartz" wrote: > >> Hmmm... >> >> What do you get when you echo Fx.php error code, if any: >> $result['errorCode'] (put just after FMFIND line. >> >> What do you see if you print the resulting array to screen: >> print_r($result)? >> >> J >> >> At 2:42 PM -0500 7/10/09, John Funk wrote: >>> Thanks for all your input on this, there is an interesting note I >>> did not mention, the resulting web page from this code DOES show >>> the data from FileMaker, infact when dubug is used the xml data >>> will show. >>> Also why and error on iis and not apache? >>> John >>> >>> >>> On 7/10/09 1:09 PM, "Jonathan Schwartz" >>> wrote: >>>> John, >>>> >>>> Isn't this the standard error that displays if no records are >>>> found and the script is allowed to continue? Error checking at >>>> line 19 would catch the error...probably 401. >>>> >>>> ...unless I'm wrong. ;-) >>>> >>>> jonathan >>>> >>>> >>>> >>>> At 12:54 PM -0500 7/10/09, John Funk wrote: >>>>> I am getting this error when running my solution on my clients >>>>> iis web server. My development server is Windows / Apache and >>>>> everything works fine. >>>>> Any ideas how to patch for iis? Or do I wait for the whole world >>>>> to switch to Apache :) >>>>> >>>>> Thanks, >>>>> John Funk >>>>> >>>>> Fatal error: Cannot use object of type FX_Error as array in C: >>>>> \Inetpub\wwwroot\CargoTRK\loginvalidate.php on line 20 >>>>> >>>>> The first 20 lines of loginvalidate.php are listed here: >>>>> >>>> require_once ('FX/FX.php'); >>>>> require_once ('includes/server.php'); >>>>> require_once ('includes/includes.php'); >>>>> $stime=time(); >>>>> //define('DEBUG', True); >>>>> //display_post_get(); >>>>> >>>>> $Submit=$_REQUEST["Submit"]; >>>>> >>>>> //Query Account Number and Pass for login >>>>> $AccountNumber=$_REQUEST["AccountNumber"]; >>>>> $Pass=$_REQUEST["Pass"]; >>>>> $request = new FX($ServerIP, $port, 'FMPro7'); >>>>> $request->SetDBData($db, 'web_shippers','1'); >>>>> $request->SetDBUserPass($fmAccount, $fmPass); >>>>> $request->AddDBParam('AccountNumber', "==".$AccountNumber); >>>>> $request->AddDBParam('Pass',"==".$Pass); >>>>> $result =$request->FMFind(); >>>>> $records =$result['data']; >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- Skipped content of type multipart/related From adenman at tmea.org Fri Jul 10 15:25:37 2009 From: adenman at tmea.org (Andrew Denman) Date: Fri Jul 10 15:19:56 2009 Subject: [FX.php List] FX_Error in iis only In-Reply-To: References: <0766143E-F451-4B4E-934D-84E9FE5610F2@finalresort.org> Message-ID: <94A602F7D7242349A5B8846DEC4A5F8B1627D6EB4D@mail> A little tidbit I gleaned off this list sometime last year... FX.php includes a function to check if the returned result is an FX_Error object. Note that this does not check for FileMaker errors. If(FX::isError($result)){yes, FX_Error}else{no, keep going} Andrew Denman From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Friday, July 10, 2009 1:53 PM To: FX.php Discussion List Subject: Re: [FX.php List] FX_Error in iis only Yes, if your code generates an FX error, $result is a PHP object, not a PHP array. I use the built-in PHP function is_object() to trap this scenario. Dale On Jul 10, 2009, at 1:33 PM, Leo R. Lundgren wrote: 10 jul 2009 kl. 19.54 skrev John Funk: $result =$request->FMFind(); $records =$result['data']; the $result you get back from $request->FMFind() is an instance of the class FX_Error, and the problem is that you're not checking for this but presuming that the result is not an error, and you try to use it as an array in the second line. As Jonathan said, implement error checking. I'm sure the appropriate code is described in the FX documentation :) -| _______________________________________________ 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/20090710/8183eaf2/attachment.html From steve at bluecrocodile.co.nz Fri Jul 10 16:25:14 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Jul 10 16:25:18 2009 Subject: [FX.php List] Windows/Apache instead of Windows/IIS In-Reply-To: References: Message-ID: <65409848-F389-4D48-B606-1026E3C6BADC@bluecrocodile.co.nz> Hi Jonathan, I'm not really sure what your question is...?? If you're looking for 'endorsements', then I highly recommend following the FMWebschool instructions and moving to Apache on Win2003... it's simpler, the configuration is transparent, and many of the modules/instructions/concepts that are developed for *nix based systems (including OS X) 'just work', rather than having to be interpreted and mucked with to work under the IIS nightmare... As I'm sure you can tell I'm not a fan of IIS, and was extremely disappointed that FM pulled support for FMS on linux... these days with OS X as a credible alternative, that's my preference, however when the comparatively lower cost of a windows based server pushes clients towards that platform I still go with the Apache alternative... YMMV... Cheers Steve On 10 Jul 2009, at 19:14, Jonathan Schwartz wrote: > Hi Folks, > > The previous email fro John Funk struck a cord with me. I'm > battling a consistent problem at a client where FMP Customer Web > Publishing using FMServer 10 and Windows Server 200/IIS simply dies > from time to time. Restarting IIS seems to remedy the problem. > > We have peeked under every rock to try and figure out what is dying > and why...to no avail. > > John's mention of Apache reminder me the Windows/Apache is an > alternative. > > My background is on the OS X Server side, so I have not been part of > the client's web server discussion...until now. > > Thx > > 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 Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090710/a9436b97/attachment.html From jschwartz at exit445.com Fri Jul 10 16:36:31 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Jul 10 16:38:12 2009 Subject: [FX.php List] Windows/Apache instead of Windows/IIS In-Reply-To: <65409848-F389-4D48-B606-1026E3C6BADC@bluecrocodile.co.nz> References: <65409848-F389-4D48-B606-1026E3C6BADC@bluecrocodile.co.nz> Message-ID: Sorry for burying the question. In short, the question is, "We're having trouble with Windows 2008 Server/IIS due to IIS crashes. Is Windows 2008 Server/Apache a better alternative"? Looks like the answer might be "Yes". Any other opinions out there? Will look into FMWebSchool's instructions. Thanks Steve. J At 11:25 PM +0100 7/10/09, Steve Winter wrote: >Hi Jonathan, > >I'm not really sure what your question is...?? > >If you're looking for 'endorsements', then I highly recommend >following the FMWebschool instructions and moving to Apache on >Win2003... it's simpler, the configuration is transparent, and many >of the modules/instructions/concepts that are developed for *nix >based systems (including OS X) 'just work', rather than having to be >interpreted and mucked with to work under the IIS nightmare... > >As I'm sure you can tell I'm not a fan of IIS, and was extremely >disappointed that FM pulled support for FMS on linux... these days >with OS X as a credible alternative, that's my preference, however >when the comparatively lower cost of a windows based server pushes >clients towards that platform I still go with the Apache >alternative... > >YMMV... > >Cheers >Steve > -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dbengston at tds.net Fri Jul 10 17:28:31 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Jul 10 17:28:37 2009 Subject: [FX.php List] Windows/Apache instead of Windows/IIS In-Reply-To: References: <65409848-F389-4D48-B606-1026E3C6BADC@bluecrocodile.co.nz> Message-ID: Yes. I am road-testing a Windows/Apache/PHP installation at a major client. So far, all is well. Much nicer (or at very least more familiar) than IIS, and definitely less need for restarts. Dale On Jul 10, 2009, at 5:36 PM, Jonathan Schwartz wrote: > Sorry for burying the question. > > In short, the question is, "We're having trouble with Windows 2008 > Server/IIS due to IIS crashes. Is Windows 2008 Server/Apache a > better alternative"? > > Looks like the answer might be "Yes". > > Any other opinions out there? > > Will look into FMWebSchool's instructions. > > Thanks Steve. > > J > > At 11:25 PM +0100 7/10/09, Steve Winter wrote: >> Hi Jonathan, >> >> I'm not really sure what your question is...?? >> >> If you're looking for 'endorsements', then I highly recommend >> following the FMWebschool instructions and moving to Apache on >> Win2003... it's simpler, the configuration is transparent, and many >> of the modules/instructions/concepts that are developed for *nix >> based systems (including OS X) 'just work', rather than having to >> be interpreted and mucked with to work under the IIS nightmare... >> >> As I'm sure you can tell I'm not a fan of IIS, and was extremely >> disappointed that FM pulled support for FMS on linux... these days >> with OS X as a credible alternative, that's my preference, however >> when the comparatively lower cost of a windows based server pushes >> clients towards that platform I still go with the Apache >> alternative... >> >> YMMV... >> >> Cheers >> Steve >> > > -- > 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 tim at nicheit.com.au Fri Jul 10 23:51:32 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Fri Jul 10 23:51:40 2009 Subject: [FX.php List] FX_Error in iis only RESOLVED In-Reply-To: <10205B45-B552-4E91-BC3D-FB6877DE1F8E@patin.com> References: <10205B45-B552-4E91-BC3D-FB6877DE1F8E@patin.com> Message-ID: <9CF0DBA6-EF44-4691-BC5C-D81753654EC6@nicheit.com.au> > > Glad you solved it (I've been lurking); it's also good to know that > it wasn't any sort of FileMaker speed issue. I say this because, in > 6 or 7 years doing PHP with FX and the API, I've yet to have a > problem that was due to FileMaker choking... I have - once - and FX worked where the API wouldn't - it was a very long call, and the API would throw a timeout *every* time and FX wouldn't... From tpcturtle at gmail.com Sat Jul 11 03:33:57 2009 From: tpcturtle at gmail.com (Kamezawa Sachiko) Date: Sat Jul 11 03:34:02 2009 Subject: [FX.php List] Solving utf-8 numeric entities problems Message-ID: <89ddf940907110233s50f0197dy7e5b383744d3a0a@mail.gmail.com> Hi all, I have been trying to figure out how to obtain FileMaker Pro8/9 field values not in the form of html numeric entities when you want to get the result in utf-8 encoding. For example, if I enter aiueo in Japanese hiragana, I would get あいうえお in the resulted html source. Well that is alright when web browsers just show me the characters properly. However, I have noticed that those numeric entities are shown as they are when I use CakePHP with FMCakeMix and FX.php. (FMCakeMix is a full read/write datasource for FileMaker by Alex Gibbons. http://bakery.cakephp.org/articles/view/fmcakemix-a-full-read-write-datasource-for-filemaker .) So I modified FX.php a bit to obtain data in the proper utf-8 format by using html_entity_decode() function.. The modified function is ElementContents which begins from line 447 in FX.php. I am going to paste only the fixed parts here, but you can refer to the line number so it would not be too hard to locate them. **** MODIFIED PARTS BEGIN *** // Line 459 $this->currentData[$this->currentRecord][$this->currentField] .= html_entity_decode(preg_replace($this->UTF8SpecialChars, $this->UTF8HTMLEntities, $data),ENT_QUOTES,'UTF-8'); // Line 461 $this->currentData[$this->currentRecord][$this->currentField][$this->currentFieldIndex] .= html_entity_decode(preg_replace($this->UTF8SpecialChars, $this->UTF8HTMLEntities, $data),ENT_QUOTES,'UTF-8'); //Line 469 $this->valueLists[$this->currentValueList][$this->currentValueListElement] .= html_entity_decode(preg_replace($this->UTF8SpecialChars, $this->UTF8HTMLEntities, $data),ENT_QUOTES,'UTF-8');; **** MODIFIED PARTS END *** Ther version of FX.php I am using is 4.5.1. With this modification, I have been able to see results in cakePHP properly and the resulted html source shows the proper characters as well so far. But I am not so sure what I have done is the right way to do so. This is just to show you how I solved this problem with numeric entities. If there were better ways to solve this problem, I would very much appreciate them. Kame -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090711/4403eb91/attachment-0001.html From tpcturtle at gmail.com Sat Jul 11 12:09:59 2009 From: tpcturtle at gmail.com (Kamezawa Sachiko) Date: Sat Jul 11 12:10:03 2009 Subject: [FX.php List] Solving utf-8 numeric entities problems Message-ID: <89ddf940907111109y5eb88f7evcf1d14503dcfa869@mail.gmail.com> Hi all, I have been trying to figure out how to obtain FileMaker Pro8/9 field values not in the form of html numeric entities when you want to get the result in utf-8 encoding. For example, if I enter aiueo in Japanese hiragana, I would get あいうえお in the resulted html source. Well that is alright when web browsers just show me the characters properly. However, I have noticed that those numeric entities are shown as they are when I use CakePHP with FMCakeMix and FX.php. (FMCakeMix is a full read/write datasource for FileMaker by Alex Gibbons. http://bakery.cakephp.org/articles/view/fmcakemix-a-full-read-write-datasource-for-filemaker.) So I modified FX.php a bit to obtain data in the proper utf-8 format by using html_entity_decode() function.. The modified function is ElementContents which begins from line 447 in FX.php. I am going to paste only the fixed parts here, but you can refer to the line number so it would not be too hard to locate them. **** MODIFIED PARTS BEGIN *** // Line 459 $this->currentData[$this->currentRecord][$this->currentField] .= html_entity_decode(preg_replace($this->UTF8SpecialChars, $this->UTF8HTMLEntities, $data),ENT_QUOTES,'UTF-8'); // Line 461 $this->currentData[$this->currentRecord][$this->currentField][$this->currentFieldIndex] .= html_entity_decode(preg_replace($this->UTF8SpecialChars, $this->UTF8HTMLEntities, $data),ENT_QUOTES,'UTF-8'); //Line 469 $this->valueLists[$this->currentValueList][$this->currentValueListElement] .= html_entity_decode(preg_replace($this->UTF8SpecialChars, $this->UTF8HTMLEntities, $data),ENT_QUOTES,'UTF-8');; **** MODIFIED PARTS END *** Ther version of FX.php I am using is 4.5.1. With this modification, I have been able to see results in cakePHP properly and the resulted html source shows the proper characters as well so far. But I am not so sure what I have done is the right way to do so. This is just to show you how I solved this problem with numeric entities. If there were better ways to solve this problem, I would very much appreciate them. Kame -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090712/f273c786/attachment.html From jschwartz at exit445.com Sat Jul 11 18:37:03 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Jul 11 18:42:06 2009 Subject: [FX.php List] Very very odd behavior Message-ID: Hi Folks, Just had a hectic 2 hours that I thought that I would share.... Environment is Windows Server 2008/FMS10 with API (not fx.php), but I'm not sure it matters. Client was installing an emergency generator system and scheduled a shutdown of all power in the building. All systems were shut down gracefully. When the generator work was done, the FMS10 server was brought up without event. The Filemaker file could be accessed locally (within the building), but it soon became evident that access from the outside was not available at all. No FMP Remote use nor Custom Web Publishing. It was determined that the T-1 line was the problem (not sure how or why) and once corrected(?) , remote FMP and Custom Web publishing returned...or so we thought. It took 5 hours to realize the following very odd behavior: - Native FileMaker would perform normally: Read, Write, Create, Delete, etc. - CWP would only Read. It would not Write, Create, Add or Delete...and.... WOULD NOT THROW ERRORS! PHP scripts were humming along oblivious to the fact that records were not being edited, created, etc. We knew there was a problem only when we noted that no new records had been created in 5 hours, when there should have been dozens. After 2 hours of troubleshooting, without result, we resorted to restarting FileMaker Services, FileMaker Server and Web Publishing Engine. That put things back on track and the system started behaving normally again. Wha happened? J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From 1265 at lucerneblvd.org Sat Jul 11 18:53:53 2009 From: 1265 at lucerneblvd.org (david weiner) Date: Sat Jul 11 18:53:58 2009 Subject: [FX.php List] Very very odd behavior In-Reply-To: References: Message-ID: Are the databases on a local or external disk? Are there any shared directories on that same disk? (I'm assuming that the filemaker data directory is not shared.) Restarting an entire network is often weird, but more to the point, restarting Windows servers cold with a lot of shared space is pretty time consuming and maybe the FMS service came up before the disk was fully ready and that caused a weird permissions situation. I could see how having the Server start before the disk is 100% ready could put you in weird situation - I'm sure FMI would be interested in hearing about this since it really shouldn't happen. - David On Jul 11, 2009, at 5:37 PM, Jonathan Schwartz wrote: > Hi Folks, > > Just had a hectic 2 hours that I thought that I would share.... > > Environment is Windows Server 2008/FMS10 with API (not fx.php), but > I'm not sure it matters. > > Client was installing an emergency generator system and scheduled a > shutdown of all power in the building. All systems were shut down > gracefully. When the generator work was done, the FMS10 server was > brought up without event. The Filemaker file could be accessed > locally (within the building), but it soon became evident that > access from the outside was not available at all. No FMP Remote use > nor Custom Web Publishing. It was determined that the T-1 line was > the problem (not sure how or why) and once corrected(?) , remote FMP > and Custom Web publishing returned...or so we thought. > > It took 5 hours to realize the following very odd behavior: > - Native FileMaker would perform normally: Read, Write, Create, > Delete, etc. > - CWP would only Read. It would not Write, Create, Add or > Delete...and.... WOULD NOT THROW ERRORS! PHP scripts were humming > along oblivious to the fact that records were not being edited, > created, etc. We knew there was a problem only when we noted that > no new records had been created in 5 hours, when there should have > been dozens. > > After 2 hours of troubleshooting, without result, we resorted to > restarting FileMaker Services, FileMaker Server and Web Publishing > Engine. That put things back on track and the system started > behaving normally again. > > Wha happened? > > 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 Sat Jul 11 20:41:13 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Jul 11 20:42:27 2009 Subject: [FX.php List] Very very odd behavior In-Reply-To: References: Message-ID: Brilliant, David! I wasn't present for the restart, so I can't say. However, here is message from (non-tech) person who was: >Servers got turned on. SDR01 still takes 20 minutes applying network >settings and SDR02 said simething like: One or more drivers or >programs did not commence during startup. Check event log for >details. Perhaps this suggests what you suspect. Will look into it further . Thanks again. J At 5:53 PM -0700 7/11/09, david weiner wrote: >Are the databases on a local or external disk? Are there any shared >directories on that same disk? (I'm assuming that the filemaker data >directory is not shared.) > >Restarting an entire network is often weird, but more to the point, >restarting Windows servers cold with a lot of shared space is pretty >time consuming and maybe the FMS service came up before the disk was >fully ready and that caused a weird permissions situation. I could >see how having the Server start before the disk is 100% ready could >put you in weird situation - I'm sure FMI would be interested in >hearing about this since it really shouldn't happen. > >- David > > >On Jul 11, 2009, at 5:37 PM, Jonathan Schwartz wrote: > >>Hi Folks, >> >>Just had a hectic 2 hours that I thought that I would share.... >> >>Environment is Windows Server 2008/FMS10 with API (not fx.php), but >>I'm not sure it matters. >> >>Client was installing an emergency generator system and scheduled a >>shutdown of all power in the building. All systems were shut down >>gracefully. When the generator work was done, the FMS10 server was >>brought up without event. The Filemaker file could be accessed >>locally (within the building), but it soon became evident that >>access from the outside was not available at all. No FMP Remote >>use nor Custom Web Publishing. It was determined that the T-1 line >>was the problem (not sure how or why) and once corrected(?) , >>remote FMP and Custom Web publishing returned...or so we thought. >> >>It took 5 hours to realize the following very odd behavior: >> - Native FileMaker would perform normally: Read, Write, >>Create, Delete, etc. >> - CWP would only Read. It would not Write, Create, Add or >>Delete...and.... WOULD NOT THROW ERRORS! PHP scripts were humming >>along oblivious to the fact that records were not being edited, >>created, etc. We knew there was a problem only when we noted that >>no new records had been created in 5 hours, when there should have >>been dozens. >> >>After 2 hours of troubleshooting, without result, we resorted to >>restarting FileMaker Services, FileMaker Server and Web Publishing >>Engine. That put things back on track and the system started >>behaving normally again. >> >>Wha happened? >> >>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 jsfmp at earthlink.net Mon Jul 13 13:56:49 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Jul 13 13:56:54 2009 Subject: [FX.php List] Meeting at DevCon? Message-ID: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Hi all DevCon's just a month away now. Is there interest in trying to put together another meeting? Any ideas for topics? Or just a social thang? (Or Chris, have you already organized something with Delfina?) And who all's coming to SF, anyway? -Joel From bob at patin.com Mon Jul 13 14:04:06 2009 From: bob at patin.com (Bob Patin) Date: Mon Jul 13 14:04:12 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: <9B1FD224-5FCA-4772-BA70-90768A57FAB0@patin.com> On Jul 13, 2009, at 2:56 PM, Joel Shapiro wrote: > > DevCon's just a month away now. Is there interest in trying to put > together another meeting? Any ideas for topics? Or just a social > thang? > > (Or Chris, have you already organized something with Delfina?) > > And who all's coming to SF, anyway? I suspect that, just as they've been the past 2 years, FMI will choose to basically ignore FX.php, despite the fact that it blazed new ground for PHP with FileMaker, and is in fact faster than the API. Having said that, I'd vote for another meetup like we did last year, which of course means that yes, I'll be there. Best, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat/AIM: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance & TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? jQuery ? ExpressionEngine Full email services ? Free DNS hosting ? Colocation ? Consulting From dness at bondedbuilders.com Mon Jul 13 14:12:59 2009 From: dness at bondedbuilders.com (David Ness) Date: Mon Jul 13 14:13:01 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <9B1FD224-5FCA-4772-BA70-90768A57FAB0@patin.com> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> <9B1FD224-5FCA-4772-BA70-90768A57FAB0@patin.com> Message-ID: And I would like to suggest we have a group dinner one night. I used to live in SF, and there are no shortages of great places to eat. I'd recommend Buca di Beppo, a famous SF fixture. It's within easy walking distance of the event. http://www.bucadibeppo.com/ David Allen Ness Database Systems Programmer Web Applications Developer From dness at bondedbuilders.com Mon Jul 13 14:14:10 2009 From: dness at bondedbuilders.com (David Ness) Date: Mon Jul 13 14:14:12 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: I'll be there. 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 Joel Shapiro Sent: Monday, July 13, 2009 3:57 PM To: FX.php Discussion List Subject: [FX.php List] Meeting at DevCon? Hi all DevCon's just a month away now. Is there interest in trying to put together another meeting? Any ideas for topics? Or just a social thang? (Or Chris, have you already organized something with Delfina?) And who all's coming to SF, anyway? -Joel _______________________________________________ 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 Jul 13 15:29:12 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon Jul 13 15:29:23 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: I'll be there. Dinner is fine, but I think that having a meeting room session audio/video support is key. J At 12:56 PM -0700 7/13/09, Joel Shapiro wrote: >Hi all > >DevCon's just a month away now. Is there interest in trying to put >together another meeting? Any ideas for topics? Or just a social >thang? > >(Or Chris, have you already organized something with Delfina?) > >And who all's coming to SF, anyway? > >-Joel >_______________________________________________ >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 steve at bluecrocodile.co.nz Mon Jul 13 15:31:43 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Mon Jul 13 15:31:57 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: Hey Joel, I'm making the trip across the briny again, and think a meeting/gathering/social thing/all of the above, is a great idea... Cheers Steve -----Original Message----- From: Joel Shapiro To: "FX.php Discussion List" Date: Mon, 13 Jul 2009 12:56:49 -0700 Subject: [FX.php List] Meeting at DevCon? Hi all DevCon's just a month away now. Is there interest in trying to put together another meeting? Any ideas for topics? Or just a social thang? (Or Chris, have you already organized something with Delfina?) And who all's coming to SF, anyway? -Joel _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list [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/20090713/d22d70d7/attachment.html From bob at patin.com Mon Jul 13 16:00:33 2009 From: bob at patin.com (Bob Patin) Date: Mon Jul 13 16:00:40 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: Dinner would be cool; maybe we could do both... Thursday night's the keynote, and Saturday night is the dinner cruise (skiing anyone?); Friday night we could venture out and find a good sushi bar or other restaurant... BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat/AIM: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance & TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? jQuery ? ExpressionEngine Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 13, 2009, at 2:56 PM, Joel Shapiro wrote: > Hi all > > DevCon's just a month away now. Is there interest in trying to put > together another meeting? Any ideas for topics? Or just a social > thang? > > (Or Chris, have you already organized something with Delfina?) > > And who all's coming to SF, anyway? > > -Joel > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From headhoncho at customikesolutions.com Mon Jul 13 19:24:06 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Mon Jul 13 19:24:11 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: Hi all, On 14/07/2009, at 5:56 AM, Joel Shapiro wrote: > Hi all > > DevCon's just a month away now. Is there interest in trying to put > together another meeting? Any ideas for topics? Or just a social > thang? > > (Or Chris, have you already organized something with Delfina?) > > And who all's coming to SF, anyway? Sorry, I won't be there this year. Have a drink (or two) for me. 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 FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From ggt667 at gmail.com Tue Jul 14 01:43:14 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Jul 14 01:43:19 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: I would love to go to SF, but one of my friends is having his wedding at the same time... I hope there will be SF next year too. ggt 2009/7/14 Head Honcho : > Hi all, > > > On 14/07/2009, at 5:56 AM, Joel Shapiro wrote: > >> Hi all >> >> DevCon's just a month away now. ?Is there interest in trying to put >> together another meeting? ?Any ideas for topics? ?Or just a social thang? >> >> (Or Chris, have you already organized something with Delfina?) >> >> And who all's coming to SF, anyway? > > Sorry, I won't be there this year. ?Have a drink (or two) for me. > > 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 > FileMaker 10 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 dennis at gandrpublishing.com Tue Jul 14 06:54:38 2009 From: dennis at gandrpublishing.com (Dennis Dalziel) Date: Tue Jul 14 06:54:47 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: <003801ca0482$40db64a0$c2922de0$@com> Count me in, I wonder what they're expecting for attendance this year. Dennis Dalziel -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Joel Shapiro Sent: Monday, July 13, 2009 2:57 PM To: FX.php Discussion List Subject: [FX.php List] Meeting at DevCon? Hi all DevCon's just a month away now. Is there interest in trying to put together another meeting? Any ideas for topics? Or just a social thang? (Or Chris, have you already organized something with Delfina?) And who all's coming to SF, anyway? -Joel _______________________________________________ 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 Jul 14 08:36:04 2009 From: dbengston at tds.net (Dale Bengston) Date: Tue Jul 14 08:36:12 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <003801ca0482$40db64a0$c2922de0$@com> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> <003801ca0482$40db64a0$c2922de0$@com> Message-ID: Figures they finally move it out of the desert and into my old stomping grounds when I stop going to DevCon! Sorry to miss you all again this year. Dale On Jul 14, 2009, at 7:54 AM, Dennis Dalziel wrote: > Count me in, I wonder what they're expecting for attendance this year. > > Dennis Dalziel > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Joel > Shapiro > Sent: Monday, July 13, 2009 2:57 PM > To: FX.php Discussion List > Subject: [FX.php List] Meeting at DevCon? > > Hi all > > DevCon's just a month away now. Is there interest in trying to put > together another meeting? Any ideas for topics? Or just a social > thang? > > (Or Chris, have you already organized something with Delfina?) > > And who all's coming to SF, anyway? > > -Joel > _______________________________________________ > 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 andersm at alamark.com Tue Jul 14 12:43:56 2009 From: andersm at alamark.com (Anders Monsen) Date: Tue Jul 14 12:43:59 2009 Subject: [FX.php List] PHP question: Presenting the user with multiplepages from each result In-Reply-To: <74FA7539-23C4-4D92-92B9-9D19A65C2E99@customikesolutions.com> References: <80E9453F-9732-48DF-98A9-C8F732480467@bluecrocodile.co.nz><0CF5D70C-012F-4ECC-9449-2CCFAD82F9D6@finalresort.org><8AC831B1-76B4-4913-B251-9C7B2B499B22@tds.net> <74FA7539-23C4-4D92-92B9-9D19A65C2E99@customikesolutions.com> Message-ID: <4CA1D9A2-019D-48BA-A05C-0CF5F407E93D@alamark.com> I just returned from a trip to Norway and although this issue appears to have been resolved many days ago, I'd like throw out another suggestion for creating PDFs via PHP, namely "mPDF". This class lets you use CSS and HTML in your PDFs, and seems far more straightforward and malleable in my opinion than fpdf, especially when building tables. I have not used the latest 3.0beta version, but I used 2.5 extensively last year and it worked reasonable well. Regards, Anders Monsen On Jul 5, 2009, at 10:42 PM, Head Honcho wrote: > Hi all, > > Coming in [very] late... (I've been away). > > I have had very good success with TCPDF which > is based on fpdf but seems to work better. > > > > 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 > FileMaker 10 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 jsfmp at earthlink.net Wed Jul 15 01:18:15 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Jul 15 01:18:21 2009 Subject: [FX.php List] Re: Meeting at DevCon? References: <37600.192.168.9.2.1247522195.squirrel@www.iviking.org> Message-ID: Hi all I'm forwarding Chris' email to the group (below). Seems like we'll be a smaller group this year. (Too bad you others can't join us) Do any of you who are coming have things you'd like to show? (I, unfortunately, have had more straight FMP work this past year than web development... I'm grateful to have been kept plenty busy, but certainly glad I've got some new web work lined up for the coming year :-) As to a dinner... I don't know when there'll be much of a chance. Besides the Thurs keynote and the Sat dinner party, Fri has the welcome reception and then the FBA meeting. Maybe folks can get a late dinner, but at the very least we should be able to grab a drink somewhere. FWIW - As a current San Franciscan, I'll say that Buca di Beppo can have pretty long waits and it's not all that close to the Hilton. I don't know of a particularly good sushi restaurant downtown although I'm sure there are some in nearby Chinatown -- but if you've got time to get around, there's Japantown plus an excellent spot in the Inner Sunset called Ebisu. yummm... ;-) -Joel Begin forwarded message: > From: chris@www.iviking.org > Date: July 13, 2009 2:56:35 PM PDT > Subject: Re: Meeting at DevCon? > > Joel and List, > > Great ideas! Unfortunately I won't be there this year, so someone > else > will need to be the "go to" person. I do think getting together (for > those who will be there) is a good idea -- it's really nice to be > able to > put a face to the comments that appear on the list. Nothing pops > into my > mind topic-wise right now, but I'll pop back in here if I think of > something cool. Also, having lived in the Bay area in the past, I > second > the comment that there are some great places to eat, though I can > also see > the sense of having A/V available. Decisions, decisions =) > > Best, > > --Chris > >> Hi all >> >> DevCon's just a month away now. Is there interest in trying to put >> together another meeting? Any ideas for topics? Or just a social >> thang? >> >> (Or Chris, have you already organized something with Delfina?) >> >> And who all's coming to SF, anyway? >> >> -Joel >> >> > > From dwv at wmc-worldwide.com Wed Jul 15 10:32:19 2009 From: dwv at wmc-worldwide.com (David W. Vaklyes) Date: Wed Jul 15 10:32:25 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: On Jul 13, 2009, at 2:56 PM, Joel Shapiro wrote: > DevCon's just a month away now. Is there interest in trying to put > together another meeting? Any ideas for topics? Or just a social > thang? I'll be there. Perhaps we could be a "Special Interest" and have a noon meeting during the lunch break on Friday, Saturday, or Sunday. Dave Vaklyes breastfeedingoutlook.com From jsfmp at earthlink.net Wed Jul 15 11:15:11 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Jul 15 11:15:15 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: Hi all We were just given a room: Thursday, August 13 4pm - 6pm Golden Gate 3 This room will be set classroom for 60. I'll be announcing this on other lists too, so let me know if you've got something you'd like to show and/or topics you'd like to discuss. Best, -Joel From dwv at wmc-worldwide.com Wed Jul 15 12:44:30 2009 From: dwv at wmc-worldwide.com (David W. Vaklyes) Date: Wed Jul 15 12:44:35 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: At 10:15 AM -0700 7/15/09, Joel Shapiro wrote: >We were just given a room: > >Thursday, August 13 >4pm - 6pm >Golden Gate 3 >This room will be set classroom for 60. > >I'll be announcing this on other lists too, so let me know if you've >got something you'd like to show and/or topics you'd like to discuss. Y'all have fun. I'll be in John Mark's precon session then. From jsfmp at earthlink.net Wed Jul 15 13:37:10 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Jul 15 13:37:16 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> Message-ID: <8468244C-2318-4627-805A-80B4B7924081@earthlink.net> Hi David That's too bad you won't be able to make it. It sounds, though, like there's plenty of interest to meet up more than once, so hopefully we can connect another time. Best, -Joel On Jul 15, 2009, at 11:44 AM, David W. Vaklyes wrote: > At 10:15 AM -0700 7/15/09, Joel Shapiro wrote: >> We were just given a room: >> >> Thursday, August 13 >> 4pm - 6pm >> Golden Gate 3 >> This room will be set classroom for 60. >> >> I'll be announcing this on other lists too, so let me know if you've >> got something you'd like to show and/or topics you'd like to discuss. > > Y'all have fun. I'll be in John Mark's precon session then. > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From zippyaus at yahoo.com Wed Jul 15 21:10:50 2009 From: zippyaus at yahoo.com (Stephe Pocock) Date: Wed Jul 15 21:10:53 2009 Subject: [FX.php List] FX.php problem ... Calculated Values not shown In-Reply-To: References: <70129CA6F836494CA5FD774FEA14E1A30115FA31@fsu-exch-12.fsu.edu> Message-ID: <753271.12057.qm@web34704.mail.mud.yahoo.com> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: FM_AM.png Type: image/png Size: 7733 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090715/d7576233/FM_AM.png From tim at nicheit.com.au Wed Jul 15 21:18:36 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Wed Jul 15 21:18:40 2009 Subject: [FX.php List] FX.php problem ... Calculated Values not shown In-Reply-To: <753271.12057.qm@web34704.mail.mud.yahoo.com> References: <70129CA6F836494CA5FD774FEA14E1A30115FA31@fsu-exch-12.fsu.edu> <753271.12057.qm@web34704.mail.mud.yahoo.com> Message-ID: <329D68BC-BC4A-4BCC-B46F-98F55838177A@nicheit.com.au> On 16/07/2009, at 1:10 PM, Stephe Pocock wrote: > Hi all > > Long time lurker here :). Following GGTs advice I have used pastebin. > > I have a page that is used to claim an email by entering a matter > number (case ID). > > I have a calculated value that checks if the matter is valid using a > couple of relationships. > c_MatterCheck = > Case ( > not IsEmpty ( AM_HBM_MATTER::MATTER_NAME ) ; "Yes" ; > not IsEmpty ( AM_MatterNumbers_Matter::Matter Description Calc ) ; > "Yes" ; > "No" ) Does the web account have access to those tables? As the default is No, if the accoutn can't get the data, it will always be No Cheers Webko -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090716/c1abb0b5/attachment.html From zippyaus at yahoo.com Wed Jul 15 22:13:37 2009 From: zippyaus at yahoo.com (Stephe Pocock) Date: Wed Jul 15 22:13:40 2009 Subject: [FX.php List] FX.php problem ... Calculated Values not shown In-Reply-To: <329D68BC-BC4A-4BCC-B46F-98F55838177A@nicheit.com.au> References: <70129CA6F836494CA5FD774FEA14E1A30115FA31@fsu-exch-12.fsu.edu> <753271.12057.qm@web34704.mail.mud.yahoo.com> <329D68BC-BC4A-4BCC-B46F-98F55838177A@nicheit.com.au> Message-ID: <94398.69837.qm@web34701.mail.mud.yahoo.com> Hi That rings a bell. I think I have dramas with this before, and with this database. OK, one of the related files is an odbc connection (AM_HBM_MATTER), so I have removed that from my calculation. The other relationship is to another FM database and that database has the guest account enabled with web access only. Thanks Tim S ________________________________ From: Tim 'Webko' Booth To: FX.php Discussion List Sent: Thursday, 16 July, 2009 11:18:36 AM Subject: Re: [FX.php List] FX.php problem ... Calculated Values not shown On 16/07/2009, at 1:10 PM, Stephe Pocock wrote: Hi all > >Long time lurker here :). Following GGTs advice I have used pastebin. > >I have a page that is used to claim an email by entering a matter number (case ID). > >I have a calculated value that checks if the matter is valid using a couple of relationships. >c_MatterCheck = >Case ( >not IsEmpty ( AM_HBM_MATTER::MATTER_NAME ) ; "Yes" ; >not IsEmpty ( AM_MatterNumbers_Matter::Matter Description Calc ) ; "Yes" ; >"No" ) Does the web account have access to those tables? As the default is No, if the accoutn can't get the data, it will always be No Cheers Webko ____________________________________________________________________________________ Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how: http://au.mobile.yahoo.com/mail -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090715/ee2b85e1/attachment-0001.html From andersm at alamark.com Thu Jul 16 07:03:24 2009 From: andersm at alamark.com (Anders Monsen) Date: Thu Jul 16 07:03:27 2009 Subject: [FX.php List] Meeting at DevCon? In-Reply-To: <8468244C-2318-4627-805A-80B4B7924081@earthlink.net> References: <1070D912-97FD-4B02-AA78-03E2EB76507B@earthlink.net> <8468244C-2318-4627-805A-80B4B7924081@earthlink.net> Message-ID: <8C25BA26-2C7F-440E-8D41-3A76675D2649@alamark.com> I hope to make it, depending on whether the company decides to send us or not. Anders Monsen On Jul 15, 2009, at 2:37 PM, Joel Shapiro wrote: > Hi David > > That's too bad you won't be able to make it. It sounds, though, > like there's plenty of interest to meet up more than once, so > hopefully we can connect another time. > > Best, > -Joel > > > On Jul 15, 2009, at 11:44 AM, David W. Vaklyes wrote: > >> At 10:15 AM -0700 7/15/09, Joel Shapiro wrote: >>> We were just given a room: >>> >>> Thursday, August 13 >>> 4pm - 6pm >>> Golden Gate 3 >>> This room will be set classroom for 60. >>> >>> I'll be announcing this on other lists too, so let me know if you've >>> got something you'd like to show and/or topics you'd like to >>> discuss. >> >> Y'all have fun. I'll be in John Mark's precon session then. >> _______________________________________________ >> 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 jsfmp at earthlink.net Thu Jul 16 11:35:31 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Jul 16 11:35:36 2009 Subject: [FX.php List] FX.php problem ... Calculated Values not shown In-Reply-To: <94398.69837.qm@web34701.mail.mud.yahoo.com> References: <70129CA6F836494CA5FD774FEA14E1A30115FA31@fsu-exch-12.fsu.edu> <753271.12057.qm@web34704.mail.mud.yahoo.com> <329D68BC-BC4A-4BCC-B46F-98F55838177A@nicheit.com.au> <94398.69837.qm@web34701.mail.mud.yahoo.com> Message-ID: Hi Stephen FX.php requires the XML (fmxml) Extended Privelege, not the PHP (fmphp) Extended Privelege (which is required for the FM API). Is that what you're using? I've never heard of using the guest account for web access, but if that works, make sure that both FMP files are using the guest account and both are using the fmxml Ext. Priv. HTH, -Joel On Jul 15, 2009, at 9:13 PM, Stephe Pocock wrote: > Hi > > That rings a bell. I think I have dramas with this before, and > with this database. > > OK, one of the related files is an odbc connection (AM_HBM_MATTER), > so I have removed that from my calculation. The other relationship > is to another FM database and that database has the guest account > enabled with web access only. > > Thanks Tim > > S > > From: Tim 'Webko' Booth > To: FX.php Discussion List > Sent: Thursday, 16 July, 2009 11:18:36 AM > Subject: Re: [FX.php List] FX.php problem ... Calculated Values not > shown > > > On 16/07/2009, at 1:10 PM, Stephe Pocock wrote: > >> Hi all >> >> Long time lurker here :). Following GGTs advice I have used >> pastebin. >> >> I have a page that is used to claim an email by entering a matter >> number (case ID). >> >> I have a calculated value that checks if the matter is valid using >> a couple of relationships. >> c_MatterCheck = >> Case ( >> not IsEmpty ( AM_HBM_MATTER::MATTER_NAME ) ; "Yes" ; >> not IsEmpty ( AM_MatterNumbers_Matter::Matter Description Calc ) ; >> "Yes" ; >> "No" ) > > Does the web account have access to those tables? As the default is > No, if the accoutn can't get the data, it will always be No > > Cheers > > Webko > > Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how. > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From paul at mancomp.co.nz Fri Jul 17 14:45:43 2009 From: paul at mancomp.co.nz (Paul) Date: Fri Jul 17 14:45:34 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: <9C9412A5-4D5A-4912-A5DD-D67E487AB449@bluecrocodile.co.nz> Message-ID: <8F710BD88EBD4FB5B57A438B6E043A98@Dual3> Hi Steve So am I right in saying that Tomcat has to be installed to make it work - not just mod_jk.so? For Tomcat to install am I right in saying one needs JDK. Seems quite a lump of stuff to do a small linking job. Pity one cannot simply change IIS to Apache in deployment. Also I do now know that IIS has to be present when installing FMS to make it work properly with PHP. But actually the fmwebschool tutorial does not mention this detail which confused quite a few people. Actually the whole thing is trickier than expected; many things to go wrong; but am determined to get it going. What is a worker in fact???? And what are you doing over there? - and where are you? I am from UK originally but have been here for 35 years and like it - but bet the money is better in UK. Actually I am retired now and doing some contract work for a school nearby. Cheers Would appreciate need guidance comments from anyone's experience will help. Paul -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Steve Winter Sent: Thursday, 9 July 2009 7:10 p.m. To: FX.php Discussion List Subject: Re: [FX.php List] Parsing FP7 XML data Hi Paul, Greetings from a fellow kiwi, though I'm currently living on the dark side in the UK...! I've been running Apache/FMP/FX on Windows for a number of years, including in several production environments, and have found it to be simpler to maintain and understand than the IIS equivalent. As Chris has explained, the FM web engine is actually 'just' Tomcat, and a couple of connectors... The guys at FMWebschool discovered the way to build those necesary connections for Apache on PC. See http://www.fmwebschool.com/resources/WPE_Apache_FMS9.pdf if you're using FMS 9, or http://www.fmwebschool.com/resources/WPE_Apache.pdf for FM 10... Good luck...! Cheers Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090718/9a680635/attachment.html From bob at patin.com Sat Jul 18 13:05:13 2009 From: bob at patin.com (Bob Patin) Date: Sat Jul 18 13:05:21 2009 Subject: [FX.php List] Making sure the WPE is up and running Message-ID: <40B25D7C-BD0A-4D81-B362-ECB4D8E5FD4C@patin.com> I think this has been bandied about on this forum, but can't find anything in the archives: Does anyone have a method to make sure that the WPE is working properly? Back in CDML days, when I was using OS 9 on my servers, I used PageSentry, with which I could poll my servers every x minutes; I could send a PING, or I could do a page request, and depending on whether the page loaded, I could tell if my machine was working properly. Does anyone know of a Mac utility that could be set up to do a page request every x minutes? That would do it, I'd think... Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat: bobpatin AIM: longterm1954 FileMaker 9 & 10 Certified Developer Member of FileMaker Business Alliance & FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker Web hosting ? PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- Skipped content of type multipart/related From tcmeyers at troymeyers.com Sat Jul 18 18:10:01 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Sat Jul 18 18:10:04 2009 Subject: [FX.php List] Making sure the WPE is up and running Message-ID: <0E461FC0.E471.4CD5.BC7A.E608EA4D3786@102.997976> Bob, I haven't used it for a while, but I think Simon would do the trick. http://www.dejal.com/simon/ -Troy > I think this has been bandied about on this forum, but can't find > anything in the archives: > > Does anyone have a method to make sure that the WPE is working > properly? > > Back in CDML days, when I was using OS 9 on my servers, I used > PageSentry, with which I could poll my servers every x minutes; I > could send a PING, or I could do a page request, and depending on > whether the page loaded, I could tell if my machine was working > properly. > > Does anyone know of a Mac utility that could be set up to do a page > request every x minutes? That would do it, I'd think... > > Thanks, > > Bob Patin From bob at patin.com Sat Jul 18 21:52:25 2009 From: bob at patin.com (Bob Patin) Date: Sat Jul 18 21:52:32 2009 Subject: [FX.php List] Server WPE monitoring... solved Message-ID: <6FFBA166-12D9-46D8-8141-B30ACE197D86@patin.com> I got to thinking about SmartPill, and wrote a simple little solution for monitoring WPE and database servers. Basically, it uses 2 components: a simple one-page FX query tries to edit a record in the database; if it succeeds, it simply sends the statement print "Pass"; and if it fails, sends print "Fail"; This gets sent back to the plugin and the database, where it's written to a field. If it fails, an email gets sent to me, so that I know which server's WPE isn't working (or which server is down). Then, in FMSA 10, I trigger this script every 5 minutes; very easy to implement, works like a charm. If anyone's interested, it's a simple little database, but requires SmartPill to be running on your FM server if you want to automate it. Best, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat: bobpatin AIM: longterm1954 FileMaker 9 & 10 Certified Developer Member of FileMaker Business Alliance & FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker Web hosting ? PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- Skipped content of type multipart/related From steve at bluecrocodile.co.nz Sun Jul 19 14:41:24 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Sun Jul 19 14:41:35 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: <8F710BD88EBD4FB5B57A438B6E043A98@Dual3> References: <8F710BD88EBD4FB5B57A438B6E043A98@Dual3> Message-ID: Hi Paul, That is all taken care of by the FMS install... the links below to the FMWebSchool site do contain simple to follow and functional instructions... I've not bothered myself with thinking about this too hard, since the FMWebSchool instructions 'just work' ;-) Cheers Steve On 17 Jul 2009, at 21:45, Paul wrote: > Hi Steve > > So am I right in saying that Tomcat has to be installed to make it > work ? not just mod_jk.so? > > For Tomcat to install am I right in saying one needs JDK. > > Seems quite a lump of stuff to do a small linking job. > > Pity one cannot simply change IIS to Apache in deployment. > > > Also I do now know that IIS has to be present when installing FMS to > make it work properly with PHP. But actually the fmwebschool > tutorial does not mention this detail which confused quite a few > people. > > Actually the whole thing is trickier than expected; many things to > go wrong; but am determined to get it going. > > What is a worker in fact???? > > And what are you doing over there? ? and where are you? I am from UK > originally but have been here for 35 years and like it ? but bet the > money is better in UK. Actually I am retired now and doing some > contract work for a school nearby. > > Cheers > > Would appreciate need guidance comments from anyone?s > experience will help. > > Paul > > > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Steve Winter > Sent: Thursday, 9 July 2009 7:10 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] Parsing FP7 XML data > > Hi Paul, > > Greetings from a fellow kiwi, though I'm currently living on the > dark side in the UK...! > > I've been running Apache/FMP/FX on Windows for a number of years, > including in several production environments, and have found it to > be simpler to maintain and understand than the IIS equivalent. As > Chris has explained, the FM web engine is actually 'just' Tomcat, > and a couple of connectors... > > The guys at FMWebschool discovered the way to build those necesary > connections for Apache on PC. See http://www.fmwebschool.com/resources/WPE_Apache_FMS9.pdf > if you're using FMS 9, or http://www.fmwebschool.com/resources/WPE_Apache.pdf > for FM 10... > > Good luck...! > > Cheers > Steve > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090719/036126bd/attachment.html From paul at mancomp.co.nz Sun Jul 19 15:02:21 2009 From: paul at mancomp.co.nz (Paul) Date: Sun Jul 19 15:02:20 2009 Subject: [FX.php List] Parsing FP7 XML data In-Reply-To: Message-ID: <68A6F97165D041EAB00D224B9BC4A02C@Dual3> Hi Steve Yes - I found another page on their web site yesterday - the page I should have found earlier - it explains it all and am now working on it. The original page I found to do with mod-sk only dealt with a small part of the process. Thanks for the reply. Paul -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Steve Winter Sent: Monday, 20 July 2009 8:41 a.m. To: FX.php Discussion List Subject: Re: [FX.php List] Parsing FP7 XML data Hi Paul, That is all taken care of by the FMS install... the links below to the FMWebSchool site do contain simple to follow and functional instructions... I've not bothered myself with thinking about this too hard, since the FMWebSchool instructions 'just work' ;-) Cheers Steve On 17 Jul 2009, at 21:45, Paul wrote: Hi Steve So am I right in saying that Tomcat has to be installed to make it work - not just mod_jk.so? For Tomcat to install am I right in saying one needs JDK. Seems quite a lump of stuff to do a small linking job. Pity one cannot simply change IIS to Apache in deployment. Also I do now know that IIS has to be present when installing FMS to make it work properly with PHP. But actually the fmwebschool tutorial does not mention this detail which confused quite a few people. Actually the whole thing is trickier than expected; many things to go wrong; but am determined to get it going. What is a worker in fact???? And what are you doing over there? - and where are you? I am from UK originally but have been here for 35 years and like it - but bet the money is better in UK. Actually I am retired now and doing some contract work for a school nearby. Cheers Would appreciate need guidance comments from anyone's experience will help. Paul -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Steve Winter Sent: Thursday, 9 July 2009 7:10 p.m. To: FX.php Discussion List Subject: Re: [FX.php List] Parsing FP7 XML data Hi Paul, Greetings from a fellow kiwi, though I'm currently living on the dark side in the UK...! I've been running Apache/FMP/FX on Windows for a number of years, including in several production environments, and have found it to be simpler to maintain and understand than the IIS equivalent. As Chris has explained, the FM web engine is actually 'just' Tomcat, and a couple of connectors... The guys at FMWebschool discovered the way to build those necesary connections for Apache on PC. See http://www.fmwebschool.com/resources/WPE_Apache_FMS9.pdf if you're using FMS 9, or http://www.fmwebschool.com/resources/WPE_Apache.pdf for FM 10... Good luck...! Cheers Steve _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090720/9e28c259/attachment-0001.html From jsfmp at earthlink.net Mon Jul 20 12:39:45 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Jul 20 12:39:51 2009 Subject: [FX.php List] [ANN] PHP User Group - Thursday at DevCon Message-ID: <438DD5E2-13AC-4F75-9FE6-7A1806E5404B@earthlink.net> We're doing it again! ANOTHER PHP / FILEMAKER SHOW-AND-TELL For the third year in a row, folks doing Custom Web Publishing with PHP are getting together at the beginning of DevCon to share projects, tips, and discussions. All web-related tools and technologies are relevant (JavaScript, AJAX, etc.). Everyone's welcome. Come join us! DATE: Thursday, August 13 TIME: 4pm - 6pm (before the 6:30 keynote) ROOM: Golden Gate 3 If you have something you'd like to share or have ideas for topics to discuss, please contact me directly. Your project doesn't need to be perfect or complete to give a demo. This will be a friendly informal chance to share some of what we all have been doing with FileMaker and PHP. Hope to see you there! -Joel ~~~~~~~~~~~~~~~~~~~~~~~ Joel Shapiro FileMaker Pro database & web design http://www.jsfmp.com 415-269-5055 ~~~~~~~~~~~~~~~~~~~~~~~ From bob at patin.com Tue Jul 21 19:40:35 2009 From: bob at patin.com (Bob Patin) Date: Tue Jul 21 19:40:43 2009 Subject: [FX.php List] [OFF] The ongoing saga of adding multiple SSL certs on a web server Message-ID: <34E7E567-90A8-4843-8306-42E280E4CA95@patin.com> As some of you will recall, I had a problem a couple of months when trying to add a 2nd SSL cert to a web server. Leo properly informed me that I needed to assign the 2nd site to its own IP, and that would allow the cert to work... that fixed the problem on that web server. So today, another client asked me to setup an SSL cert on her site, so I bought and installed one (different web server). I assigned it to its own IP address, added the IP to the server--no problem. The site responds when you use "https" to invoke the cert. THE PROBLEM: It doesn't respond when you *don't* invoke the certificate; instead, the 1st site in my server config list responds. What am I missing here? No matter what I try, the site just doesn't respond without invoking the certificate. Any help would be greatly appreciated; I can't turn this cert on now... Thanks, Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090721/029175d6/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From bob at patin.com Wed Jul 22 22:39:02 2009 From: bob at patin.com (Bob Patin) Date: Wed Jul 22 22:39:10 2009 Subject: [FX.php List] Trying to start FMPUG in Nashville, TN area References: Message-ID: <802674CA-C222-4F99-90D1-5EE04CB0B5E3@patin.com> Hello all, I've tried once before, and now I'm going to try again to start a FileMaker Pro user's group in Nashville, TN. If you are in the area and would be interested in joining a group in the Nashville area, please contact me back-channel. Best regards, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat: bobpatin AIM: longterm1954 FileMaker 9 & 10 Certified Developer Member of FileMaker Business Alliance & FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker Web hosting ? PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090722/bca1c80d/attachment.html From leo at finalresort.org Thu Jul 23 17:10:27 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Jul 23 17:10:33 2009 Subject: [FX.php List] [OFF] The ongoing saga of adding multiple SSL certs on a web server In-Reply-To: <34E7E567-90A8-4843-8306-42E280E4CA95@patin.com> References: <34E7E567-90A8-4843-8306-42E280E4CA95@patin.com> Message-ID: <9E4357AB-BCBD-4A07-A33C-766A644E89B7@finalresort.org> Hi, Since the HTTPS site and the HTTPS site should probably be two different virtual hosts in your configuration (the first one for HTTP listening on $clientsIp and port 80, and the second one listening on $clientsIp port 443), I'd start by looking at what is wrong with the configuration for the HTTP virtual host. When you say "when you *don't* invoke the certificate", I presume you mean "when you go to http://client.com instead of https://client.com", right? It sounds like maybe you have the wrong IP (not the one that client.com is pointed to in DNS) in the virtual host configuration for that site, or maybe you haven't correctly set the ServerName and possibly the ServerAlias. If the latter two doesn't match the requested domain, then Apache will kindly show respond with the first/ default site, since it doesn't know what else it should do. So in short, start by checking the HTTP vhost, for IP, port, ServerName and ServerAlias. 22 jul 2009 kl. 03.40 skrev Bob Patin: > As some of you will recall, I had a problem a couple of months when > trying to add a 2nd SSL cert to a web server. > > Leo properly informed me that I needed to assign the 2nd site to its > own IP, and that would allow the cert to work... that fixed the > problem on that web server. > > So today, another client asked me to setup an SSL cert on her site, > so I bought and installed one (different web server). > > I assigned it to its own IP address, added the IP to the server--no > problem. The site responds when you use "https" to invoke the cert. > > THE PROBLEM: It doesn't respond when you *don't* invoke the > certificate; instead, the 1st site in my server config list responds. > > What am I missing here? No matter what I try, the site just doesn't > respond without invoking the certificate. > > Any help would be greatly appreciated; I can't turn this cert on > now... > > Thanks, > > Bob Patin > > > > > > > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From bob at patin.com Thu Jul 23 21:06:48 2009 From: bob at patin.com (Bob Patin) Date: Thu Jul 23 21:06:56 2009 Subject: [FX.php List] [OFF] The ongoing saga of adding multiple SSL certs on a web server In-Reply-To: <9E4357AB-BCBD-4A07-A33C-766A644E89B7@finalresort.org> References: <34E7E567-90A8-4843-8306-42E280E4CA95@patin.com> <9E4357AB-BCBD-4A07-A33C-766A644E89B7@finalresort.org> Message-ID: See, that's why I stay on this list... You made me realize what I had done wrong: I had ONE listing in my server list, for the SSL cert, and pointing to the IP that I allocated to this cert. What I hadn't done was to put in a 2nd listing for the same domain name, on port 80, without the cert. As you said, the server config looked to see if the site existing on port 80 on the server's main IP, didn't find it, and just went to the first site on the list. Thanks! Bob Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance & FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker Web hosting ? PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting Leo Lundgren wrote: > Hi, > > Since the HTTPS site and the HTTPS site should probably be two > different virtual hosts in your configuration (the first one for > HTTP listening on $clientsIp and port 80, and the second one > listening on $clientsIp port 443), I'd start by looking at what is > wrong with the configuration for the HTTP virtual host. > > When you say "when you *don't* invoke the certificate", I presume > you mean "when you go to http://client.com instead of https://client.com > ", right? > > It sounds like maybe you have the wrong IP (not the one that > client.com is pointed to in DNS) in the virtual host configuration > for that site, or maybe you haven't correctly set the ServerName and > possibly the ServerAlias. If the latter two doesn't match the > requested domain, then Apache will kindly show respond with the > first/default site, since it doesn't know what else it should do. > > So in short, start by checking the HTTP vhost, for IP, port, > ServerName and ServerAlias. > > > 22 jul 2009 kl. 03.40 skrev Bob Patin: > >> As some of you will recall, I had a problem a couple of months when >> trying to add a 2nd SSL cert to a web server. >> >> Leo properly informed me that I needed to assign the 2nd site to >> its own IP, and that would allow the cert to work... that fixed the >> problem on that web server. >> >> So today, another client asked me to setup an SSL cert on her site, >> so I bought and installed one (different web server). >> >> I assigned it to its own IP address, added the IP to the server--no >> problem. The site responds when you use "https" to invoke the cert. >> >> THE PROBLEM: It doesn't respond when you *don't* invoke the >> certificate; instead, the 1st site in my server config list responds. >> >> What am I missing here? No matter what I try, the site just doesn't >> respond without invoking the certificate. >> >> Any help would be greatly appreciated; I can't turn this cert on >> now... >> >> Thanks, >> >> Bob Patin >> >> >> >> >> >> >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> FileMaker 10 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> _______________________________________________ >> 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 dbengston at tds.net Fri Jul 24 06:45:10 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Jul 24 06:45:21 2009 Subject: [FX.php List] [OFF] The ongoing saga of adding multiple SSL certs on a web server In-Reply-To: References: <34E7E567-90A8-4843-8306-42E280E4CA95@patin.com> <9E4357AB-BCBD-4A07-A33C-766A644E89B7@finalresort.org> Message-ID: <0BD04EFB-8262-40E1-87D3-CF197B9776FB@tds.net> I'm definitely keeping this one. Thanks everyone! Dale On Jul 23, 2009, at 10:06 PM, Bob Patin wrote: > See, that's why I stay on this list... > > You made me realize what I had done wrong: I had ONE listing in my > server list, for the SSL cert, and pointing to the IP that I > allocated to this cert. > > What I hadn't done was to put in a 2nd listing for the same domain > name, on port 80, without the cert. > > As you said, the server config looked to see if the site existing on > port 80 on the server's main IP, didn't find it, and just went to > the first site on the list. > > Thanks! > > Bob > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Twitter: bobpatin > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance & FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > Web hosting ? PHP ? Full email services ? Free DNS hosting ? > Colocation ? Consulting > > > Leo Lundgren wrote: > >> Hi, >> >> Since the HTTPS site and the HTTPS site should probably be two >> different virtual hosts in your configuration (the first one for >> HTTP listening on $clientsIp and port 80, and the second one >> listening on $clientsIp port 443), I'd start by looking at what is >> wrong with the configuration for the HTTP virtual host. >> >> When you say "when you *don't* invoke the certificate", I presume >> you mean "when you go to http://client.com instead of https://client.com >> ", right? >> >> It sounds like maybe you have the wrong IP (not the one that >> client.com is pointed to in DNS) in the virtual host configuration >> for that site, or maybe you haven't correctly set the ServerName >> and possibly the ServerAlias. If the latter two doesn't match the >> requested domain, then Apache will kindly show respond with the >> first/default site, since it doesn't know what else it should do. >> >> So in short, start by checking the HTTP vhost, for IP, port, >> ServerName and ServerAlias. >> >> >> 22 jul 2009 kl. 03.40 skrev Bob Patin: >> >>> As some of you will recall, I had a problem a couple of months >>> when trying to add a 2nd SSL cert to a web server. >>> >>> Leo properly informed me that I needed to assign the 2nd site to >>> its own IP, and that would allow the cert to work... that fixed >>> the problem on that web server. >>> >>> So today, another client asked me to setup an SSL cert on her >>> site, so I bought and installed one (different web server). >>> >>> I assigned it to its own IP address, added the IP to the server-- >>> no problem. The site responds when you use "https" to invoke the >>> cert. >>> >>> THE PROBLEM: It doesn't respond when you *don't* invoke the >>> certificate; instead, the 1st site in my server config list >>> responds. >>> >>> What am I missing here? No matter what I try, the site just >>> doesn't respond without invoking the certificate. >>> >>> Any help would be greatly appreciated; I can't turn this cert on >>> now... >>> >>> Thanks, >>> >>> Bob Patin >>> >>> >>> >>> >>> >>> >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> FileMaker 10 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP ? Full email services ? Free DNS hosting ? Colocation ? >>> Consulting >>> >>> _______________________________________________ >>> 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 zippyaus at yahoo.com Mon Jul 27 00:40:46 2009 From: zippyaus at yahoo.com (Stephe Pocock) Date: Mon Jul 27 00:40:56 2009 Subject: [FX.php List] FX.php problem ... Calculated Values not shown In-Reply-To: References: <70129CA6F836494CA5FD774FEA14E1A30115FA31@fsu-exch-12.fsu.edu> <753271.12057.qm@web34704.mail.mud.yahoo.com> <329D68BC-BC4A-4BCC-B46F-98F55838177A@nicheit.com.au> <94398.69837.qm@web34701.mail.mud.yahoo.com> Message-ID: <52334.98875.qm@web34702.mail.mud.yahoo.com> Hi and thanks Tim and Joel There must be something wrong with the database, because I can get it to work with another database with the same config. When I get a chance I will rebuild the database. In the meantime I have just created a temporary table in the same file, which I propagate with the required data every 15 minutes using a server schedule. All seems to be fine now with this work around. Thanks for the help Stephen ________________________________ From: Joel Shapiro To: FX.php Discussion List Sent: Friday, 17 July, 2009 1:35:31 AM Subject: Re: [FX.php List] FX.php problem ... Calculated Values not shown Hi Stephen FX.php requires the XML (fmxml) Extended Privelege, not the PHP (fmphp) Extended Privelege (which is required for the FM API). Is that what you're using? I've never heard of using the guest account for web access, but if that works, make sure that both FMP files are using the guest account and both are using the fmxml Ext. Priv. HTH, -Joel On Jul 15, 2009, at 9:13 PM, Stephe Pocock wrote: > Hi > > That rings a bell. I think I have dramas with this before, and with this database. > > OK, one of the related files is an odbc connection (AM_HBM_MATTER), so I have removed that from my calculation. The other relationship is to another FM database and that database has the guest account enabled with web access only. > > Thanks Tim > > S > > From: Tim 'Webko' Booth > To: FX.php Discussion List > Sent: Thursday, 16 July, 2009 11:18:36 AM > Subject: Re: [FX.php List] FX.php problem ... Calculated Values not shown > > > On 16/07/2009, at 1:10 PM, Stephe Pocock wrote: > >> Hi all >> >> Long time lurker here :). Following GGTs advice I have used pastebin. >> >> I have a page that is used to claim an email by entering a matter number (case ID). >> >> I have a calculated value that checks if the matter is valid using a couple of relationships. >> c_MatterCheck = >> Case ( >> not IsEmpty ( AM_HBM_MATTER::MATTER_NAME ) ; "Yes" ; >> not IsEmpty ( AM_MatterNumbers_Matter::Matter Description Calc ) ; "Yes" ; >> "No" ) > > Does the web account have access to those tables? As the default is No, if the accoutn can't get the data, it will always be No > > Cheers > > Webko > > Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how. > _______________________________________________ > 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 ____________________________________________________________________________________ Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how: http://au.mobile.yahoo.com/mail -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090726/a15c9d77/attachment-0001.html From ggt667 at gmail.com Mon Jul 27 19:03:59 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Jul 27 19:04:04 2009 Subject: [FX.php List] Philosophy Does modid change when setting a global field? Message-ID: is it possible to set recid = 0? To edit a global field? ggt From bob at patin.com Mon Jul 27 19:09:52 2009 From: bob at patin.com (Bob Patin) Date: Mon Jul 27 19:10:01 2009 Subject: [FX.php List] Philosophy Does modid change when setting a global field? In-Reply-To: References: Message-ID: <5ED529C4-1692-4EC9-8412-CE5A50409755@patin.com> No, because a global field doesn't exist in a record... Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090727/1a415fd2/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 27, 2009, at 8:03 PM, Gjermund Gusland Thorsen wrote: > is it possible to set recid = 0? To edit a global field? > > ggt > _______________________________________________ > 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 Jul 28 09:56:11 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Jul 28 09:56:15 2009 Subject: [FX.php List] Philosophy Does modid change when setting a global field? In-Reply-To: <5ED529C4-1692-4EC9-8412-CE5A50409755@patin.com> References: <5ED529C4-1692-4EC9-8412-CE5A50409755@patin.com> Message-ID: So if you do an FMEdit(); and you edit only a global field modid will not change? ggt 2009/7/28 Bob Patin : > No, because a global field doesn't exist in a record... > > > > Bob Patin > > > > > > > > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Jul 27, 2009, at 8:03 PM, Gjermund Gusland Thorsen wrote: > >> is it possible to set recid = 0? To edit a global field? >> >> ggt >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From bob at patin.com Tue Jul 28 10:04:17 2009 From: bob at patin.com (Bob Patin) Date: Tue Jul 28 10:04:24 2009 Subject: [FX.php List] Philosophy Does modid change when setting a global field? In-Reply-To: References: <5ED529C4-1692-4EC9-8412-CE5A50409755@patin.com> Message-ID: I don't know, haven't tried; can you write to a global? Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090728/8cc50b87/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 28, 2009, at 10:56 AM, Gjermund Gusland Thorsen wrote: > So if you do an FMEdit(); and you edit only a global field > > modid will not change? > > ggt > > 2009/7/28 Bob Patin : >> No, because a global field doesn't exist in a record... >> >> >> >> Bob Patin >> >> >> >> >> >> >> >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> FileMaker 10 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> On Jul 27, 2009, at 8:03 PM, Gjermund Gusland Thorsen wrote: >> >>> is it possible to set recid = 0? To edit a global field? >>> >>> ggt >>> _______________________________________________ >>> 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 jfunk at criticalsolution.com Tue Jul 28 11:12:00 2009 From: jfunk at criticalsolution.com (John Funk) Date: Tue Jul 28 11:12:14 2009 Subject: [FX.php List] Replacing my FM robot Message-ID: I have been charged with the task of replacing an FM robot client PC that runs imports from txt files on a timed basis. Since Fmserver does not support imports on the server side, one way I thought of is to write a PHP/FX script, parse the txt data and create records in a temporary fm table, then proceed with the rest of the original import script by calling it in FX. Any ideas or code out there to get me started with the the text parsing? Also, would I be able to ?trigger? a url to call the PHP? Can a PHP script be on a timer? I am using FMSA10, all the web services are already installed and working. Thanks, John Funk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090728/e0fbf687/attachment.html From bob at patin.com Tue Jul 28 11:38:48 2009 From: bob at patin.com (Bob Patin) Date: Tue Jul 28 11:39:28 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: References: Message-ID: <0CB76B79-1F7A-4AA3-BB9E-48C0995E7A2D@patin.com> John, Several ways that you could do this: One way would be to use SmartPill in your database, and use an ontimer script to run your PHP code from within your database, without the use of an outside server. Another way might be to write a script in your database and trigger the script off FileMaker Server; I'm using quite a few of these now with FileMaker Server 10, and it's a wonderful thing. Hope this helps, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 28, 2009, at 12:12 PM, John Funk wrote: > I have been charged with the task of replacing an FM robot client PC > that runs imports from txt files on a timed basis. > Since Fmserver does not support imports on the server side, one way > I thought of is to write a PHP/FX script, parse the txt data and > create records in a temporary fm table, then proceed with the rest > of the original import script by calling it in FX. > > Any ideas or code out there to get me started with the the text > parsing? Also, would I be able to ?trigger? a url to call the PHP? > Can a PHP script be on a timer? > > I am using FMSA10, all the web services are already installed and > working. > > Thanks, > > John Funk > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- Skipped content of type multipart/related From jfunk at criticalsolution.com Tue Jul 28 11:47:43 2009 From: jfunk at criticalsolution.com (John Funk) Date: Tue Jul 28 11:47:55 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: <0CB76B79-1F7A-4AA3-BB9E-48C0995E7A2D@patin.com> Message-ID: Thanks Bob, This was my first choice but the problem is the actual FM import script step will not run on FMSA, there needs to be a client for that step to perform. Triggering is not a problem. I may have not explained this very well. John On 7/28/09 12:38 PM, "Bob Patin" wrote: > Another way might be to write a script in your database and trigger the script > off FileMaker Server; I'm using quite a few of these now with FileMaker Server > 10, and it's a wonderful thing. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090728/c748d69b/attachment.html From steve at bluecrocodile.co.nz Tue Jul 28 12:11:10 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Jul 28 12:11:27 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: References: Message-ID: <5E992D4F-F8B3-429A-A8AC-64B7C452D600@bluecrocodile.co.nz> Hi John, What I'd suggest is writing a PHP script which reads the text file, then uses FX/API to insert/update the records directly in the database as required... That script can be called on the server itself using cron/scheduled task, depending on your OS/// Would this work...?? Cheers Steve On 28 Jul 2009, at 18:47, John Funk wrote: > Thanks Bob, > This was my first choice but the problem is the actual FM import > script step will not run on FMSA, there needs to be a client for > that step to perform. Triggering is not a problem. I may have not > explained this very well. > John > > > On 7/28/09 12:38 PM, "Bob Patin" wrote: > >> Another way might be to write a script in your database and trigger >> the script off FileMaker Server; I'm using quite a few of these now >> with FileMaker Server 10, and it's a wonderful thing. > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090728/0f6b1f31/attachment.html From jsfmp at earthlink.net Tue Jul 28 12:11:28 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Jul 28 12:11:45 2009 Subject: [FX.php List] Philosophy Does modid change when setting a global field? In-Reply-To: References: <5ED529C4-1692-4EC9-8412-CE5A50409755@patin.com> Message-ID: Hey GGT Remember that the XML connection doesn't hold global values between calls to the database (just like repeated logins thru FMP client), so unless you do something like run an FM script using that global immediately following the setting of the global field (if that's even possible), you might not get the results you expect. -Joel On Jul 28, 2009, at 8:56 AM, Gjermund Gusland Thorsen wrote: > So if you do an FMEdit(); and you edit only a global field > > modid will not change? > > ggt > > 2009/7/28 Bob Patin : >> No, because a global field doesn't exist in a record... >> >> >> >> Bob Patin >> >> >> >> >> >> >> >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> FileMaker 10 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> On Jul 27, 2009, at 8:03 PM, Gjermund Gusland Thorsen wrote: >> >>> is it possible to set recid = 0? To edit a global field? >>> >>> ggt >>> _______________________________________________ >>> 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 jsfmp at earthlink.net Tue Jul 28 12:34:03 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Jul 28 12:34:10 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: References: Message-ID: <14C8DC3C-64C8-4BE1-9140-31C2B500A8BE@earthlink.net> Hi John The Import Records script step "is supported in a FileMaker Server scheduled script" http://www.filemaker.com/help/html/scripts_ref1.36.68.html I haven't tried it myself. Apparently importing from FM files is not supported, but text files should be fine if the path is correct. -Joel On Jul 28, 2009, at 10:12 AM, John Funk wrote: > Fmserver does not support imports on the server side From jfunk at criticalsolution.com Tue Jul 28 12:52:09 2009 From: jfunk at criticalsolution.com (John Funk) Date: Tue Jul 28 12:52:13 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: <14C8DC3C-64C8-4BE1-9140-31C2B500A8BE@earthlink.net> Message-ID: I thought it was... I guess I did not look into it very much and just went to this list where everybody always had great ideas. As Maxwell Smart says: "Sorry about that". Thanks John On 7/28/09 1:34 PM, "Joel Shapiro" wrote: > Hi John > > The Import Records script step "is supported in a FileMaker Server > scheduled script" > > http://www.filemaker.com/help/html/scripts_ref1.36.68.html > > I haven't tried it myself. Apparently importing from FM files is not > supported, but text files should be fine if the path is correct. > > -Joel > > > On Jul 28, 2009, at 10:12 AM, John Funk wrote: > >> Fmserver does not support imports on the server side > _______________________________________________ > 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 Jul 28 12:58:08 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Jul 28 12:58:11 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: References: <14C8DC3C-64C8-4BE1-9140-31C2B500A8BE@earthlink.net> Message-ID: For those type of jobs I?d use pyFileMaker. What is the source of txt files? email attachments? ggt 2009/7/28 John Funk : > I thought it was... > I guess I did not look into it very much and just went to this list where > everybody always had great ideas. > > As Maxwell Smart says: "Sorry about that". > > Thanks > John > > > On 7/28/09 1:34 PM, "Joel Shapiro" wrote: > >> Hi John >> >> The Import Records script step "is supported in a FileMaker Server >> scheduled script" >> >> http://www.filemaker.com/help/html/scripts_ref1.36.68.html >> >> I haven't tried it myself. ?Apparently importing from FM files is not >> supported, but text files should be fine if the path is correct. >> >> -Joel >> >> >> On Jul 28, 2009, at 10:12 AM, John Funk wrote: >> >>> Fmserver does not support imports on the server side >> _______________________________________________ >> 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 jfunk at criticalsolution.com Tue Jul 28 13:23:31 2009 From: jfunk at criticalsolution.com (John Funk) Date: Tue Jul 28 13:23:36 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: Message-ID: PyFileMaker looks very cool, always good to know about tools like this. The text file are created in a proprietary system owned by the company. I will be using the FM import. John From davidcox at wcfs.edu Tue Jul 28 15:12:26 2009 From: davidcox at wcfs.edu (David Cox) Date: Tue Jul 28 15:12:29 2009 Subject: [FX.php List] SetPortalRow () Message-ID: Hello- I have a need to create multiple records via a portal and the FX documentation states that "SetPortalRow() ... is used to create a record via a portal row. It's the equivalent of making several AddDBParam() using the full FileMaker portal syntax". Perhaps I'm approching this incorrectly, so maybe someone could point me in the right direction. I've currently created a subroutine in php which opens a connection to the database to see if the applicable related records have been created yet, and if not, than it will create the record. It has up to 14 related records to create, so when it is repeated, this process takes it over the 30 second limit and throws an error when I use AddDBParam() and it's only created 4 records. I've thought that maybe the SetPortalRow would allow me to do the Find/Create function faster. Is this the way to go about it, or is there another way? David Cox -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090728/c4620291/attachment-0001.html From tim at nicheit.com.au Tue Jul 28 15:22:18 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Tue Jul 28 15:22:22 2009 Subject: [FX.php List] SetPortalRow () In-Reply-To: References: Message-ID: On 29/07/2009, at 7:12 AM, David Cox wrote: > Hello- > > I have a need to create multiple records via a portal and the FX > documentation states that "SetPortalRow() ... is used to create a > record via a portal row. It's the equivalent of making several > AddDBParam() using the full FileMaker portal syntax". > > Perhaps I'm approching this incorrectly, so maybe someone could > point me in the right direction. I've currently created a > subroutine in php which opens a connection to the database to see if > the applicable related records have been created yet, and if not, > than it will create the record. It has up to 14 related records to > create, so when it is repeated, this process takes it over the 30 > second limit It shouldn't do that for FMNew commands... > and throws an error when I use AddDBParam() and it's only created 4 > records. I've thought that maybe the SetPortalRow would allow me to > do the Find/Create function faster. > > Is this the way to go about it, or is there another way? I very rarely use portals, I'd always be working in the sub-table. I have a similar routine for a survey system I'm writing, where people can edit and/or create new answers. I go to the sub-table, check for the existence of that set of answers and then loop either creating new answers (for questions they haven't answered before or editing (for ones they have) and even with >40 questions on some pages, I'm still well inside the 30s limit... That layout has only the 5 required fields on it. HTH Webko From bob at patin.com Tue Jul 28 15:25:02 2009 From: bob at patin.com (Bob Patin) Date: Tue Jul 28 15:25:09 2009 Subject: [FX.php List] SetPortalRow () In-Reply-To: References: Message-ID: I'm with Tim; I go to the subtables themselves if I need to write to those records. If it's a matter of writing to more than one row, I write a simple loop and get it done that way. Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090728/4b83d572/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 28, 2009, at 4:22 PM, Tim 'Webko' Booth wrote: > I very rarely use portals, I'd always be working in the sub-table. I > have a similar routine for a survey system I'm writing, where people > can edit and/or create new answers. > > I go to the sub-table, check for the existence of that set of > answers and then loop either creating new answers (for questions > they haven't answered before or editing (for ones they have) and > even with >40 questions on some pages, I'm still well inside the 30s > limit... That layout has only the 5 required fields on it. From jsfmp at earthlink.net Tue Jul 28 17:11:55 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Jul 28 17:11:59 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? Message-ID: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> Hi all Anybody have any thoughts on *when* in shopping cart functionality it's best to add items as records to the database? My initial thinking is that it would make more sense to just keep items in Session Variable arrays and only add anything to the database at the time of Checkout -- to keep the DB from bulking up with unpurchased items left in the cart. But searching online, it seems that carts often add records to the database as soon as they go into the cart. (Might that be different when using MySQL as opposed to FMP?) FWIW - Users on this site will average 1-4 items per order. Whaddy'all think? TIA, -Joel From tim at nicheit.com.au Tue Jul 28 17:14:13 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Tue Jul 28 17:14:18 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> Message-ID: On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: > Hi all > > Anybody have any thoughts on *when* in shopping cart functionality > it's best to add items as records to the database? > > My initial thinking is that it would make more sense to just keep > items in Session Variable arrays and only add anything to the > database at the time of Checkout -- to keep the DB from bulking up > with unpurchased items left in the cart. But searching online, it > seems that carts often add records to the database as soon as they > go into the cart. (Might that be different when using MySQL as > opposed to FMP?) > > FWIW - Users on this site will average 1-4 items per order. I tend to add them immediately - allows me to also re-show previous not actually purchased items on request further down the track... Cheers Webko From leo at finalresort.org Tue Jul 28 17:18:05 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Tue Jul 28 17:18:09 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> Message-ID: <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> Yeah there's really a question of what features you want. The basic approach is to keep the cart in the session as session variables. There's really no need to put it all in the database, use the session for what it's worth instead :) BUT, keeping the cart inside the DB will allow for certain things, such as the client can put some stuff in the cart, mail his collegue, and tell him "hey, look at the stuff I put in our cart", and the collegue can do so from a totally different computer. They can collaborate. If that latter example isn't needed, I'd store it in the session. 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: > > On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: > >> Hi all >> >> Anybody have any thoughts on *when* in shopping cart functionality >> it's best to add items as records to the database? >> >> My initial thinking is that it would make more sense to just keep >> items in Session Variable arrays and only add anything to the >> database at the time of Checkout -- to keep the DB from bulking up >> with unpurchased items left in the cart. But searching online, it >> seems that carts often add records to the database as soon as they >> go into the cart. (Might that be different when using MySQL as >> opposed to FMP?) >> >> FWIW - Users on this site will average 1-4 items per order. > > I tend to add them immediately - allows me to also re-show previous > not actually purchased items on request further down the track... > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From jsfmp at earthlink.net Tue Jul 28 17:23:07 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Jul 28 17:23:11 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> Message-ID: <68E28981-5568-4E71-8255-350307E6E2B9@earthlink.net> Thanks for the quick response, Webko! Do you have just one set of Orders & OrderItems tables, with some orders having status of "ordered" and some floating as "not ordered"? Or do you have tandem Orders and "PreOrders" tables? -Joel On Jul 28, 2009, at 4:14 PM, Tim 'Webko' Booth wrote: > > On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: > >> Hi all >> >> Anybody have any thoughts on *when* in shopping cart functionality >> it's best to add items as records to the database? >> >> My initial thinking is that it would make more sense to just keep >> items in Session Variable arrays and only add anything to the >> database at the time of Checkout -- to keep the DB from bulking up >> with unpurchased items left in the cart. But searching online, it >> seems that carts often add records to the database as soon as they >> go into the cart. (Might that be different when using MySQL as >> opposed to FMP?) >> >> FWIW - Users on this site will average 1-4 items per order. > > I tend to add them immediately - allows me to also re-show previous > not actually purchased items on request further down the track... > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Tue Jul 28 17:24:47 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Jul 28 17:24:52 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> Message-ID: <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> Thanks Leo That's what I'd been thinking. It's good to see what different people are doing... -Joel On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: > Yeah there's really a question of what features you want. > > The basic approach is to keep the cart in the session as session > variables. There's really no need to put it all in the database, > use the session for what it's worth instead :) > > BUT, keeping the cart inside the DB will allow for certain things, > such as the client can put some stuff in the cart, mail his > collegue, and tell him "hey, look at the stuff I put in our cart", > and the collegue can do so from a totally different computer. They > can collaborate. > > If that latter example isn't needed, I'd store it in the session. > > > 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: > >> >> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >> >>> Hi all >>> >>> Anybody have any thoughts on *when* in shopping cart >>> functionality it's best to add items as records to the database? >>> >>> My initial thinking is that it would make more sense to just keep >>> items in Session Variable arrays and only add anything to the >>> database at the time of Checkout -- to keep the DB from bulking >>> up with unpurchased items left in the cart. But searching >>> online, it seems that carts often add records to the database as >>> soon as they go into the cart. (Might that be different when >>> using MySQL as opposed to FMP?) >>> >>> FWIW - Users on this site will average 1-4 items per order. >> >> I tend to add them immediately - allows me to also re-show >> previous not actually purchased items on request further down the >> track... >> >> Cheers >> >> Webko >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -| > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Tue Jul 28 17:59:52 2009 From: bob at patin.com (Bob Patin) Date: Tue Jul 28 18:00:00 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> Message-ID: <1DFC7F94-BCA7-4E56-BFF9-427D637053B6@patin.com> I've taken to using session variables for registrations, and then don't write to the database until the process is completely finished. For a shopping cart, it's really easy to create an array of lineitems; all you really need to store are the item number and quantity, and then store the buyer's info in session variables as well. I used to use a temp table for the cart, plus a 2nd table of lineitems; then I could tie both the temp order and the finished order to the same lineitems. My current thinking though is to use all session variables until after money has been collected. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat: bobpatin AIM: longterm1954 FileMaker 9 & 10 Certified Developer Member of FileMaker Business Alliance & FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker Web hosting ? PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 28, 2009, at 6:14 PM, Tim 'Webko' Booth wrote: > > On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: > >> Hi all >> >> Anybody have any thoughts on *when* in shopping cart functionality >> it's best to add items as records to the database? >> >> My initial thinking is that it would make more sense to just keep >> items in Session Variable arrays and only add anything to the >> database at the time of Checkout -- to keep the DB from bulking up >> with unpurchased items left in the cart. But searching online, it >> seems that carts often add records to the database as soon as they >> go into the cart. (Might that be different when using MySQL as >> opposed to FMP?) >> >> FWIW - Users on this site will average 1-4 items per order. > > I tend to add them immediately - allows me to also re-show previous > not actually purchased items on request further down the track... > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- Skipped content of type multipart/related From bob at patin.com Tue Jul 28 18:06:01 2009 From: bob at patin.com (Bob Patin) Date: Tue Jul 28 18:06:08 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <1DFC7F94-BCA7-4E56-BFF9-427D637053B6@patin.com> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <1DFC7F94-BCA7-4E56-BFF9-427D637053B6@patin.com> Message-ID: Another note: in a registration project I just worked on recently, we did use a temp table for registrations, because there were so many disparate elements to it--probably about 5 tables containing hotel room reservations, a guest list, registration info, choice of sessions; then, when money is collected, the session's main ID is written to the actual transactions table, and all the other elements pull in from relationships. To keep the database slim and trim, there's a script that is fired every minute on the server; it looks for any transaction in the temp table that wasn't finished within 30 minutes; if one exists, it's deleted. The same script also takes care of sending an email to the registrant as well; if they finished their reg., it sends their confirmation; if they abandoned their cart, it sends an email to that effect. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat: bobpatin AIM: longterm1954 FileMaker 9 & 10 Certified Developer Member of FileMaker Business Alliance & FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker Web hosting ? PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 28, 2009, at 6:59 PM, Bob Patin wrote: > I've taken to using session variables for registrations, and then > don't write to the database until the process is completely finished. > > For a shopping cart, it's really easy to create an array of > lineitems; all you really need to store are the item number and > quantity, and then store the buyer's info in session variables as > well. > > I used to use a temp table for the cart, plus a 2nd table of > lineitems; then I could tie both the temp order and the finished > order to the same lineitems. > > My current thinking though is to use all session variables until > after money has been collected. > > > Bob Patin > > > > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Twitter: bobpatin > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 & 10 Certified Developer > Member of FileMaker Business Alliance & FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > Web hosting ? PHP ? Full email services ? Free DNS hosting ? > Colocation ? Consulting > > On Jul 28, 2009, at 6:14 PM, Tim 'Webko' Booth wrote: > >> >> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >> >>> Hi all >>> >>> Anybody have any thoughts on *when* in shopping cart functionality >>> it's best to add items as records to the database? >>> >>> My initial thinking is that it would make more sense to just keep >>> items in Session Variable arrays and only add anything to the >>> database at the time of Checkout -- to keep the DB from bulking up >>> with unpurchased items left in the cart. But searching online, it >>> seems that carts often add records to the database as soon as they >>> go into the cart. (Might that be different when using MySQL as >>> opposed to FMP?) >>> >>> FWIW - Users on this site will average 1-4 items per order. >> >> I tend to add them immediately - allows me to also re-show previous >> not actually purchased items on request further down the track... >> >> Cheers >> >> Webko >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- Skipped content of type multipart/related From headhoncho at customikesolutions.com Tue Jul 28 18:06:38 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Tue Jul 28 18:07:37 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> Message-ID: Hi Joel, I record them immediately, and run a script weekly to "delete" non purchased orders. It also helps in the reporting to see what people have started ordering and then dropped out, so to speak. As Webko said, this also allows for "pausing" an order and resuming it later. HTH. 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 FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: > Thanks Leo > > That's what I'd been thinking. > > It's good to see what different people are doing... > > -Joel > > > On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: > >> Yeah there's really a question of what features you want. >> >> The basic approach is to keep the cart in the session as session >> variables. There's really no need to put it all in the database, >> use the session for what it's worth instead :) >> >> BUT, keeping the cart inside the DB will allow for certain things, >> such as the client can put some stuff in the cart, mail his >> collegue, and tell him "hey, look at the stuff I put in our cart", >> and the collegue can do so from a totally different computer. They >> can collaborate. >> >> If that latter example isn't needed, I'd store it in the session. >> >> >> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >> >>> >>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>> >>>> Hi all >>>> >>>> Anybody have any thoughts on *when* in shopping cart >>>> functionality it's best to add items as records to the database? >>>> >>>> My initial thinking is that it would make more sense to just keep >>>> items in Session Variable arrays and only add anything to the >>>> database at the time of Checkout -- to keep the DB from bulking >>>> up with unpurchased items left in the cart. But searching >>>> online, it seems that carts often add records to the database as >>>> soon as they go into the cart. (Might that be different when >>>> using MySQL as opposed to FMP?) >>>> >>>> FWIW - Users on this site will average 1-4 items per order. >>> >>> I tend to add them immediately - allows me to also re-show >>> previous not actually purchased items on request further down the >>> track... >>> >>> Cheers >>> >>> Webko >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -| >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jschwartz at exit445.com Tue Jul 28 21:19:49 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Jul 28 21:22:38 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> Message-ID: Hi Joel, My experience is that should be a business decision, not just a technical one. Technically, it can be done either way with advantages and disadvantages for each. However, the Client has to WANT to offer a richer shopping experience and/or be EAGER to data mine the abandoned shopping carts for possible clues why customer do what they do. Otherwise, saving the order data before the order is confirmed is a wasted effort...at least from a business stand point. My 2?. Jonathan >Hi all > >Anybody have any thoughts on *when* in shopping >cart functionality it's best to add items as >records to the database? > >My initial thinking is that it would make more >sense to just keep items in Session Variable >arrays and only add anything to the database at >the time of Checkout -- to keep the DB from >bulking up with unpurchased items left in the >cart. But searching online, it seems that carts >often add records to the database as soon as >they go into the cart. (Might that be different >when using MySQL as opposed to FMP?) > >FWIW - Users on this site will average 1-4 items per order. > >Whaddy'all think? > >TIA, >-Joel >_______________________________________________ >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 headhoncho at customikesolutions.com Tue Jul 28 22:22:21 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Tue Jul 28 22:22:26 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> Message-ID: <9B876D20-47D6-44BB-A0B6-229E001708A6@customikesolutions.com> Hi Jonathan, On 29/07/2009, at 1:19 PM, Jonathan Schwartz wrote: > Hi Joel, > > My experience is that should be a business decision, not just a > technical one. Technically, it can be done either way with > advantages and disadvantages for each. However, the Client has to > WANT to offer a richer shopping experience and/or be EAGER to data > mine the abandoned shopping carts for possible clues why customer do > what they do. Otherwise, saving the order data before the order is > confirmed is a wasted effort...at least from a business stand point. > > My 2?. > Not wanting to be contrary, but, in my mind, there's no "wasted effort" in saving the cart data before the order is confirmed... there's the same amount of coding in both. One you need to keep track of line items in session variables, the other you need to keep track of items in the database. The only "effort" is in deleting "dead" items/orders. But I agree, it needs to be a business decision. 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 FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com > Jonathan > > > >> Hi all >> >> Anybody have any thoughts on *when* in shopping cart functionality >> it's best to add items as records to the database? >> >> My initial thinking is that it would make more sense to just keep >> items in Session Variable arrays and only add anything to the >> database at the time of Checkout -- to keep the DB from bulking up >> with unpurchased items left in the cart. But searching online, it >> seems that carts often add records to the database as soon as they >> go into the cart. (Might that be different when using MySQL as >> opposed to FMP?) >> >> FWIW - Users on this site will average 1-4 items per order. >> >> Whaddy'all think? >> >> TIA, >> -Joel >> _______________________________________________ >> 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 Jul 28 23:00:10 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Jul 28 23:00:22 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <9B876D20-47D6-44BB-A0B6-229E001708A6@customikesolutions.com> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <9B876D20-47D6-44BB-A0B6-229E001708A6@customikesolutions.com> Message-ID: At 2:22 PM +1000 7/29/09, Head Honcho wrote: >Hi Jonathan, > >On 29/07/2009, at 1:19 PM, Jonathan Schwartz wrote: > >>Hi Joel, >> >>My experience is that should be a business >>decision, not just a technical one. >>Technically, it can be done either way with >>advantages and disadvantages for each. >>However, the Client has to WANT to offer a >>richer shopping experience and/or be EAGER to >>data mine the abandoned shopping carts for >>possible clues why customer do what they do. >>Otherwise, saving the order data before the >>order is confirmed is a wasted effort...at >>least from a business stand point. >> >>My 2?. >> > >Not wanting to be contrary, but, in my mind, >there's no "wasted effort" in saving the cart >data before the order is confirmed... there's >the same amount of coding in both. One you need >to keep track of line items in session >variables, the other you need to keep track of >items in the database. The only "effort" is in >deleting "dead" items/orders. > >But I agree, it needs to be a business decision. > >Regards > >Michael Ward >-- Hi Michael, Agreed on the technical effort between the two methods. Lets call them even. My suggestion that this was partly a business decision has to do with whether or not the client wants the benefits of saving the unfinished orders and then offering an enhanced online system that allows customers to resume unfinished orders, as was suggested. If the client doesn't have an interest in unfinished orders, then either method will do. On the other hand, if the client DOES want to interact with unfinished orders, the technical decision is made: you need to save orders in the DB as you go. Otherwise, they are gone when the session ends. Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From headhoncho at customikesolutions.com Tue Jul 28 23:26:27 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Tue Jul 28 23:26:33 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <9B876D20-47D6-44BB-A0B6-229E001708A6@customikesolutions.com> Message-ID: <77482ED1-97EF-4018-9158-C0649EDF2A9C@customikesolutions.com> Hi Jonathan, On 29/07/2009, at 3:00 PM, Jonathan Schwartz wrote: > > > At 2:22 PM +1000 7/29/09, Head Honcho wrote: > > > Hi Michael, > > Agreed on the technical effort between the two methods. Lets call > them even. > > My suggestion that this was partly a business decision has to do > with whether or not the client wants the benefits of saving the > unfinished orders and then offering an enhanced online system that > allows customers to resume unfinished orders, as was suggested. > > If the client doesn't have an interest in unfinished orders, then > either method will do. On the other hand, if the client DOES want to > interact with unfinished orders, the technical decision is made: you > need to save orders in the DB as you go. Otherwise, they are gone > when the session ends. > Excellently put! 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 FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From ggt667 at gmail.com Wed Jul 29 02:45:08 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Jul 29 02:45:12 2009 Subject: [FX.php List] Replacing my FM robot In-Reply-To: References: Message-ID: pyFileMaker is a sister project in a way of FX.php However in python everything is an object. ggt 2009/7/28 John Funk : > PyFileMaker looks very cool, always good to know about tools like this. > > The text file are created in a proprietary system owned by the company. I > will be using the FM import. > > John > > > _______________________________________________ > 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 Jul 29 02:47:42 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Jul 29 02:47:47 2009 Subject: [FX.php List] SetPortalRow () In-Reply-To: References: Message-ID: Me too Bob. ggt 2009/7/28 Bob Patin : > I'm with Tim; I go to the subtables themselves if I need to write to those > records. If it's a matter of writing to more than one row, I write a simple > loop and get it done that way. > > Bob Patin > > > > > > > > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Jul 28, 2009, at 4:22 PM, Tim 'Webko' Booth wrote: > >> I very rarely use portals, I'd always be working in the sub-table. I have >> a similar routine for a survey system I'm writing, where people can edit >> and/or create new answers. >> >> I go to the sub-table, check for the existence of that set of answers and >> then loop either creating new answers (for questions they haven't answered >> before or editing (for ones they have) and even with >40 questions on some >> pages, I'm still well inside the 30s limit... That layout has only the 5 >> required fields on it. > > > _______________________________________________ > 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 Jul 29 02:49:46 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Jul 29 02:49:51 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> Message-ID: What are your criterias for deleting the carts not owned by anybody? ggt 2009/7/29 Head Honcho : > Hi Joel, > > I record them immediately, and run a script weekly to "delete" non purchased > orders. > > It also helps in the reporting to see what people have started ordering and > then dropped out, so to speak. > > As Webko said, this also allows for "pausing" an order and resuming it > later. > > HTH. > > 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 > FileMaker 10 Certified Developer > 10 Wandoo Crt > Wheelers Hill, 3150 > ph 0414 562 501 > headhoncho@customikesolutions.com > > > > > On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: > >> Thanks Leo >> >> That's what I'd been thinking. >> >> It's good to see what different people are doing... >> >> -Joel >> >> >> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >> >>> Yeah there's really a question of what features you want. >>> >>> The basic approach is to keep the cart in the session as session >>> variables. There's really no need to put it all in the database, use the >>> session for what it's worth instead :) >>> >>> BUT, keeping the cart inside the DB will allow for certain things, such >>> as the client can put some stuff in the cart, mail his collegue, and tell >>> him "hey, look at the stuff I put in our cart", and the collegue can do so >>> from a totally different computer. They can collaborate. >>> >>> If that latter example isn't needed, I'd store it in the session. >>> >>> >>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>> >>>> >>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>> >>>>> Hi all >>>>> >>>>> Anybody have any thoughts on *when* in shopping cart functionality it's >>>>> best to add items as records to the database? >>>>> >>>>> My initial thinking is that it would make more sense to just keep items >>>>> in Session Variable arrays and only add anything to the database at the time >>>>> of Checkout -- to keep the DB from bulking up with unpurchased items left in >>>>> the cart. ?But searching online, it seems that carts often add records to >>>>> the database as soon as they go into the cart. ?(Might that be different >>>>> when using MySQL as opposed to FMP?) >>>>> >>>>> FWIW - Users on this site will average 1-4 items per order. >>>> >>>> I tend to add them immediately - allows me to also re-show previous not >>>> actually purchased items on request further down the track... >>>> >>>> Cheers >>>> >>>> Webko >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -| >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From headhoncho at customikesolutions.com Wed Jul 29 02:57:23 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Wed Jul 29 02:57:28 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> Message-ID: <6968DED3-CA49-467B-A67D-EE7AC3B74A57@customikesolutions.com> Hi ggt, On 29/07/2009, at 6:49 PM, Gjermund Gusland Thorsen wrote: > What are your criterias for deleting the carts not owned by anybody? > Fairly basic: More than 7 days old with no authorisation code (given by the gateway). 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 FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From dbengston at tds.net Wed Jul 29 07:28:34 2009 From: dbengston at tds.net (Dale Bengston) Date: Wed Jul 29 07:28:40 2009 Subject: [FX.php List] SetPortalRow () In-Reply-To: References: Message-ID: <86A9E5B1-BFA6-46F9-9D13-FF0BB7B0EE7C@tds.net> Me three, Bob. I stopped using portals back when CDML introduced [FMP- InlineAction:] Dale On Jul 29, 2009, at 3:47 AM, Gjermund Gusland Thorsen wrote: > Me too Bob. > > ggt > > 2009/7/28 Bob Patin : >> I'm with Tim; I go to the subtables themselves if I need to write >> to those >> records. If it's a matter of writing to more than one row, I write >> a simple >> loop and get it done that way. >> >> Bob Patin >> >> >> >> >> >> >> >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> FileMaker 10 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> On Jul 28, 2009, at 4:22 PM, Tim 'Webko' Booth wrote: >> >>> I very rarely use portals, I'd always be working in the sub-table. >>> I have >>> a similar routine for a survey system I'm writing, where people >>> can edit >>> and/or create new answers. >>> >>> I go to the sub-table, check for the existence of that set of >>> answers and >>> then loop either creating new answers (for questions they haven't >>> answered >>> before or editing (for ones they have) and even with >40 questions >>> on some >>> pages, I'm still well inside the 30s limit... That layout has only >>> the 5 >>> required fields on it. >> >> >> _______________________________________________ >> 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 Wed Jul 29 08:53:19 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Jul 29 08:53:30 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <6968DED3-CA49-467B-A67D-EE7AC3B74A57@customikesolutions.com> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> <6968DED3-CA49-467B-A67D-EE7AC3B74A57@customikesolutions.com> Message-ID: At 6:57 PM +1000 7/29/09, Head Honcho wrote: >Hi ggt, > >On 29/07/2009, at 6:49 PM, Gjermund Gusland Thorsen wrote: > >>What are your criterias for deleting the carts not owned by anybody? >> > >Fairly basic: > >More than 7 days old with no authorisation code (given by the gateway). > >Regards > >Michael Ward I'm going to chime in again. In my experience, this should be a *business rule*, determined by the client based on how they want to work with unfinished orders. If the client *doesn't* care to access/review unfinished orders, then "Zero" time is required to keep the unfinished orders. If the client *does* value unfinished orders, then it should be their call how far back they want to go. Another consideration...keeping the unfinished orders for technical troubleshooting and review. How long does it take for problem reports to filter back from the Customer to the Client and then to the Developer? FYI, my latest online projects employ a temporary "holding tank" table that contains all orders, finished and unfinished. Upon finishing, the records get copied into the "real" orders table, leaving a virgin copy of the original order in the temporary table. This has been invaluable in troubleshooting Customer/Client trouble reports, as you can show the details of the order at the moment it was taken, versus dealing with the "permanent" order that might have changed 27 times since being created. In one project,we have a routine that compares temporary orders and permanent orders, identifying unfinished orders, and emails customers with a "Wha Happened?" survey...plus a coupon code and invitation to try again. Currently, the temp file has 1 year's worth of orders. Without this information, how would the client ever determine, say, that a large percentage of unfinished orders are due to perception that shipping costs were too high? (just an example). In summary, the decision to keep/not keep unfinished order data should be determined by business rules. Failing that, tech rules apply. Stepping back, let it be said that our roles as fx.php developers stretches far beyond delivering what the client ask for...into the arena of web-marketing e-commerce consultants. At least it has for me. My 2?. Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From bob at patin.com Wed Jul 29 09:46:56 2009 From: bob at patin.com (Bob Patin) Date: Wed Jul 29 09:47:03 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> Message-ID: <85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> For one client it was a half-hour; this wasn't a cart per se, but a registration site. The issue for the client was to make sure that everyone who completed the process was definitely sent an email confirmation; eventually the other programmer in this project (I was a sub-contractor on this) decided to write a script, and trigger it every 60 seconds. It looks for abandoned registrations, and if it's been more than a half-hour, deletes the temp record. If not, it confirms that there's a credit card payment auth code and if so, it sends the confirmation email. I don't use scripts much at all in web apps, but this was what the other consultant wanted, and it does work pretty well with scheduled script-triggering from Server 10. For this app we use a temp table, but for a smaller app on the same site, where people are signing up for meetings, I store everything in session variables until the end because there's not much to keep track of... BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Twitter: bobpatin iChat/AIM: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance & TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? jQuery ? ExpressionEngine Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: > What are your criterias for deleting the carts not owned by anybody? > > ggt > > 2009/7/29 Head Honcho : >> Hi Joel, >> >> I record them immediately, and run a script weekly to "delete" non >> purchased >> orders. >> >> It also helps in the reporting to see what people have started >> ordering and >> then dropped out, so to speak. >> >> As Webko said, this also allows for "pausing" an order and resuming >> it >> later. >> >> HTH. >> >> 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 >> FileMaker 10 Certified Developer >> 10 Wandoo Crt >> Wheelers Hill, 3150 >> ph 0414 562 501 >> headhoncho@customikesolutions.com >> >> >> >> >> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >> >>> Thanks Leo >>> >>> That's what I'd been thinking. >>> >>> It's good to see what different people are doing... >>> >>> -Joel >>> >>> >>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >>> >>>> Yeah there's really a question of what features you want. >>>> >>>> The basic approach is to keep the cart in the session as session >>>> variables. There's really no need to put it all in the database, >>>> use the >>>> session for what it's worth instead :) >>>> >>>> BUT, keeping the cart inside the DB will allow for certain >>>> things, such >>>> as the client can put some stuff in the cart, mail his collegue, >>>> and tell >>>> him "hey, look at the stuff I put in our cart", and the collegue >>>> can do so >>>> from a totally different computer. They can collaborate. >>>> >>>> If that latter example isn't needed, I'd store it in the session. >>>> >>>> >>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>>> >>>>> >>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>>> >>>>>> Hi all >>>>>> >>>>>> Anybody have any thoughts on *when* in shopping cart >>>>>> functionality it's >>>>>> best to add items as records to the database? >>>>>> >>>>>> My initial thinking is that it would make more sense to just >>>>>> keep items >>>>>> in Session Variable arrays and only add anything to the >>>>>> database at the time >>>>>> of Checkout -- to keep the DB from bulking up with unpurchased >>>>>> items left in >>>>>> the cart. But searching online, it seems that carts often add >>>>>> records to >>>>>> the database as soon as they go into the cart. (Might that be >>>>>> different >>>>>> when using MySQL as opposed to FMP?) >>>>>> >>>>>> FWIW - Users on this site will average 1-4 items per order. >>>>> >>>>> I tend to add them immediately - allows me to also re-show >>>>> previous not >>>>> actually purchased items on request further down the track... >>>>> >>>>> Cheers >>>>> >>>>> Webko >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> -| >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> >> >> _______________________________________________ >> 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 dbengston at tds.net Wed Jul 29 10:37:26 2009 From: dbengston at tds.net (Dale Bengston) Date: Wed Jul 29 10:37:34 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Records right away? In-Reply-To: <85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net> <74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org> <39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net> <85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> Message-ID: I agree that this is a client business rule, but there is very little penalty for saving records to a table, and keeping them as a status that is suppressed by the client-server UI. I am doing this for an order site. In my opinion, saving records also makes it easier to retrieve a shopping cart if the user quits and relaunches, or in another typical, natural way destroys their session. Dale -- Dale Bengston Streamline Studio, LLC www.streamline-studio.com On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: > For one client it was a half-hour; this wasn't a cart per se, but a > registration site. The issue for the client was to make sure that > everyone who completed the process was definitely sent an email > confirmation; eventually the other programmer in this project (I was > a sub-contractor on this) decided to write a script, and trigger it > every 60 seconds. It looks for abandoned registrations, and if it's > been more than a half-hour, deletes the temp record. If not, it > confirms that there's a credit card payment auth code and if so, it > sends the confirmation email. > > I don't use scripts much at all in web apps, but this was what the > other consultant wanted, and it does work pretty well with scheduled > script-triggering from Server 10. > > For this app we use a temp table, but for a smaller app on the same > site, where people are signing up for meetings, I store everything > in session variables until the end because there's not much to keep > track of... > > BP > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Twitter: bobpatin > iChat/AIM: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance & TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? jQuery ? ExpressionEngine > Full email services ? Free DNS hosting ? Colocation ? Consulting > > > On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: > >> What are your criterias for deleting the carts not owned by anybody? >> >> ggt >> >> 2009/7/29 Head Honcho : >>> Hi Joel, >>> >>> I record them immediately, and run a script weekly to "delete" non >>> purchased >>> orders. >>> >>> It also helps in the reporting to see what people have started >>> ordering and >>> then dropped out, so to speak. >>> >>> As Webko said, this also allows for "pausing" an order and >>> resuming it >>> later. >>> >>> HTH. >>> >>> 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 >>> FileMaker 10 Certified Developer >>> 10 Wandoo Crt >>> Wheelers Hill, 3150 >>> ph 0414 562 501 >>> headhoncho@customikesolutions.com >>> >>> >>> >>> >>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >>> >>>> Thanks Leo >>>> >>>> That's what I'd been thinking. >>>> >>>> It's good to see what different people are doing... >>>> >>>> -Joel >>>> >>>> >>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >>>> >>>>> Yeah there's really a question of what features you want. >>>>> >>>>> The basic approach is to keep the cart in the session as session >>>>> variables. There's really no need to put it all in the database, >>>>> use the >>>>> session for what it's worth instead :) >>>>> >>>>> BUT, keeping the cart inside the DB will allow for certain >>>>> things, such >>>>> as the client can put some stuff in the cart, mail his collegue, >>>>> and tell >>>>> him "hey, look at the stuff I put in our cart", and the collegue >>>>> can do so >>>>> from a totally different computer. They can collaborate. >>>>> >>>>> If that latter example isn't needed, I'd store it in the session. >>>>> >>>>> >>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>>>> >>>>>> >>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>>>> >>>>>>> Hi all >>>>>>> >>>>>>> Anybody have any thoughts on *when* in shopping cart >>>>>>> functionality it's >>>>>>> best to add items as records to the database? >>>>>>> >>>>>>> My initial thinking is that it would make more sense to just >>>>>>> keep items >>>>>>> in Session Variable arrays and only add anything to the >>>>>>> database at the time >>>>>>> of Checkout -- to keep the DB from bulking up with unpurchased >>>>>>> items left in >>>>>>> the cart. But searching online, it seems that carts often add >>>>>>> records to >>>>>>> the database as soon as they go into the cart. (Might that be >>>>>>> different >>>>>>> when using MySQL as opposed to FMP?) >>>>>>> >>>>>>> FWIW - Users on this site will average 1-4 items per order. >>>>>> >>>>>> I tend to add them immediately - allows me to also re-show >>>>>> previous not >>>>>> actually purchased items on request further down the track... >>>>>> >>>>>> Cheers >>>>>> >>>>>> Webko >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> -| >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> >>> >>> _______________________________________________ >>> 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 pvanbuskirk at otc.fsu.edu Wed Jul 29 10:43:35 2009 From: pvanbuskirk at otc.fsu.edu (VanBuskirk, Patricia) Date: Wed Jul 29 10:43:46 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Recordsright away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net><74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org><39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net><85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> Message-ID: <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> As a frequent online shopper, I like this idea. I had over $100 of merch in my cart at Khols online, accumulated throughout the day, and I went away from my pc for a couple of hours to come back to an empty cart. I did not try to re-shop, so they lost the business. -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Wednesday, July 29, 2009 12:37 PM To: FX.php Discussion List Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars or Add Recordsright away? I agree that this is a client business rule, but there is very little penalty for saving records to a table, and keeping them as a status that is suppressed by the client-server UI. I am doing this for an order site. In my opinion, saving records also makes it easier to retrieve a shopping cart if the user quits and relaunches, or in another typical, natural way destroys their session. Dale -- Dale Bengston Streamline Studio, LLC www.streamline-studio.com On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: > For one client it was a half-hour; this wasn't a cart per se, but a > registration site. The issue for the client was to make sure that > everyone who completed the process was definitely sent an email > confirmation; eventually the other programmer in this project (I was > a sub-contractor on this) decided to write a script, and trigger it > every 60 seconds. It looks for abandoned registrations, and if it's > been more than a half-hour, deletes the temp record. If not, it > confirms that there's a credit card payment auth code and if so, it > sends the confirmation email. > > I don't use scripts much at all in web apps, but this was what the > other consultant wanted, and it does work pretty well with scheduled > script-triggering from Server 10. > > For this app we use a temp table, but for a smaller app on the same > site, where people are signing up for meetings, I store everything > in session variables until the end because there's not much to keep > track of... > > BP > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Twitter: bobpatin > iChat/AIM: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance & TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP * jQuery * ExpressionEngine > Full email services * Free DNS hosting * Colocation * Consulting > > > On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: > >> What are your criterias for deleting the carts not owned by anybody? >> >> ggt >> >> 2009/7/29 Head Honcho : >>> Hi Joel, >>> >>> I record them immediately, and run a script weekly to "delete" non >>> purchased >>> orders. >>> >>> It also helps in the reporting to see what people have started >>> ordering and >>> then dropped out, so to speak. >>> >>> As Webko said, this also allows for "pausing" an order and >>> resuming it >>> later. >>> >>> HTH. >>> >>> 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 >>> FileMaker 10 Certified Developer >>> 10 Wandoo Crt >>> Wheelers Hill, 3150 >>> ph 0414 562 501 >>> headhoncho@customikesolutions.com >>> >>> >>> >>> >>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >>> >>>> Thanks Leo >>>> >>>> That's what I'd been thinking. >>>> >>>> It's good to see what different people are doing... >>>> >>>> -Joel >>>> >>>> >>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >>>> >>>>> Yeah there's really a question of what features you want. >>>>> >>>>> The basic approach is to keep the cart in the session as session >>>>> variables. There's really no need to put it all in the database, >>>>> use the >>>>> session for what it's worth instead :) >>>>> >>>>> BUT, keeping the cart inside the DB will allow for certain >>>>> things, such >>>>> as the client can put some stuff in the cart, mail his collegue, >>>>> and tell >>>>> him "hey, look at the stuff I put in our cart", and the collegue >>>>> can do so >>>>> from a totally different computer. They can collaborate. >>>>> >>>>> If that latter example isn't needed, I'd store it in the session. >>>>> >>>>> >>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>>>> >>>>>> >>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>>>> >>>>>>> Hi all >>>>>>> >>>>>>> Anybody have any thoughts on *when* in shopping cart >>>>>>> functionality it's >>>>>>> best to add items as records to the database? >>>>>>> >>>>>>> My initial thinking is that it would make more sense to just >>>>>>> keep items >>>>>>> in Session Variable arrays and only add anything to the >>>>>>> database at the time >>>>>>> of Checkout -- to keep the DB from bulking up with unpurchased >>>>>>> items left in >>>>>>> the cart. But searching online, it seems that carts often add >>>>>>> records to >>>>>>> the database as soon as they go into the cart. (Might that be >>>>>>> different >>>>>>> when using MySQL as opposed to FMP?) >>>>>>> >>>>>>> FWIW - Users on this site will average 1-4 items per order. >>>>>> >>>>>> I tend to add them immediately - allows me to also re-show >>>>>> previous not >>>>>> actually purchased items on request further down the track... >>>>>> >>>>>> Cheers >>>>>> >>>>>> Webko >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> -| >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> >>> >>> _______________________________________________ >>> 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 Wed Jul 29 11:43:17 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Jul 29 11:43:29 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Recordsright away? In-Reply-To: <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net><74DD97EC-7A30-4303-A537-484C962F42DC@final resort.org><39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net><85B54B35-D52F-480B-A4E1-96AEA458B51F @patin.com> <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> Message-ID: At 12:43 PM -0400 7/29/09, VanBuskirk, Patricia wrote: >As a frequent online shopper, I like this idea. I had over $100 of >merch in my cart at Khols online, accumulated throughout the day, and I >went away from my pc for a couple of hours to come back to an empty >cart. I did not try to re-shop, so they lost the business. This underscores the role of the Filemaker/fx.php/API/etc web developer as an e-commerce consultant. FileMaker developers generally serve "unsophisticated" web clients. The sophisticated ones have three floors of web programmers and marketing staff. So, the fx.php developer must advise the unsophisticated client how to best serve the web customer. Interestingly enough, the web customer has sophisticated expectations after using systems such as Amazon, Ebay, etc. So, unless the FileMaker web developer sets expectations otherwise, or builds in the advanced functions that users have come to expect, projects can fall short. Can you tell that I'm on a soap box here? I got on it the day FileMaker Inc introduced the Site Assistant to "automatically create multiple-page websites". ;-) J -- 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/20090729/cd994762/attachment.html From jsfmp at earthlink.net Wed Jul 29 11:43:36 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Jul 29 11:43:50 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Recordsright away? In-Reply-To: <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net><74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org><39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net><85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> Message-ID: Don't know how long this thread may keep going, but let me put in my "Thanks Everybody" here & now: Thanks Everybody Best, -Joel ~~~~~~~~~~~~~~~~~~~~~~~ Joel Shapiro FileMaker Pro database & web design http://www.jsfmp.com 415-269-5055 ~~~~~~~~~~~~~~~~~~~~~~~ On Jul 29, 2009, at 9:43 AM, VanBuskirk, Patricia wrote: > As a frequent online shopper, I like this idea. I had over $100 of > merch in my cart at Khols online, accumulated throughout the day, > and I > went away from my pc for a couple of hours to come back to an empty > cart. I did not try to re-shop, so they lost the business. > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale > Bengston > Sent: Wednesday, July 29, 2009 12:37 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars or Add > Recordsright away? > > I agree that this is a client business rule, but there is very little > penalty for saving records to a table, and keeping them as a status > that is suppressed by the client-server UI. I am doing this for an > order site. In my opinion, saving records also makes it easier to > retrieve a shopping cart if the user quits and relaunches, or in > another typical, natural way destroys their session. > > Dale > > > > -- > Dale Bengston > Streamline Studio, LLC > www.streamline-studio.com > > On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: > >> For one client it was a half-hour; this wasn't a cart per se, but a >> registration site. The issue for the client was to make sure that >> everyone who completed the process was definitely sent an email >> confirmation; eventually the other programmer in this project (I was >> a sub-contractor on this) decided to write a script, and trigger it >> every 60 seconds. It looks for abandoned registrations, and if it's >> been more than a half-hour, deletes the temp record. If not, it >> confirms that there's a credit card payment auth code and if so, it >> sends the confirmation email. >> >> I don't use scripts much at all in web apps, but this was what the >> other consultant wanted, and it does work pretty well with scheduled >> script-triggering from Server 10. >> >> For this app we use a temp table, but for a smaller app on the same >> site, where people are signing up for meetings, I store everything >> in session variables until the end because there's not much to keep >> track of... >> >> BP >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> Twitter: bobpatin >> iChat/AIM: bobpatin >> FileMaker 10 Certified Developer >> Member of FileMaker Business Alliance & TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP * jQuery * ExpressionEngine >> Full email services * Free DNS hosting * Colocation * Consulting >> >> >> On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: >> >>> What are your criterias for deleting the carts not owned by anybody? >>> >>> ggt >>> >>> 2009/7/29 Head Honcho : >>>> Hi Joel, >>>> >>>> I record them immediately, and run a script weekly to "delete" non >>>> purchased >>>> orders. >>>> >>>> It also helps in the reporting to see what people have started >>>> ordering and >>>> then dropped out, so to speak. >>>> >>>> As Webko said, this also allows for "pausing" an order and >>>> resuming it >>>> later. >>>> >>>> HTH. >>>> >>>> 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 >>>> FileMaker 10 Certified Developer >>>> 10 Wandoo Crt >>>> Wheelers Hill, 3150 >>>> ph 0414 562 501 >>>> headhoncho@customikesolutions.com >>>> >>>> >>>> >>>> >>>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >>>> >>>>> Thanks Leo >>>>> >>>>> That's what I'd been thinking. >>>>> >>>>> It's good to see what different people are doing... >>>>> >>>>> -Joel >>>>> >>>>> >>>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >>>>> >>>>>> Yeah there's really a question of what features you want. >>>>>> >>>>>> The basic approach is to keep the cart in the session as session >>>>>> variables. There's really no need to put it all in the database, >>>>>> use the >>>>>> session for what it's worth instead :) >>>>>> >>>>>> BUT, keeping the cart inside the DB will allow for certain >>>>>> things, such >>>>>> as the client can put some stuff in the cart, mail his collegue, >>>>>> and tell >>>>>> him "hey, look at the stuff I put in our cart", and the collegue >>>>>> can do so >>>>>> from a totally different computer. They can collaborate. >>>>>> >>>>>> If that latter example isn't needed, I'd store it in the session. >>>>>> >>>>>> >>>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>>>>> >>>>>>> >>>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>>>>> >>>>>>>> Hi all >>>>>>>> >>>>>>>> Anybody have any thoughts on *when* in shopping cart >>>>>>>> functionality it's >>>>>>>> best to add items as records to the database? >>>>>>>> >>>>>>>> My initial thinking is that it would make more sense to just >>>>>>>> keep items >>>>>>>> in Session Variable arrays and only add anything to the >>>>>>>> database at the time >>>>>>>> of Checkout -- to keep the DB from bulking up with unpurchased >>>>>>>> items left in >>>>>>>> the cart. But searching online, it seems that carts often add >>>>>>>> records to >>>>>>>> the database as soon as they go into the cart. (Might that be >>>>>>>> different >>>>>>>> when using MySQL as opposed to FMP?) >>>>>>>> >>>>>>>> FWIW - Users on this site will average 1-4 items per order. >>>>>>> >>>>>>> I tend to add them immediately - allows me to also re-show >>>>>>> previous not >>>>>>> actually purchased items on request further down the track... >>>>>>> >>>>>>> Cheers >>>>>>> >>>>>>> Webko >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> >>>>>> -| >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 bob at patin.com Wed Jul 29 12:45:26 2009 From: bob at patin.com (Bob Patin) Date: Wed Jul 29 12:45:33 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Recordsright away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net><74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org><39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net><85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> Message-ID: Here's a question for GGT (or anyone else who may know this): is there any speed difference at all between writing 30 or so session variables versus writing 30 or so fields to 1 or more tables? For the sake of argument, let's say you're writing to two tables-- first is the temp order table, 2nd is the lineitems table. Is the difference in time involved negligible? Best, Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090729/84ee0bfb/new_logo_idea3_120w-0001.jpg -------------- next part -------------- Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Jul 29, 2009, at 12:43 PM, Joel Shapiro wrote: > Don't know how long this thread may keep going, but let me put in my > "Thanks Everybody" here & now: > > Thanks Everybody > > Best, > -Joel > > ~~~~~~~~~~~~~~~~~~~~~~~ > Joel Shapiro > FileMaker Pro > database & web design > http://www.jsfmp.com > 415-269-5055 > ~~~~~~~~~~~~~~~~~~~~~~~ > > > On Jul 29, 2009, at 9:43 AM, VanBuskirk, Patricia wrote: > >> As a frequent online shopper, I like this idea. I had over $100 of >> merch in my cart at Khols online, accumulated throughout the day, >> and I >> went away from my pc for a couple of hours to come back to an empty >> cart. I did not try to re-shop, so they lost the business. >> >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale >> Bengston >> Sent: Wednesday, July 29, 2009 12:37 PM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars or >> Add >> Recordsright away? >> >> I agree that this is a client business rule, but there is very little >> penalty for saving records to a table, and keeping them as a status >> that is suppressed by the client-server UI. I am doing this for an >> order site. In my opinion, saving records also makes it easier to >> retrieve a shopping cart if the user quits and relaunches, or in >> another typical, natural way destroys their session. >> >> Dale >> >> >> >> -- >> Dale Bengston >> Streamline Studio, LLC >> www.streamline-studio.com >> >> On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: >> >>> For one client it was a half-hour; this wasn't a cart per se, but a >>> registration site. The issue for the client was to make sure that >>> everyone who completed the process was definitely sent an email >>> confirmation; eventually the other programmer in this project (I was >>> a sub-contractor on this) decided to write a script, and trigger it >>> every 60 seconds. It looks for abandoned registrations, and if it's >>> been more than a half-hour, deletes the temp record. If not, it >>> confirms that there's a credit card payment auth code and if so, it >>> sends the confirmation email. >>> >>> I don't use scripts much at all in web apps, but this was what the >>> other consultant wanted, and it does work pretty well with scheduled >>> script-triggering from Server 10. >>> >>> For this app we use a temp table, but for a smaller app on the same >>> site, where people are signing up for meetings, I store everything >>> in session variables until the end because there's not much to keep >>> track of... >>> >>> BP >>> >>> Bob Patin >>> Longterm Solutions LLC >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> Twitter: bobpatin >>> iChat/AIM: bobpatin >>> FileMaker 10 Certified Developer >>> Member of FileMaker Business Alliance & TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP * jQuery * ExpressionEngine >>> Full email services * Free DNS hosting * Colocation * Consulting >>> >>> >>> On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: >>> >>>> What are your criterias for deleting the carts not owned by >>>> anybody? >>>> >>>> ggt >>>> >>>> 2009/7/29 Head Honcho : >>>>> Hi Joel, >>>>> >>>>> I record them immediately, and run a script weekly to "delete" non >>>>> purchased >>>>> orders. >>>>> >>>>> It also helps in the reporting to see what people have started >>>>> ordering and >>>>> then dropped out, so to speak. >>>>> >>>>> As Webko said, this also allows for "pausing" an order and >>>>> resuming it >>>>> later. >>>>> >>>>> HTH. >>>>> >>>>> 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 >>>>> FileMaker 10 Certified Developer >>>>> 10 Wandoo Crt >>>>> Wheelers Hill, 3150 >>>>> ph 0414 562 501 >>>>> headhoncho@customikesolutions.com >>>>> >>>>> >>>>> >>>>> >>>>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >>>>> >>>>>> Thanks Leo >>>>>> >>>>>> That's what I'd been thinking. >>>>>> >>>>>> It's good to see what different people are doing... >>>>>> >>>>>> -Joel >>>>>> >>>>>> >>>>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >>>>>> >>>>>>> Yeah there's really a question of what features you want. >>>>>>> >>>>>>> The basic approach is to keep the cart in the session as session >>>>>>> variables. There's really no need to put it all in the database, >>>>>>> use the >>>>>>> session for what it's worth instead :) >>>>>>> >>>>>>> BUT, keeping the cart inside the DB will allow for certain >>>>>>> things, such >>>>>>> as the client can put some stuff in the cart, mail his collegue, >>>>>>> and tell >>>>>>> him "hey, look at the stuff I put in our cart", and the collegue >>>>>>> can do so >>>>>>> from a totally different computer. They can collaborate. >>>>>>> >>>>>>> If that latter example isn't needed, I'd store it in the >>>>>>> session. >>>>>>> >>>>>>> >>>>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>>>>>> >>>>>>>> >>>>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>>>>>> >>>>>>>>> Hi all >>>>>>>>> >>>>>>>>> Anybody have any thoughts on *when* in shopping cart >>>>>>>>> functionality it's >>>>>>>>> best to add items as records to the database? >>>>>>>>> >>>>>>>>> My initial thinking is that it would make more sense to just >>>>>>>>> keep items >>>>>>>>> in Session Variable arrays and only add anything to the >>>>>>>>> database at the time >>>>>>>>> of Checkout -- to keep the DB from bulking up with unpurchased >>>>>>>>> items left in >>>>>>>>> the cart. But searching online, it seems that carts often add >>>>>>>>> records to >>>>>>>>> the database as soon as they go into the cart. (Might that be >>>>>>>>> different >>>>>>>>> when using MySQL as opposed to FMP?) >>>>>>>>> >>>>>>>>> FWIW - Users on this site will average 1-4 items per order. >>>>>>>> >>>>>>>> I tend to add them immediately - allows me to also re-show >>>>>>>> previous not >>>>>>>> actually purchased items on request further down the track... >>>>>>>> >>>>>>>> Cheers >>>>>>>> >>>>>>>> Webko >>>>>>>> _______________________________________________ >>>>>>>> FX.php_List mailing list >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> >>>>>>> -| >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 leo at finalresort.org Wed Jul 29 13:58:58 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Jul 29 13:59:03 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Recordsright away? In-Reply-To: References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net><74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org><39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net><85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> Message-ID: <5B2A6340-8E19-4900-BBDF-D3D2A06A62F5@finalresort.org> There is definately a time difference. Unless I misunderstood what you mean by session variables. If you just write thirty variables to the $_SESSION array, there only overhead involved is the one when PHP seralizes the values into the session storage, which by default is files under /tmp on the webserver. But this is isn't noticable for low-traffic hosts. On the other hand, if you are to write your values to a table in FileMaker, you have all the usual overhead involved with communicating with said database. 29 jul 2009 kl. 20.45 skrev Bob Patin: > Here's a question for GGT (or anyone else who may know this): is > there any speed difference at all between writing 30 or so session > variables versus writing 30 or so fields to 1 or more tables? > > For the sake of argument, let's say you're writing to two tables-- > first is the temp order table, 2nd is the lineitems table. > > Is the difference in time involved negligible? > > Best, > > Bob Patin > > > > > > > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Jul 29, 2009, at 12:43 PM, Joel Shapiro wrote: > >> Don't know how long this thread may keep going, but let me put in >> my "Thanks Everybody" here & now: >> >> Thanks Everybody >> >> Best, >> -Joel >> >> ~~~~~~~~~~~~~~~~~~~~~~~ >> Joel Shapiro >> FileMaker Pro >> database & web design >> http://www.jsfmp.com >> 415-269-5055 >> ~~~~~~~~~~~~~~~~~~~~~~~ >> >> >> On Jul 29, 2009, at 9:43 AM, VanBuskirk, Patricia wrote: >> >>> As a frequent online shopper, I like this idea. I had over $100 of >>> merch in my cart at Khols online, accumulated throughout the day, >>> and I >>> went away from my pc for a couple of hours to come back to an empty >>> cart. I did not try to re-shop, so they lost the business. >>> >>> >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale >>> Bengston >>> Sent: Wednesday, July 29, 2009 12:37 PM >>> To: FX.php Discussion List >>> Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars or >>> Add >>> Recordsright away? >>> >>> I agree that this is a client business rule, but there is very >>> little >>> penalty for saving records to a table, and keeping them as a status >>> that is suppressed by the client-server UI. I am doing this for an >>> order site. In my opinion, saving records also makes it easier to >>> retrieve a shopping cart if the user quits and relaunches, or in >>> another typical, natural way destroys their session. >>> >>> Dale >>> >>> >>> >>> -- >>> Dale Bengston >>> Streamline Studio, LLC >>> www.streamline-studio.com >>> >>> On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: >>> >>>> For one client it was a half-hour; this wasn't a cart per se, but a >>>> registration site. The issue for the client was to make sure that >>>> everyone who completed the process was definitely sent an email >>>> confirmation; eventually the other programmer in this project (I >>>> was >>>> a sub-contractor on this) decided to write a script, and trigger it >>>> every 60 seconds. It looks for abandoned registrations, and if it's >>>> been more than a half-hour, deletes the temp record. If not, it >>>> confirms that there's a credit card payment auth code and if so, it >>>> sends the confirmation email. >>>> >>>> I don't use scripts much at all in web apps, but this was what the >>>> other consultant wanted, and it does work pretty well with >>>> scheduled >>>> script-triggering from Server 10. >>>> >>>> For this app we use a temp table, but for a smaller app on the same >>>> site, where people are signing up for meetings, I store everything >>>> in session variables until the end because there's not much to keep >>>> track of... >>>> >>>> BP >>>> >>>> Bob Patin >>>> Longterm Solutions LLC >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> Twitter: bobpatin >>>> iChat/AIM: bobpatin >>>> FileMaker 10 Certified Developer >>>> Member of FileMaker Business Alliance & TechNet >>>> -------------------------- >>>> FileMaker hosting and consulting for all versions of FileMaker >>>> PHP * jQuery * ExpressionEngine >>>> Full email services * Free DNS hosting * Colocation * Consulting >>>> >>>> >>>> On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: >>>> >>>>> What are your criterias for deleting the carts not owned by >>>>> anybody? >>>>> >>>>> ggt >>>>> >>>>> 2009/7/29 Head Honcho : >>>>>> Hi Joel, >>>>>> >>>>>> I record them immediately, and run a script weekly to "delete" >>>>>> non >>>>>> purchased >>>>>> orders. >>>>>> >>>>>> It also helps in the reporting to see what people have started >>>>>> ordering and >>>>>> then dropped out, so to speak. >>>>>> >>>>>> As Webko said, this also allows for "pausing" an order and >>>>>> resuming it >>>>>> later. >>>>>> >>>>>> HTH. >>>>>> >>>>>> 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 >>>>>> FileMaker 10 Certified Developer >>>>>> 10 Wandoo Crt >>>>>> Wheelers Hill, 3150 >>>>>> ph 0414 562 501 >>>>>> headhoncho@customikesolutions.com >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >>>>>> >>>>>>> Thanks Leo >>>>>>> >>>>>>> That's what I'd been thinking. >>>>>>> >>>>>>> It's good to see what different people are doing... >>>>>>> >>>>>>> -Joel >>>>>>> >>>>>>> >>>>>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >>>>>>> >>>>>>>> Yeah there's really a question of what features you want. >>>>>>>> >>>>>>>> The basic approach is to keep the cart in the session as >>>>>>>> session >>>>>>>> variables. There's really no need to put it all in the >>>>>>>> database, >>>>>>>> use the >>>>>>>> session for what it's worth instead :) >>>>>>>> >>>>>>>> BUT, keeping the cart inside the DB will allow for certain >>>>>>>> things, such >>>>>>>> as the client can put some stuff in the cart, mail his >>>>>>>> collegue, >>>>>>>> and tell >>>>>>>> him "hey, look at the stuff I put in our cart", and the >>>>>>>> collegue >>>>>>>> can do so >>>>>>>> from a totally different computer. They can collaborate. >>>>>>>> >>>>>>>> If that latter example isn't needed, I'd store it in the >>>>>>>> session. >>>>>>>> >>>>>>>> >>>>>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>>>>>>> >>>>>>>>> >>>>>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>>>>>>> >>>>>>>>>> Hi all >>>>>>>>>> >>>>>>>>>> Anybody have any thoughts on *when* in shopping cart >>>>>>>>>> functionality it's >>>>>>>>>> best to add items as records to the database? >>>>>>>>>> >>>>>>>>>> My initial thinking is that it would make more sense to just >>>>>>>>>> keep items >>>>>>>>>> in Session Variable arrays and only add anything to the >>>>>>>>>> database at the time >>>>>>>>>> of Checkout -- to keep the DB from bulking up with >>>>>>>>>> unpurchased >>>>>>>>>> items left in >>>>>>>>>> the cart. But searching online, it seems that carts often >>>>>>>>>> add >>>>>>>>>> records to >>>>>>>>>> the database as soon as they go into the cart. (Might that >>>>>>>>>> be >>>>>>>>>> different >>>>>>>>>> when using MySQL as opposed to FMP?) >>>>>>>>>> >>>>>>>>>> FWIW - Users on this site will average 1-4 items per order. >>>>>>>>> >>>>>>>>> I tend to add them immediately - allows me to also re-show >>>>>>>>> previous not >>>>>>>>> actually purchased items on request further down the track... >>>>>>>>> >>>>>>>>> Cheers >>>>>>>>> >>>>>>>>> Webko >>>>>>>>> _______________________________________________ >>>>>>>>> FX.php_List mailing list >>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> >>>>>>>> -| >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> FX.php_List mailing list >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 davidcox at wcfs.edu Wed Jul 29 14:37:39 2009 From: davidcox at wcfs.edu (David Cox) Date: Wed Jul 29 14:37:41 2009 Subject: [FX.php List] can only create 4 records before timeout Message-ID: I am using a loop to create records when they do not exist. As I stated yesterday, it only gets four records created before timeout. IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker Server 7 is on an adjacent Win2K3 server and both are connected via a local gigabit switch and both are dual processors with adequate RAM. I am trying to find out what is causing the performance hit or latency issues. I can monitor both servers' processor & network %usage and it appears that the FM7 Server is doing some significant number crunching over the processor when I run the script. Should I try: 1. moving FileMaker Server onto the same hardware? 2. performing the FMNew() on a layout with just a few fields? 3. upgrading to a newer version of FileMaker Server? (is there any increase in performance in 9 or 10? I am certain FileMaker will tell me that I need to upgrade. However buget precludes that possibility for now) 4. reducing the number of fields and or relationships in the database? The table I am working in has over 200 fields. Any ideas? Thanks, David Cox Here is the php which uses variable variables with a do loop: SetDBData($dbfile, 'CourseDescription'); $CreateRecordCourseDes->SetDBUserPass($username, $password); $i=1; do { $n = "CourseDescription".$i."Valid"; $m = "coursetitle".$i; $CourseDescriptionValid = ${$n}; $coursetitle = ${$m}; echo $CourseDescriptionValid . "
"; echo $coursetitle . "
"; if($CourseDescriptionValid == "not submitted") { $CreateRecordCourseDes->AddDBParam('RelatedRecordTypeKey', $RecordTypeKey); $CreateRecordCourseDes->AddDBParam('RecordType', 'CourseDescription'); $CreateRecordCourseDes->AddDBParam('studentnumber', $StudentNumber); $CreateRecordCourseDes->AddDBParam('CourseDescriptionTitle', $coursetitle); $CreateRecordCourseDes->AddDBParam('FormID', '00016'); $result = $CreateRecordCourseDes->FMNew(); $i++; echo "Created Course Description ".$coursetitle; } } while ($i<=13); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090729/082524dd/attachment.html From tcmeyers at troymeyers.com Wed Jul 29 15:22:40 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Wed Jul 29 15:22:43 2009 Subject: [FX.php List] can only create 4 records before timeout Message-ID: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> David, If the layout you are referring to during creation has all 200 fields (or even just more than you need), then I'd definitely try your option (2.) first. Here I have many layouts for different purposes, and putting only the fields needed to accomplish the purpose makes great speed improvements. -Troy > I am using a loop to create records when they do not exist. As I stated > yesterday, it only gets four records created before timeout. > > IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker Server 7 > is on an adjacent Win2K3 server and both are connected via a local > gigabit switch and both are dual processors with adequate RAM. I am > trying to find out what is causing the performance hit or latency > issues. I can monitor both servers' processor & network %usage and it > appears that the FM7 Server is doing some significant number crunching > over the processor when I run the script. > > Should I try: > > 1. moving FileMaker Server onto the same hardware? > > 2. performing the FMNew() on a layout with just a few fields? > > 3. upgrading to a newer version of FileMaker Server? (is there any > > increase in performance in 9 or 10? I am certain FileMaker will tell > me > > that I need to upgrade. However buget precludes that possibility for > now) > > 4. reducing the number of fields and or relationships in the > database? > > The table I am working in has over 200 fields. > > Any ideas? > > Thanks, > > David Cox From jschwartz at exit445.com Wed Jul 29 15:52:48 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Jul 29 15:52:59 2009 Subject: [FX.php List] can only create 4 records before timeout In-Reply-To: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> References: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> Message-ID: <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> First things first. - Reduce layout fields to just those needed for this script. - increase timeout setting in php, either in ini or with an ini set command in the script. - Add some logging that tells you where the time is being spent. You have to log to a file instead if the screen because nothing gets written to the screen until the script finishes. And if the browser times out you get nada. Hth. Jonathan Schwartz Exit 445 Group 415-370-5011 On Jul 29, 2009, at 2:22 PM, Troy Meyers wrote: > David, > > If the layout you are referring to during creation has all 200 > fields (or even just more than you need), then I'd definitely try > your option (2.) first. Here I have many layouts for different > purposes, and putting only the fields needed to accomplish the > purpose makes great speed improvements. > > -Troy > > > >> I am using a loop to create records when they do not exist. As I >> stated >> yesterday, it only gets four records created before timeout. >> >> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker >> Server 7 >> is on an adjacent Win2K3 server and both are connected via a local >> gigabit switch and both are dual processors with adequate RAM. I am >> trying to find out what is causing the performance hit or latency >> issues. I can monitor both servers' processor & network %usage and >> it >> appears that the FM7 Server is doing some significant number >> crunching >> over the processor when I run the script. >> >> Should I try: >> >> 1. moving FileMaker Server onto the same hardware? >> >> 2. performing the FMNew() on a layout with just a few fields? >> >> 3. upgrading to a newer version of FileMaker Server? (is there any >> >> increase in performance in 9 or 10? I am certain FileMaker will tell >> me >> >> that I need to upgrade. However buget precludes that possibility >> for >> now) >> >> 4. reducing the number of fields and or relationships in the >> database? >> >> The table I am working in has over 200 fields. >> >> Any ideas? >> >> Thanks, >> >> David Cox > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From leo at finalresort.org Wed Jul 29 16:09:41 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Jul 29 16:09:52 2009 Subject: [FX.php List] can only create 4 records before timeout In-Reply-To: <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> References: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> Message-ID: <101D5369-0357-4B99-AC9D-684322E9D352@finalresort.org> I always use seperate layouts for FX/FMPHPAPI, containing only the needed fields without any extra candy. I suffix them with " | XML" but otherwise they're named the same as the "normal layouts", so that they're easy to track. 29 jul 2009 kl. 23.52 skrev Jonathan Schwartz: > First things first. > > - Reduce layout fields to just those needed for this script. > > - increase timeout setting in php, either in ini or with an ini set > command in the script. > > - Add some logging that tells you where the time is being spent. You > have to log to a file instead if the screen because nothing gets > written to the screen until the script finishes. And if the browser > times out you get nada. > > Hth. > > > > Jonathan Schwartz > Exit 445 Group > 415-370-5011 > > On Jul 29, 2009, at 2:22 PM, Troy Meyers > wrote: > >> David, >> >> If the layout you are referring to during creation has all 200 >> fields (or even just more than you need), then I'd definitely try >> your option (2.) first. Here I have many layouts for different >> purposes, and putting only the fields needed to accomplish the >> purpose makes great speed improvements. >> >> -Troy >> >> >> >>> I am using a loop to create records when they do not exist. As I >>> stated >>> yesterday, it only gets four records created before timeout. >>> >>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker >>> Server 7 >>> is on an adjacent Win2K3 server and both are connected via a local >>> gigabit switch and both are dual processors with adequate RAM. I am >>> trying to find out what is causing the performance hit or latency >>> issues. I can monitor both servers' processor & network %usage >>> and it >>> appears that the FM7 Server is doing some significant number >>> crunching >>> over the processor when I run the script. >>> >>> Should I try: >>> >>> 1. moving FileMaker Server onto the same hardware? >>> >>> 2. performing the FMNew() on a layout with just a few fields? >>> >>> 3. upgrading to a newer version of FileMaker Server? (is there any >>> >>> increase in performance in 9 or 10? I am certain FileMaker will tell >>> me >>> >>> that I need to upgrade. However buget precludes that possibility >>> for >>> now) >>> >>> 4. reducing the number of fields and or relationships in the >>> database? >>> >>> The table I am working in has over 200 fields. >>> >>> Any ideas? >>> >>> Thanks, >>> >>> David Cox >> >> _______________________________________________ >> 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 Wed Jul 29 16:46:46 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Jul 29 16:46:50 2009 Subject: [FX.php List] can only create 4 records before timeout In-Reply-To: <101D5369-0357-4B99-AC9D-684322E9D352@finalresort.org> References: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> <101D5369-0357-4B99-AC9D-684322E9D352@finalresort.org> Message-ID: I name them xmlPurpose ggt 2009/7/30 Leo R. Lundgren : > I always use seperate layouts for FX/FMPHPAPI, containing only the needed > fields without any extra candy. I suffix them with " | XML" but otherwise > they're named the same as the "normal layouts", so that they're easy to > track. > > > 29 jul 2009 kl. 23.52 skrev Jonathan Schwartz: > >> First things first. >> >> - Reduce layout fields to just those needed for this script. >> >> - increase timeout setting in php, either in ini or with an ini set >> command in the script. >> >> - Add some logging that tells you where the time is being spent. You have >> to log to a file instead if the screen because nothing gets written to the >> screen until the script finishes. And if the browser times out you get nada. >> >> Hth. >> >> >> >> Jonathan Schwartz >> Exit 445 Group >> 415-370-5011 >> >> On Jul 29, 2009, at 2:22 PM, Troy Meyers wrote: >> >>> David, >>> >>> If the layout you are referring to during creation has all 200 fields (or >>> even just more than you need), then I'd definitely try your option (2.) >>> first. Here I have many layouts for different purposes, and putting only the >>> fields needed to accomplish the purpose makes great speed improvements. >>> >>> -Troy >>> >>> >>> >>>> I am using a loop to create records when they do not exist. ?As I stated >>>> yesterday, it only gets four records created before timeout. >>>> >>>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. ?FileMaker Server 7 >>>> is on an adjacent Win2K3 server and both are connected via a local >>>> gigabit switch and both are dual processors with adequate RAM. ?I am >>>> trying to find out what is causing the performance hit or latency >>>> issues. ?I can monitor both servers' processor & network %usage and it >>>> appears that the FM7 Server is doing some significant number crunching >>>> over the processor when I run the script. >>>> >>>> Should I try: >>>> >>>> 1. moving FileMaker Server onto the same hardware? >>>> >>>> 2. performing the FMNew() on a layout with just a few fields? >>>> >>>> 3. upgrading to a newer version of FileMaker Server? ?(is there any >>>> >>>> increase in performance in 9 or 10? I am certain FileMaker will tell >>>> me >>>> >>>> that I need to upgrade. ?However buget precludes that possibility for >>>> now) >>>> >>>> 4. reducing the number of fields and or relationships in the >>>> database? >>>> >>>> The table I am working in has over 200 fields. >>>> >>>> Any ideas? >>>> >>>> Thanks, >>>> >>>> David Cox >>> >>> _______________________________________________ >>> 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 Wed Jul 29 16:47:30 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Jul 29 16:47:34 2009 Subject: [FX.php List] can only create 4 records before timeout In-Reply-To: References: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> <101D5369-0357-4B99-AC9D-684322E9D352@finalresort.org> Message-ID: With FileMaker 5/6 i used the name of the php script that used that laoyut. ggt 2009/7/30 Gjermund Gusland Thorsen : > I name them xmlPurpose > > ggt > > 2009/7/30 Leo R. Lundgren : >> I always use seperate layouts for FX/FMPHPAPI, containing only the needed >> fields without any extra candy. I suffix them with " | XML" but otherwise >> they're named the same as the "normal layouts", so that they're easy to >> track. >> >> >> 29 jul 2009 kl. 23.52 skrev Jonathan Schwartz: >> >>> First things first. >>> >>> - Reduce layout fields to just those needed for this script. >>> >>> - increase timeout setting in php, either in ini or with an ini set >>> command in the script. >>> >>> - Add some logging that tells you where the time is being spent. You have >>> to log to a file instead if the screen because nothing gets written to the >>> screen until the script finishes. And if the browser times out you get nada. >>> >>> Hth. >>> >>> >>> >>> Jonathan Schwartz >>> Exit 445 Group >>> 415-370-5011 >>> >>> On Jul 29, 2009, at 2:22 PM, Troy Meyers wrote: >>> >>>> David, >>>> >>>> If the layout you are referring to during creation has all 200 fields (or >>>> even just more than you need), then I'd definitely try your option (2.) >>>> first. Here I have many layouts for different purposes, and putting only the >>>> fields needed to accomplish the purpose makes great speed improvements. >>>> >>>> -Troy >>>> >>>> >>>> >>>>> I am using a loop to create records when they do not exist. ?As I stated >>>>> yesterday, it only gets four records created before timeout. >>>>> >>>>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. ?FileMaker Server 7 >>>>> is on an adjacent Win2K3 server and both are connected via a local >>>>> gigabit switch and both are dual processors with adequate RAM. ?I am >>>>> trying to find out what is causing the performance hit or latency >>>>> issues. ?I can monitor both servers' processor & network %usage and it >>>>> appears that the FM7 Server is doing some significant number crunching >>>>> over the processor when I run the script. >>>>> >>>>> Should I try: >>>>> >>>>> 1. moving FileMaker Server onto the same hardware? >>>>> >>>>> 2. performing the FMNew() on a layout with just a few fields? >>>>> >>>>> 3. upgrading to a newer version of FileMaker Server? ?(is there any >>>>> >>>>> increase in performance in 9 or 10? I am certain FileMaker will tell >>>>> me >>>>> >>>>> that I need to upgrade. ?However buget precludes that possibility for >>>>> now) >>>>> >>>>> 4. reducing the number of fields and or relationships in the >>>>> database? >>>>> >>>>> The table I am working in has over 200 fields. >>>>> >>>>> Any ideas? >>>>> >>>>> Thanks, >>>>> >>>>> David Cox >>>> >>>> _______________________________________________ >>>> 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 dbengston at tds.net Wed Jul 29 19:30:37 2009 From: dbengston at tds.net (Dale Bengston) Date: Wed Jul 29 19:30:44 2009 Subject: [FX.php List] Shopping Carts - Keep in SessionVars or Add Recordsright away? In-Reply-To: <5B2A6340-8E19-4900-BBDF-D3D2A06A62F5@finalresort.org> References: <967CB583-F8C0-4582-8642-2AB49810E31D@earthlink.net><74DD97EC-7A30-4303-A537-484C962F42DC@finalresort.org><39B79B7F-C7F0-4D47-82B4-4086E665DB84@earthlink.net><85B54B35-D52F-480B-A4E1-96AEA458B51F@patin.com> <70129CA6F836494CA5FD774FEA14E1A30133892D@fsu-exch-12.fsu.edu> <5B2A6340-8E19-4900-BBDF-D3D2A06A62F5@finalresort.org> Message-ID: <022784FF-351D-40D2-BF17-5B6477E0F7EA@tds.net> I would expect storage of form data in $_SESSION to be faster than storing it in FileMaker tables. Storing anything in memory is faster than writing it out, especially if your target for writing is FileMaker. The marginal speed trade-off of writing records is acceptable to me... especially since I rarely find myself writing to FileMaker any more. (Yes, I know. Sniff. Sniff.) Dale On Jul 29, 2009, at 2:58 PM, Leo R. Lundgren wrote: > There is definately a time difference. Unless I misunderstood what > you mean by session variables. > > If you just write thirty variables to the $_SESSION array, there > only overhead involved is the one when PHP seralizes the values into > the session storage, which by default is files under /tmp on the > webserver. But this is isn't noticable for low-traffic hosts. > > On the other hand, if you are to write your values to a table in > FileMaker, you have all the usual overhead involved with > communicating with said database. > > > 29 jul 2009 kl. 20.45 skrev Bob Patin: > >> Here's a question for GGT (or anyone else who may know this): is >> there any speed difference at all between writing 30 or so session >> variables versus writing 30 or so fields to 1 or more tables? >> >> For the sake of argument, let's say you're writing to two tables-- >> first is the temp order table, 2nd is the lineitems table. >> >> Is the difference in time involved negligible? >> >> Best, >> >> Bob Patin >> >> >> >> >> >> >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> FileMaker 10 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> On Jul 29, 2009, at 12:43 PM, Joel Shapiro wrote: >> >>> Don't know how long this thread may keep going, but let me put in >>> my "Thanks Everybody" here & now: >>> >>> Thanks Everybody >>> >>> Best, >>> -Joel >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~ >>> Joel Shapiro >>> FileMaker Pro >>> database & web design >>> http://www.jsfmp.com >>> 415-269-5055 >>> ~~~~~~~~~~~~~~~~~~~~~~~ >>> >>> >>> On Jul 29, 2009, at 9:43 AM, VanBuskirk, Patricia wrote: >>> >>>> As a frequent online shopper, I like this idea. I had over $100 of >>>> merch in my cart at Khols online, accumulated throughout the day, >>>> and I >>>> went away from my pc for a couple of hours to come back to an empty >>>> cart. I did not try to re-shop, so they lost the business. >>>> >>>> >>>> -----Original Message----- >>>> From: fx.php_list-bounces@mail.iviking.org >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale >>>> Bengston >>>> Sent: Wednesday, July 29, 2009 12:37 PM >>>> To: FX.php Discussion List >>>> Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars >>>> or Add >>>> Recordsright away? >>>> >>>> I agree that this is a client business rule, but there is very >>>> little >>>> penalty for saving records to a table, and keeping them as a status >>>> that is suppressed by the client-server UI. I am doing this for an >>>> order site. In my opinion, saving records also makes it easier to >>>> retrieve a shopping cart if the user quits and relaunches, or in >>>> another typical, natural way destroys their session. >>>> >>>> Dale >>>> >>>> >>>> >>>> -- >>>> Dale Bengston >>>> Streamline Studio, LLC >>>> www.streamline-studio.com >>>> >>>> On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: >>>> >>>>> For one client it was a half-hour; this wasn't a cart per se, >>>>> but a >>>>> registration site. The issue for the client was to make sure that >>>>> everyone who completed the process was definitely sent an email >>>>> confirmation; eventually the other programmer in this project (I >>>>> was >>>>> a sub-contractor on this) decided to write a script, and trigger >>>>> it >>>>> every 60 seconds. It looks for abandoned registrations, and if >>>>> it's >>>>> been more than a half-hour, deletes the temp record. If not, it >>>>> confirms that there's a credit card payment auth code and if so, >>>>> it >>>>> sends the confirmation email. >>>>> >>>>> I don't use scripts much at all in web apps, but this was what the >>>>> other consultant wanted, and it does work pretty well with >>>>> scheduled >>>>> script-triggering from Server 10. >>>>> >>>>> For this app we use a temp table, but for a smaller app on the >>>>> same >>>>> site, where people are signing up for meetings, I store everything >>>>> in session variables until the end because there's not much to >>>>> keep >>>>> track of... >>>>> >>>>> BP >>>>> >>>>> Bob Patin >>>>> Longterm Solutions LLC >>>>> bob@longtermsolutions.com >>>>> 615-333-6858 >>>>> http://www.longtermsolutions.com >>>>> Twitter: bobpatin >>>>> iChat/AIM: bobpatin >>>>> FileMaker 10 Certified Developer >>>>> Member of FileMaker Business Alliance & TechNet >>>>> -------------------------- >>>>> FileMaker hosting and consulting for all versions of FileMaker >>>>> PHP * jQuery * ExpressionEngine >>>>> Full email services * Free DNS hosting * Colocation * Consulting >>>>> >>>>> >>>>> On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: >>>>> >>>>>> What are your criterias for deleting the carts not owned by >>>>>> anybody? >>>>>> >>>>>> ggt >>>>>> >>>>>> 2009/7/29 Head Honcho : >>>>>>> Hi Joel, >>>>>>> >>>>>>> I record them immediately, and run a script weekly to "delete" >>>>>>> non >>>>>>> purchased >>>>>>> orders. >>>>>>> >>>>>>> It also helps in the reporting to see what people have started >>>>>>> ordering and >>>>>>> then dropped out, so to speak. >>>>>>> >>>>>>> As Webko said, this also allows for "pausing" an order and >>>>>>> resuming it >>>>>>> later. >>>>>>> >>>>>>> HTH. >>>>>>> >>>>>>> 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 >>>>>>> FileMaker 10 Certified Developer >>>>>>> 10 Wandoo Crt >>>>>>> Wheelers Hill, 3150 >>>>>>> ph 0414 562 501 >>>>>>> headhoncho@customikesolutions.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >>>>>>> >>>>>>>> Thanks Leo >>>>>>>> >>>>>>>> That's what I'd been thinking. >>>>>>>> >>>>>>>> It's good to see what different people are doing... >>>>>>>> >>>>>>>> -Joel >>>>>>>> >>>>>>>> >>>>>>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >>>>>>>> >>>>>>>>> Yeah there's really a question of what features you want. >>>>>>>>> >>>>>>>>> The basic approach is to keep the cart in the session as >>>>>>>>> session >>>>>>>>> variables. There's really no need to put it all in the >>>>>>>>> database, >>>>>>>>> use the >>>>>>>>> session for what it's worth instead :) >>>>>>>>> >>>>>>>>> BUT, keeping the cart inside the DB will allow for certain >>>>>>>>> things, such >>>>>>>>> as the client can put some stuff in the cart, mail his >>>>>>>>> collegue, >>>>>>>>> and tell >>>>>>>>> him "hey, look at the stuff I put in our cart", and the >>>>>>>>> collegue >>>>>>>>> can do so >>>>>>>>> from a totally different computer. They can collaborate. >>>>>>>>> >>>>>>>>> If that latter example isn't needed, I'd store it in the >>>>>>>>> session. >>>>>>>>> >>>>>>>>> >>>>>>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >>>>>>>>>> >>>>>>>>>>> Hi all >>>>>>>>>>> >>>>>>>>>>> Anybody have any thoughts on *when* in shopping cart >>>>>>>>>>> functionality it's >>>>>>>>>>> best to add items as records to the database? >>>>>>>>>>> >>>>>>>>>>> My initial thinking is that it would make more sense to just >>>>>>>>>>> keep items >>>>>>>>>>> in Session Variable arrays and only add anything to the >>>>>>>>>>> database at the time >>>>>>>>>>> of Checkout -- to keep the DB from bulking up with >>>>>>>>>>> unpurchased >>>>>>>>>>> items left in >>>>>>>>>>> the cart. But searching online, it seems that carts often >>>>>>>>>>> add >>>>>>>>>>> records to >>>>>>>>>>> the database as soon as they go into the cart. (Might >>>>>>>>>>> that be >>>>>>>>>>> different >>>>>>>>>>> when using MySQL as opposed to FMP?) >>>>>>>>>>> >>>>>>>>>>> FWIW - Users on this site will average 1-4 items per order. >>>>>>>>>> >>>>>>>>>> I tend to add them immediately - allows me to also re-show >>>>>>>>>> previous not >>>>>>>>>> actually purchased items on request further down the track... >>>>>>>>>> >>>>>>>>>> Cheers >>>>>>>>>> >>>>>>>>>> Webko >>>>>>>>>> _______________________________________________ >>>>>>>>>> FX.php_List mailing list >>>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>>> >>>>>>>>> >>>>>>>>> -| >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> FX.php_List mailing list >>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> FX.php_List mailing list >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 > > > -| > > _______________________________________________ > 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 Fri Jul 31 09:50:24 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Jul 31 09:50:36 2009 Subject: [FX.php List] can only create 4 records before timeout In-Reply-To: <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> References: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> Message-ID: How did that work out for you, David? Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011