From bob at patin.com Wed Dec 4 13:33:32 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:29:03 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild Message-ID: I vaguely recall that there was a PHP setting that had to be made in order for mPDF to work, but I can?t remember what it is. If anyone has that information, please let me know; I have a web app that worked great until the config file got hosed; after rebuilding the config and getting the web server back (OS X Server 10.7), I find that mPDF no longer finishes its PDF-building. Thanks for any help, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From steve at bluecrocodile.co.nz Wed Dec 4 13:34:17 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 13:30:15 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: Message-ID: Hi Bob IIRC it's mb_string that's needed Cheers Steve > I vaguely recall that there was a PHP setting that had to be made in order for mPDF to work, but I can?t remember what it is. > > If anyone has that information, please let me know; I have a web app that worked great until the config file got hosed; after rebuilding the config and getting the web server back (OS X Server 10.7), I find that mPDF no longer finishes its PDF-building. > > Thanks for any help, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz From bob at patin.com Wed Dec 4 13:37:13 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:32:41 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: Message-ID: <9BE5EB9D-D985-42B6-BDC2-A174A7FB9378@patin.com> Hey Steve, IS that a PHP setting, and if so, what does it need to be set to? BP On Dec 4, 2013, at 2:34 PM, Steve Winter wrote: > Hi Bob > > IIRC it's mb_string that's needed > > Cheers > Steve > >> I vaguely recall that there was a PHP setting that had to be made in order for mPDF to work, but I can?t remember what it is. >> >> If anyone has that information, please let me know; I have a web app that worked great until the config file got hosed; after rebuilding the config and getting the web server back (OS X Server 10.7), I find that mPDF no longer finishes its PDF-building. >> >> Thanks for any help, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting 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 > > Steve Winter > +44 777 852 4776 > steve@bluecrocodile.co.nz > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dale.bengston at gmail.com Wed Dec 4 13:37:43 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Dec 4 13:33:53 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: Message-ID: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> Hi Bob, Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. Hope this helps, Dale On Dec 4, 2013, at 2:33 PM, Bob Patin wrote: > I vaguely recall that there was a PHP setting that had to be made in order for mPDF to work, but I can?t remember what it is. > > If anyone has that information, please let me know; I have a web app that worked great until the config file got hosed; after rebuilding the config and getting the web server back (OS X Server 10.7), I find that mPDF no longer finishes its PDF-building. > > Thanks for any help, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 steve at bluecrocodile.co.nz Wed Dec 4 13:40:14 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 13:36:08 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: Message-ID: Hey Bob Yes it's a PHP setting - you need to enable that module... In your php.ini you'll see something like: ;extension=php_interbase.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it ;extension=php_mysql.dll ;extension=php_mysqli.dll remove the ; from in front of extension=php_mbstring.dll then cycle IIS (assuming this is a Windows server) to get it to pick up the change... Check that it's enabled by putting phpinfo(); into a page and seeing that it's there Cheers Steve > Hi Bob > > IIRC it's mb_string that's needed > > Cheers > Steve > >> I vaguely recall that there was a PHP setting that had to be made in order for mPDF to work, but I can?t remember what it is. >> >> If anyone has that information, please let me know; I have a web app that worked great until the config file got hosed; after rebuilding the config and getting the web server back (OS X Server 10.7), I find that mPDF no longer finishes its PDF-building. >> >> Thanks for any help, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting 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 > > Steve Winter > +44 777 852 4776 > steve@bluecrocodile.co.nz > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz From bob at patin.com Wed Dec 4 13:46:28 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:41:57 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: Message-ID: <68F5E7D9-479B-49EA-9880-D69C267A4537@patin.com> Hey, It?s a Mac server; does that matter (I?m thinking not)? I?ll see if I can find that string in pico? Thanks, Bob On Dec 4, 2013, at 2:40 PM, Steve Winter wrote: > Hey Bob > > Yes it's a PHP setting - you need to enable that module... > > In your php.ini you'll see something like: > > > ;extension=php_interbase.dll > ;extension=php_ldap.dll > ;extension=php_mbstring.dll > ;extension=php_exif.dll ; Must be after mbstring as it depends on it > ;extension=php_mysql.dll > ;extension=php_mysqli.dll > > > remove the ; from in front of > extension=php_mbstring.dll > > then cycle IIS (assuming this is a Windows server) to get it to pick up the change... > > Check that it's enabled by putting > phpinfo(); > into a page and seeing that it's there > > Cheers > Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/f0c428f4/attachment-0001.html From bob at patin.com Wed Dec 4 13:49:10 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:44:39 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: Message-ID: OK, here?s a weird thing: when I try to CD to the folder that contains php.ini, it tells me that one of the folders (FileMaker Server) doesn?t exist. Is there a trick for specifying a folder that contains a space? BP On Dec 4, 2013, at 2:40 PM, Steve Winter wrote: > Hey Bob > > Yes it's a PHP setting - you need to enable that module... > > In your php.ini you'll see something like: > > > ;extension=php_interbase.dll > ;extension=php_ldap.dll > ;extension=php_mbstring.dll > ;extension=php_exif.dll ; Must be after mbstring as it depends on it > ;extension=php_mysql.dll > ;extension=php_mysqli.dll > > > remove the ; from in front of > extension=php_mbstring.dll > > then cycle IIS (assuming this is a Windows server) to get it to pick up the change... > > Check that it's enabled by putting > phpinfo(); > into a page and seeing that it's there > > Cheers > Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/1386219b/attachment.html From steve at bluecrocodile.co.nz Wed Dec 4 13:50:33 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 13:46:29 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <68F5E7D9-479B-49EA-9880-D69C267A4537@patin.com> References: <68F5E7D9-479B-49EA-9880-D69C267A4537@patin.com> Message-ID: Hey Bob If it's a Mac server then it can't be done through php.ini Check first to see if the module is enabled - create a phpinfo() page and look at the top to see if it's included; ot/usr/local' '--with-png-dir=/BinaryCache/apache_mod_php/apache_mod_php-87~65/Root/usr/local' '--enable-gd-native-ttf' '--with-icu-dir=/usr' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--with-libedit=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--without-pear' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-readline=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sqlite-utf8' '--enable- But rather than just guessing what the issue is why not enable error reporting and see what it says...? Cheers Steve > Hey, > > It?s a Mac server; does that matter (I?m thinking not)? > > I?ll see if I can find that string in pico? > > Thanks, > > Bob > > On Dec 4, 2013, at 2:40 PM, Steve Winter wrote: > >> Hey Bob >> >> Yes it's a PHP setting - you need to enable that module... >> >> In your php.ini you'll see something like: >> >> >> ;extension=php_interbase.dll >> ;extension=php_ldap.dll >> ;extension=php_mbstring.dll >> ;extension=php_exif.dll ; Must be after mbstring as it depends on it >> ;extension=php_mysql.dll >> ;extension=php_mysqli.dll >> >> >> remove the ; from in front of >> extension=php_mbstring.dll >> >> then cycle IIS (assuming this is a Windows server) to get it to pick up the change... >> >> Check that it's enabled by putting >> phpinfo(); >> into a page and seeing that it's there >> >> Cheers >> Steve > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/1885f551/attachment-0001.html From bob at patin.com Wed Dec 4 13:51:45 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:47:15 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: <68F5E7D9-479B-49EA-9880-D69C267A4537@patin.com> Message-ID: I was able to modify it directly in the file, restarting web now? BP On Dec 4, 2013, at 2:50 PM, Steve Winter wrote: > Hey Bob > > If it's a Mac server then it can't be done through php.ini > > Check first to see if the module is enabled - create a phpinfo() page and look at the top to see if it's included; > > > > ot/usr/local' '--with-png-dir=/BinaryCache/apache_mod_php/apache_mod_php-87~65/Root/usr/local' '--enable-gd-native-ttf' '--with-icu-dir=/usr' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--with-libedit=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--without-pear' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-readline=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sqlite-utf8' '--enable- > > > But rather than just guessing what the issue is why not enable error reporting and see what it says...? > > Cheers > Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/798fc60e/attachment.html From steve at bluecrocodile.co.nz Wed Dec 4 13:51:33 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 13:47:29 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: Message-ID: <45E975CB-0E8B-4D2D-A758-73AA51A49D06@bluecrocodile.co.nz> To get to a folder with a space in either begin typing the first part of the folder name, then hit tab, or put a \ before the space (or use a GUI editor like Text Wrangler and then just navigate to the folder) Cheers Steve > OK, here?s a weird thing: when I try to CD to the folder that contains php.ini, it tells me that one of the folders (FileMaker Server) doesn?t exist. > > Is there a trick for specifying a folder that contains a space? > > BP > > On Dec 4, 2013, at 2:40 PM, Steve Winter wrote: > >> Hey Bob >> >> Yes it's a PHP setting - you need to enable that module... >> >> In your php.ini you'll see something like: >> >> >> ;extension=php_interbase.dll >> ;extension=php_ldap.dll >> ;extension=php_mbstring.dll >> ;extension=php_exif.dll ; Must be after mbstring as it depends on it >> ;extension=php_mysql.dll >> ;extension=php_mysqli.dll >> >> >> remove the ; from in front of >> extension=php_mbstring.dll >> >> then cycle IIS (assuming this is a Windows server) to get it to pick up the change... >> >> Check that it's enabled by putting >> phpinfo(); >> into a page and seeing that it's there >> >> Cheers >> Steve > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/1cef79e6/attachment-0001.html From steve at bluecrocodile.co.nz Wed Dec 4 13:52:15 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 13:48:08 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: <68F5E7D9-479B-49EA-9880-D69C267A4537@patin.com> Message-ID: <01B5D8F7-83B2-43B8-9F74-A09DA31CFA08@bluecrocodile.co.nz> Yeah, but enabling a .dll on Mac won't get you anywhere - that's a windows only setting... Steve > I was able to modify it directly in the file, restarting web now? > > BP > > > On Dec 4, 2013, at 2:50 PM, Steve Winter wrote: > >> Hey Bob >> >> If it's a Mac server then it can't be done through php.ini >> >> Check first to see if the module is enabled - create a phpinfo() page and look at the top to see if it's included; >> >> >> >> ot/usr/local' '--with-png-dir=/BinaryCache/apache_mod_php/apache_mod_php-87~65/Root/usr/local' '--enable-gd-native-ttf' '--with-icu-dir=/usr' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--with-libedit=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--without-pear' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-readline=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sqlite-utf8' '--enable- >> >> >> But rather than just guessing what the issue is why not enable error reporting and see what it says...? >> >> Cheers >> Steve > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/e6f6c2bf/attachment.html From bob at patin.com Wed Dec 4 13:53:37 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:49:05 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> Message-ID: <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> Hey Dale, Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. Is restarting web good enough for picking up PHP changes? Thanks, Bp Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: > Hi Bob, > > Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. > > Hope this helps, > Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/a046487b/attachment.html From steve at bluecrocodile.co.nz Wed Dec 4 13:55:38 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 13:51:33 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> Message-ID: <68506CC4-5BE1-4934-B3B3-BAA759F9C7E0@bluecrocodile.co.nz> Hey Bob Enable error reporting and display of errors - find out what the problem really is ;-) And yes, when you make changes to php.ini sudo apachectl restart will pick those changes up Cheers Steve > Hey Dale, > > Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. > > Is restarting web good enough for picking up PHP changes? > > Thanks, > > Bp > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: > >> Hi Bob, >> >> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. >> >> Hope this helps, >> Dale > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/e7be62db/attachment.html From bob at patin.com Wed Dec 4 13:57:58 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:53:28 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <68506CC4-5BE1-4934-B3B3-BAA759F9C7E0@bluecrocodile.co.nz> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <68506CC4-5BE1-4934-B3B3-BAA759F9C7E0@bluecrocodile.co.nz> Message-ID: Problem is, the pdf-gen page doesn?t ever finish, so I never see the errors reported? somewhere in the PDF-gen code it?s hanging up, but i have no idea where that might be? BP On Dec 4, 2013, at 2:55 PM, Steve Winter wrote: > Hey Bob > > Enable error reporting and display of errors - find out what the problem really is ;-) > > And yes, when you make changes to php.ini > > sudo apachectl restart > > will pick those changes up > > Cheers > Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/ac3a7e06/attachment-0001.html From andy at fmpug.com Wed Dec 4 13:59:16 2013 From: andy at fmpug.com (Andy Gaunt) Date: Wed Dec 4 13:55:10 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <68506CC4-5BE1-4934-B3B3-BAA759F9C7E0@bluecrocodile.co.nz> Message-ID: <2D570500-3F5C-4574-8D25-072A81B32C8C@fmpug.com> Bob - if you can run this locally using Mamp you might find some useful info in the php console error log. Cheers - Andy Andy Gaunt T: 321-206-3658 andy@fmpug.com http://www.fmpug.com FMPug.com: A Developer's best Friend! Follow us today at http://twitter.com/fmpug FindFileMakerDevelopers.com - The #1 listings engine for FileMaker Professionals Follow us today at http://twitter.com/findfmdevs On Dec 4, 2013, at 3:57 PM, Bob Patin wrote: > Problem is, the pdf-gen page doesn?t ever finish, so I never see the errors reported? somewhere in the PDF-gen code it?s hanging up, but i have no idea where that might be? > > BP > > On Dec 4, 2013, at 2:55 PM, Steve Winter wrote: > >> Hey Bob >> >> Enable error reporting and display of errors - find out what the problem really is ;-) >> >> And yes, when you make changes to php.ini >> >> sudo apachectl restart >> >> will pick those changes up >> >> Cheers >> Steve > > _______________________________________________ > 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/20131204/5ec14b40/attachment.html From steve at bluecrocodile.co.nz Wed Dec 4 14:00:02 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 13:55:59 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <68506CC4-5BE1-4934-B3B3-BAA759F9C7E0@bluecrocodile.co.nz> Message-ID: At some point in the process it will stop - and then it'll tell you why - either some module missing, or out of memory, or timeout, or something... it can't keep spinning it's wheels forever ;-) If it's a timeout, then that's going to be harder to resolve, but at least you'll get to know where it stops... Also - if it's not a sudden fatal stop, then it's almost certainly not a missing module. Cheers Steve > Problem is, the pdf-gen page doesn?t ever finish, so I never see the errors reported? somewhere in the PDF-gen code it?s hanging up, but i have no idea where that might be? > > BP > > On Dec 4, 2013, at 2:55 PM, Steve Winter wrote: > >> Hey Bob >> >> Enable error reporting and display of errors - find out what the problem really is ;-) >> >> And yes, when you make changes to php.ini >> >> sudo apachectl restart >> >> will pick those changes up >> >> Cheers >> Steve > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/f9af5ef8/attachment.html From dale.bengston at gmail.com Wed Dec 4 14:00:15 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Dec 4 13:56:10 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> Message-ID: <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> Hey Bob, You can up the memory in the script itself. Add to the top of your PDF-making script: ini_set('memory_limit?,?64M'); ?replace 64 with your desired memory amount. There is also an entry for memory_limit in php.ini if you want to give PHP more memory all the time. Dale PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. On Dec 4, 2013, at 2:53 PM, Bob Patin wrote: > Hey Dale, > > Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. > > Is restarting web good enough for picking up PHP changes? > > Thanks, > > Bp > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: > >> Hi Bob, >> >> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. >> >> Hope this helps, >> Dale > > _______________________________________________ > 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/20131204/2a47390d/attachment-0001.html From bob at patin.com Wed Dec 4 14:03:03 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 13:58:32 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> Message-ID: <26458648-89CF-46D4-96A3-4979241FE414@patin.com> Memory did it! Thanks, Dale! BP Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 4, 2013, at 3:00 PM, Dale Bengston wrote: > Hey Bob, > > You can up the memory in the script itself. Add to the top of your PDF-making script: > > ini_set('memory_limit?,?64M'); > > ?replace 64 with your desired memory amount. > > There is also an entry for memory_limit in php.ini if you want to give PHP more memory all the time. > > Dale > > PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. > > On Dec 4, 2013, at 2:53 PM, Bob Patin wrote: > >> Hey Dale, >> >> Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. >> >> Is restarting web good enough for picking up PHP changes? >> >> Thanks, >> >> Bp >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: >> >>> Hi Bob, >>> >>> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. >>> >>> Hope this helps, >>> Dale >> >> _______________________________________________ >> 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/20131204/2e343fcc/attachment.html From bob at patin.com Wed Dec 4 14:11:19 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 14:06:46 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> Message-ID: <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> Well, I spoke too soon; it doesn?t stall out anymore, but the PDF doesn?t get generated. I?m wondering if it?s the file_size limit or something like that; I may bump them too? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 4, 2013, at 3:00 PM, Dale Bengston wrote: > Hey Bob, > > You can up the memory in the script itself. Add to the top of your PDF-making script: > > ini_set('memory_limit?,?64M'); > > ?replace 64 with your desired memory amount. > > There is also an entry for memory_limit in php.ini if you want to give PHP more memory all the time. > > Dale > > PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. > > On Dec 4, 2013, at 2:53 PM, Bob Patin wrote: > >> Hey Dale, >> >> Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. >> >> Is restarting web good enough for picking up PHP changes? >> >> Thanks, >> >> Bp >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: >> >>> Hi Bob, >>> >>> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. >>> >>> Hope this helps, >>> Dale >> >> _______________________________________________ >> 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/20131204/9857de7b/attachment.html From steve at bluecrocodile.co.nz Wed Dec 4 14:13:34 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 14:09:30 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> Message-ID: lol... had you considered the possibility of enabling error reporting so that you can see where/when/how it fails....? FWIW filesize limit relates to uploaded files, so isn't going to be relevant here ;-) > Well, I spoke too soon; it doesn?t stall out anymore, but the PDF doesn?t get generated. > > I?m wondering if it?s the file_size limit or something like that; I may bump them too? > > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 4, 2013, at 3:00 PM, Dale Bengston wrote: > >> Hey Bob, >> >> You can up the memory in the script itself. Add to the top of your PDF-making script: >> >> ini_set('memory_limit?,?64M'); >> >> ?replace 64 with your desired memory amount. >> >> There is also an entry for memory_limit in php.ini if you want to give PHP more memory all the time. >> >> Dale >> >> PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. >> >> On Dec 4, 2013, at 2:53 PM, Bob Patin wrote: >> >>> Hey Dale, >>> >>> Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. >>> >>> Is restarting web good enough for picking up PHP changes? >>> >>> Thanks, >>> >>> Bp >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> FileMaker 9, 10, 11 & 12 Certified Developer >>> http://www.longtermsolutions.com >>> - >>> iChat: bobpatin@me.com >>> Twitter: bobpatin >>> ? >>> FileMaker Consulting >>> FileMaker Hosting for all versions of FileMaker >>> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >>> >>> On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: >>> >>>> Hi Bob, >>>> >>>> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. >>>> >>>> Hope this helps, >>>> Dale >>> >>> _______________________________________________ >>> 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 +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/da9dacc7/attachment-0001.html From andy at fmpug.com Wed Dec 4 14:15:28 2013 From: andy at fmpug.com (Andy Gaunt) Date: Wed Dec 4 14:11:22 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> Message-ID: <39B69339-9E4E-4862-AC5C-B6B3501DEEFD@fmpug.com> +1 Steve In your dev environment have them ALL turned on - some errors get annoying (like missing variables) but it helps to catch the bigger buggers and forces you to ensure nothing slips through. - Andy On Dec 4, 2013, at 4:13 PM, Steve Winter wrote: > lol... had you considered the possibility of enabling error reporting so that you can see where/when/how it fails....? > > FWIW filesize limit relates to uploaded files, so isn't going to be relevant here ;-) > >> Well, I spoke too soon; it doesn?t stall out anymore, but the PDF doesn?t get generated. >> >> I?m wondering if it?s the file_size limit or something like that; I may bump them too? >> >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> On Dec 4, 2013, at 3:00 PM, Dale Bengston wrote: >> >>> Hey Bob, >>> >>> You can up the memory in the script itself. Add to the top of your PDF-making script: >>> >>> ini_set('memory_limit?,?64M'); >>> >>> ?replace 64 with your desired memory amount. >>> >>> There is also an entry for memory_limit in php.ini if you want to give PHP more memory all the time. >>> >>> Dale >>> >>> PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. >>> >>> On Dec 4, 2013, at 2:53 PM, Bob Patin wrote: >>> >>>> Hey Dale, >>>> >>>> Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. >>>> >>>> Is restarting web good enough for picking up PHP changes? >>>> >>>> Thanks, >>>> >>>> Bp >>>> >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> FileMaker 9, 10, 11 & 12 Certified Developer >>>> http://www.longtermsolutions.com >>>> - >>>> iChat: bobpatin@me.com >>>> Twitter: bobpatin >>>> ? >>>> FileMaker Consulting >>>> FileMaker Hosting for all versions of FileMaker >>>> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >>>> >>>> On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: >>>> >>>>> Hi Bob, >>>>> >>>>> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. >>>>> >>>>> Hope this helps, >>>>> Dale >>>> >>>> _______________________________________________ >>>> 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 > +44 777 852 4776 > steve@bluecrocodile.co.nz > > > > > _______________________________________________ > 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/20131204/d461b1fc/attachment.html From leo at finalresort.org Wed Dec 4 14:18:04 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Dec 4 14:13:11 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> Message-ID: A more sane approach would probably be to figure out why $thing is not behaving the way you expect, and then act accordingly. Instead of just trying tweaks and buttons. Try to isolate the matter by making sure you have full logging on (E_ALL | E_STRICT), and if nothing turns up (it's not uncommon in PHP), isolate the matter by simply going into the source code that runs during the request and either step it using xdebug or use dummy debugging (i.e. add an error_log() here, one there, etc, to narrow down the area of the problem). After not too many steps you should be able to tell at which point in the source code the problem happens. Regards, Leo 4 dec 2013 kl. 22.11 skrev Bob Patin: > Well, I spoke too soon; it doesn?t stall out anymore, but the PDF doesn?t get generated. > > I?m wondering if it?s the file_size limit or something like that; I may bump them too? > > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 4, 2013, at 3:00 PM, Dale Bengston wrote: > >> Hey Bob, >> >> You can up the memory in the script itself. Add to the top of your PDF-making script: >> >> ini_set('memory_limit?,?64M'); >> >> ?replace 64 with your desired memory amount. >> >> There is also an entry for memory_limit in php.ini if you want to give PHP more memory all the time. >> >> Dale >> >> PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. >> >> On Dec 4, 2013, at 2:53 PM, Bob Patin wrote: >> >>> Hey Dale, >>> >>> Good thought; do you recall offhand what the memory setting is called? I can get to php.ini in the Finder so I think I?ll just modify it there. >>> >>> Is restarting web good enough for picking up PHP changes? >>> >>> Thanks, >>> >>> Bp >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> FileMaker 9, 10, 11 & 12 Certified Developer >>> http://www.longtermsolutions.com >>> - >>> iChat: bobpatin@me.com >>> Twitter: bobpatin >>> ? >>> FileMaker Consulting >>> FileMaker Hosting for all versions of FileMaker >>> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >>> >>> On Dec 4, 2013, at 2:37 PM, Dale Bengston wrote: >>> >>>> Hi Bob, >>>> >>>> Perhaps PHP's memory allocation got reset to default? Making PDFs uses a lot of memory. >>>> >>>> Hope this helps, >>>> Dale >>> >>> _______________________________________________ >>> 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/20131204/89ebe96e/attachment-0001.html From bob at patin.com Wed Dec 4 14:18:06 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 14:13:34 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> Message-ID: <1AB03BEC-E12B-4771-8127-5F6FF0824AE7@patin.com> I didn?t think it would help, was a shot in the dark. On Dec 4, 2013, at 3:13 PM, Steve Winter wrote: > lol... had you considered the possibility of enabling error reporting so that you can see where/when/how it fails....? > > FWIW filesize limit relates to uploaded files, so isn't going to be relevant here ;-) > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/47a5e2f7/attachment.html From bob at patin.com Wed Dec 4 14:31:19 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 14:26:47 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> Message-ID: <3F4D4DA8-7453-4C80-8FB9-C1EB24EE8DDD@patin.com> Actually, I tried some of that; i traced the process until it gets to the pdf-gen page, where it calls the mPDF function; that?s where it was hanging up. Now it no longer hangs up, but just doesn?t generate a PDF. I was adding a domain last night to my web services, and also another IP address, and when I restarted to activate the IP, the server came back with no config. Got it back running, but now this function no longer works. The error?s in the mPDF page, but since I didn?t write it (and it?s a big page), I wouldn?t begin to know what to modify in there?and wouldn?t want to try. BP On Dec 4, 2013, at 3:18 PM, Leo R. Lundgren wrote: > A more sane approach would probably be to figure out why $thing is not behaving the way you expect, and then act accordingly. Instead of just trying tweaks and buttons. > > Try to isolate the matter by making sure you have full logging on (E_ALL | E_STRICT), and if nothing turns up (it's not uncommon in PHP), isolate the matter by simply going into the source code that runs during the request and either step it using xdebug or use dummy debugging (i.e. add an error_log() here, one there, etc, to narrow down the area of the problem). After not too many steps you should be able to tell at which point in the source code the problem happens. > > Regards, Leo > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/7ebda970/attachment.html From leo at finalresort.org Wed Dec 4 14:34:07 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Dec 4 14:29:09 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <3F4D4DA8-7453-4C80-8FB9-C1EB24EE8DDD@patin.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> <3F4D4DA8-7453-4C80-8FB9-C1EB24EE8DDD@patin.com> Message-ID: Yeah, the mPDF source code is a real mess, that's for sure. But in there is probably where/why you have a problem :) I guess there are other ways to try isolating the matter (since you know what you changed when it stopped working). I'd dig into the code though. Regards, Leo 4 dec 2013 kl. 22.31 skrev Bob Patin: > Actually, I tried some of that; i traced the process until it gets to the pdf-gen page, where it calls the mPDF function; that?s where it was hanging up. > > Now it no longer hangs up, but just doesn?t generate a PDF. > > I was adding a domain last night to my web services, and also another IP address, and when I restarted to activate the IP, the server came back with no config. Got it back running, but now this function no longer works. > > The error?s in the mPDF page, but since I didn?t write it (and it?s a big page), I wouldn?t begin to know what to modify in there?and wouldn?t want to try. > > BP > > On Dec 4, 2013, at 3:18 PM, Leo R. Lundgren wrote: > >> A more sane approach would probably be to figure out why $thing is not behaving the way you expect, and then act accordingly. Instead of just trying tweaks and buttons. >> >> Try to isolate the matter by making sure you have full logging on (E_ALL | E_STRICT), and if nothing turns up (it's not uncommon in PHP), isolate the matter by simply going into the source code that runs during the request and either step it using xdebug or use dummy debugging (i.e. add an error_log() here, one there, etc, to narrow down the area of the problem). After not too many steps you should be able to tell at which point in the source code the problem happens. >> >> Regards, Leo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/246f7260/attachment.html From steve at bluecrocodile.co.nz Wed Dec 4 13:49:03 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Dec 4 14:38:56 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <68F5E7D9-479B-49EA-9880-D69C267A4537@patin.com> References: <68F5E7D9-479B-49EA-9880-D69C267A4537@patin.com> Message-ID: Hey Bob If it's a Mac server then it can't be done through php.ini Check first to see if the module is enabled - create a phpinfo() page and look at the top to see if it's included; But rather than just guessing what the issue is why not enable error reporting and see what it says...? Cheers Steve > Hey, > > It?s a Mac server; does that matter (I?m thinking not)? > > I?ll see if I can find that string in pico? > > Thanks, > > Bob > > On Dec 4, 2013, at 2:40 PM, Steve Winter wrote: > >> Hey Bob >> >> Yes it's a PHP setting - you need to enable that module... >> >> In your php.ini you'll see something like: >> >> >> ;extension=php_interbase.dll >> ;extension=php_ldap.dll >> ;extension=php_mbstring.dll >> ;extension=php_exif.dll ; Must be after mbstring as it depends on it >> ;extension=php_mysql.dll >> ;extension=php_mysqli.dll >> >> >> remove the ; from in front of >> extension=php_mbstring.dll >> >> then cycle IIS (assuming this is a Windows server) to get it to pick up the change... >> >> Check that it's enabled by putting >> phpinfo(); >> into a page and seeing that it's there >> >> Cheers >> Steve > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- Skipped content of type multipart/related From dale.bengston at gmail.com Wed Dec 4 14:47:45 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Dec 4 14:43:40 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <3F4D4DA8-7453-4C80-8FB9-C1EB24EE8DDD@patin.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> <3F4D4DA8-7453-4C80-8FB9-C1EB24EE8DDD@patin.com> Message-ID: <7601A313-7FE6-427C-A07C-9631CE3A8833@gmail.com> Hey Bob, If you can?t turn error reporting on for the site or the page, you can see PHP errors in the Mac?s Console (Utilities->Console) too. Dale On Dec 4, 2013, at 3:31 PM, Bob Patin wrote: > Actually, I tried some of that; i traced the process until it gets to the pdf-gen page, where it calls the mPDF function; that?s where it was hanging up. > > Now it no longer hangs up, but just doesn?t generate a PDF. > > I was adding a domain last night to my web services, and also another IP address, and when I restarted to activate the IP, the server came back with no config. Got it back running, but now this function no longer works. > > The error?s in the mPDF page, but since I didn?t write it (and it?s a big page), I wouldn?t begin to know what to modify in there?and wouldn?t want to try. > > BP > > On Dec 4, 2013, at 3:18 PM, Leo R. Lundgren wrote: > >> A more sane approach would probably be to figure out why $thing is not behaving the way you expect, and then act accordingly. Instead of just trying tweaks and buttons. >> >> Try to isolate the matter by making sure you have full logging on (E_ALL | E_STRICT), and if nothing turns up (it's not uncommon in PHP), isolate the matter by simply going into the source code that runs during the request and either step it using xdebug or use dummy debugging (i.e. add an error_log() here, one there, etc, to narrow down the area of the problem). After not too many steps you should be able to tell at which point in the source code the problem happens. >> >> Regards, Leo >> > > _______________________________________________ > 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/20131204/05480301/attachment.html From bob at patin.com Wed Dec 4 14:50:00 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 14:45:30 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <7601A313-7FE6-427C-A07C-9631CE3A8833@gmail.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> <3F4D4DA8-7453-4C80-8FB9-C1EB24EE8DDD@patin.com> <7601A313-7FE6-427C-A07C-9631CE3A8833@gmail.com> Message-ID: <93958086-43E1-41E0-A775-5AEA092AA9A6@patin.com> Tried that, and Steve W is on with me, and he isn?t seeing any errors either? On Dec 4, 2013, at 3:47 PM, Dale Bengston wrote: > Hey Bob, > > If you can?t turn error reporting on for the site or the page, you can see PHP errors in the Mac?s Console (Utilities->Console) too. > > Dale > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131204/68f795ab/attachment.html From dale.bengston at gmail.com Wed Dec 4 15:01:01 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Dec 4 14:56:55 2013 Subject: [FX.php List] Error Messages Message-ID: <5954C757-A365-4217-A417-9CA3AF7A910E@gmail.com> Hi All, Having recently updated to a new Mac laptop running OS X Mavericks, I was surprised by the amount of error reporting I now get by default out of PHP. Most useful. (I thought I had error reporting jacked all the way up to show everything before, but not so!) So I?ve started seeing this occasionally on one of my sites. (The site uses cake.php, fmcakemix and fx.php to deliver the goods.) Notice (8): Array to string conversion [APP/Vendor/FX/FX.php, line 313] Line 313 (version 6.0) of FX.php is in the middle of the function BuildLinkQueryString(). The line throwing the error is the one line in this foreach loop: foreach($value as $innertkey => $innertvalue) { $tempQueryString .= urlencode($key.'[]') . '='.$innertvalue.'&'; } This loop is part of a larger loop that walks $_POST elements, which is where $key comes from. So? PHP doesn?t tell me which variable of the two variables ($key or $innertvalue) is an array. Anyone have any idea what?s happening to generate this notice for some searches but not others? Thanks, Dale -- Dale Bengston, Owner Streamline Studio, LLC www.streamline-studio.com From bob at patin.com Wed Dec 4 15:05:39 2013 From: bob at patin.com (Bob Patin) Date: Wed Dec 4 15:01:08 2013 Subject: [FX.php List] [OFF] MPDF geeking after a server config file rebuild In-Reply-To: <93958086-43E1-41E0-A775-5AEA092AA9A6@patin.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <2E92E765-21B8-4A2E-B21F-DA5FF733A027@patin.com> <3F4D4DA8-7453-4C80-8FB9-C1EB24EE8DDD@patin.com> <7601A313-7FE6-427C-A07C-9631CE3A8833@gmail.com> <93958086-43E1-41E0-A775-5AEA092AA9A6@patin.com> Message-ID: <3332778E-13DC-4671-8F30-60FF7DD552AD@patin.com> OK, sometimes I?m such a dolt? The issue was always just that memory had been reset when I had to redo my config settings on the server. What I didn?t notice until Steve pointed it out was that the email that I was receiving (without a PDF attached) is one that the database developer sends out, and my PDF function had been bypassed so only the DB developer (not me) was receiving the PDFs. So when I finally went in and set my email into the function, it of course worked. There?s an hour I?ll never get back? :) To quote Steve Winter, it was a CODE 18 error; the error was 18 inches from the keyboard. Thanks for all the help guys; unfortunately, what I really needed was to have my blinders removed! Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 4, 2013, at 3:50 PM, Bob Patin wrote: > Tried that, and Steve W is on with me, and he isn?t seeing any errors either? > > > On Dec 4, 2013, at 3:47 PM, Dale Bengston wrote: > >> Hey Bob, >> >> If you can?t turn error reporting on for the site or the page, you can see PHP errors in the Mac?s Console (Utilities->Console) too. >> >> Dale >> > > _______________________________________________ > 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/20131204/7e30960d/attachment.html From leo at finalresort.org Wed Dec 4 15:07:00 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Dec 4 15:02:01 2013 Subject: [FX.php List] Error Messages In-Reply-To: <5954C757-A365-4217-A417-9CA3AF7A910E@gmail.com> References: <5954C757-A365-4217-A417-9CA3AF7A910E@gmail.com> Message-ID: <5C876F8C-F58E-43C0-A7E7-4A2B29F4A114@finalresort.org> You can simply check which one of them is an array by dumping them. var_dump(), print_r() or gettype(). 4 dec 2013 kl. 23.01 skrev Dale Bengston: > Hi All, > > Having recently updated to a new Mac laptop running OS X Mavericks, I was surprised by the amount of error reporting I now get by default out of PHP. Most useful. (I thought I had error reporting jacked all the way up to show everything before, but not so!) > > So I?ve started seeing this occasionally on one of my sites. (The site uses cake.php, fmcakemix and fx.php to deliver the goods.) > > Notice (8): Array to string conversion [APP/Vendor/FX/FX.php, line 313] > > Line 313 (version 6.0) of FX.php is in the middle of the function BuildLinkQueryString(). The line throwing the error is the one line in this foreach loop: > > foreach($value as $innertkey => $innertvalue) > { > $tempQueryString .= urlencode($key.'[]') . '='.$innertvalue.'&'; > } > > This loop is part of a larger loop that walks $_POST elements, which is where $key comes from. So? PHP doesn?t tell me which variable of the two variables ($key or $innertvalue) is an array. Anyone have any idea what?s happening to generate this notice for some searches but not others? > > Thanks, > Dale From jsfmp at earthlink.net Wed Dec 4 15:03:54 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Dec 4 15:02:49 2013 Subject: [FX.php List] [OFF] CD Terminal [WAS [OFF] MPDF geeking after a server config file rebuild] In-Reply-To: <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> Message-ID: <07056E3F-F530-42D1-AF16-47B741407054@earthlink.net> Hey Dale This sounds cool but doesn't work for me. I get: -bash: CD/Users/joel/Desktop/TestFolder: No such file or directory Does it need some other settings/config? Or is it limited in what folders it'll work on? What I use is "cd to". It works great. Navigate to the folder and then run cdto. If you put it in your Finder toolbar, then it's always just 1 click away https://github.com/jbtule/cdto -Joel On Dec 4, 2013, at 1:00 PM, Dale Bengston wrote: > PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. From dale.bengston at gmail.com Wed Dec 4 16:35:58 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Dec 4 16:31:58 2013 Subject: [FX.php List] [OFF] CD Terminal [WAS [OFF] MPDF geeking after a server config file rebuild] In-Reply-To: <07056E3F-F530-42D1-AF16-47B741407054@earthlink.net> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <07056E3F-F530-42D1-AF16-47B741407054@earthlink.net> Message-ID: <144C684B-6112-4EEB-BB81-42803A3473CB@gmail.com> Hey Joel, I think you need a space between the cd and the path. cd /Users/joel/Desktop/TestFolder Dale On Dec 4, 2013, at 4:03 PM, Joel Shapiro wrote: > Hey Dale > > This sounds cool but doesn't work for me. I get: > -bash: CD/Users/joel/Desktop/TestFolder: No such file or directory > > Does it need some other settings/config? Or is it limited in what folders it'll work on? > > What I use is "cd to". It works great. Navigate to the folder and then run cdto. If you put it in your Finder toolbar, then it's always just 1 click away > https://github.com/jbtule/cdto > > -Joel > > > On Dec 4, 2013, at 1:00 PM, Dale Bengston wrote: > >> PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. > > _______________________________________________ > 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 Dec 4 16:52:01 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Dec 4 16:47:53 2013 Subject: [FX.php List] [OFF] CD Terminal [WAS [OFF] MPDF geeking after a server config file rebuild] In-Reply-To: <144C684B-6112-4EEB-BB81-42803A3473CB@gmail.com> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <07056E3F-F530-42D1-AF16-47B741407054@earthlink.net> <144C684B-6112-4EEB-BB81-42803A3473CB@gmail.com> Message-ID: <0FEFA93B-513A-4CB6-9C70-A3884CA23617@earthlink.net> Hi Dale I'd tried the space too. The problem was I'd typed "CD" instead of "cd" (never an issue when I used the "cd to" app). Now it's working, just like you'd said. Thanks for the tip :-) -Joel On Dec 4, 2013, at 3:35 PM, Dale Bengston wrote: > Hey Joel, > > I think you need a space between the cd and the path. > > cd /Users/joel/Desktop/TestFolder > > Dale > > > On Dec 4, 2013, at 4:03 PM, Joel Shapiro wrote: > >> Hey Dale >> >> This sounds cool but doesn't work for me. I get: >> -bash: CD/Users/joel/Desktop/TestFolder: No such file or directory >> >> Does it need some other settings/config? Or is it limited in what folders it'll work on? >> >> What I use is "cd to". It works great. Navigate to the folder and then run cdto. If you put it in your Finder toolbar, then it's always just 1 click away >> https://github.com/jbtule/cdto >> >> -Joel >> >> >> On Dec 4, 2013, at 1:00 PM, Dale Bengston wrote: >> >>> PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. >> >> _______________________________________________ >> 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 dale.bengston at gmail.com Wed Dec 4 21:25:33 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Wed Dec 4 21:21:31 2013 Subject: [FX.php List] [OFF] CD Terminal [WAS [OFF] MPDF geeking after a server config file rebuild] In-Reply-To: <0FEFA93B-513A-4CB6-9C70-A3884CA23617@earthlink.net> References: <14E1025C-F6DD-4421-9647-4EDC5F4C0154@gmail.com> <3A8D6868-D9AF-497F-BC63-AF0784ABB3EE@patin.com> <8AD0991C-24F0-4DF8-86DD-6991124D40D4@gmail.com> <07056E3F-F530-42D1-AF16-47B741407054@earthlink.net> <144C684B-6112-4EEB-BB81-42803A3473CB@gmail.com> <0FEFA93B-513A-4CB6-9C70-A3884CA23617@earthlink.net> Message-ID: <8DEF8EAC-4594-49C7-AF58-7FBCF7E5C0B1@gmail.com> Ah yes, the case-sensitivity of unix. Glad you got it sorted. Dale On Dec 4, 2013, at 5:52 PM, Joel Shapiro wrote: > Hi Dale > > I'd tried the space too. The problem was I'd typed "CD" instead of "cd" (never an issue when I used the "cd to" app). Now it's working, just like you'd said. Thanks for the tip :-) > > -Joel > > > On Dec 4, 2013, at 3:35 PM, Dale Bengston wrote: > >> Hey Joel, >> >> I think you need a space between the cd and the path. >> >> cd /Users/joel/Desktop/TestFolder >> >> Dale >> >> >> On Dec 4, 2013, at 4:03 PM, Joel Shapiro wrote: >> >>> Hey Dale >>> >>> This sounds cool but doesn't work for me. I get: >>> -bash: CD/Users/joel/Desktop/TestFolder: No such file or directory >>> >>> Does it need some other settings/config? Or is it limited in what folders it'll work on? >>> >>> What I use is "cd to". It works great. Navigate to the folder and then run cdto. If you put it in your Finder toolbar, then it's always just 1 click away >>> https://github.com/jbtule/cdto >>> >>> -Joel >>> >>> >>> On Dec 4, 2013, at 1:00 PM, Dale Bengston wrote: >>> >>>> PS To shortcut doing a CD in Terminal, type CD and then drag/drop the folder on your terminal window. >>> >>> _______________________________________________ >>> 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 Thu Dec 5 08:07:43 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 08:03:08 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? Message-ID: I have a client who wants me to write an integration with Paypal; has anyone done a PHP integration with them? I?ve always used Authorize.net in the past, but this client inisists on using Paypal. If you have something you can share, I?d be most grateful. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From glyn.devine at quickseries.com Thu Dec 5 08:15:50 2013 From: glyn.devine at quickseries.com (Glyn Devine) Date: Thu Dec 5 08:11:40 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: Message-ID: I've done quite a bit with Paypal over the past few years. What are you writing, precisely? An IPN receiver? A cart? Something else? Glyn Devine IT Manager QuickSeries Publishing Inc. On 12/5/13 10:07 AM, "Bob Patin" wrote: > I have a client who wants me to write an integration with Paypal; has anyone > done a PHP integration with them? I?ve always used Authorize.net in the past, > but this client inisists on using Paypal. > > If you have something you can share, I?d be most grateful. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 beverlyvoth at gmail.com Thu Dec 5 08:20:04 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Thu Dec 5 08:15:55 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: PayPal has it's own API. It depends on what you want to do. You can mostly pass some info to PayPal and let the final entry be on their page(s) - this is their minimal interface. You POST (silently) to PayPal and let it finish. It returns what you need (approved or not) and then put the results where you need them. https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/devcentral_landing-outside It works well with any web application, including PHP. Beverly On 05 Dec 2013, at 10:07 AM, Bob Patin wrote: > I have a client who wants me to write an integration with Paypal; has anyone done a PHP integration with them? I?ve always used Authorize.net in the past, but this client inisists on using Paypal. > > If you have something you can share, I?d be most grateful. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 Dec 5 08:21:14 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 08:16:39 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: Glyn, I?m writing a payment app for a web portal; fairly simple, they just need to be able to run cards and I would of course return the results and write it into FileMaker. I just found a bit of code and am about to try it, but if you have a function that works, I?d love to take a look; I?ve done lots of integrations over the years, just not with Paypal. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2013, at 9:15 AM, Glyn Devine wrote: > I've done quite a bit with Paypal over the past few years. What are you > writing, precisely? An IPN receiver? A cart? Something else? > > Glyn Devine > IT Manager > QuickSeries Publishing Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131205/b1dab3a8/attachment-0001.html From beverlyvoth at gmail.com Thu Dec 5 08:21:57 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Thu Dec 5 08:17:49 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: <77F3C750-DA21-436A-9AFF-59225B29D332@gmail.com> try this link first: https://developer.paypal.com/ On 05 Dec 2013, at 10:07 AM, Bob Patin wrote: > I have a client who wants me to write an integration with Paypal; has anyone done a PHP integration with them? I?ve always used Authorize.net in the past, but this client inisists on using Paypal. > > If you have something you can share, I?d be most grateful. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 Dec 5 08:22:48 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 08:18:11 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: <33AF44E9-1B33-4EA8-967A-5B330E06BBD9@patin.com> I don?t think they?ll want to do a hosted process; I think they?re wanting a custom solution where the user never leaves the site. I?ll take a look at the link you sent me though; thanks! Bob Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2013, at 9:20 AM, BEVERLY VOTH wrote: > PayPal has it's own API. It depends on what you want to do. You can mostly pass some info to PayPal and let the final entry be on their page(s) - this is their minimal interface. > > You POST (silently) to PayPal and let it finish. It returns what you need (approved or not) and then put the results where you need them. > > https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/devcentral_landing-outside > > It works well with any web application, including PHP. > > Beverly -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131205/dcbd92e2/attachment.html From ouidamac at mac.com Thu Dec 5 08:22:28 2013 From: ouidamac at mac.com (Ouida McIlhinney) Date: Thu Dec 5 08:18:20 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: <822652DD-8525-4729-8984-5D078AF16A7B@mac.com> What do you think of this one? http://www.stitchdragon.com I built it. Not perfect and still have a few things I want to "fix. But it is FileMaker, PHP, PayPal and works. A lot of website use my FileMaker CMS which includes PayPal eCommerce ~ What do you think? http://ouidamacdesignz.com/project/bayoubilly-com/ Ouida McIlhinney ouidamac@mac.com ouidamacdesignz.com On Dec 5, 2013, at 10:15 AM, Glyn Devine wrote: > I've done quite a bit with Paypal over the past few years. What are you > writing, precisely? An IPN receiver? A cart? Something else? > > Glyn Devine > IT Manager > QuickSeries Publishing Inc. > > On 12/5/13 10:07 AM, "Bob Patin" wrote: > >> I have a client who wants me to write an integration with Paypal; has anyone >> done a PHP integration with them? I?ve always used Authorize.net in the past, >> but this client inisists on using Paypal. >> >> If you have something you can share, I?d be most grateful. >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting 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 glyn.devine at quickseries.com Thu Dec 5 08:40:17 2013 From: glyn.devine at quickseries.com (Glyn Devine) Date: Thu Dec 5 08:36:09 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: Message-ID: Bob, I like to use Paypal?s ?cart upload? for what you?re describing. Basically you POST the contents of your cart to PayPal and they respond with a webpage (which your client can customize visually by logging into his PayPal account) with everything a person needs to complete payment and be directed back to your client?s site afterwards. Paypal?s documentation on that is here: https://cms.paypal.com/mx/cgi-bin/?cmd=_render-content&content_ID=developer/ e_howto_html_cart_upload#id09BLDK0007Q My code isn?t very generic so I?ll just leave you with the basic steps for setup: Header: $output[] = '
'; $output[] = ''; $output[] = ''; $output[] = ''; For each product in your cart: $paypalincrement must be a unique integer for each product you put into the form to POST $product_name is the product name $product_price is your unit price $product_qty is your quantity $product_id is your product code, a unique string identifiying the product $output[] = ""; $output[] = ""; $output[] = ""; $output[] = ""; Footers: Optionally you can set your own $shippingcharge or you can configure your paypal account to set this for you automatically $output[] = ""; Finally, here?s my submit button and the end of the form: $output[] = ''; $output[] = '
'; Hope this is useful! Glyn On 12/5/13 10:21 AM, "Bob Patin" wrote: > Glyn, > > I?m writing a payment app for a web portal; fairly simple, they just need to > be able to run cards and I would of course return the results and write it > into FileMaker. > > I just found a bit of code and am about to try it, but if you have a function > that works, I?d love to take a look; I?ve done lots of integrations over the > years, just not with Paypal. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > On Dec 5, 2013, at 9:15 AM, Glyn Devine wrote: > >> I've done quite a bit with Paypal over the past few years. What are you >> writing, precisely? An IPN receiver? A cart? Something else? >> >> Glyn Devine >> IT Manager >> QuickSeries Publishing Inc. > > > > _______________________________________________ > 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/20131205/48d66043/attachment-0001.html From bob at patin.com Thu Dec 5 08:46:21 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 08:41:45 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: <86BC4584-7C6C-486C-84AC-03865F9D7058@patin.com> Glyn, Thanks for the email; I don?t think they want to use a hosted order page though? it?d certainly be easier for me, however. :) I may offer that to them rather than trying to make sense of the REST example I?m trying to grok? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2013, at 9:40 AM, Glyn Devine wrote: > Bob, > > I like to use Paypal?s ?cart upload? for what you?re describing. Basically you POST the contents of your cart to PayPal and they respond with a webpage (which your client can customize visually by logging into his PayPal account) with everything a person needs to complete payment and be directed back to your client?s site afterwards. > > Paypal?s documentation on that is here: https://cms.paypal.com/mx/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_cart_upload#id09BLDK0007Q > > My code isn?t very generic so I?ll just leave you with the basic steps for setup: > > Header: > > $output[] = '
'; > $output[] = ''; > $output[] = ''; > $output[] = ''; > > For each product in your cart: > > $paypalincrement must be a unique integer for each product you put into the form to POST > $product_name is the product name > $product_price is your unit price > $product_qty is your quantity > $product_id is your product code, a unique string identifiying the product > > $output[] = ""; > $output[] = ""; > $output[] = ""; > $output[] = ""; > > Footers: > > Optionally you can set your own $shippingcharge or you can configure your paypal account to set this for you automatically > > $output[] = ""; > > Finally, here?s my submit button and the end of the form: > > $output[] = ''; > $output[] = '
'; > > > Hope this is useful! > > Glyn > > > > > > > On 12/5/13 10:21 AM, "Bob Patin" wrote: > >> Glyn, >> >> I?m writing a payment app for a web portal; fairly simple, they just need to be able to run cards and I would of course return the results and write it into FileMaker. >> >> I just found a bit of code and am about to try it, but if you have a function that works, I?d love to take a look; I?ve done lots of integrations over the years, just not with Paypal. >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> >> On Dec 5, 2013, at 9:15 AM, Glyn Devine wrote: >> >>> I've done quite a bit with Paypal over the past few years. What are you >>> writing, precisely? An IPN receiver? A cart? Something else? >>> >>> Glyn Devine >>> IT Manager >>> QuickSeries Publishing Inc. >> >> >> _______________________________________________ >> 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/20131205/36a9193e/attachment.html From beverlyvoth at gmail.com Thu Dec 5 09:03:12 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Thu Dec 5 08:59:04 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <33AF44E9-1B33-4EA8-967A-5B330E06BBD9@patin.com> References: <33AF44E9-1B33-4EA8-967A-5B330E06BBD9@patin.com> Message-ID: <51DB88B6-FA24-42BC-87D1-67685D7BD1CB@gmail.com> Then you need to have VERY SECURE way to collect and (possibly store) CC info. Banks require it. I don't know if PAYPAL even allows this. How do you use Authorize.net? the process would be similar for PayPal. The links I posted will tell you what can and cannot be done. Beverly On 05 Dec 2013, at 10:22 AM, Bob Patin wrote: > I don?t think they?ll want to do a hosted process; I think they?re wanting a custom solution where the user never leaves the site. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131205/84721079/attachment.html From dale.bengston at gmail.com Thu Dec 5 09:04:12 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Dec 5 09:00:14 2013 Subject: [FX.php List] Error Messages In-Reply-To: <5C876F8C-F58E-43C0-A7E7-4A2B29F4A114@finalresort.org> References: <5954C757-A365-4217-A417-9CA3AF7A910E@gmail.com> <5C876F8C-F58E-43C0-A7E7-4A2B29F4A114@finalresort.org> Message-ID: The problem is FX.php is processing the raw $_POST array in BuildLinkQueryString(). Cake.php passes security tokens and other information in a multi-level sub-array of $_POST. FX is assuming any sub-array to be one level deep, not two or more. I still haven?t figured out why this happens on some queries but not on others. For now, I?ve trapped it in my copy of FX.php. Dale On Dec 4, 2013, at 4:07 PM, Leo R. Lundgren wrote: > You can simply check which one of them is an array by dumping them. var_dump(), print_r() or gettype(). > > > 4 dec 2013 kl. 23.01 skrev Dale Bengston: > >> Hi All, >> >> Having recently updated to a new Mac laptop running OS X Mavericks, I was surprised by the amount of error reporting I now get by default out of PHP. Most useful. (I thought I had error reporting jacked all the way up to show everything before, but not so!) >> >> So I?ve started seeing this occasionally on one of my sites. (The site uses cake.php, fmcakemix and fx.php to deliver the goods.) >> >> Notice (8): Array to string conversion [APP/Vendor/FX/FX.php, line 313] >> >> Line 313 (version 6.0) of FX.php is in the middle of the function BuildLinkQueryString(). The line throwing the error is the one line in this foreach loop: >> >> foreach($value as $innertkey => $innertvalue) >> { >> $tempQueryString .= urlencode($key.'[]') . '='.$innertvalue.'&'; >> } >> >> This loop is part of a larger loop that walks $_POST elements, which is where $key comes from. So? PHP doesn?t tell me which variable of the two variables ($key or $innertvalue) is an array. Anyone have any idea what?s happening to generate this notice for some searches but not others? >> >> Thanks, >> Dale > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From glyn.devine at quickseries.com Thu Dec 5 09:08:35 2013 From: glyn.devine at quickseries.com (Glyn Devine) Date: Thu Dec 5 09:04:27 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <51DB88B6-FA24-42BC-87D1-67685D7BD1CB@gmail.com> Message-ID: This is why I use PayPal for everything. Just look up what it takes to be PCI compliant. Very few online businesses would qualify without spending significantly on pen tests, security cameras, physical security etc. Glyn On 12/5/13 11:03 AM, "BEVERLY VOTH" wrote: > Then you need to have VERY SECURE way to collect and (possibly store) CC info. > Banks require it. I don't know if PAYPAL even allows this. > > How do you use Authorize.net ? the process would be > similar for PayPal. The links I posted will tell you what can and cannot be > done. > > Beverly > > > On 05 Dec 2013, at 10:22 AM, Bob Patin wrote: > >> I don?t think they?ll want to do a hosted process; I think they?re wanting a >> custom solution where the user never leaves the site. > > > > _______________________________________________ > 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/20131205/159c81df/attachment.html From beverlyvoth at gmail.com Thu Dec 5 09:18:20 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Thu Dec 5 09:14:13 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: <17447794-85B5-4EF2-8BF2-4260C34A91A1@gmail.com> I have used iframes/frames to "spoof" not leaving the site, but I don't like to do that anymore. I just tell the clients to be secure, use the secure payment gateway as it's intended - they have the responsibility. Beverly On 05 Dec 2013, at 11:08 AM, Glyn Devine wrote: > This is why I use PayPal for everything. Just look up what it takes to be PCI compliant. Very few online businesses would qualify without spending significantly on pen tests, security cameras, physical security etc. > > Glyn > > > On 12/5/13 11:03 AM, "BEVERLY VOTH" wrote: > >> Then you need to have VERY SECURE way to collect and (possibly store) CC info. Banks require it. I don't know if PAYPAL even allows this. >> >> How do you use Authorize.net ? the process would be similar for PayPal. The links I posted will tell you what can and cannot be done. >> >> Beverly >> >> >> On 05 Dec 2013, at 10:22 AM, Bob Patin wrote: >> >>> I don?t think they?ll want to do a hosted process; I think they?re wanting a custom solution where the user never leaves the site. >> >> >> _______________________________________________ >> 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/20131205/f6936cb0/attachment-0001.html From andy at fmpug.com Thu Dec 5 09:25:49 2013 From: andy at fmpug.com (Andy Gaunt) Date: Thu Dec 5 09:21:40 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <17447794-85B5-4EF2-8BF2-4260C34A91A1@gmail.com> References: <17447794-85B5-4EF2-8BF2-4260C34A91A1@gmail.com> Message-ID: <4FCCC0E4-CB71-4FED-A61D-9CA5E0CB17E4@fmpug.com> http://stripe.com Great UI, easy API for everything from one off purchases to recurring subscriptions and VERY compliant. - Andy On Dec 5, 2013, at 11:18 AM, BEVERLY VOTH wrote: > I have used iframes/frames to "spoof" not leaving the site, but I don't like to do that anymore. I just tell the clients to be secure, use the secure payment gateway as it's intended - they have the responsibility. > > Beverly > > On 05 Dec 2013, at 11:08 AM, Glyn Devine wrote: > >> This is why I use PayPal for everything. Just look up what it takes to be PCI compliant. Very few online businesses would qualify without spending significantly on pen tests, security cameras, physical security etc. >> >> Glyn >> >> >> On 12/5/13 11:03 AM, "BEVERLY VOTH" wrote: >> >>> Then you need to have VERY SECURE way to collect and (possibly store) CC info. Banks require it. I don't know if PAYPAL even allows this. >>> >>> How do you use Authorize.net ? the process would be similar for PayPal. The links I posted will tell you what can and cannot be done. >>> >>> Beverly >>> >>> >>> On 05 Dec 2013, at 10:22 AM, Bob Patin wrote: >>> >>>> I don?t think they?ll want to do a hosted process; I think they?re wanting a custom solution where the user never leaves the site. >>> >>> >>> _______________________________________________ >>> 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/20131205/c88c43d9/attachment.html From bob at patin.com Thu Dec 5 09:53:52 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 09:49:14 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <17447794-85B5-4EF2-8BF2-4260C34A91A1@gmail.com> References: <17447794-85B5-4EF2-8BF2-4260C34A91A1@gmail.com> Message-ID: <348975E2-C10D-4F64-A539-835FBD105BA4@patin.com> I secured a set of web apps for another client, hired an outside consultant to get me PCI-compliant, but what I realized is that ALL he did was to wrap my POST variables like this: $name = htmlspecialchars($_POST[?name']); This particular company runs a PCI-compliance test every month and we always pass, so getting PCI-compliant is a snap? I may tell this client though that I recommend using a hosted order page (using Paypal?s card-input page)? BP Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2013, at 10:18 AM, BEVERLY VOTH wrote: > I have used iframes/frames to "spoof" not leaving the site, but I don't like to do that anymore. I just tell the clients to be secure, use the secure payment gateway as it's intended - they have the responsibility. > > Beverly -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131205/592ec9d2/attachment.html From glyn.devine at quickseries.com Thu Dec 5 09:55:15 2013 From: glyn.devine at quickseries.com (Glyn Devine) Date: Thu Dec 5 09:51:07 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <348975E2-C10D-4F64-A539-835FBD105BA4@patin.com> Message-ID: Yeah, getting PCI certified is a piece of cake, all you need to do is fill out a questionnaire on the web. In my experience most businesses that do this lie on 90% of the questions. Getting certified is easy, actually being compliant isn?t quite as simple. Glyn On 12/5/13 11:53 AM, "Bob Patin" wrote: > I secured a set of web apps for another client, hired an outside consultant to > get me PCI-compliant, but what I realized is that ALL he did was to wrap my > POST variables like this: > > $name = htmlspecialchars($_POST[?name']); > > This particular company runs a PCI-compliance test every month and we always > pass, so getting PCI-compliant is a snap? > > I may tell this client though that I recommend using a hosted order page > (using Paypal?s card-input page)? > > BP > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 5, 2013, at 10:18 AM, BEVERLY VOTH wrote: > >> I have used iframes/frames to "spoof" not leaving the site, but I don't like >> to do that anymore. I just tell the clients to be secure, use the secure >> payment gateway as it's intended - they have the responsibility. >> >> Beverly > > > > _______________________________________________ > 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/20131205/bdb62917/attachment.html From jmaymailing at pointinspace.com Thu Dec 5 10:02:21 2013 From: jmaymailing at pointinspace.com (John May) Date: Thu Dec 5 09:58:09 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: <52A0B19D.2090107@pointinspace.com> Watch out, this is changing quickly! We had to change things here by no longer storing credit cards locally to move from a SAQ D to a SAQ C questionnaire. If we didn't do this, we would have had to hire a QSA auditing company to do a manual audit of our systems and compliance. This is the first year this applied, and took us by surprise. Just like HIPPA requirements, PCI is getting more and more stringent by the day. The ironic thing is it's all the big companies getting the databases of credit cards stolen... - John On 12/5/13 11:55 AM, Glyn Devine wrote: > Yeah, getting PCI certified is a piece of cake, all you need to do is > fill out a questionnaire on the web. In my experience most businesses > that do this lie on 90% of the questions. Getting certified is easy, > actually being compliant isn?t quite as simple. > > Glyn > > > On 12/5/13 11:53 AM, "Bob Patin" wrote: > > I secured a set of web apps for another client, hired an outside > consultant to get me PCI-compliant, but what I realized is that ALL > he did was to wrap my POST variables like this: > > $name = htmlspecialchars($_POST[?name']); > > This particular company runs a PCI-compliance test every month and > we always pass, so getting PCI-compliant is a snap? > > I may tell this client though that I recommend using a hosted order > page (using Paypal?s card-input page)? > > BP > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 5, 2013, at 10:18 AM, BEVERLY VOTH wrote: > > I have used iframes/frames to "spoof" not leaving the site, but > I don't like to do that anymore. I just tell the clients to be > secure, use the secure payment gateway as it's intended - they > have the responsibility. > > Beverly > -- ------------------------------------------------------------------- John May : President http://www.pointinspace.com/ Point In Space Internet Solutions 800.664.8610 919.338.8198 Professional FileMaker Pro, MySQL, PHP & Lasso Hosting on shared, virtual and hardware dedicated servers From michael at pre1.com Thu Dec 5 10:11:02 2013 From: michael at pre1.com (Michael Sloper) Date: Thu Dec 5 10:06:52 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <4FCCC0E4-CB71-4FED-A61D-9CA5E0CB17E4@fmpug.com> References: <17447794-85B5-4EF2-8BF2-4260C34A91A1@gmail.com> <4FCCC0E4-CB71-4FED-A61D-9CA5E0CB17E4@fmpug.com> Message-ID: <5FD94DD2-94FF-429B-BFFE-E934BAB89A60@pre1.com> I have done integrations with both paypal and authorize.net. For me, i found paypal's apis to be really inconsistent and buggy but this was a few years back so maybe they are better now. I haven't integrated with stripe.com yet but i've looked into this and they have some excellent features. I believe they support tokens for stored card numbers. Their billing is really is easy to follow with a base charge and a percentage. They have a Jquery dialog iframe option. With this option, the card number doesn't get entered on your server. To me, this seems like the most secure way to go. -Michael Sloper On Dec 5, 2013, at 8:25 AM, Andy Gaunt wrote: > http://stripe.com > > Great UI, easy API for everything from one off purchases to recurring subscriptions and VERY compliant. > > - Andy > > > On Dec 5, 2013, at 11:18 AM, BEVERLY VOTH wrote: > >> I have used iframes/frames to "spoof" not leaving the site, but I don't like to do that anymore. I just tell the clients to be secure, use the secure payment gateway as it's intended - they have the responsibility. >> >> Beverly >> >> On 05 Dec 2013, at 11:08 AM, Glyn Devine wrote: >> >>> This is why I use PayPal for everything. Just look up what it takes to be PCI compliant. Very few online businesses would qualify without spending significantly on pen tests, security cameras, physical security etc. >>> >>> Glyn >>> >>> >>> On 12/5/13 11:03 AM, "BEVERLY VOTH" wrote: >>> >>>> Then you need to have VERY SECURE way to collect and (possibly store) CC info. Banks require it. I don't know if PAYPAL even allows this. >>>> >>>> How do you use Authorize.net ? the process would be similar for PayPal. The links I posted will tell you what can and cannot be done. >>>> >>>> Beverly >>>> >>>> >>>> On 05 Dec 2013, at 10:22 AM, Bob Patin wrote: >>>> >>>>> I don?t think they?ll want to do a hosted process; I think they?re wanting a custom solution where the user never leaves the site. >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131205/74a69957/attachment-0001.html From bob at patin.com Thu Dec 5 10:25:56 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 10:21:19 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <52A0B19D.2090107@pointinspace.com> References: <52A0B19D.2090107@pointinspace.com> Message-ID: For clients I never let them store cards in the database; all we ever store are the last 4 digits of their cards. FileMaker 13 introduced the ability to encrypt data from inside the database; I haven?t found the command yet or tried it, but this is a welcome addition. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2013, at 11:02 AM, John May wrote: > Watch out, this is changing quickly! > > We had to change things here by no longer storing credit cards locally to move from a SAQ D to a SAQ C questionnaire. If we didn't do this, we would have had to hire a QSA auditing company to do a manual audit of our systems and compliance. > > This is the first year this applied, and took us by surprise. Just like HIPPA requirements, PCI is getting more and more stringent by the day. The ironic thing is it's all the big companies getting the databases of credit cards stolen... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131205/b500ce2a/attachment.html From jmaymailing at pointinspace.com Thu Dec 5 10:34:02 2013 From: jmaymailing at pointinspace.com (John May) Date: Thu Dec 5 10:29:50 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: <52A0B19D.2090107@pointinspace.com> Message-ID: <52A0B90A.3030205@pointinspace.com> We used to store cards for recurring billing. Even encrypting in a local database won't satisfy the PCI gods to get you out of SAQ D and a QSA audit. - John On 12/5/13 12:25 PM, Bob Patin wrote: > For clients I never let them store cards in the database; all we ever > store are the last 4 digits of their cards. > > FileMaker 13 introduced the ability to encrypt data from inside the > database; I haven?t found the command yet or tried it, but this is a > welcome addition. > > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 5, 2013, at 11:02 AM, John May > wrote: > >> Watch out, this is changing quickly! >> >> We had to change things here by no longer storing credit cards locally >> to move from a SAQ D to a SAQ C questionnaire. If we didn't do this, >> we would have had to hire a QSA auditing company to do a manual audit >> of our systems and compliance. >> >> This is the first year this applied, and took us by surprise. Just >> like HIPPA requirements, PCI is getting more and more stringent by the >> day. The ironic thing is it's all the big companies getting the >> databases of credit cards stolen... > -- ------------------------------------------------------------------- John May : President http://www.pointinspace.com/ Point In Space Internet Solutions 800.664.8610 919.338.8198 Professional FileMaker Pro, MySQL, PHP & Lasso Hosting on shared, virtual and hardware dedicated servers From bob at patin.com Thu Dec 5 13:00:04 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 12:55:26 2013 Subject: [FX.php List] [OFF] Trouble w/ JQuery validate plugin and IE 7/8 Message-ID: I?m seeing problems in my web app on IE browsers versions 7 and 8; the JQuery calls work fine, but the validate plugin fails. Has anyone else seen this, and if so, were you able to find a workaround? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From steve at bluecrocodile.co.nz Thu Dec 5 13:03:58 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Dec 5 12:59:52 2013 Subject: [FX.php List] [OFF] Trouble w/ JQuery validate plugin and IE 7/8 In-Reply-To: References: Message-ID: <80DA42DC-3E31-4EB4-B442-70DC71932D79@bluecrocodile.co.nz> Can you define 'fails'...? does it allow users to submit forms that aren't valid...? What error is given if you enable error alerting...? Cheers Steve > I?m seeing problems in my web app on IE browsers versions 7 and 8; the JQuery calls work fine, but the validate plugin fails. > > Has anyone else seen this, and if so, were you able to find a workaround? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz From bob at patin.com Thu Dec 5 13:23:38 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 13:19:01 2013 Subject: [FX.php List] [OFF] Trouble w/ JQuery validate plugin and IE 7/8 In-Reply-To: <80DA42DC-3E31-4EB4-B442-70DC71932D79@bluecrocodile.co.nz> References: <80DA42DC-3E31-4EB4-B442-70DC71932D79@bluecrocodile.co.nz> Message-ID: <20187EB2-9115-4F3C-8A31-122251184D5C@patin.com> It ignores it, from what I was told, letting users go on to the next page. When I just tested with Windows 7 and IE 10, it worked properly though. Gotta love Internet Explorer? On Dec 5, 2013, at 2:03 PM, Steve Winter wrote: > Can you define 'fails'...? does it allow users to submit forms that aren't valid...? What error is given if you enable error alerting...? > > Cheers > Steve > >> I?m seeing problems in my web app on IE browsers versions 7 and 8; the JQuery calls work fine, but the validate plugin fails. >> >> Has anyone else seen this, and if so, were you able to find a workaround? >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting 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 > > Steve Winter > +44 777 852 4776 > steve@bluecrocodile.co.nz > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131205/498d726a/attachment.html From bob at patin.com Thu Dec 5 13:39:25 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 5 13:34:49 2013 Subject: [FX.php List] Re: Using JQuery validate() with Windows IE 7 In-Reply-To: <4160EB4B-A629-4ACF-9B9E-AF5DDC3DB213@bluecrocodile.co.nz> References: <02EC4B00-D85B-42B0-9852-913D74D694C7@patin.com> <4160EB4B-A629-4ACF-9B9E-AF5DDC3DB213@bluecrocodile.co.nz> Message-ID: Easy fix I think; I just went from JQuery 1.6 to 1.9.1 and I think that?s going to fix it, from what I?m seeing online now. Best, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2013, at 2:02 PM, Steve Winter wrote: > Howdy > > I presume that this is recent, and so likely to be IE 11...? and which jQuery validate plugin...? > > Cheers > Steve > >> Hey Steve, >> >> After lots of weird registrations, we?ve determined that the JQuery validate plugin doesn?t block users on IE 7 (Windoze) from going on in the process. >> >> Have you seen that behavior, and if so, do you have a fix for it? >> >> Thanks, >> >> Bob >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> > > Steve Winter > +44 777 852 4776 > steve@bluecrocodile.co.nz > > > > > From adenman at tmea.org Thu Dec 5 17:07:44 2013 From: adenman at tmea.org (Andrew Denman) Date: Thu Dec 5 17:03:32 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: By PayPal do you mean their 'Standard' service, or their Advanced/Pro service? Their Advanced/Pro service is similar to Authorize.net - it is a gateway that used to be owned by Verisign (and about 1,000 other companies before that). You'll need to read up on their documentation for that. If the Standard service, I have some code to get and parse the return/IPN response from PayPal. It may be different if you're using a cart though, we just pass one amount. 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: Thursday, December 05, 2013 9:08 AM To: FX.php Discussion List Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? I have a client who wants me to write an integration with Paypal; has anyone done a PHP integration with them? I've always used Authorize.net in the past, but this client inisists on using Paypal. If you have something you can share, I'd be most grateful. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin - FileMaker Consulting FileMaker Hosting 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 gary at gnurps.com Sat Dec 7 10:35:45 2013 From: gary at gnurps.com (Gary Sprung) Date: Sat Dec 7 10:31:22 2013 Subject: [FX.php List] Subsummary report web page Message-ID: Hi folks. I'm looking for some sample code to build a web page that works like a Filemaker subsummary report. Can anyone point me in the direction of some info on that? I have a list view page of Documents records. Each record is categorized with a Section and Subsection. I want to sort and group the records by those values and display the Section and Subsection only in sub-headers. Thanks, Gary ---------------- Gary Sprung GNURPS Consulting Database and web development; photography & writing Member, FileMaker Business Alliance Filemaker 12 Certified Developer FileMaker 10 Certified Developer FileMaker 9 Certified Developer FileMaker 8 Certified Developer Boulder & Denver, Colorado gary@gnurps.com www.gnurps.com Landline: 720-565-9933 Cell: 303-859-9331 From csinfo at criticalsolution.com Sun Dec 8 09:32:31 2013 From: csinfo at criticalsolution.com (csinfo) Date: Sun Dec 8 09:28:06 2013 Subject: [FX.php List] Subsummary report web page In-Reply-To: Message-ID: Why not create a FM script and summary fields, then call find your data using the -script parameter, then get the summary fields. Just an idea. Something like this: $request = new FX($ServerIP, $Port,$dataSourceType ); $request->SetDBData($fmdb,$Layout,$max); $request->SetDBUserPass($fmAccount, $fmPass); $request->AddDBParam( 'somefield', '*' ); $request->AddDBParam('-script', 'fmscript' ); $result = $request->FMFind(); $records =$result['data']; John On 12/7/13 11:35 AM, "Gary Sprung" wrote: >Hi folks. I'm looking for some sample code to build a web page that works >like a Filemaker subsummary report. Can anyone point me in the direction >of some info on that? > >I have a list view page of Documents records. Each record is categorized >with a Section and Subsection. I want to sort and group the records by >those values and display the Section and Subsection only in sub-headers. > >Thanks, >Gary > >---------------- >Gary Sprung >GNURPS Consulting >Database and web development; photography & writing > >Member, FileMaker Business Alliance >Filemaker 12 Certified Developer >FileMaker 10 Certified Developer >FileMaker 9 Certified Developer >FileMaker 8 Certified Developer > >Boulder & Denver, Colorado > >gary@gnurps.com >www.gnurps.com > >Landline: 720-565-9933 >Cell: 303-859-9331 > > > > > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list From beverlyvoth at gmail.com Mon Dec 9 07:36:23 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Mon Dec 9 07:31:59 2013 Subject: [FX.php List] Subsummary report web page In-Reply-To: References: Message-ID: <5E7DFB19-CA6A-40A1-B7FB-513D5C332E39@gmail.com> Gary, I generally don't like to use scripts for this sort of thing. You can create variables and loop through the found set, as you get to a new "group" (also tested by variables), display the subsummaries (any aggregates you want). You can display the details as well as the summaries. Make it a boolean setting and your report can change from only summaries to all items and summaries. Getting these into "headers" is much more complex than into footers, of course. Getting the labels is not so difficult, but any aggregates (totals, for example) are more complex to get into headers. Are you wanting only the labels for Section and Subsection before the list items in those groups? Beverly On 07 Dec 2013, at 12:35 PM, Gary Sprung wrote: > Hi folks. I'm looking for some sample code to build a web page that works like a Filemaker subsummary report. Can anyone point me in the direction of some info on that? > > I have a list view page of Documents records. Each record is categorized with a Section and Subsection. I want to sort and group the records by those values and display the Section and Subsection only in sub-headers. > > Thanks, > Gary > > ---------------- > Gary Sprung > GNURPS Consulting > Database and web development; photography & writing > > Member, FileMaker Business Alliance > Filemaker 12 Certified Developer > FileMaker 10 Certified Developer > FileMaker 9 Certified Developer > FileMaker 8 Certified Developer > > Boulder & Denver, Colorado > > gary@gnurps.com > www.gnurps.com > > Landline: 720-565-9933 > Cell: 303-859-9331 > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Mon Dec 9 08:47:47 2013 From: bob at patin.com (Bob Patin) Date: Mon Dec 9 08:42:43 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: Message-ID: <0AF891E3-02B0-43BD-B2D3-4FB8C9C33E0F@patin.com> Hi Andrew, Not sure if you got my previous email so please forgive me if I repeat myself? :) I?d really appreciate seeing the code you use for Paypal; question: for the code you have, does the buyer have to have his own Paypal account? The type of transactions he described would NOT require the buyer to have a Paypal account. If your code would facilitate that, I?d be glad to pay something to be able to use it? :) Best, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 5, 2013, at 6:07 PM, Andrew Denman wrote: > By PayPal do you mean their 'Standard' service, or their Advanced/Pro service? Their Advanced/Pro service is similar to Authorize.net - it is a gateway that used to be owned by Verisign (and about 1,000 other companies before that). You'll need to read up on their documentation for that. > > If the Standard service, I have some code to get and parse the return/IPN response from PayPal. It may be different if you're using a cart though, we just pass one amount. > > Andrew Denman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131209/b789c5fb/attachment.html From beverlyvoth at gmail.com Mon Dec 9 08:57:50 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Mon Dec 9 08:53:24 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <0AF891E3-02B0-43BD-B2D3-4FB8C9C33E0F@patin.com> References: <0AF891E3-02B0-43BD-B2D3-4FB8C9C33E0F@patin.com> Message-ID: Bob, PayPal can accept credit cards or PayPal account for the user to make payments. It's all in their documentation. :) Some people prefer PayPal, because they have an account, but they may make payments either way. HTH, Beverly On 09 Dec 2013, at 10:47 AM, Bob Patin wrote: > Hi Andrew, > > Not sure if you got my previous email so please forgive me if I repeat myself? :) > > I?d really appreciate seeing the code you use for Paypal; question: for the code you have, does the buyer have to have his own Paypal account? The type of transactions he described would NOT require the buyer to have a Paypal account. > > If your code would facilitate that, I?d be glad to pay something to be able to use it? :) > > Best, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Dec 5, 2013, at 6:07 PM, Andrew Denman wrote: > >> By PayPal do you mean their 'Standard' service, or their Advanced/Pro service? Their Advanced/Pro service is similar to Authorize.net - it is a gateway that used to be owned by Verisign (and about 1,000 other companies before that). You'll need to read up on their documentation for that. >> >> If the Standard service, I have some code to get and parse the return/IPN response from PayPal. It may be different if you're using a cart though, we just pass one amount. >> >> Andrew Denman > > _______________________________________________ > 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/20131209/6884b7bb/attachment-0001.html From beverlyvoth at gmail.com Mon Dec 9 09:02:54 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Mon Dec 9 08:58:29 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: <52A0B90A.3030205@pointinspace.com> References: <52A0B19D.2090107@pointinspace.com> <52A0B90A.3030205@pointinspace.com> Message-ID: ditto. We stopped storing anything (not even the last 4 digits!) and just store the authorization returned. It's really all you need should you have to contact PayPal (or any payment gateway) for more information. Plus, if your client has a PayPal account (required to use the gateway), then they/you have a way to login and check more information (not CCard info) on the payments made. Beverly On 05 Dec 2013, at 12:34 PM, John May wrote: > We used to store cards for recurring billing. > > Even encrypting in a local database won't satisfy the PCI gods to get you out of SAQ D and a QSA audit. From bob at patin.com Mon Dec 9 10:01:08 2013 From: bob at patin.com (Bob Patin) Date: Mon Dec 9 09:56:01 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: <0AF891E3-02B0-43BD-B2D3-4FB8C9C33E0F@patin.com> Message-ID: On Dec 9, 2013, at 9:57 AM, BEVERLY VOTH wrote: > Bob, PayPal can accept credit cards or PayPal account for the user to make payments. It's all in their documentation. :) > > Some people prefer PayPal, because they have an account, but they may make payments either way. Hi, Yes, I know that they can, but finding any PHP examples on their site is nearly impossible? I?ve spent almost 2 hours trying to figure out what I need to write? the frustrating thing is that when I click on a link to get more info, it sends me right back where I started. :) Would you happen to have a page lying around that uses their hosted order page and if so, would you be willing to share it with me? This client was rather cheap in their project budget and I?ve already wasted 2 hours and am no farther than I was? :) If they?d just use authorize.net as I suggested, I?d have written this in an hour... Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From beverlyvoth at gmail.com Mon Dec 9 11:04:39 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Mon Dec 9 11:00:15 2013 Subject: [FX.php List] Anyone done a PHP integration w/ Paypal? In-Reply-To: References: <0AF891E3-02B0-43BD-B2D3-4FB8C9C33E0F@patin.com> Message-ID: <0FADC1CB-B6FA-4157-A62D-3B808EDB790C@gmail.com> ha ha. I hear you. What I have is a few years (3+) old and I wouldn't bank on it being current. I just googled 'paypal developer php examples' and got some links: Beverly On 09 Dec 2013, at 12:01 PM, Bob Patin wrote: > > On Dec 9, 2013, at 9:57 AM, BEVERLY VOTH wrote: > >> Bob, PayPal can accept credit cards or PayPal account for the user to make payments. It's all in their documentation. :) >> >> Some people prefer PayPal, because they have an account, but they may make payments either way. > > Hi, > > Yes, I know that they can, but finding any PHP examples on their site is nearly impossible? I?ve spent almost 2 hours trying to figure out what I need to write? the frustrating thing is that when I click on a link to get more info, it sends me right back where I started. :) > > Would you happen to have a page lying around that uses their hosted order page and if so, would you be willing to share it with me? This client was rather cheap in their project budget and I?ve already wasted 2 hours and am no farther than I was? :) > > If they?d just use authorize.net as I suggested, I?d have written this in an hour... > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 gary at gnurps.com Mon Dec 9 12:43:17 2013 From: gary at gnurps.com (Gary Sprung) Date: Mon Dec 9 12:38:49 2013 Subject: [FX.php List] Subsummary report web page In-Reply-To: <5E7DFB19-CA6A-40A1-B7FB-513D5C332E39@gmail.com> References: <5E7DFB19-CA6A-40A1-B7FB-513D5C332E39@gmail.com> Message-ID: <252152A6-84E3-4335-AFEC-6E72E003BAA5@gnurps.com> On Dec 9, 2013, at 7:36 AM, BEVERLY VOTH wrote: > Gary, > I generally don't like to use scripts for this sort of thing. I agree. To me, the big problem with using FM scripts with the PHP API is the lack of feedback from the script. > You can create variables and loop through the found set, as you get to a new "group" (also tested by variables), display the subsummaries (any aggregates you want). Yes, as I thought about this, loops and variables to find a change in section/subsection came to mind. So thanks for confirming that idea. > You can display the details as well as the summaries. Make it a boolean setting and your report can change from only summaries to all items and summaries. > > Getting these into "headers" is much more complex than into footers, of course. Getting the labels is not so difficult, but any aggregates (totals, for example) are more complex to get into headers. > > Are you wanting only the labels for Section and Subsection before the list items in those groups? I can see why getting aggregate into headers would be more difficult. Fortunately, for this application I just want the labels. Thanks much for the feedback. Gary > On 07 Dec 2013, at 12:35 PM, Gary Sprung wrote: > >> Hi folks. I'm looking for some sample code to build a web page that works like a Filemaker subsummary report. Can anyone point me in the direction of some info on that? >> >> I have a list view page of Documents records. Each record is categorized with a Section and Subsection. I want to sort and group the records by those values and display the Section and Subsection only in sub-headers. >> >> Thanks, >> Gary >> >> ---------------- >> Gary Sprung >> GNURPS Consulting >> Database and web development; photography & writing >> >> Member, FileMaker Business Alliance >> Filemaker 12 Certified Developer >> FileMaker 10 Certified Developer >> FileMaker 9 Certified Developer >> FileMaker 8 Certified Developer >> >> Boulder & Denver, Colorado >> >> gary@gnurps.com >> www.gnurps.com >> >> Landline: 720-565-9933 >> Cell: 303-859-9331 >> >> >> >> >> >> >> _______________________________________________ >> 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 --------------------- Gary Sprung 3675 Aspen Court Boulder, CO 80304 gary@gnurps.com www.gnurps.com Landline: 720-565-9933 Cell: 303-859-9331 From beverlyvoth at gmail.com Mon Dec 9 12:54:25 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Mon Dec 9 12:49:59 2013 Subject: [FX.php List] Subsummary report web page In-Reply-To: <252152A6-84E3-4335-AFEC-6E72E003BAA5@gnurps.com> References: <5E7DFB19-CA6A-40A1-B7FB-513D5C332E39@gmail.com> <252152A6-84E3-4335-AFEC-6E72E003BAA5@gnurps.com> Message-ID: <0B9BAE0E-8C57-4062-BDF4-E626CCDA51DA@gmail.com> Cool! set the $section and $subsection to "" (empty) before the loop. If you have sorted correctly (by section and subsection), you can compare the value in each of these fields to the variable(s) at the beginning of the loop. If different, you have a "header" and you set the variable(s) with the value(s) at the same time you display the variable as needed. As you loop through the records, you'll get the correct headers above the list items. If you are using a table-tr-td for the display, remember to have sufficient cols to display the Section and SubSection values. I like to use TD colspan for these kinds of rows, but you can uses any manner of "spacing" to display the rows: Section - - - - Subsection - - - - - record fields ... - Subsection - - - HTH, Beverly On 09 Dec 2013, at 2:43 PM, Gary Sprung wrote: > > On Dec 9, 2013, at 7:36 AM, BEVERLY VOTH wrote: > >> Gary, >> I generally don't like to use scripts for this sort of thing. > I agree. To me, the big problem with using FM scripts with the PHP API is the lack of feedback from the script. > >> You can create variables and loop through the found set, as you get to a new "group" (also tested by variables), display the subsummaries (any aggregates you want). > Yes, as I thought about this, loops and variables to find a change in section/subsection came to mind. So thanks for confirming that idea. > > >> You can display the details as well as the summaries. Make it a boolean setting and your report can change from only summaries to all items and summaries. >> >> Getting these into "headers" is much more complex than into footers, of course. Getting the labels is not so difficult, but any aggregates (totals, for example) are more complex to get into headers. > >> >> Are you wanting only the labels for Section and Subsection before the list items in those groups? > I can see why getting aggregate into headers would be more difficult. Fortunately, for this application I just want the labels. > > Thanks much for the feedback. > > Gary > > >> On 07 Dec 2013, at 12:35 PM, Gary Sprung wrote: >> >>> Hi folks. I'm looking for some sample code to build a web page that works like a Filemaker subsummary report. Can anyone point me in the direction of some info on that? >>> >>> I have a list view page of Documents records. Each record is categorized with a Section and Subsection. I want to sort and group the records by those values and display the Section and Subsection only in sub-headers. >>> >>> Thanks, >>> Gary >>> >>> ---------------- >>> Gary Sprung >>> GNURPS Consulting >>> Database and web development; photography & writing >>> >>> Member, FileMaker Business Alliance >>> Filemaker 12 Certified Developer >>> FileMaker 10 Certified Developer >>> FileMaker 9 Certified Developer >>> FileMaker 8 Certified Developer >>> >>> Boulder & Denver, Colorado >>> >>> gary@gnurps.com >>> www.gnurps.com >>> >>> Landline: 720-565-9933 >>> Cell: 303-859-9331 >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 > > --------------------- > Gary Sprung > 3675 Aspen Court > Boulder, CO 80304 > > gary@gnurps.com > www.gnurps.com > > Landline: 720-565-9933 > Cell: 303-859-9331 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jschwartz at exit445.com Mon Dec 9 13:09:38 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon Dec 9 13:05:09 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables Message-ID: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> Hi Folks, Haven't posted for awhile.... I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. Performing a simple query in a single table proved easy. The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. Am I approaching this correctly? In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) Any guidance would be appreciated. Thanks Jonathan Jonathan Schwartz jschwartz@exit445.com From leo at finalresort.org Mon Dec 9 13:13:27 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Mon Dec 9 13:07:58 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> Message-ID: <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> You're on the right track. You simply join in multiple tables, can do that within the same query. Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: > Hi Folks, > > Haven't posted for awhile.... > > I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. > > Performing a simple query in a single table proved easy. > > The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. > > Am I approaching this correctly? > > In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. > > I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) > > Any guidance would be appreciated. > > Thanks > > Jonathan From jschwartz at exit445.com Mon Dec 9 13:18:55 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon Dec 9 13:14:26 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> Message-ID: Thanks Leo, It's reassuring that I'm on the right track. I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? Jonathan On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: > You're on the right track. You simply join in multiple tables, can do that within the same query. > > Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html > > > 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: > >> Hi Folks, >> >> Haven't posted for awhile.... >> >> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >> >> Performing a simple query in a single table proved easy. >> >> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >> >> Am I approaching this correctly? >> >> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >> >> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >> >> Any guidance would be appreciated. >> >> Thanks >> >> Jonathan > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Jonathan Schwartz jschwartz@exit445.com From beverlyvoth at gmail.com Mon Dec 9 14:19:40 2013 From: beverlyvoth at gmail.com (Beverly Voth) Date: Mon Dec 9 14:15:21 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> Message-ID: It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). If you export from FMP from parents and again from Children, you get different results, no?! What are you doing with the results? Your perspective might be different, thus your query different. If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. Perhaps you need to be asking this on a MySQL list, eh? :) -- sent from my iPhone4 -- Beverly Voth -- > On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: > > Thanks Leo, > > It's reassuring that I'm on the right track. > > I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. > > Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? > > Jonathan > > >> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >> >> You're on the right track. You simply join in multiple tables, can do that within the same query. >> >> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >> >> >>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>> >>> Hi Folks, >>> >>> Haven't posted for awhile.... >>> >>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>> >>> Performing a simple query in a single table proved easy. >>> >>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>> >>> Am I approaching this correctly? >>> >>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>> >>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>> >>> Any guidance would be appreciated. >>> >>> Thanks >>> >>> Jonathan >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jschwartz at exit445.com Mon Dec 9 15:09:54 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon Dec 9 15:05:25 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> Message-ID: <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> Thanks for the help, Beverly. There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? versus... Same as above but wanting to get all related records from a related table (portal)? Jonathan On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: > It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). > > If you export from FMP from parents and again from Children, you get different results, no?! > > What are you doing with the results? Your perspective might be different, thus your query different. > > If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. > > Perhaps you need to be asking this on a MySQL list, eh? :) > > -- sent from my iPhone4 -- > Beverly Voth > -- > >> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >> >> Thanks Leo, >> >> It's reassuring that I'm on the right track. >> >> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >> >> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >> >> Jonathan >> >> >>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>> >>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>> >>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>> >>> >>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>> >>>> Hi Folks, >>>> >>>> Haven't posted for awhile.... >>>> >>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>> >>>> Performing a simple query in a single table proved easy. >>>> >>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>> >>>> Am I approaching this correctly? >>>> >>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>> >>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>> >>>> Any guidance would be appreciated. >>>> >>>> Thanks >>>> >>>> Jonathan >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> Jonathan Schwartz >> jschwartz@exit445.com >> >> >> >> _______________________________________________ >> 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 jschwartz@exit445.com From beverlyvoth at gmail.com Mon Dec 9 18:44:29 2013 From: beverlyvoth at gmail.com (Beverly Voth) Date: Mon Dec 9 18:40:08 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> Message-ID: <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> Not just an FMP developer... :) I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! HTH -- sent from my iPhone4 -- Beverly Voth -- > On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: > > Thanks for the help, Beverly. > > There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) > > Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? > > versus... > > Same as above but wanting to get all related records from a related table (portal)? > > Jonathan > >> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >> >> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >> >> If you export from FMP from parents and again from Children, you get different results, no?! >> >> What are you doing with the results? Your perspective might be different, thus your query different. >> >> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >> >> Perhaps you need to be asking this on a MySQL list, eh? :) >> >> -- sent from my iPhone4 -- >> Beverly Voth >> -- >> >>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>> >>> Thanks Leo, >>> >>> It's reassuring that I'm on the right track. >>> >>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>> >>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>> >>> Jonathan >>> >>> >>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>> >>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>> >>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>> >>>> >>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>> >>>>> Hi Folks, >>>>> >>>>> Haven't posted for awhile.... >>>>> >>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>> >>>>> Performing a simple query in a single table proved easy. >>>>> >>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>> >>>>> Am I approaching this correctly? >>>>> >>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>> >>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>> >>>>> Any guidance would be appreciated. >>>>> >>>>> Thanks >>>>> >>>>> Jonathan >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> Jonathan Schwartz >>> jschwartz@exit445.com >>> >>> >>> >>> _______________________________________________ >>> 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 > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dale.bengston at gmail.com Mon Dec 9 19:57:25 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Mon Dec 9 19:52:58 2013 Subject: [FX.php List] Subsummary report web page In-Reply-To: <0B9BAE0E-8C57-4062-BDF4-E626CCDA51DA@gmail.com> References: <5E7DFB19-CA6A-40A1-B7FB-513D5C332E39@gmail.com> <252152A6-84E3-4335-AFEC-6E72E003BAA5@gnurps.com> <0B9BAE0E-8C57-4062-BDF4-E626CCDA51DA@gmail.com> Message-ID: <53D9EFAF-8979-4D22-B96A-887D3471FC7E@gmail.com> Regarding subtotals at the top? I write my table rows to a variable instead of to the page as I?m ticking through and aggregating the subtotals. When the section header changes, echo the header & subtotal to the page, followed by the variable containing the detail rows. Lather, rinse, repeat. Dale PS This concept can be extended to place the grand total at the very top as well. On Dec 9, 2013, at 1:54 PM, BEVERLY VOTH wrote: > Cool! set the $section and $subsection to "" (empty) before the loop. If you have sorted correctly (by section and subsection), you can compare the value in each of these fields to the variable(s) at the beginning of the loop. If different, you have a "header" and you set the variable(s) with the value(s) at the same time you display the variable as needed. As you loop through the records, you'll get the correct headers above the list items. If you are using a table-tr-td for the display, remember to have sufficient cols to display the Section and SubSection values. I like to use TD colspan for these kinds of rows, but you can uses any manner of "spacing" to display the rows: > > Section - - - > - Subsection - - - > - - record fields ... > - Subsection - - - > > HTH, > Beverly > > On 09 Dec 2013, at 2:43 PM, Gary Sprung wrote: > >> >> On Dec 9, 2013, at 7:36 AM, BEVERLY VOTH wrote: >> >>> Gary, >>> I generally don't like to use scripts for this sort of thing. >> I agree. To me, the big problem with using FM scripts with the PHP API is the lack of feedback from the script. >> >>> You can create variables and loop through the found set, as you get to a new "group" (also tested by variables), display the subsummaries (any aggregates you want). >> Yes, as I thought about this, loops and variables to find a change in section/subsection came to mind. So thanks for confirming that idea. >> >> >>> You can display the details as well as the summaries. Make it a boolean setting and your report can change from only summaries to all items and summaries. >>> >>> Getting these into "headers" is much more complex than into footers, of course. Getting the labels is not so difficult, but any aggregates (totals, for example) are more complex to get into headers. >> >>> >>> Are you wanting only the labels for Section and Subsection before the list items in those groups? >> I can see why getting aggregate into headers would be more difficult. Fortunately, for this application I just want the labels. >> >> Thanks much for the feedback. >> >> Gary >> >> >>> On 07 Dec 2013, at 12:35 PM, Gary Sprung wrote: >>> >>>> Hi folks. I'm looking for some sample code to build a web page that works like a Filemaker subsummary report. Can anyone point me in the direction of some info on that? >>>> >>>> I have a list view page of Documents records. Each record is categorized with a Section and Subsection. I want to sort and group the records by those values and display the Section and Subsection only in sub-headers. >>>> >>>> Thanks, >>>> Gary >>>> >>>> ---------------- >>>> Gary Sprung >>>> GNURPS Consulting >>>> Database and web development; photography & writing >>>> >>>> Member, FileMaker Business Alliance >>>> Filemaker 12 Certified Developer >>>> FileMaker 10 Certified Developer >>>> FileMaker 9 Certified Developer >>>> FileMaker 8 Certified Developer >>>> >>>> Boulder & Denver, Colorado >>>> >>>> gary@gnurps.com >>>> www.gnurps.com >>>> >>>> Landline: 720-565-9933 >>>> Cell: 303-859-9331 >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> --------------------- >> Gary Sprung >> 3675 Aspen Court >> Boulder, CO 80304 >> >> gary@gnurps.com >> www.gnurps.com >> >> Landline: 720-565-9933 >> Cell: 303-859-9331 >> >> _______________________________________________ >> 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 dale.bengston at gmail.com Mon Dec 9 20:20:26 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Mon Dec 9 20:16:06 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> Message-ID: <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. Here?s a great (short) explanation of joins in MySQL: http://www.sitepoint.com/understanding-sql-joins-mysql-database/ One thing I like about SQL is it actually reads like a sentence: SELECT user.name, course.name FROM `user` LEFT JOIN `course` on user.course = course.id; ?you can read it out loud and it makes sense. Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) Hope this helps, Dale PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: > Not just an FMP developer... :) > I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. > > You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. > > Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! > > HTH > > -- sent from my iPhone4 -- > Beverly Voth > -- > >> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >> >> Thanks for the help, Beverly. >> >> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >> >> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >> >> versus... >> >> Same as above but wanting to get all related records from a related table (portal)? >> >> Jonathan >> >>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>> >>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>> >>> If you export from FMP from parents and again from Children, you get different results, no?! >>> >>> What are you doing with the results? Your perspective might be different, thus your query different. >>> >>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>> >>> Perhaps you need to be asking this on a MySQL list, eh? :) >>> >>> -- sent from my iPhone4 -- >>> Beverly Voth >>> -- >>> >>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>> >>>> Thanks Leo, >>>> >>>> It's reassuring that I'm on the right track. >>>> >>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>> >>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>> >>>> Jonathan >>>> >>>> >>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>> >>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>> >>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>> >>>>> >>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>> >>>>>> Hi Folks, >>>>>> >>>>>> Haven't posted for awhile.... >>>>>> >>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>> >>>>>> Performing a simple query in a single table proved easy. >>>>>> >>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>> >>>>>> Am I approaching this correctly? >>>>>> >>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>> >>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>> >>>>>> Any guidance would be appreciated. >>>>>> >>>>>> Thanks >>>>>> >>>>>> Jonathan >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> Jonathan Schwartz >>>> jschwartz@exit445.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >> jschwartz@exit445.com >> >> >> >> _______________________________________________ >> 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 beverlyvoth at gmail.com Tue Dec 10 09:58:45 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Tue Dec 10 09:54:19 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> Message-ID: Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: > I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. > > Here?s a great (short) explanation of joins in MySQL: > http://www.sitepoint.com/understanding-sql-joins-mysql-database/ > > One thing I like about SQL is it actually reads like a sentence: > SELECT user.name, course.name > FROM `user` > LEFT JOIN `course` on user.course = course.id; > > ?you can read it out loud and it makes sense. > > Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) > > Hope this helps, > Dale > > PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. > > > On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: > >> Not just an FMP developer... :) >> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >> >> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >> >> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >> >> HTH >> >> -- sent from my iPhone4 -- >> Beverly Voth >> -- >> >>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>> >>> Thanks for the help, Beverly. >>> >>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>> >>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>> >>> versus... >>> >>> Same as above but wanting to get all related records from a related table (portal)? >>> >>> Jonathan >>> >>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>> >>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>> >>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>> >>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>> >>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>> >>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>> >>>> -- sent from my iPhone4 -- >>>> Beverly Voth >>>> -- >>>> >>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>> >>>>> Thanks Leo, >>>>> >>>>> It's reassuring that I'm on the right track. >>>>> >>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>> >>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>> >>>>> Jonathan >>>>> >>>>> >>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>> >>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>> >>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>> >>>>>> >>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>> >>>>>>> Hi Folks, >>>>>>> >>>>>>> Haven't posted for awhile.... >>>>>>> >>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>> >>>>>>> Performing a simple query in a single table proved easy. >>>>>>> >>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>> >>>>>>> Am I approaching this correctly? >>>>>>> >>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>> >>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>> >>>>>>> Any guidance would be appreciated. >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> Jonathan >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> Jonathan Schwartz >>>>> jschwartz@exit445.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>> jschwartz@exit445.com >>> >>> >>> >>> _______________________________________________ >>> 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 dale.bengston at gmail.com Tue Dec 10 10:30:32 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Dec 10 10:26:07 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> Message-ID: I also highly recommend Stack Overflow for coding help. I don?t think I would have ever gotten to a high level of jQuery implementation without Stack Overflow. On Dec 10, 2013, at 10:58 AM, BEVERLY VOTH wrote: > Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) > > LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) > I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. > FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN > > I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. > > On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: > >> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. >> >> Here?s a great (short) explanation of joins in MySQL: >> http://www.sitepoint.com/understanding-sql-joins-mysql-database/ >> >> One thing I like about SQL is it actually reads like a sentence: >> SELECT user.name, course.name >> FROM `user` >> LEFT JOIN `course` on user.course = course.id; >> >> ?you can read it out loud and it makes sense. >> >> Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) >> >> Hope this helps, >> Dale >> >> PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. >> >> >> On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: >> >>> Not just an FMP developer... :) >>> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >>> >>> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >>> >>> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >>> >>> HTH >>> >>> -- sent from my iPhone4 -- >>> Beverly Voth >>> -- >>> >>>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>>> >>>> Thanks for the help, Beverly. >>>> >>>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>>> >>>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>>> >>>> versus... >>>> >>>> Same as above but wanting to get all related records from a related table (portal)? >>>> >>>> Jonathan >>>> >>>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>>> >>>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>>> >>>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>>> >>>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>>> >>>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>>> >>>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>>> >>>>> -- sent from my iPhone4 -- >>>>> Beverly Voth >>>>> -- >>>>> >>>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>>> >>>>>> Thanks Leo, >>>>>> >>>>>> It's reassuring that I'm on the right track. >>>>>> >>>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>>> >>>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>>> >>>>>> Jonathan >>>>>> >>>>>> >>>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>>> >>>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>>> >>>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>>> >>>>>>> >>>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>>> >>>>>>>> Hi Folks, >>>>>>>> >>>>>>>> Haven't posted for awhile.... >>>>>>>> >>>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>>> >>>>>>>> Performing a simple query in a single table proved easy. >>>>>>>> >>>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>>> >>>>>>>> Am I approaching this correctly? >>>>>>>> >>>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>>> >>>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>>> >>>>>>>> Any guidance would be appreciated. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> Jonathan >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> Jonathan Schwartz >>>>>> jschwartz@exit445.com >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> jschwartz@exit445.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 Tue Dec 10 13:11:35 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 10 13:07:02 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> Message-ID: <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> Thanks for the help folks. I'm using all the web resources, especially StackOverflow. I just needed to make a FileMaker reality check to confirm that I was on the right path. It feels a little funny having a SELECT with 30 or so fields listed in a single line going offscreen. Also, not quite sure when to use dbname.fieldname versus just fieldname versus dbname.fieldname as dbnamefieldname. I'm learning... Jonathan On Dec 10, 2013, at 9:30 AM, Dale Bengston wrote: > I also highly recommend Stack Overflow for coding help. I don?t think I would have ever gotten to a high level of jQuery implementation without Stack Overflow. > > On Dec 10, 2013, at 10:58 AM, BEVERLY VOTH wrote: > >> Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) >> >> LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) >> I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. >> FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN >> >> I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. >> >> On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: >> >>> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. >>> >>> Here?s a great (short) explanation of joins in MySQL: >>> http://www.sitepoint.com/understanding-sql-joins-mysql-database/ >>> >>> One thing I like about SQL is it actually reads like a sentence: >>> SELECT user.name, course.name >>> FROM `user` >>> LEFT JOIN `course` on user.course = course.id; >>> >>> ?you can read it out loud and it makes sense. >>> >>> Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) >>> >>> Hope this helps, >>> Dale >>> >>> PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. >>> >>> >>> On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: >>> >>>> Not just an FMP developer... :) >>>> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >>>> >>>> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >>>> >>>> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >>>> >>>> HTH >>>> >>>> -- sent from my iPhone4 -- >>>> Beverly Voth >>>> -- >>>> >>>>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>>>> >>>>> Thanks for the help, Beverly. >>>>> >>>>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>>>> >>>>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>>>> >>>>> versus... >>>>> >>>>> Same as above but wanting to get all related records from a related table (portal)? >>>>> >>>>> Jonathan >>>>> >>>>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>>>> >>>>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>>>> >>>>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>>>> >>>>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>>>> >>>>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>>>> >>>>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>>>> >>>>>> -- sent from my iPhone4 -- >>>>>> Beverly Voth >>>>>> -- >>>>>> >>>>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>>>> >>>>>>> Thanks Leo, >>>>>>> >>>>>>> It's reassuring that I'm on the right track. >>>>>>> >>>>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>>>> >>>>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>>>> >>>>>>> Jonathan >>>>>>> >>>>>>> >>>>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>>>> >>>>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>>>> >>>>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>>>> >>>>>>>> >>>>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>>>> >>>>>>>>> Hi Folks, >>>>>>>>> >>>>>>>>> Haven't posted for awhile.... >>>>>>>>> >>>>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>>>> >>>>>>>>> Performing a simple query in a single table proved easy. >>>>>>>>> >>>>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>>>> >>>>>>>>> Am I approaching this correctly? >>>>>>>>> >>>>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>>>> >>>>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>>>> >>>>>>>>> Any guidance would be appreciated. >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> Jonathan >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> FX.php_List mailing list >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> Jonathan Schwartz >>>>>>> jschwartz@exit445.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>> jschwartz@exit445.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 Jonathan Schwartz jschwartz@exit445.com From leo at finalresort.org Tue Dec 10 13:36:40 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Tue Dec 10 13:31:07 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> Message-ID: SELECT * SELECT someTable.* 10 dec 2013 kl. 21.11 skrev Jonathan Schwartz: > Thanks for the help folks. > > I'm using all the web resources, especially StackOverflow. > > I just needed to make a FileMaker reality check to confirm that I was on the right path. > > It feels a little funny having a SELECT with 30 or so fields listed in a single line going offscreen. > > Also, not quite sure when to use dbname.fieldname versus just fieldname versus dbname.fieldname as dbnamefieldname. > > I'm learning... > > Jonathan > > > On Dec 10, 2013, at 9:30 AM, Dale Bengston wrote: > >> I also highly recommend Stack Overflow for coding help. I don?t think I would have ever gotten to a high level of jQuery implementation without Stack Overflow. >> >> On Dec 10, 2013, at 10:58 AM, BEVERLY VOTH wrote: >> >>> Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) >>> >>> LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) >>> I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. >>> FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN >>> >>> I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. >>> >>> On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: >>> >>>> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. >>>> >>>> Here?s a great (short) explanation of joins in MySQL: >>>> http://www.sitepoint.com/understanding-sql-joins-mysql-database/ >>>> >>>> One thing I like about SQL is it actually reads like a sentence: >>>> SELECT user.name, course.name >>>> FROM `user` >>>> LEFT JOIN `course` on user.course = course.id; >>>> >>>> ?you can read it out loud and it makes sense. >>>> >>>> Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) >>>> >>>> Hope this helps, >>>> Dale >>>> >>>> PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. >>>> >>>> >>>> On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: >>>> >>>>> Not just an FMP developer... :) >>>>> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >>>>> >>>>> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >>>>> >>>>> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >>>>> >>>>> HTH >>>>> >>>>> -- sent from my iPhone4 -- >>>>> Beverly Voth >>>>> -- >>>>> >>>>>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>>>>> >>>>>> Thanks for the help, Beverly. >>>>>> >>>>>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>>>>> >>>>>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>>>>> >>>>>> versus... >>>>>> >>>>>> Same as above but wanting to get all related records from a related table (portal)? >>>>>> >>>>>> Jonathan >>>>>> >>>>>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>>>>> >>>>>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>>>>> >>>>>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>>>>> >>>>>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>>>>> >>>>>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>>>>> >>>>>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>>>>> >>>>>>> -- sent from my iPhone4 -- >>>>>>> Beverly Voth >>>>>>> -- >>>>>>> >>>>>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>>>>> >>>>>>>> Thanks Leo, >>>>>>>> >>>>>>>> It's reassuring that I'm on the right track. >>>>>>>> >>>>>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>>>>> >>>>>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>>>>> >>>>>>>> Jonathan >>>>>>>> >>>>>>>> >>>>>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>>>>> >>>>>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>>>>> >>>>>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>>>>> >>>>>>>>> >>>>>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>>>>> >>>>>>>>>> Hi Folks, >>>>>>>>>> >>>>>>>>>> Haven't posted for awhile.... >>>>>>>>>> >>>>>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>>>>> >>>>>>>>>> Performing a simple query in a single table proved easy. >>>>>>>>>> >>>>>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>>>>> >>>>>>>>>> Am I approaching this correctly? >>>>>>>>>> >>>>>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>>>>> >>>>>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>>>>> >>>>>>>>>> Any guidance would be appreciated. >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> Jonathan >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> FX.php_List mailing list >>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> Jonathan Schwartz >>>>>>>> jschwartz@exit445.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>>> jschwartz@exit445.com >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From beverlyvoth at gmail.com Tue Dec 10 13:36:14 2013 From: beverlyvoth at gmail.com (Beverly Voth) Date: Tue Dec 10 13:31:48 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> Message-ID: <59C48C86-385A-4357-B6A1-A63CEA0E0C6D@gmail.com> Not dbname. tablename. Only really required when there are columns/fields names the same in two or more tables. Otherwise how would you (SQL) know which column is which?! -- sent from my iPhone4 -- Beverly Voth -- > On Dec 10, 2013, at 3:11 PM, Jonathan Schwartz wrote: > > Thanks for the help folks. > > I'm using all the web resources, especially StackOverflow. > > I just needed to make a FileMaker reality check to confirm that I was on the right path. > > It feels a little funny having a SELECT with 30 or so fields listed in a single line going offscreen. > > Also, not quite sure when to use dbname.fieldname versus just fieldname versus dbname.fieldname as dbnamefieldname. > > I'm learning... > > Jonathan > > >> On Dec 10, 2013, at 9:30 AM, Dale Bengston wrote: >> >> I also highly recommend Stack Overflow for coding help. I don?t think I would have ever gotten to a high level of jQuery implementation without Stack Overflow. >> >>> On Dec 10, 2013, at 10:58 AM, BEVERLY VOTH wrote: >>> >>> Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) >>> >>> LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) >>> I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. >>> FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN >>> >>> I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. >>> >>>> On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: >>>> >>>> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. >>>> >>>> Here?s a great (short) explanation of joins in MySQL: >>>> http://www.sitepoint.com/understanding-sql-joins-mysql-database/ >>>> >>>> One thing I like about SQL is it actually reads like a sentence: >>>> SELECT user.name, course.name >>>> FROM `user` >>>> LEFT JOIN `course` on user.course = course.id; >>>> >>>> ?you can read it out loud and it makes sense. >>>> >>>> Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) >>>> >>>> Hope this helps, >>>> Dale >>>> >>>> PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. >>>> >>>> >>>>> On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: >>>>> >>>>> Not just an FMP developer... :) >>>>> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >>>>> >>>>> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >>>>> >>>>> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >>>>> >>>>> HTH >>>>> >>>>> -- sent from my iPhone4 -- >>>>> Beverly Voth >>>>> -- >>>>> >>>>>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>>>>> >>>>>> Thanks for the help, Beverly. >>>>>> >>>>>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>>>>> >>>>>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>>>>> >>>>>> versus... >>>>>> >>>>>> Same as above but wanting to get all related records from a related table (portal)? >>>>>> >>>>>> Jonathan >>>>>> >>>>>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>>>>> >>>>>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>>>>> >>>>>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>>>>> >>>>>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>>>>> >>>>>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>>>>> >>>>>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>>>>> >>>>>>> -- sent from my iPhone4 -- >>>>>>> Beverly Voth >>>>>>> -- >>>>>>> >>>>>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>>>>> >>>>>>>> Thanks Leo, >>>>>>>> >>>>>>>> It's reassuring that I'm on the right track. >>>>>>>> >>>>>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>>>>> >>>>>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>>>>> >>>>>>>> Jonathan >>>>>>>> >>>>>>>> >>>>>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>>>>> >>>>>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>>>>> >>>>>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>>>>> >>>>>>>>> >>>>>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>>>>> >>>>>>>>>> Hi Folks, >>>>>>>>>> >>>>>>>>>> Haven't posted for awhile.... >>>>>>>>>> >>>>>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>>>>> >>>>>>>>>> Performing a simple query in a single table proved easy. >>>>>>>>>> >>>>>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>>>>> >>>>>>>>>> Am I approaching this correctly? >>>>>>>>>> >>>>>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>>>>> >>>>>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>>>>> >>>>>>>>>> Any guidance would be appreciated. >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> Jonathan >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> FX.php_List mailing list >>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> Jonathan Schwartz >>>>>>>> jschwartz@exit445.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>>> jschwartz@exit445.com >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Tue Dec 10 13:40:24 2013 From: chris at iViking.org (Chris Hansen) Date: Tue Dec 10 13:35:50 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> Message-ID: <41479DE0-8A5E-4782-852C-2AA3FB190A51@iViking.org> Jonathan, I prefer to always use tablename.fieldname just to be clear. That said, have you come across aliases? Basically, that looks something like this: SELECT p.name, a.zip FROM persons p, addresses a WHERE ... I find it shortens things quite a bit, while making things clearer at the same time -- the alias (if chosen wisely) provides a nice sanity check on where the field lives, while making things a bit shorter than the full name. HTH --Chris On Dec 10, 2013, at 1:11 PM, Jonathan Schwartz wrote: > Thanks for the help folks. > > I'm using all the web resources, especially StackOverflow. > > I just needed to make a FileMaker reality check to confirm that I was on the right path. > > It feels a little funny having a SELECT with 30 or so fields listed in a single line going offscreen. > > Also, not quite sure when to use dbname.fieldname versus just fieldname versus dbname.fieldname as dbnamefieldname. > > I'm learning... > > Jonathan > > > On Dec 10, 2013, at 9:30 AM, Dale Bengston wrote: > >> I also highly recommend Stack Overflow for coding help. I don?t think I would have ever gotten to a high level of jQuery implementation without Stack Overflow. >> >> On Dec 10, 2013, at 10:58 AM, BEVERLY VOTH wrote: >> >>> Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) >>> >>> LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) >>> I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. >>> FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN >>> >>> I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. >>> >>> On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: >>> >>>> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. >>>> >>>> Here?s a great (short) explanation of joins in MySQL: >>>> http://www.sitepoint.com/understanding-sql-joins-mysql-database/ >>>> >>>> One thing I like about SQL is it actually reads like a sentence: >>>> SELECT user.name, course.name >>>> FROM `user` >>>> LEFT JOIN `course` on user.course = course.id; >>>> >>>> ?you can read it out loud and it makes sense. >>>> >>>> Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) >>>> >>>> Hope this helps, >>>> Dale >>>> >>>> PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. >>>> >>>> >>>> On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: >>>> >>>>> Not just an FMP developer... :) >>>>> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >>>>> >>>>> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >>>>> >>>>> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >>>>> >>>>> HTH >>>>> >>>>> -- sent from my iPhone4 -- >>>>> Beverly Voth >>>>> -- >>>>> >>>>>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>>>>> >>>>>> Thanks for the help, Beverly. >>>>>> >>>>>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>>>>> >>>>>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>>>>> >>>>>> versus... >>>>>> >>>>>> Same as above but wanting to get all related records from a related table (portal)? >>>>>> >>>>>> Jonathan >>>>>> >>>>>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>>>>> >>>>>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>>>>> >>>>>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>>>>> >>>>>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>>>>> >>>>>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>>>>> >>>>>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>>>>> >>>>>>> -- sent from my iPhone4 -- >>>>>>> Beverly Voth >>>>>>> -- >>>>>>> >>>>>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>>>>> >>>>>>>> Thanks Leo, >>>>>>>> >>>>>>>> It's reassuring that I'm on the right track. >>>>>>>> >>>>>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>>>>> >>>>>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>>>>> >>>>>>>> Jonathan >>>>>>>> >>>>>>>> >>>>>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>>>>> >>>>>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>>>>> >>>>>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>>>>> >>>>>>>>> >>>>>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>>>>> >>>>>>>>>> Hi Folks, >>>>>>>>>> >>>>>>>>>> Haven't posted for awhile.... >>>>>>>>>> >>>>>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>>>>> >>>>>>>>>> Performing a simple query in a single table proved easy. >>>>>>>>>> >>>>>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>>>>> >>>>>>>>>> Am I approaching this correctly? >>>>>>>>>> >>>>>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>>>>> >>>>>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>>>>> >>>>>>>>>> Any guidance would be appreciated. >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> >>>>>>>>>> Jonathan >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> FX.php_List mailing list >>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> Jonathan Schwartz >>>>>>>> jschwartz@exit445.com >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>>> jschwartz@exit445.com >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jschwartz at exit445.com Tue Dec 10 14:08:39 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Dec 10 14:04:06 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <41479DE0-8A5E-4782-852C-2AA3FB190A51@iViking.org> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> <41479DE0-8A5E-4782-852C-2AA3FB190A51@iViking.org> Message-ID: <74F87FD2-74CA-4DC8-A12F-548DE222E915@exit445.com> Ooops. my bad . I meant tablename.fieldname in my example. Hey...I JUST had an FX.php moment. I realized that I was using mySQL Aliases backwards...just like I was trying to specify Username/Password backwards about 8 years ago when I first started fx.php. Same basic problem...different decade. ;-) jonathan On Dec 10, 2013, at 12:40 PM, Chris Hansen wrote: > Jonathan, > > I prefer to always use tablename.fieldname just to be clear. That said, have you come across aliases? Basically, that looks something like this: > > SELECT p.name, a.zip FROM persons p, addresses a WHERE ... > > I find it shortens things quite a bit, while making things clearer at the same time -- the alias (if chosen wisely) provides a nice sanity check on where the field lives, while making things a bit shorter than the full name. > > HTH > > --Chris > > On Dec 10, 2013, at 1:11 PM, Jonathan Schwartz wrote: > >> Thanks for the help folks. >> >> I'm using all the web resources, especially StackOverflow. >> >> I just needed to make a FileMaker reality check to confirm that I was on the right path. >> >> It feels a little funny having a SELECT with 30 or so fields listed in a single line going offscreen. >> >> Also, not quite sure when to use dbname.fieldname versus just fieldname versus dbname.fieldname as dbnamefieldname. >> >> I'm learning... >> >> Jonathan >> >> >> On Dec 10, 2013, at 9:30 AM, Dale Bengston wrote: >> >>> I also highly recommend Stack Overflow for coding help. I don?t think I would have ever gotten to a high level of jQuery implementation without Stack Overflow. >>> >>> On Dec 10, 2013, at 10:58 AM, BEVERLY VOTH wrote: >>> >>>> Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) >>>> >>>> LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) >>>> I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. >>>> FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN >>>> >>>> I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. >>>> >>>> On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: >>>> >>>>> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. >>>>> >>>>> Here?s a great (short) explanation of joins in MySQL: >>>>> http://www.sitepoint.com/understanding-sql-joins-mysql-database/ >>>>> >>>>> One thing I like about SQL is it actually reads like a sentence: >>>>> SELECT user.name, course.name >>>>> FROM `user` >>>>> LEFT JOIN `course` on user.course = course.id; >>>>> >>>>> ?you can read it out loud and it makes sense. >>>>> >>>>> Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) >>>>> >>>>> Hope this helps, >>>>> Dale >>>>> >>>>> PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. >>>>> >>>>> >>>>> On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: >>>>> >>>>>> Not just an FMP developer... :) >>>>>> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >>>>>> >>>>>> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >>>>>> >>>>>> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >>>>>> >>>>>> HTH >>>>>> >>>>>> -- sent from my iPhone4 -- >>>>>> Beverly Voth >>>>>> -- >>>>>> >>>>>>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>>>>>> >>>>>>> Thanks for the help, Beverly. >>>>>>> >>>>>>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>>>>>> >>>>>>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>>>>>> >>>>>>> versus... >>>>>>> >>>>>>> Same as above but wanting to get all related records from a related table (portal)? >>>>>>> >>>>>>> Jonathan >>>>>>> >>>>>>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>>>>>> >>>>>>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>>>>>> >>>>>>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>>>>>> >>>>>>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>>>>>> >>>>>>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>>>>>> >>>>>>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>>>>>> >>>>>>>> -- sent from my iPhone4 -- >>>>>>>> Beverly Voth >>>>>>>> -- >>>>>>>> >>>>>>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>>>>>> >>>>>>>>> Thanks Leo, >>>>>>>>> >>>>>>>>> It's reassuring that I'm on the right track. >>>>>>>>> >>>>>>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>>>>>> >>>>>>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>>>>>> >>>>>>>>> Jonathan >>>>>>>>> >>>>>>>>> >>>>>>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>>>>>> >>>>>>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>>>>>> >>>>>>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>>>>>> >>>>>>>>>>> Hi Folks, >>>>>>>>>>> >>>>>>>>>>> Haven't posted for awhile.... >>>>>>>>>>> >>>>>>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>>>>>> >>>>>>>>>>> Performing a simple query in a single table proved easy. >>>>>>>>>>> >>>>>>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>>>>>> >>>>>>>>>>> Am I approaching this correctly? >>>>>>>>>>> >>>>>>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>>>>>> >>>>>>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>>>>>> >>>>>>>>>>> Any guidance would be appreciated. >>>>>>>>>>> >>>>>>>>>>> Thanks >>>>>>>>>>> >>>>>>>>>>> Jonathan >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> FX.php_List mailing list >>>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>>> >>>>>>>>> Jonathan Schwartz >>>>>>>>> jschwartz@exit445.com >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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 >>>>>>> jschwartz@exit445.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >> >> Jonathan Schwartz >> jschwartz@exit445.com >> >> >> >> _______________________________________________ >> 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 jschwartz@exit445.com From beverlyvoth at gmail.com Tue Dec 10 15:18:50 2013 From: beverlyvoth at gmail.com (Beverly Voth) Date: Tue Dec 10 15:14:21 2013 Subject: [FX.php List] About migrating to MySQL: Pulling data from multiple related tables In-Reply-To: <41479DE0-8A5E-4782-852C-2AA3FB190A51@iViking.org> References: <3682525B-E297-4805-B279-FB4C8672100C@exit445.com> <84E41871-8E93-459D-BCF2-C215420D45CD@finalresort.org> <226B2110-C15E-4908-BC3B-986DCA602FEF@exit445.com> <882806ED-48BA-4980-8DB5-765F5F1136C0@gmail.com> <065C33E6-799C-401C-BFE9-97E49DEF535E@gmail.com> <1B9335A8-9783-4731-B873-37ABE9519B99@exit445.com> <41479DE0-8A5E-4782-852C-2AA3FB190A51@iViking.org> Message-ID: Yes! I prefer the t.c AS ... The alias is also very important if you must self-join. The alias can be anything (named reasonably) and often MUST be used once defined (table alias) whenever a field/column is used in the same query. -- sent from my iPhone4 -- Beverly Voth -- > On Dec 10, 2013, at 3:40 PM, Chris Hansen wrote: > > Jonathan, > > I prefer to always use tablename.fieldname just to be clear. That said, have you come across aliases? Basically, that looks something like this: > > SELECT p.name, a.zip FROM persons p, addresses a WHERE ... > > I find it shortens things quite a bit, while making things clearer at the same time -- the alias (if chosen wisely) provides a nice sanity check on where the field lives, while making things a bit shorter than the full name. > > HTH > > --Chris > >> On Dec 10, 2013, at 1:11 PM, Jonathan Schwartz wrote: >> >> Thanks for the help folks. >> >> I'm using all the web resources, especially StackOverflow. >> >> I just needed to make a FileMaker reality check to confirm that I was on the right path. >> >> It feels a little funny having a SELECT with 30 or so fields listed in a single line going offscreen. >> >> Also, not quite sure when to use dbname.fieldname versus just fieldname versus dbname.fieldname as dbnamefieldname. >> >> I'm learning... >> >> Jonathan >> >> >>> On Dec 10, 2013, at 9:30 AM, Dale Bengston wrote: >>> >>> I also highly recommend Stack Overflow for coding help. I don?t think I would have ever gotten to a high level of jQuery implementation without Stack Overflow. >>> >>>> On Dec 10, 2013, at 10:58 AM, BEVERLY VOTH wrote: >>>> >>>> Yes! Sitepoint is in my bookmarks and oft visited. Here's another (they also have a variety of things besides SQL) >>>> >>>> LEFT JOIN (or even JOIN) == LEFT OUTER JOIN in most places. :) >>>> I wanted to be specific, so that Jonathan understood the difference with OUTER & INNER. >>>> FYI: FMP doesn't support RIGHT OUTER JOIN & FULL OUTER JOIN >>>> >>>> I'm with Dale, be specific with columns/fields in SQL queries regardless of DB. >>>> >>>>> On 09 Dec 2013, at 10:20 PM, Dale Bengston wrote: >>>>> >>>>> I?m down to one FileMaker client at this point. All my other work is SQL. I love it, although it did take a while to get the hang of it. For the web, you really can?t beat it. MySQL is so much faster than FileMaker. So much. >>>>> >>>>> Here?s a great (short) explanation of joins in MySQL: >>>>> http://www.sitepoint.com/understanding-sql-joins-mysql-database/ >>>>> >>>>> One thing I like about SQL is it actually reads like a sentence: >>>>> SELECT user.name, course.name >>>>> FROM `user` >>>>> LEFT JOIN `course` on user.course = course.id; >>>>> >>>>> ?you can read it out loud and it makes sense. >>>>> >>>>> Since MySQL is not layout driven, be careful about what data you are extracting. I recommend being specific about the fields you?re pulling with each query. (In other words, no SELECT * FROM ? ) >>>>> >>>>> Hope this helps, >>>>> Dale >>>>> >>>>> PS If I remember correctly, LEFT JOIN = LEFT OUTER JOIN in MySQL. >>>>> >>>>> >>>>>> On Dec 9, 2013, at 7:44 PM, BEVERLY VOTH wrote: >>>>>> >>>>>> Not just an FMP developer... :) >>>>>> I've been at this stuff since Netscape went public. (Long time). I also co-owed a web hosting company with MySQL & MS SQL servers. >>>>>> >>>>>> You probably can get away with just JOIN, but the LEFT OUTER JOIN ensures the parents with no children, too. >>>>>> >>>>>> Think of it a bit like the Relationship Graph. You have tables (TOs) and the links between them. Those are JOINs! >>>>>> >>>>>> HTH >>>>>> >>>>>> -- sent from my iPhone4 -- >>>>>> Beverly Voth >>>>>> -- >>>>>> >>>>>>> On Dec 9, 2013, at 5:09 PM, Jonathan Schwartz wrote: >>>>>>> >>>>>>> Thanks for the help, Beverly. >>>>>>> >>>>>>> There is nothing like asking a group of FieMaker developers for getting started in the right direction. ;-) >>>>>>> >>>>>>> Still a little foggy on the join type...If you search for a single record in Table A and that record contains a foreign key to pull a single value from a related Table B, what type of join would that be? >>>>>>> >>>>>>> versus... >>>>>>> >>>>>>> Same as above but wanting to get all related records from a related table (portal)? >>>>>>> >>>>>>> Jonathan >>>>>>> >>>>>>>> On Dec 9, 2013, at 1:19 PM, Beverly Voth wrote: >>>>>>>> >>>>>>>> It's an OUTER join if you show all (FMP) records and their related children (portal). Some records may not have children, thus if you want records with and without children, it's LEFT OUTER JOIN (left meaning the parent perspective). >>>>>>>> >>>>>>>> If you export from FMP from parents and again from Children, you get different results, no?! >>>>>>>> >>>>>>>> What are you doing with the results? Your perspective might be different, thus your query different. >>>>>>>> >>>>>>>> If you are wanting to pull more than one 'portal' it may or may not be separate queries. Again depending on what result you want. >>>>>>>> >>>>>>>> Perhaps you need to be asking this on a MySQL list, eh? :) >>>>>>>> >>>>>>>> -- sent from my iPhone4 -- >>>>>>>> Beverly Voth >>>>>>>> -- >>>>>>>> >>>>>>>>> On Dec 9, 2013, at 3:18 PM, Jonathan Schwartz wrote: >>>>>>>>> >>>>>>>>> Thanks Leo, >>>>>>>>> >>>>>>>>> It's reassuring that I'm on the right track. >>>>>>>>> >>>>>>>>> I've seen mention that the syntax on multiple join statements is more stringent than on single statements, so maybe I need to use full syntax such as LEFT OUTER JOIN in stead of just JOIN. >>>>>>>>> >>>>>>>>> Or...maybe my problem is that a FileMaker related query isn't a LEFT JOIN. Is an INNER JOIN? >>>>>>>>> >>>>>>>>> Jonathan >>>>>>>>> >>>>>>>>> >>>>>>>>>> On Dec 9, 2013, at 12:13 PM, Leo R. Lundgren wrote: >>>>>>>>>> >>>>>>>>>> You're on the right track. You simply join in multiple tables, can do that within the same query. >>>>>>>>>> >>>>>>>>>> Here's a nice little visualization of various join types, thought it might be helpful in general: http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> 9 dec 2013 kl. 21.09 skrev Jonathan Schwartz: >>>>>>>>>>> >>>>>>>>>>> Hi Folks, >>>>>>>>>>> >>>>>>>>>>> Haven't posted for awhile.... >>>>>>>>>>> >>>>>>>>>>> I'm doing my first migration to MySQL and need some advice on how to accomplish the same functionality on MySQl as on FileMaker. >>>>>>>>>>> >>>>>>>>>>> Performing a simple query in a single table proved easy. >>>>>>>>>>> >>>>>>>>>>> The problem is how to retrieve data from multiple related tables. I added a "LEFT JOIN" statement to the MySQL query and successfully pulled data from one related table, but failed to get results from multiple related tables. It could have been syntax errors on the subsequent JOIN statements. >>>>>>>>>>> >>>>>>>>>>> Am I approaching this correctly? >>>>>>>>>>> >>>>>>>>>>> In FileMaker, we often have many related tables and can pull from any (as long as they are on the layout). I'm not getting the same vibe from MySQL as I explore the options. >>>>>>>>>>> >>>>>>>>>>> I used brute force to get past the issue: I issued multiple queries, one to each table...but I'm pretty sure that's not the way to go. ;-) >>>>>>>>>>> >>>>>>>>>>> Any guidance would be appreciated. >>>>>>>>>>> >>>>>>>>>>> Thanks >>>>>>>>>>> >>>>>>>>>>> Jonathan >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> FX.php_List mailing list >>>>>>>>>> FX.php_List@mail.iviking.org >>>>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>>> >>>>>>>>> Jonathan Schwartz >>>>>>>>> jschwartz@exit445.com >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> 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 >>>>>>> jschwartz@exit445.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >> >> Jonathan Schwartz >> jschwartz@exit445.com >> >> >> >> _______________________________________________ >> 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 Dec 13 08:59:25 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 13 08:54:39 2013 Subject: [FX.php List] OFF: Talking to SOAP Web Services Message-ID: <06512B44-2CA0-4BE2-ABB4-587A08AFD726@exit445.com> Off the subject... Has anyone had experience with setting up communications from FileMaker to SOAP-based web services? This seems to be one of those "tip of the iceberg" type challenges. The learning curve looks especially steep. Jonathan Jonathan Schwartz jschwartz@exit445.com From chris at iViking.org Fri Dec 13 09:27:47 2013 From: chris at iViking.org (Chris Hansen) Date: Fri Dec 13 09:23:01 2013 Subject: [FX.php List] OFF: Talking to SOAP Web Services In-Reply-To: <06512B44-2CA0-4BE2-ABB4-587A08AFD726@exit445.com> References: <06512B44-2CA0-4BE2-ABB4-587A08AFD726@exit445.com> Message-ID: <538067EF-A864-44A1-A0FF-A92A2614AE80@iViking.org> Jonathan, I haven't touched soap for a while (wow, that would sound really socially bad out of context...) That said, I can think how I'd tackle the problem: I wouldn't make FileMaker do it directly, I'd use PHP since it has lots of stuff built-in for SOAP stuff: http://php.net/manual/en/book.soap.php In the past, a trick I've used is the ImportXML script step to connect to a PHP page that does all the work. Basically, all that gets imported is a log record (formatted as appropriate XML, of course.) Any reading and writing actually happens via PHP (on both sides). Anyway, just a thought. YMMV Best, --Chris On Dec 13, 2013, at 8:59 AM, Jonathan Schwartz wrote: > Off the subject... > > Has anyone had experience with setting up communications from FileMaker to SOAP-based web services? > > This seems to be one of those "tip of the iceberg" type challenges. The learning curve looks especially steep. > > Jonathan > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From glyn.devine at quickseries.com Fri Dec 13 09:38:42 2013 From: glyn.devine at quickseries.com (Glyn Devine) Date: Fri Dec 13 09:34:00 2013 Subject: [FX.php List] OFF: Talking to SOAP Web Services In-Reply-To: <06512B44-2CA0-4BE2-ABB4-587A08AFD726@exit445.com> Message-ID: Jonathan: The biggest obstacle to FileMaker talking directly to a SOAP service was that filemaker couldn't POST before. As of filemaker 13 you can use the httppost protocol in the "Insert from URL" script step, so you ought to be able to post your XML at the SOAP service and get its reply into a field. Info here: http://help.filemaker.com/app/answers/detail/a_id/11966/kw/Post%20method%20t o%20send%20data Chris is right that writing a PHP intermediary is probably the best way to do this though, depending on what your requirements are. Glyn On 12/13/13 10:59 AM, "Jonathan Schwartz" wrote: > Off the subject... > > Has anyone had experience with setting up communications from FileMaker to > SOAP-based web services? > > This seems to be one of those "tip of the iceberg" type challenges. The > learning curve looks especially steep. > > Jonathan > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > 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 Fri Dec 13 12:17:53 2013 From: chris at iViking.org (Chris Hansen) Date: Fri Dec 13 12:13:07 2013 Subject: [FX.php List] Default Data Type in FX call Message-ID: Greetings list! I recently was emailed by someone who found that their FX instantiation was not working properly unless they explicitly specified a data type. The data type to be used should be handled by default if that parameter isn't set. Has anyone else seen this? Thanks! --Chris From headhoncho at customikesolutions.com Sun Dec 15 21:38:51 2013 From: headhoncho at customikesolutions.com (Head Honcho) Date: Sun Dec 15 21:33:59 2013 Subject: [FX.php List] OFF: Talking to SOAP Web Services In-Reply-To: References: Message-ID: Hi all, Unfortunately, it appears that FileMaker's implementation of httppost doesn't allow for custom headers which are necessary for a number of SOAP services. A feature request to FileMaker for this has been lodged! Regards Michael Ward -- Head Honcho, CustoMike Solutions Member, FileMaker Business Alliance & FileMaker Technical Network FileMaker 7 - 12 Certified Developer ph 0414 562 501 headhoncho@customikesolutions.com On 14/12/2013, at 3:38 AM, Glyn Devine wrote: > Jonathan: > > The biggest obstacle to FileMaker talking directly to a SOAP service was > that filemaker couldn't POST before. > > As of filemaker 13 you can use the httppost protocol in the "Insert from > URL" script step, so you ought to be able to post your XML at the SOAP > service and get its reply into a field. > > Info here: > http://help.filemaker.com/app/answers/detail/a_id/11966/kw/Post%20method%20t > o%20send%20data > > Chris is right that writing a PHP intermediary is probably the best way to > do this though, depending on what your requirements are. > > Glyn > > > On 12/13/13 10:59 AM, "Jonathan Schwartz" wrote: > >> Off the subject... >> >> Has anyone had experience with setting up communications from FileMaker to >> SOAP-based web services? >> >> This seems to be one of those "tip of the iceberg" type challenges. The >> learning curve looks especially steep. >> >> Jonathan >> >> Jonathan Schwartz >> jschwartz@exit445.com >> >> >> >> _______________________________________________ >> 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 Mon Dec 16 00:11:37 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Mon Dec 16 00:06:48 2013 Subject: [FX.php List] OFF: Talking to SOAP Web Services In-Reply-To: <06512B44-2CA0-4BE2-ABB4-587A08AFD726@exit445.com> References: <06512B44-2CA0-4BE2-ABB4-587A08AFD726@exit445.com> Message-ID: <2F4DD437-8A5E-4E24-8239-99AE28402037@bluecrocodile.co.nz> Hi Jonathan Depending on the version of FM that you're using the Beezwax WebServices plugin, although although no-longer under development and not officially supported in 12 does function as expected, and if it will read the WSDL of the web service in question is a very easy way to get SOAP working in FM. Failing that, I'd second Chris's view that you may well be better off writing an intermediary PHP layer - I've ended up having to do this for a number of clients in the past because of difficulties with the WSDL and/or security 'complication'. Cheers Steve > Off the subject... > > Has anyone had experience with setting up communications from FileMaker to SOAP-based web services? > > This seems to be one of those "tip of the iceberg" type challenges. The learning curve looks especially steep. > > Jonathan > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz From beverlyvoth at gmail.com Mon Dec 16 06:42:18 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Mon Dec 16 06:37:25 2013 Subject: [FX.php List] OFF: Talking to SOAP Web Services In-Reply-To: References: Message-ID: <8E11D30D-6C45-44A6-BEEF-5DFF27995128@gmail.com> ditto. More to SOAP than just http POSTing. :) Thus Chris' reply of letting PHP do the work is spot on! (yes the plug-ins work, but this IS the FX.php list, after all... ) Beverly On 15 Dec 2013, at 11:38 PM, Head Honcho wrote: > Hi all, > > Unfortunately, it appears that FileMaker's implementation of httppost doesn't allow for custom headers which are necessary for a number of SOAP services. > > A feature request to FileMaker for this has been lodged! > > Regards > > Michael Ward > -- > Head Honcho, CustoMike Solutions > Member, FileMaker Business Alliance & FileMaker Technical Network > FileMaker 7 - 12 Certified Developer > ph 0414 562 501 > headhoncho@customikesolutions.com > > On 14/12/2013, at 3:38 AM, Glyn Devine wrote: > >> Jonathan: >> >> The biggest obstacle to FileMaker talking directly to a SOAP service was >> that filemaker couldn't POST before. >> >> As of filemaker 13 you can use the httppost protocol in the "Insert from >> URL" script step, so you ought to be able to post your XML at the SOAP >> service and get its reply into a field. >> >> Info here: >> http://help.filemaker.com/app/answers/detail/a_id/11966/kw/Post%20method%20t >> o%20send%20data >> >> Chris is right that writing a PHP intermediary is probably the best way to >> do this though, depending on what your requirements are. >> >> Glyn >> >> >> On 12/13/13 10:59 AM, "Jonathan Schwartz" wrote: >> >>> Off the subject... >>> >>> Has anyone had experience with setting up communications from FileMaker to >>> SOAP-based web services? >>> >>> This seems to be one of those "tip of the iceberg" type challenges. The >>> learning curve looks especially steep. >>> >>> Jonathan >>> >>> Jonathan Schwartz >>> jschwartz@exit445.com >>> >>> >>> >>> _______________________________________________ >>> 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 dale.bengston at gmail.com Mon Dec 16 08:10:22 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Mon Dec 16 08:05:34 2013 Subject: [FX.php List] OFF: Talking to SOAP Web Services In-Reply-To: <8E11D30D-6C45-44A6-BEEF-5DFF27995128@gmail.com> References: <8E11D30D-6C45-44A6-BEEF-5DFF27995128@gmail.com> Message-ID: I second this (or is it thirding??) Let PHP do the work. Dale On Dec 16, 2013, at 7:42 AM, BEVERLY VOTH wrote: > ditto. More to SOAP than just http POSTing. :) > > Thus Chris' reply of letting PHP do the work is spot on! > > (yes the plug-ins work, but this IS the FX.php list, after all... ) > > Beverly > > > On 15 Dec 2013, at 11:38 PM, Head Honcho wrote: > >> Hi all, >> >> Unfortunately, it appears that FileMaker's implementation of httppost doesn't allow for custom headers which are necessary for a number of SOAP services. >> >> A feature request to FileMaker for this has been lodged! >> >> Regards >> >> Michael Ward >> -- >> Head Honcho, CustoMike Solutions >> Member, FileMaker Business Alliance & FileMaker Technical Network >> FileMaker 7 - 12 Certified Developer >> ph 0414 562 501 >> headhoncho@customikesolutions.com >> >> On 14/12/2013, at 3:38 AM, Glyn Devine wrote: >> >>> Jonathan: >>> >>> The biggest obstacle to FileMaker talking directly to a SOAP service was >>> that filemaker couldn't POST before. >>> >>> As of filemaker 13 you can use the httppost protocol in the "Insert from >>> URL" script step, so you ought to be able to post your XML at the SOAP >>> service and get its reply into a field. >>> >>> Info here: >>> http://help.filemaker.com/app/answers/detail/a_id/11966/kw/Post%20method%20t >>> o%20send%20data >>> >>> Chris is right that writing a PHP intermediary is probably the best way to >>> do this though, depending on what your requirements are. >>> >>> Glyn >>> >>> >>> On 12/13/13 10:59 AM, "Jonathan Schwartz" wrote: >>> >>>> Off the subject... >>>> >>>> Has anyone had experience with setting up communications from FileMaker to >>>> SOAP-based web services? >>>> >>>> This seems to be one of those "tip of the iceberg" type challenges. The >>>> learning curve looks especially steep. >>>> >>>> Jonathan >>>> >>>> Jonathan Schwartz >>>> jschwartz@exit445.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 lelandlong at me.com Mon Dec 16 09:38:57 2013 From: lelandlong at me.com (LELAND LONG) Date: Mon Dec 16 09:34:00 2013 Subject: [FX.php List] ShoutOut and a big Thank You Message-ID: <38764CBC-1A3B-49D5-B334-49A9CA1A5A97@me.com> Wanted to stop and give a shout out to the github user "matsuo" for fixing FX.php on FileMaker Server v13. We were forced to quickly move to a new FMSv13 server when our hosting provider's v12 Server decided it was time to crash way too many times per week. After a few hours we had all our staff back online and happily entering data into FM when it was discovered that all our FX.php dependent website pages were broken. Several hours of testing and backtracking resulted in a continued mystery with no hope in sight. Until running across this fix posted on github, that once implemented, resolved all issues and all is well again. https://github.com/yodarunamok/fxphp/commit/693a4f81e072220e30c15af3887a6cf2f8947de5#commitcomment-4872344 Whew! Leland Long I.T. Director Keller Interiors, Inc. lelandlong@kellerinteriors.com www.kellerinteriors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131216/fdf2c550/attachment.html From lelandlong at me.com Mon Dec 16 11:21:11 2013 From: lelandlong at me.com (LELAND LONG) Date: Mon Dec 16 11:16:15 2013 Subject: [FX.php List] Works in FX.php v4.2, breaks in v6 Message-ID: Quick question hopefully someone can point out to me. I've been using FX for many years now. When something works I don't mess with it. When I need to build a new set of webpages I usually copy over to the new site, pages from my last working site, and start tweaking; saves lot's of re-setting of everything up. I say this to maybe illuminate why I have run into this problem. I copy the new FX.php v6 library to a new website and start using my old code and things break. Here's a basic example of the old code that works fine in v4.2: $newSheet=new FX($serverIP,$webCompanionPort); $newSheet->SetDBData('Recruiting.fmp12', 'FX_NewRecuit'); $newSheet->AddDBParam('Name_First', $firstName); $newSheet->AddDBParam('Name_Last', $lastName); $newSheet->AddDBParam('-script', 'FX_NewApplicantScript'); $newSheetResult=$newSheet->FMNew(); $theError=$newSheetResult['errorCode']; if ($theError <> 0) { echo 'Error: '.$theError; } How can I modify this simple setup to make it work in v6 ? Plz and thank you. Leland Long From dale.bengston at gmail.com Mon Dec 16 11:32:00 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Mon Dec 16 11:27:07 2013 Subject: [FX.php List] Works in FX.php v4.2, breaks in v6 In-Reply-To: References: Message-ID: <7B8A506C-51A7-4F05-890E-F760FFDDA6A6@gmail.com> Hi Leland, In what way do ?things break?? Dale On Dec 16, 2013, at 12:21 PM, LELAND LONG wrote: > Quick question hopefully someone can point out to me. > > I've been using FX for many years now. When something works I don't mess with it. When I need to build a new set of webpages I usually copy over to the new site, pages from my last working site, and start tweaking; saves lot's of re-setting of everything up. > > I say this to maybe illuminate why I have run into this problem. > > I copy the new FX.php v6 library to a new website and start using my old code and things break. > Here's a basic example of the old code that works fine in v4.2: > > $newSheet=new FX($serverIP,$webCompanionPort); > $newSheet->SetDBData('Recruiting.fmp12', 'FX_NewRecuit'); > $newSheet->AddDBParam('Name_First', $firstName); > $newSheet->AddDBParam('Name_Last', $lastName); > $newSheet->AddDBParam('-script', 'FX_NewApplicantScript'); > $newSheetResult=$newSheet->FMNew(); > > $theError=$newSheetResult['errorCode']; > if ($theError <> 0) { echo 'Error: '.$theError; } > > How can I modify this simple setup to make it work in v6 ? > > Plz and thank you. > > Leland Long > > _______________________________________________ > 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 Mon Dec 16 11:33:15 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Mon Dec 16 11:28:14 2013 Subject: [FX.php List] Works in FX.php v4.2, breaks in v6 In-Reply-To: <7B8A506C-51A7-4F05-890E-F760FFDDA6A6@gmail.com> References: <7B8A506C-51A7-4F05-890E-F760FFDDA6A6@gmail.com> Message-ID: <4499EF29-252F-4EFA-B53A-E0044DD8F128@finalresort.org> What's wrong Dale, are your mind reading abilities turned off at the moment? ;-) 16 dec 2013 kl. 19.32 skrev Dale Bengston: > Hi Leland, > > In what way do ?things break?? > > Dale > > On Dec 16, 2013, at 12:21 PM, LELAND LONG wrote: > >> Quick question hopefully someone can point out to me. >> >> I've been using FX for many years now. When something works I don't mess with it. When I need to build a new set of webpages I usually copy over to the new site, pages from my last working site, and start tweaking; saves lot's of re-setting of everything up. >> >> I say this to maybe illuminate why I have run into this problem. >> >> I copy the new FX.php v6 library to a new website and start using my old code and things break. >> Here's a basic example of the old code that works fine in v4.2: >> >> $newSheet=new FX($serverIP,$webCompanionPort); >> $newSheet->SetDBData('Recruiting.fmp12', 'FX_NewRecuit'); >> $newSheet->AddDBParam('Name_First', $firstName); >> $newSheet->AddDBParam('Name_Last', $lastName); >> $newSheet->AddDBParam('-script', 'FX_NewApplicantScript'); >> $newSheetResult=$newSheet->FMNew(); >> >> $theError=$newSheetResult['errorCode']; >> if ($theError <> 0) { echo 'Error: '.$theError; } >> >> How can I modify this simple setup to make it work in v6 ? >> >> Plz and thank you. >> >> Leland Long >> >> _______________________________________________ >> 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 dale.bengston at gmail.com Mon Dec 16 11:39:13 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Mon Dec 16 11:34:20 2013 Subject: [FX.php List] Works in FX.php v4.2, breaks in v6 In-Reply-To: <4499EF29-252F-4EFA-B53A-E0044DD8F128@finalresort.org> References: <7B8A506C-51A7-4F05-890E-F760FFDDA6A6@gmail.com> <4499EF29-252F-4EFA-B53A-E0044DD8F128@finalresort.org> Message-ID: <874CB1ED-D092-474C-ACD2-E27B921E67A0@gmail.com> Leo, my mind-reading abilities only work to 32?F/0?C. It?s only 12?F/-11?C here today. ;-} Dale On Dec 16, 2013, at 12:33 PM, Leo R. Lundgren wrote: > What's wrong Dale, are your mind reading abilities turned off at the moment? ;-) > > > 16 dec 2013 kl. 19.32 skrev Dale Bengston: > >> Hi Leland, >> >> In what way do ?things break?? >> >> Dale >> >> On Dec 16, 2013, at 12:21 PM, LELAND LONG wrote: >> >>> Quick question hopefully someone can point out to me. >>> >>> I've been using FX for many years now. When something works I don't mess with it. When I need to build a new set of webpages I usually copy over to the new site, pages from my last working site, and start tweaking; saves lot's of re-setting of everything up. >>> >>> I say this to maybe illuminate why I have run into this problem. >>> >>> I copy the new FX.php v6 library to a new website and start using my old code and things break. >>> Here's a basic example of the old code that works fine in v4.2: >>> >>> $newSheet=new FX($serverIP,$webCompanionPort); >>> $newSheet->SetDBData('Recruiting.fmp12', 'FX_NewRecuit'); >>> $newSheet->AddDBParam('Name_First', $firstName); >>> $newSheet->AddDBParam('Name_Last', $lastName); >>> $newSheet->AddDBParam('-script', 'FX_NewApplicantScript'); >>> $newSheetResult=$newSheet->FMNew(); >>> >>> $theError=$newSheetResult['errorCode']; >>> if ($theError <> 0) { echo 'Error: '.$theError; } >>> >>> How can I modify this simple setup to make it work in v6 ? >>> >>> Plz and thank you. >>> >>> Leland Long >>> >>> _______________________________________________ >>> 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 lelandlong at me.com Mon Dec 16 12:30:27 2013 From: lelandlong at me.com (LELAND LONG) Date: Mon Dec 16 12:25:35 2013 Subject: [FX.php List] Re: FX.php_List Digest, Vol 111, Issue 21 In-Reply-To: <20131216182711.C8A63168C2DA@mail.iviking.org> References: <20131216182711.C8A63168C2DA@mail.iviking.org> Message-ID: <2060FA00-8700-4D55-B30D-242C63F33E5B@me.com> Well, it breaks in several ways, but let's try one problem at a time. The includes, in the header, had to be changed due to an apparent filename change: from: include_once('FX/FMErrors.php'); to: include_once('FX/FX_Error.php'); As soon as this was modified then my error handler generated an error. offending code: if ($newSheetResult['errorCode'] <> 0) { echo 'Sorry, but an error has occurred.'; Exit; } error message: "Fatal error: Cannot use object of type FX_Error as array" Again, this worked fine in v4.2 and breaks in v6... Leland Long On Dec 16, 2013, at 1:27 PM, fx.php_list-request@mail.iviking.org wrote: > In what way do ?things break?? > > Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131216/d429b47d/attachment.html From dale.bengston at gmail.com Mon Dec 16 12:40:13 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Mon Dec 16 12:35:21 2013 Subject: [FX.php List] FX.php_List Digest, Vol 111, Issue 21 In-Reply-To: <2060FA00-8700-4D55-B30D-242C63F33E5B@me.com> References: <20131216182711.C8A63168C2DA@mail.iviking.org> <2060FA00-8700-4D55-B30D-242C63F33E5B@me.com> Message-ID: Aha! Yes, the result of a failed query is a PHP object, not an array. So you?ll need to trap whether $newSheetResult is an object or not before you try to reference its contents. I do this be evaluating my result: if (is_object($newSheetResult)) { // There is an error; proceed accordingly. } else { //The query produced results; proceed accordingly. } I believe in the case that $newSheetResult is an error, the error code can be referenced like this: $newSheetResult->code Hope this helps, Dale On Dec 16, 2013, at 1:30 PM, LELAND LONG wrote: > Well, it breaks in several ways, but let's try one problem at a time. > > The includes, in the header, had to be changed due to an apparent filename change: > from: include_once('FX/FMErrors.php'); > to: include_once('FX/FX_Error.php'); > > As soon as this was modified then my error handler generated an error. > offending code: if ($newSheetResult['errorCode'] <> 0) { > echo 'Sorry, but an error has occurred.'; > Exit; > } > error message: "Fatal error: Cannot use object of type FX_Error as array" > > Again, this worked fine in v4.2 and breaks in v6... > > Leland Long > > > > On Dec 16, 2013, at 1:27 PM, fx.php_list-request@mail.iviking.org wrote: > >> In what way do ?things break?? >> >> Dale > > _______________________________________________ > 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/20131216/280e5bb6/attachment.html From bob at patin.com Thu Dec 19 09:14:24 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 19 09:09:12 2013 Subject: [FX.php List] Weird session variable issue Message-ID: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> I?ve got a site that collects a large amount of registration data from submitters; as they go through the process, I store the data in session variables, and then write it all to Filemaker at the end if their credit card is successfully charged. For some reason, some of the records come up missing data?sometimes a few fields, sometimes almost all fields. I don?t destroy their session until the final step, *after* the FileMaker records are generated. We?re seeing this in Internet Explorer 8 and 9, and maybe other browser versions, but right now it seems to be mainly in IE. Question: Since I?m storing a ton of values in session variables, I?m beginning to wonder if one or more variables are storing a character that could be messing things up. I don?t think there are restricted characters in session variables, but here are some questions: 1. Is there a limit to how much text could be stored in a set of 60+ session variables? 2. Is there a limit to the # of session variables that can be used in one session? If so, how is this determined? 3. Are there any restricted characters that must NOT be stored in a session variable? For example, ampersand, apostrophe, etc.? This issue is driving us crazy; any help would be greatly appreciated. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From leo at finalresort.org Thu Dec 19 09:38:37 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Dec 19 09:33:18 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: It's very unlikely that the data you store in your session variables is the culpruit. AFAIK you can store binary data or whatever you want, it's all serialized. The PHP manual has more info about the session storage (there are by the way different types of storage). What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing. 1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing? 2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP. 3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those. There's a lot of information about the things you ask about over at Google. Either case, the first thing you should do is isolate the issue so that you know where it goes wrong. Then you can start figuring out why it goes wrong. Regards, Leo 19 dec 2013 kl. 17.14 skrev Bob Patin: > I?ve got a site that collects a large amount of registration data from submitters; as they go through the process, I store the data in session variables, and then write it all to Filemaker at the end if their credit card is successfully charged. > > For some reason, some of the records come up missing data?sometimes a few fields, sometimes almost all fields. I don?t destroy their session until the final step, *after* the FileMaker records are generated. > > We?re seeing this in Internet Explorer 8 and 9, and maybe other browser versions, but right now it seems to be mainly in IE. > > Question: Since I?m storing a ton of values in session variables, I?m beginning to wonder if one or more variables are storing a character that could be messing things up. I don?t think there are restricted characters in session variables, but here are some questions: > > 1. Is there a limit to how much text could be stored in a set of 60+ session variables? > 2. Is there a limit to the # of session variables that can be used in one session? If so, how is this determined? > 3. Are there any restricted characters that must NOT be stored in a session variable? For example, ampersand, apostrophe, etc.? > > This issue is driving us crazy; any help would be greatly appreciated. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/ba662d21/attachment-0001.html From bob at patin.com Thu Dec 19 09:57:56 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 19 09:52:45 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: Leo, Thanks for the reply; > What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing. Well, I did that; I added a 2nd function to write to a test database after each step of the process. What is interesting is that when this error occurs, even after just the first form (there are about 4 steps to the application process), we sometimes get blank fields on the test database?which indicates to me that FileMaker is creating the record properly, but there isn?t any data in the session variables. It?s a fairly simple process: I retrieve the form values, save them all to session variables, and then in my test function I retrieve these and write them to a test record. i do this in 4 spots in the process, to see if the data is being retained, and to see where it breaks down. It?s almost as though the session variables just aren?t being written at all... > > 1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing? not really that much, but a lot of values; these are names, address, that sort of thing; none of the session variables contain more than about 30-50 characters, I would guess. > 2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP. > 3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those. That?s what I thought too, but thought I?d ask? The other strange thing is that I?m using JQuery validate() to make sure users can?t leave a form without filling it out completely, which ensures that I?m capturing all the values I need to capture. However, I?m beginning to wonder if the GET that I?m using in JQuery isn?t actually retrieving all the values. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker 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/20131219/d69fea42/attachment.html From beverlyvoth at gmail.com Thu Dec 19 10:00:36 2013 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Thu Dec 19 09:55:31 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: <5B49F644-9353-42B4-919D-205C4EE079F7@gmail.com> I use a "pre-order" table to save these kinds of values. Move to "orders" when cc is valid, delete if not. If they close session before getting to this point, have a schedule periodically delete the pre-orders past a certain date. Some clients actually like to capture what was "pre-ordered" even if the cc was not completed. It's a way to track what gets viewed on a cart-type site. Beverly On 19 Dec 2013, at 11:14 AM, Bob Patin wrote: > I?ve got a site that collects a large amount of registration data from submitters; as they go through the process, I store the data in session variables, and then write it all to Filemaker at the end if their credit card is successfully charged. > > For some reason, some of the records come up missing data?sometimes a few fields, sometimes almost all fields. I don?t destroy their session until the final step, *after* the FileMaker records are generated. > > We?re seeing this in Internet Explorer 8 and 9, and maybe other browser versions, but right now it seems to be mainly in IE. > > Question: Since I?m storing a ton of values in session variables, I?m beginning to wonder if one or more variables are storing a character that could be messing things up. I don?t think there are restricted characters in session variables, but here are some questions: > > 1. Is there a limit to how much text could be stored in a set of 60+ session variables? > 2. Is there a limit to the # of session variables that can be used in one session? If so, how is this determined? > 3. Are there any restricted characters that must NOT be stored in a session variable? For example, ampersand, apostrophe, etc.? > > This issue is driving us crazy; any help would be greatly appreciated. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 leo at finalresort.org Thu Dec 19 10:03:52 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Dec 19 09:58:33 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: <9F54399F-2881-487A-B215-AE6553F02C35@finalresort.org> 19 dec 2013 kl. 17.57 skrev Bob Patin: > Leo, > > Thanks for the reply; No problem. >> What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing. > > Well, I did that; I added a 2nd function to write to a test database after each step of the process. What is interesting is that when this error occurs, even after just the first form (there are about 4 steps to the application process), we sometimes get blank fields on the test database?which indicates to me that FileMaker is creating the record properly, but there isn?t any data in the session variables. > > It?s a fairly simple process: I retrieve the form values, save them all to session variables, and then in my test function I retrieve these and write them to a test record. i do this in 4 spots in the process, to see if the data is being retained, and to see where it breaks down. It?s almost as though the session variables just aren?t being written at all... Did you verify that the data you try to fetch from the session variables is indeed in those session variables (assuming they exist) right before you send it off to the database? >> 1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing? > > not really that much, but a lot of values; these are names, address, that sort of thing; none of the session variables contain more than about 30-50 characters, I would guess. Yeah, this should not be a problem at all. >> 2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP. >> 3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those. > > That?s what I thought too, but thought I?d ask? > > The other strange thing is that I?m using JQuery validate() to make sure users can?t leave a form without filling it out completely, which ensures that I?m capturing all the values I need to capture. Please note that this only ensures it on the client side; It's still possible to circumvent this and potentially cause havoc if the server side doesn't to the final validation needed to make sure that you have good and required data to work with. > However, I?m beginning to wonder if the GET that I?m using in JQuery isn?t actually retrieving all the values. You'll be closer to knowing this if you know for sure what exists on the server side and in the code that runs when the data seems to be missing. > Thanks, > > Bob Patin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/730195a6/attachment.html From bob at patin.com Thu Dec 19 10:08:36 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 19 10:03:23 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: <5B49F644-9353-42B4-919D-205C4EE079F7@gmail.com> References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> <5B49F644-9353-42B4-919D-205C4EE079F7@gmail.com> Message-ID: <8D522309-C852-447F-B8E1-0C7345F59938@patin.com> On Dec 19, 2013, at 11:00 AM, BEVERLY VOTH wrote: > I use a "pre-order" table to save these kinds of values. Move to "orders" when cc is valid, delete if not. If they close session before getting to this point, have a schedule periodically delete the pre-orders past a certain date. Some clients actually like to capture what was "pre-ordered" even if the cc was not completed. It's a way to track what gets viewed on a cart-type site. That?s what I used to do, but went to this method so that I wasn?t creating records for orphaned registrations. Then, when we started seeing these anomalies (3 out of 100, if I had to guess?still far too many), I added a test DB and a 2nd WRITE function so that I could write after each form submission, so that we?d have a trail and hopefully get an indication of where it?s breaking down. My next move is going to be to use the test DB to write to, then retrieve it at the end and transfer it to the actual database, circumventing session variables? but this shouldn?t be necessary, and that?s what is so disturbing. Bob Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker 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/20131219/c029f1ab/attachment-0001.html From adenman at tmea.org Thu Dec 19 10:31:20 2013 From: adenman at tmea.org (Andrew Denman) Date: Thu Dec 19 10:26:11 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: You mentioned using a GET request with your jQuery call. Could you be running into URL length restrictions? http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers Andrew Denman From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Thursday, December 19, 2013 10:58 AM To: FX.php Discussion List Subject: Re: [FX.php List] Weird session variable issue Leo, Thanks for the reply; What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing. Well, I did that; I added a 2nd function to write to a test database after each step of the process. What is interesting is that when this error occurs, even after just the first form (there are about 4 steps to the application process), we sometimes get blank fields on the test database-which indicates to me that FileMaker is creating the record properly, but there isn't any data in the session variables. It's a fairly simple process: I retrieve the form values, save them all to session variables, and then in my test function I retrieve these and write them to a test record. i do this in 4 spots in the process, to see if the data is being retained, and to see where it breaks down. It's almost as though the session variables just aren't being written at all... 1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing? not really that much, but a lot of values; these are names, address, that sort of thing; none of the session variables contain more than about 30-50 characters, I would guess. 2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP. 3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those. That's what I thought too, but thought I'd ask... The other strange thing is that I'm using JQuery validate() to make sure users can't leave a form without filling it out completely, which ensures that I'm capturing all the values I need to capture. However, I'm beginning to wonder if the GET that I'm using in JQuery isn't actually retrieving all the values. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin - FileMaker Consulting FileMaker Hosting for all versions of FileMaker 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/20131219/6e6707f0/attachment.html From lelandlong at me.com Thu Dec 19 10:32:57 2013 From: lelandlong at me.com (LELAND LONG) Date: Thu Dec 19 10:27:55 2013 Subject: [FX.php List] Works in FX.php v4.2, breaks in v6 In-Reply-To: <20131219163319.F18831691432@mail.iviking.org> References: <20131219163319.F18831691432@mail.iviking.org> Message-ID: <7392598B-E43B-46D0-9B42-B2A40B6D168B@me.com> Dale, it does help thank you. According to the documentation included with the current FX.php v6 build, FXDataFormat.pdf, page 1: "Conventions used: + $ReturnedData is used to signify the array containing the data returned by a query...." and page 3: "echo $ReturnedData['errorCode']; ...." So, am I to assume that this documentation is now depreciated and no longer applies? Oversight perhaps? Newer documentation available? Leland Long On Dec 19, 2013, at 11:33 AM, fx.php_list-request@mail.iviking.org wrote: > Aha! Yes, the result of a failed query is a PHP object, not an array. So you?ll need to trap whether $newSheetResult is an object or not before you try to reference its contents. I do this be evaluating my result: > > if (is_object($newSheetResult)) > { > // There is an error; proceed accordingly. > > } > else > { > //The query produced results; proceed accordingly. > > } > > I believe in the case that $newSheetResult is an error, the error code can be referenced like this: > > $newSheetResult->code > > Hope this helps, > Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/c1c99d11/attachment-0001.html From bob at patin.com Thu Dec 19 10:37:36 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 19 10:32:23 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: Good point? from the link you sent, it looks like anything over 250 characters might fail? then, in the same thread, someone said that microsoft says the maximum URL length is 2083 characters, which we?re definitely not exceeding. Here?s the other thing about this error that is so strange: they?ve had over 700 registrations, about 80% of which are done with Internet Explorer (I have a function that retrieves their browser type and version and writes it into their registration); out of these 700, I would guess that about 20 have had these anomalies. To make it even stranger, the anomaly isn?t always the same; sometimes we have partial data missing, sometimes ALL the data is missing yet their record gets created. This means that FileMaker didn?t throw an error in generating the record?it just didn?t have anything to write, which points to the session variables. I?m going to have to rewrite the app so that it uses the temp table all the time? exactly what I tried to avoid when I designed it. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 19, 2013, at 11:31 AM, Andrew Denman wrote: > You mentioned using a GET request with your jQuery call. Could you be running into URL length restrictions? > > http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers > > > Andrew Denman > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin > Sent: Thursday, December 19, 2013 10:58 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Weird session variable issue > > Leo, > > Thanks for the reply; > > What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing. > > Well, I did that; I added a 2nd function to write to a test database after each step of the process. What is interesting is that when this error occurs, even after just the first form (there are about 4 steps to the application process), we sometimes get blank fields on the test database?which indicates to me that FileMaker is creating the record properly, but there isn?t any data in the session variables. > > It?s a fairly simple process: I retrieve the form values, save them all to session variables, and then in my test function I retrieve these and write them to a test record. i do this in 4 spots in the process, to see if the data is being retained, and to see where it breaks down. It?s almost as though the session variables just aren?t being written at all... > > > 1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing? > > not really that much, but a lot of values; these are names, address, that sort of thing; none of the session variables contain more than about 30-50 characters, I would guess. > > > 2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP. > 3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those. > > That?s what I thought too, but thought I?d ask? > > The other strange thing is that I?m using JQuery validate() to make sure users can?t leave a form without filling it out completely, which ensures that I?m capturing all the values I need to capture. However, I?m beginning to wonder if the GET that I?m using in JQuery isn?t actually retrieving all the values. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/4ad4d898/attachment.html From dale.bengston at gmail.com Thu Dec 19 10:38:24 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Dec 19 10:33:19 2013 Subject: [FX.php List] Works in FX.php v4.2, breaks in v6 In-Reply-To: <7392598B-E43B-46D0-9B42-B2A40B6D168B@me.com> References: <20131219163319.F18831691432@mail.iviking.org> <7392598B-E43B-46D0-9B42-B2A40B6D168B@me.com> Message-ID: Hi Leeland, I ran into this same problem several years ago, at least as far back as v4.5.1. I guess the doc has been out of date for some time. Dale On Dec 19, 2013, at 11:32 AM, LELAND LONG wrote: > Dale, it does help thank you. > > According to the documentation included with the current FX.php v6 build, FXDataFormat.pdf, page 1: > "Conventions used: > + $ReturnedData is used to signify the array containing the data returned by a query...." > > and page 3: > "echo $ReturnedData['errorCode']; ...." > > So, am I to assume that this documentation is now depreciated and no longer applies? Oversight perhaps? Newer documentation available? > > Leland Long > > > On Dec 19, 2013, at 11:33 AM, fx.php_list-request@mail.iviking.org wrote: > >> Aha! Yes, the result of a failed query is a PHP object, not an array. So you?ll need to trap whether $newSheetResult is an object or not before you try to reference its contents. I do this be evaluating my result: >> >> if (is_object($newSheetResult)) >> { >> // There is an error; proceed accordingly. >> >> } >> else >> { >> //The query produced results; proceed accordingly. >> >> } >> >> I believe in the case that $newSheetResult is an error, the error code can be referenced like this: >> >> $newSheetResult->code >> >> Hope this helps, >> Dale > > _______________________________________________ > 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/20131219/f88c00e8/attachment-0001.html From adenman at tmea.org Thu Dec 19 10:39:15 2013 From: adenman at tmea.org (Andrew Denman) Date: Thu Dec 19 10:34:04 2013 Subject: [FX.php List] Works in FX.php v4.2, breaks in v6 In-Reply-To: <7392598B-E43B-46D0-9B42-B2A40B6D168B@me.com> References: <20131219163319.F18831691432@mail.iviking.org> <7392598B-E43B-46D0-9B42-B2A40B6D168B@me.com> Message-ID: It still applies, but only for FileMaker generated errors. The error you are encountering is happening at the web server level, which returns an FX error object. Here's my error trapping code to catch both cases: // See if there's an error if(FX::isError($ReturnedData) || $ReturnedData['errorCode'] != 0 ){ if(FX::isError($ReturnedData)){ $errorMsg = "The server may be down.
"; $errorMsg .= $EnterData->getMessage(); }else{ require_once($_SERVER['DOCUMENT_ROOT'] . '\includes\FX\FMErrors.php'); //$errorsList is error array name $errorMsg = $errorsList[$ReturnedData['errorCode']]; } }else{ //OK! } Andrew Denman From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of LELAND LONG Sent: Thursday, December 19, 2013 11:33 AM To: fx.php_list@mail.iviking.org Subject: Re: [FX.php List] Works in FX.php v4.2, breaks in v6 Dale, it does help thank you. According to the documentation included with the current FX.php v6 build, FXDataFormat.pdf, page 1: "Conventions used: + $ReturnedData is used to signify the array containing the data returned by a query...." and page 3: "echo $ReturnedData['errorCode']; ...." So, am I to assume that this documentation is now depreciated and no longer applies? Oversight perhaps? Newer documentation available? Leland Long On Dec 19, 2013, at 11:33 AM, fx.php_list-request@mail.iviking.org wrote: Aha! Yes, the result of a failed query is a PHP object, not an array. So you'll need to trap whether $newSheetResult is an object or not before you try to reference its contents. I do this be evaluating my result: if (is_object($newSheetResult)) { // There is an error; proceed accordingly. } else { //The query produced results; proceed accordingly. } I believe in the case that $newSheetResult is an error, the error code can be referenced like this: $newSheetResult->code Hope this helps, Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/f38f3642/attachment.html From dale.bengston at gmail.com Thu Dec 19 10:44:44 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Dec 19 10:39:41 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: Hi Bob, I?m following the same idea as Andrew: it?s a special character in the form data, or the data is creating a long URL that breaks GET. Either explanation would explain why it?s breaking before you get to storing stuff in $_SESSION. I would begin by changing the jQuery call from GET to POST and see if it clears up the problem. Dale On Dec 19, 2013, at 11:37 AM, Bob Patin wrote: > Good point? from the link you sent, it looks like anything over 250 characters might fail? then, in the same thread, someone said that microsoft says the maximum URL length is 2083 characters, which we?re definitely not exceeding. > > Here?s the other thing about this error that is so strange: they?ve had over 700 registrations, about 80% of which are done with Internet Explorer (I have a function that retrieves their browser type and version and writes it into their registration); out of these 700, I would guess that about 20 have had these anomalies. > > To make it even stranger, the anomaly isn?t always the same; sometimes we have partial data missing, sometimes ALL the data is missing yet their record gets created. This means that FileMaker didn?t throw an error in generating the record?it just didn?t have anything to write, which points to the session variables. > > I?m going to have to rewrite the app so that it uses the temp table all the time? exactly what I tried to avoid when I designed it. > > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > On Dec 19, 2013, at 11:31 AM, Andrew Denman wrote: > >> You mentioned using a GET request with your jQuery call. Could you be running into URL length restrictions? >> >> http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers >> >> >> Andrew Denman >> >> From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin >> Sent: Thursday, December 19, 2013 10:58 AM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Weird session variable issue >> >> Leo, >> >> Thanks for the reply; >> >> What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing. >> >> Well, I did that; I added a 2nd function to write to a test database after each step of the process. What is interesting is that when this error occurs, even after just the first form (there are about 4 steps to the application process), we sometimes get blank fields on the test database?which indicates to me that FileMaker is creating the record properly, but there isn?t any data in the session variables. >> >> It?s a fairly simple process: I retrieve the form values, save them all to session variables, and then in my test function I retrieve these and write them to a test record. i do this in 4 spots in the process, to see if the data is being retained, and to see where it breaks down. It?s almost as though the session variables just aren?t being written at all... >> >> >> 1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing? >> >> not really that much, but a lot of values; these are names, address, that sort of thing; none of the session variables contain more than about 30-50 characters, I would guess. >> >> >> 2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP. >> 3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those. >> >> That?s what I thought too, but thought I?d ask? >> >> The other strange thing is that I?m using JQuery validate() to make sure users can?t leave a form without filling it out completely, which ensures that I?m capturing all the values I need to capture. However, I?m beginning to wonder if the GET that I?m using in JQuery isn?t actually retrieving all the values. >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> FileMaker 9, 10, 11 & 12 Certified Developer >> http://www.longtermsolutions.com >> - >> iChat: bobpatin@me.com >> Twitter: bobpatin >> ? >> FileMaker Consulting >> FileMaker Hosting 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/24203eb3/attachment-0001.html From leo at finalresort.org Thu Dec 19 10:49:31 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Dec 19 10:44:13 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: Bob, 19 dec 2013 kl. 18.37 skrev Bob Patin: > Good point? from the link you sent, it looks like anything over 250 characters might fail? then, in the same thread, someone said that microsoft says the maximum URL length is 2083 characters, which we?re definitely not exceeding. > > Here?s the other thing about this error that is so strange: they?ve had over 700 registrations, about 80% of which are done with Internet Explorer (I have a function that retrieves their browser type and version and writes it into their registration); out of these 700, I would guess that about 20 have had these anomalies. > > To make it even stranger, the anomaly isn?t always the same; sometimes we have partial data missing, sometimes ALL the data is missing yet their record gets created. This means that FileMaker didn?t throw an error in generating the record?it just didn?t have anything to write, which points to the session variables. > > I?m going to have to rewrite the app so that it uses the temp table all the time? exactly what I tried to avoid when I designed it. Why don't you simply take the advice from this thread and actually figure out the problem instead of creating another unwanted workaround for a problem that clearly has a cause? I agree with you completely; You should really not have to change the entire architecture of your application just because of this problem. There's a reason it happens, you just have to find it. It seems to me that you're not doing the debugging that is needed. For example, to verify whether the URL length issue is a problem, you'd simply log the data that comes into the application and investigate if it's cut off at that point already, in the case when data isn't saved the way you expect. This is on the same topic that I mentioned initially; Track the data and flow of things through the request cycle, in order to find the place where things go wrong. Again, it's all about isolating the matter to a smaller part of your application, verifying that the what you think is in front of you is really the case (e.g. variables of any kind having the data you think, business logic taking the path you think, etc), and then you should be able to find that the problem happens in one and the same place, and then you're very much closer to an actual solution instead of a workaround. It's just code. Short of memory corruption and other "off" things, which would probably cause other types of symptoms, it's just code that does what you tell it to. Just saying. I mean, your problem is that data is "disappearing". It doesn't just magically do that at random places in your code. One of the first things you want to know when having a problem like this is at what point data isn't what you expect it to be. One of the last things you'd want to do is changing the architecture without even knowing why. Regards, Leo > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11 & 12 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > On Dec 19, 2013, at 11:31 AM, Andrew Denman wrote: > >> You mentioned using a GET request with your jQuery call. Could you be running into URL length restrictions? >> >> http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers >> >> >> Andrew Denman >> >> From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin >> Sent: Thursday, December 19, 2013 10:58 AM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Weird session variable issue >> >> Leo, >> >> Thanks for the reply; >> >> What you should do is debug the application source code so that you isolate the matter. Log the state of the session and its data at strategic points during the requests, so that you can tell exactly WHEN the data goes missing. >> >> Well, I did that; I added a 2nd function to write to a test database after each step of the process. What is interesting is that when this error occurs, even after just the first form (there are about 4 steps to the application process), we sometimes get blank fields on the test database?which indicates to me that FileMaker is creating the record properly, but there isn?t any data in the session variables. >> >> It?s a fairly simple process: I retrieve the form values, save them all to session variables, and then in my test function I retrieve these and write them to a test record. i do this in 4 spots in the process, to see if the data is being retained, and to see where it breaks down. It?s almost as though the session variables just aren?t being written at all... >> >> >> 1. There are practical and resource technical limits to how much data you store, but unless you have a lot of data that's hardly relevant. How much data are you storing? >> >> not really that much, but a lot of values; these are names, address, that sort of thing; none of the session variables contain more than about 30-50 characters, I would guess. >> >> >> 2. Again hardly relevant unless you are doing something extreme. How many variables are you storing in your session? Basically this and the former point depends mainly on the amount of memory available to PHP. >> 3. I'm not aware of anything out of the ordinary that you cannot store. Definately not one of those. >> >> That?s what I thought too, but thought I?d ask? >> >> The other strange thing is that I?m using JQuery validate() to make sure users can?t leave a form without filling it out completely, which ensures that I?m capturing all the values I need to capture. However, I?m beginning to wonder if the GET that I?m using in JQuery isn?t actually retrieving all the values. >> >> Thanks, >> >> Bob Patin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/999bb5b3/attachment.html From bob at patin.com Thu Dec 19 11:02:45 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 19 10:57:32 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> Message-ID: <64E71847-7F1C-4684-84CE-28328127DA8D@patin.com> > Why don't you simply take the advice from this thread and actually figure out the problem instead of creating another unwanted workaround for a problem that clearly has a cause? I agree with you completely; You should really not have to change the entire architecture of your application just because of this problem. There's a reason it happens, you just have to find it. I agree, but I just can?t find it. I added a 2nd function to write to a test DB after each form (there are essentially 5 stages when data gets pulled in and written); when this problem occurs, *nothing* gets written into the test DB. Here?s my simple process: FORM gets submitted (using JQuery) and GET; Values are saved into session variables; Function is called which writes these session vars to a test DB This fails when this error occurs. I?ve tested on my Mac dozens of times, with various browsers; I?ve tested on Windows 7, I?ve had a consultant test on XP, I?ve had the client test on her machine using Windows 8. In *all* of our tests, it works perfectly. > > It seems to me that you're not doing the debugging that is needed. For example, to verify whether the URL length issue is a problem, you'd simply log the data that comes into the application and investigate if it's cut off at that point already, in the case when data isn't saved the way you expect. This is on the same topic that I mentioned initially; Track the data and flow of things through the request cycle, in order to find the place where things go wrong. But the length of the URL is nowhere near 2000 characters; if I had to guess, I?d say it?s 200-300 characters. > > Again, it's all about isolating the matter to a smaller part of your application, verifying that the what you think is in front of you is really the case (e.g. variables of any kind having the data you think, business logic taking the path you think, etc), and then you should be able to find that the problem happens in one and the same place, and then you're very much closer to an actual solution instead of a workaround. It's just code. Short of memory corruption and other "off" things, which would probably cause other types of symptoms, it's just code that does what you tell it to. > > Just saying. I mean, your problem is that data is "disappearing". It doesn't just magically do that at random places in your code. One of the first things you want to know when having a problem like this is at what point data isn't what you expect it to be. One of the last things you'd want to do is changing the architecture without even knowing why. I agree with all that, but if I can?t duplicate it, I can?t spot it; I can?t even get back anything amiss when I test, so that?s why I?m totally stumped. If I could duplicate it I could find and fix it; without its occurring on my machines, I don?t know where to turn next. I went through the whole site to make sure that I didn?t have a session_destroy() command somewhere that it didn?t need to be, and confirmed that I?m not destroying the session anywhere but at the end of the process. The other thing that I know is that FileMaker isn?t failing to create a record; I have error code in there that would email me if that were to happen, but it does write a record?it just doesn?t have anything in it. I agree that it would be better to figure out the issue, but when 90% of the registrations succeed, and when I can?t duplicate the issue (nor can other testers), I don?t know what else to do? Frustrating? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker 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/20131219/d5a5d6c9/attachment-0001.html From bob at patin.com Thu Dec 19 11:10:00 2013 From: bob at patin.com (Bob Patin) Date: Thu Dec 19 11:04:47 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: <64E71847-7F1C-4684-84CE-28328127DA8D@patin.com> References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> <64E71847-7F1C-4684-84CE-28328127DA8D@patin.com> Message-ID: <22F580A1-E2A8-4B83-85F3-A7043E29F4BF@patin.com> Here?s an interesting thing I just determined: I was wondering if an ampersand might make it fail, so I created a simple form with 2 fields; the form uses a GET method. In the first field, I entered Smith & Jones In the 2nd field I entered Brown On my processing page, I got back Smith & Jones Brown ? just as it was entered (I added a carriage return in the process page for clarity). So? putting an ampersand didn?t break the process. I saw that my URL had the HTML-equivalent of the ampersand (which is %26) instead of an actual ampersand, so I suspect that?s why it didn?t break the form submission. I then tested this: in my JQuery, I displayed the URL as it?s being sent after form submission, and I get this: name_first=Bob&name_last=Patin&company=Longterm+%26+Solutions&address1= and so on? note that the ampersand between ?Longterm? and ?Solutions? is HTML-encoded, which means that it?s not going to break. To make sure that?s not the problem, I finished the registration and it wrote to Filemaker without any error. ! Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11 & 12 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From leo at finalresort.org Thu Dec 19 11:33:53 2013 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Dec 19 11:28:36 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: <64E71847-7F1C-4684-84CE-28328127DA8D@patin.com> References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> <64E71847-7F1C-4684-84CE-28328127DA8D@patin.com> Message-ID: 19 dec 2013 kl. 19.02 skrev Bob Patin: >> Why don't you simply take the advice from this thread and actually figure out the problem instead of creating another unwanted workaround for a problem that clearly has a cause? I agree with you completely; You should really not have to change the entire architecture of your application just because of this problem. There's a reason it happens, you just have to find it. > > I agree, but I just can?t find it. I added a 2nd function to write to a test DB after each form (there are essentially 5 stages when data gets pulled in and written); when this problem occurs, *nothing* gets written into the test DB. Here?s my simple process: > > FORM gets submitted (using JQuery) and GET; > Values are saved into session variables; > Function is called which writes these session vars to a test DB > > This fails when this error occurs. Yeah, so one of the things you want to do is simply track the data through this process. We know that in the end the data isn't "there". But at which point does it "disappear"? That's what you want to know. On the topic of isolating the matter, there are many places to checkpoint the data, but here are a few: > FORM gets submitted (using JQuery) and GET; 1) Here - What data does the server see/get (and I mean right at the start of the processing of the request)? Does it get what you expect, or does the problem happen this early? > Values are saved into session variables; 2) Here - Assuming there was actually something to save (depending on #1), was the data really put in the session variables the way you expect? Can you access/dump the session variables and see the data in there, the way you expect it to have been saved in the session variables? > Function is called which writes these session vars to a test DB 3) Here - At least two things; At the point where you give the data to FX.php, is the data you expect what is really handed over, or has it "disappeared"? Inside FX.php, is it really sending the data that is expected to be sent (short of network traffic checking, this is as close to the PHP -> FM transaction as you can get, AFAIK)? See what I mean? Just adding that test function you added doesn't answer any of the questions above - all it tells you (when you're not seeing the data in your FM tables) is that "at some point after you pressed the submit button in the browser, and until you checked the FM table, the data was lost". As you read that sentence you'll realize that this did nothing to isolate the matter. What you need to do is break down the task/process that you have a problem with into smaller pieces, and then inspect and verify state and data in them (starting with one, either one that is suspect or just the middle one to get the most isolation done). Then do that again and again until you know that "OK, before X happens data is fine, and after X data is no longer fine - I wonder why, let's look closer at X" (X being code, a request of some sort, or whatever). To get answers to the above questions the most straight forward way is to simply dump the appropriate values. E.g. $_GET (if that's what you're using, $_SESSION, etc). If you can reproduce the problem on demand that's great, but as I understand it you can't. Since the problem happens randomly, when you might not be looking, it's a good idea to log the debugging info you generate into a file or similar (I most often simply use the error log for PHP, e.g. error_log()). Then you can track the entire process from when a user starts the four steps and should be able to find out where it happens. I hope that makes sense. I'm trying to convey understanding of how to approach problems like this systematically (although what I wrote doesn't cover all of the things that one should consider/check/do). > I?ve tested on my Mac dozens of times, with various browsers; I?ve tested on Windows 7, I?ve had a consultant test on XP, I?ve had the client test on her machine using Windows 8. In *all* of our tests, it works perfectly. >> >> It seems to me that you're not doing the debugging that is needed. For example, to verify whether the URL length issue is a problem, you'd simply log the data that comes into the application and investigate if it's cut off at that point already, in the case when data isn't saved the way you expect. This is on the same topic that I mentioned initially; Track the data and flow of things through the request cycle, in order to find the place where things go wrong. > > But the length of the URL is nowhere near 2000 characters; if I had to guess, I?d say it?s 200-300 characters. >> >> Again, it's all about isolating the matter to a smaller part of your application, verifying that the what you think is in front of you is really the case (e.g. variables of any kind having the data you think, business logic taking the path you think, etc), and then you should be able to find that the problem happens in one and the same place, and then you're very much closer to an actual solution instead of a workaround. It's just code. Short of memory corruption and other "off" things, which would probably cause other types of symptoms, it's just code that does what you tell it to. >> >> Just saying. I mean, your problem is that data is "disappearing". It doesn't just magically do that at random places in your code. One of the first things you want to know when having a problem like this is at what point data isn't what you expect it to be. One of the last things you'd want to do is changing the architecture without even knowing why. > > I agree with all that, but if I can?t duplicate it, I can?t spot it; I can?t even get back anything amiss when I test, so that?s why I?m totally stumped. Generating debug data and logging it so that you can go back and see the debug data once you know the problem has occurred, is what you need to do if you can't summon the problem at will. Ask yourself questions like "At point X in the application, does $foo contain what I expect it to contain?". If you cannot answer that question with 100% certainty (yes/no), then ask yourself "How can I investigate it?" and then you'll find yourself generating debug data. > If I could duplicate it I could find and fix it; without its occurring on my machines, I don?t know where to turn next. I went through the whole site to make sure that I didn?t have a session_destroy() command somewhere that it didn?t need to be, and confirmed that I?m not destroying the session anywhere but at the end of the process. > > The other thing that I know is that FileMaker isn?t failing to create a record; I have error code in there that would email me if that were to happen, but it does write a record?it just doesn?t have anything in it. Even if FM isn't failing creating a record, we don't know if it's actually getting any data from the PHP side. I would start on the PHP side though, verifying that the data survives until it is to be fired off to the database. > I agree that it would be better to figure out the issue, but when 90% of the registrations succeed, and when I can?t duplicate the issue (nor can other testers), I don?t know what else to do? > > Frustrating? > > Bob Patin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20131219/55d786e7/attachment.html From chris at iViking.org Thu Dec 19 12:13:45 2013 From: chris at iViking.org (Chris Hansen) Date: Thu Dec 19 12:08:36 2013 Subject: [FX.php List] Weird session variable issue In-Reply-To: References: <0D4E0020-B31E-451A-A013-3CC34765DD19@patin.com> <64E71847-7F1C-4684-84CE-28328127DA8D@patin.com> Message-ID: Bob, Note that PHP has a function -- error_log() -- that can be used to write a string to the server's error log. This might be a nice sanity check to ensure that the data is there before attempting to write to FileMaker. HTH --Chris On Dec 19, 2013, at 11:33 AM, Leo R. Lundgren wrote: > > 19 dec 2013 kl. 19.02 skrev Bob Patin: > >>> Why don't you simply take the advice from this thread and actually figure out the problem instead of creating another unwanted workaround for a problem that clearly has a cause? I agree with you completely; You should really not have to change the entire architecture of your application just because of this problem. There's a reason it happens, you just have to find it. >> >> I agree, but I just can?t find it. I added a 2nd function to write to a test DB after each form (there are essentially 5 stages when data gets pulled in and written); when this problem occurs, *nothing* gets written into the test DB. Here?s my simple process: >> >> FORM gets submitted (using JQuery) and GET; >> Values are saved into session variables; >> Function is called which writes these session vars to a test DB >> >> This fails when this error occurs. > > Yeah, so one of the things you want to do is simply track the data through this process. We know that in the end the data isn't "there". But at which point does it "disappear"? That's what you want to know. > On the topic of isolating the matter, there are many places to checkpoint the data, but here are a few: > >> FORM gets submitted (using JQuery) and GET; > 1) Here - What data does the server see/get (and I mean right at the start of the processing of the request)? Does it get what you expect, or does the problem happen this early? >> Values are saved into session variables; > 2) Here - Assuming there was actually something to save (depending on #1), was the data really put in the session variables the way you expect? Can you access/dump the session variables and see the data in there, the way you expect it to have been saved in the session variables? >> Function is called which writes these session vars to a test DB > 3) Here - At least two things; At the point where you give the data to FX.php, is the data you expect what is really handed over, or has it "disappeared"? Inside FX.php, is it really sending the data that is expected to be sent (short of network traffic checking, this is as close to the PHP -> FM transaction as you can get, AFAIK)? > > See what I mean? Just adding that test function you added doesn't answer any of the questions above - all it tells you (when you're not seeing the data in your FM tables) is that "at some point after you pressed the submit button in the browser, and until you checked the FM table, the data was lost". As you read that sentence you'll realize that this did nothing to isolate the matter. > > What you need to do is break down the task/process that you have a problem with into smaller pieces, and then inspect and verify state and data in them (starting with one, either one that is suspect or just the middle one to get the most isolation done). Then do that again and again until you know that "OK, before X happens data is fine, and after X data is no longer fine - I wonder why, let's look closer at X" (X being code, a request of some sort, or whatever). > > To get answers to the above questions the most straight forward way is to simply dump the appropriate values. E.g. $_GET (if that's what you're using, $_SESSION, etc). > If you can reproduce the problem on demand that's great, but as I understand it you can't. Since the problem happens randomly, when you might not be looking, it's a good idea to log the debugging info you generate into a file or similar (I most often simply use the error log for PHP, e.g. error_log()). Then you can track the entire process from when a user starts the four steps and should be able to find out where it happens. > > I hope that makes sense. I'm trying to convey understanding of how to approach problems like this systematically (although what I wrote doesn't cover all of the things that one should consider/check/do). > >> I?ve tested on my Mac dozens of times, with various browsers; I?ve tested on Windows 7, I?ve had a consultant test on XP, I?ve had the client test on her machine using Windows 8. In *all* of our tests, it works perfectly. >>> >>> It seems to me that you're not doing the debugging that is needed. For example, to verify whether the URL length issue is a problem, you'd simply log the data that comes into the application and investigate if it's cut off at that point already, in the case when data isn't saved the way you expect. This is on the same topic that I mentioned initially; Track the data and flow of things through the request cycle, in order to find the place where things go wrong. >> >> But the length of the URL is nowhere near 2000 characters; if I had to guess, I?d say it?s 200-300 characters. >>> >>> Again, it's all about isolating the matter to a smaller part of your application, verifying that the what you think is in front of you is really the case (e.g. variables of any kind having the data you think, business logic taking the path you think, etc), and then you should be able to find that the problem happens in one and the same place, and then you're very much closer to an actual solution instead of a workaround. It's just code. Short of memory corruption and other "off" things, which would probably cause other types of symptoms, it's just code that does what you tell it to. >>> >>> Just saying. I mean, your problem is that data is "disappearing". It doesn't just magically do that at random places in your code. One of the first things you want to know when having a problem like this is at what point data isn't what you expect it to be. One of the last things you'd want to do is changing the architecture without even knowing why. >> >> I agree with all that, but if I can?t duplicate it, I can?t spot it; I can?t even get back anything amiss when I test, so that?s why I?m totally stumped. > > Generating debug data and logging it so that you can go back and see the debug data once you know the problem has occurred, is what you need to do if you can't summon the problem at will. > > Ask yourself questions like "At point X in the application, does $foo contain what I expect it to contain?". If you cannot answer that question with 100% certainty (yes/no), then ask yourself "How can I investigate it?" and then you'll find yourself generating debug data. > >> If I could duplicate it I could find and fix it; without its occurring on my machines, I don?t know where to turn next. I went through the whole site to make sure that I didn?t have a session_destroy() command somewhere that it didn?t need to be, and confirmed that I?m not destroying the session anywhere but at the end of the process. >> >> The other thing that I know is that FileMaker isn?t failing to create a record; I have error code in there that would email me if that were to happen, but it does write a record?it just doesn?t have anything in it. > > Even if FM isn't failing creating a record, we don't know if it's actually getting any data from the PHP side. I would start on the PHP side though, verifying that the data survives until it is to be fired off to the database. > >> I agree that it would be better to figure out the issue, but when 90% of the registrations succeed, and when I can?t duplicate the issue (nor can other testers), I don?t know what else to do? >> >> Frustrating? >> >> Bob Patin > > _______________________________________________ > 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/20131219/4f1e0f92/attachment-0001.html