From cr at fmarchitect.com Fri Aug 3 00:39:34 2007 From: cr at fmarchitect.com (Caleb Ruth) Date: Fri Aug 3 00:39:43 2007 Subject: [FX.php List] MySQL 5 and FMS 9 (php) In-Reply-To: <56E0829F-49EE-4702-8CB0-E933F370D34A@fmarchitect.com> References: <56E0829F-49EE-4702-8CB0-E933F370D34A@fmarchitect.com> Message-ID: In case this helps anyone else the problem turned out to be PHP was looking in the wrong place for the MySQL socket file. When I edited the php.ini file, it still wouldn't use the new socket file. I ended up changing the my.cnf file so that MySQL wrote the socket file to the place PHP insisted on looking for it. Note that I only had this problem on Mac OS X 10.4 (user license). OS X Server 10.4 did not have this problem. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 On Jul 26, 2007, at 3:15 PM, Caleb Ruth wrote: > Hi All, > > Having trouble making a connection from PHP to MySQL 5.0.45 with > the default Filemaker Server 9 PHP installation on Mac 10.4. > > PhpMyAdmin gives me this error when trying to connect: > "#2002 - The server is not responding (or the local MySQL server's > socket is not correctly configured)" > > I've tested the MySQL install with CocoaMySQL and do connect, so I > believe that my problem is with the FMS9 PHP config. > > FYI when I use the Entropy PHP build (PHP 5.2.1 on another box) I > do connect to MySQL 5. > > The one difference I have noticed is that the Entropy build shows > this line in the MySQL info section: > Client API version 5.0.24a > > Whereas the FMS 9 PHP info shows this line: > Client API version 4.1.22 > > Is it possible that FMS9 only supports MySQL 4.x and not 5? Is > there a way to include MySQL 5 support? > > Thanks, > Caleb > > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/3356b93a/attachment-0001.html From cr at fmarchitect.com Fri Aug 3 01:04:54 2007 From: cr at fmarchitect.com (Caleb Ruth) Date: Fri Aug 3 01:05:00 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array Message-ID: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> Hi All, I think I may have a configuration problem. I am getting the following error: Fatal error: Cannot use object of type FX_Error as array in [filename].php on line 42 The line reported is just this: if($invoiceData['errorCode'] != 401) Any tips appreciated. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/fb8b5f79/attachment.html From cr at fmarchitect.com Fri Aug 3 01:06:43 2007 From: cr at fmarchitect.com (Caleb Ruth) Date: Fri Aug 3 01:06:47 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> Message-ID: <47D036D9-64F9-449D-BBC2-225B12795A05@fmarchitect.com> BTW this is on OS X 10.4 Server. With PHP 5.2 installed by Filemaker Server 9. Thanks. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 On Aug 3, 2007, at 3:04 AM, Caleb Ruth wrote: > Hi All, > > I think I may have a configuration problem. I am getting the > following error: > Fatal error: Cannot use object of type FX_Error as array in > [filename].php on line 42 > > The line reported is just this: > if($invoiceData['errorCode'] != 401) > > Any tips appreciated. > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/40daee57/attachment.html From ggt667 at gmail.com Fri Aug 3 03:27:10 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Aug 3 03:27:15 2007 Subject: [FX.php List] MySQL 5 and FMS 9 (php) In-Reply-To: References: <56E0829F-49EE-4702-8CB0-E933F370D34A@fmarchitect.com> Message-ID: so my.cnf was only serving on localhost? Was that it? Gjermund On 8/3/07, Caleb Ruth wrote: > In case this helps anyone else the problem turned out to be PHP was looking > in the wrong place for the MySQL socket file. When I edited the php.ini > file, it still wouldn't use the new socket file. I ended up changing the > my.cnf file so that MySQL wrote the socket file to the place PHP insisted on > looking for it. > > Note that I only had this problem on Mac OS X 10.4 (user license). OS X > Server 10.4 did not have this problem. > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > On Jul 26, 2007, at 3:15 PM, Caleb Ruth wrote: > > Hi All, > > Having trouble making a connection from PHP to MySQL 5.0.45 with the default > Filemaker Server 9 PHP installation on Mac 10.4. > > PhpMyAdmin gives me this error when trying to connect: > "#2002 - The server is not responding (or the local MySQL server's socket is > not correctly configured)" > > I've tested the MySQL install with CocoaMySQL and do connect, so I believe > that my problem is with the FMS9 PHP config. > > FYI when I use the Entropy PHP build (PHP 5.2.1 on another box) I do connect > to MySQL 5. > > The one difference I have noticed is that the Entropy build shows this line > in the MySQL info section: > Client API version 5.0.24a > > Whereas the FMS 9 PHP info shows this line: > Client API version 4.1.22 > > Is it possible that FMS9 only supports MySQL 4.x and not 5? Is there a way > to include MySQL 5 support? > > Thanks, > Caleb > > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From ggt667 at gmail.com Fri Aug 3 03:27:58 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Aug 3 03:28:02 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <47D036D9-64F9-449D-BBC2-225B12795A05@fmarchitect.com> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> <47D036D9-64F9-449D-BBC2-225B12795A05@fmarchitect.com> Message-ID: Do you run apache and FileMaker on the same machine? It's recommended to separate the two... ggt667 On 8/3/07, Caleb Ruth wrote: > BTW this is on OS X 10.4 Server. With PHP 5.2 installed by Filemaker Server > 9. Thanks. > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > On Aug 3, 2007, at 3:04 AM, Caleb Ruth wrote: > > Hi All, > > I think I may have a configuration problem. I am getting the following > error: > Fatal error: Cannot use object of type FX_Error as array in [filename].php > on line 42 > The line reported is just this: > if($invoiceData['errorCode'] != 401) > > Any tips appreciated. > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From william.downs at gmail.com Fri Aug 3 03:56:33 2007 From: william.downs at gmail.com (William Downs) Date: Fri Aug 3 03:56:36 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> Message-ID: <3b77f2170708030256m10a0605eg3d69294f48e2fce1@mail.gmail.com> Try setting a variable to the value of the error code and then base your if statement on the variable, after echoing the variable to check if it is populated of course. Or better yet, post the entire query here, including the foreach part I have had this error, and used the variable method to get round it William On 8/3/07, Caleb Ruth wrote: > > Hi All, > > I think I may have a configuration problem. I am getting the following > error: > Fatal error: Cannot use object of type FX_Error as array in [filename].php > on line 42 > The line reported is just this: > if($invoiceData['errorCode'] != 401) > > Any tips appreciated. > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -- William Downs Development and Support BD Databases Ltd From cr at fmarchitect.com Fri Aug 3 07:34:34 2007 From: cr at fmarchitect.com (Caleb Ruth) Date: Fri Aug 3 07:34:41 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> <47D036D9-64F9-449D-BBC2-225B12795A05@fmarchitect.com> Message-ID: They are on separate machines. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 On Aug 3, 2007, at 5:27 AM, Gjermund Gusland Thorsen wrote: > Do you run apache and FileMaker on the same machine? > > It's recommended to separate the two... > > ggt667 > > On 8/3/07, Caleb Ruth wrote: >> BTW this is on OS X 10.4 Server. With PHP 5.2 installed by >> Filemaker Server >> 9. Thanks. >> >> >> -- >> Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >> >> >> >> >> On Aug 3, 2007, at 3:04 AM, Caleb Ruth wrote: >> >> Hi All, >> >> I think I may have a configuration problem. I am getting the >> following >> error: >> Fatal error: Cannot use object of type FX_Error as array in >> [filename].php >> on line 42 >> The line reported is just this: >> if($invoiceData['errorCode'] != 401) >> >> Any tips appreciated. >> >> >> -- >> Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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://www.iviking.org/pipermail/fx.php_list/attachments/20070803/23791a1f/attachment.html From bob at patin.com Fri Aug 3 08:05:43 2007 From: bob at patin.com (Bob Patin) Date: Fri Aug 3 08:05:47 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> Message-ID: <8738A228-A3EA-40F0-94DF-48ECAAACA461@patin.com> > tal error: Cannot use object of type FX_Error as array in > [filename].php on line 42 > > The line reported is just this: > if($invoiceData['errorCode'] != 401) Try this instead: if($invoiceData['errorCode'] == 401){ ... } Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/9623eb0d/attachment.html From dbengston at preservationstudio.com Fri Aug 3 08:06:16 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Aug 3 08:06:25 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> <47D036D9-64F9-449D-BBC2-225B12795A05@fmarchitect.com> Message-ID: <006D49BF-EB9D-4F21-87BF-6295DA07F0BD@preservationstudio.com> I don't think the number of machines things are running on makes any difference here. Try putting print_r($invoiceData); on your page to see what you're really getting back from FX. It looks like you're getting an FX error object, which is not an array with an element named ['errorCode'] that you can reference. Dale On Aug 3, 2007, at 8:34 AM, Caleb Ruth wrote: > They are on separate machines. > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > On Aug 3, 2007, at 5:27 AM, Gjermund Gusland Thorsen wrote: > >> Do you run apache and FileMaker on the same machine? >> >> It's recommended to separate the two... >> >> ggt667 >> >> On 8/3/07, Caleb Ruth wrote: >>> BTW this is on OS X 10.4 Server. With PHP 5.2 installed by >>> Filemaker Server >>> 9. Thanks. >>> >>> >>> -- >>> Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >>> >>> >>> >>> >>> On Aug 3, 2007, at 3:04 AM, Caleb Ruth wrote: >>> >>> Hi All, >>> >>> I think I may have a configuration problem. I am getting the >>> following >>> error: >>> Fatal error: Cannot use object of type FX_Error as array in >>> [filename].php >>> on line 42 >>> The line reported is just this: >>> if($invoiceData['errorCode'] != 401) >>> >>> Any tips appreciated. >>> >>> >>> -- >>> Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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://www.iviking.org/pipermail/fx.php_list/attachments/20070803/07afe330/attachment-0001.html From adenman at tmea.org Fri Aug 3 09:11:57 2007 From: adenman at tmea.org (Andrew Denman) Date: Fri Aug 3 09:11:50 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <006D49BF-EB9D-4F21-87BF-6295DA07F0BD@preservationstudio.com> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com><47D036D9-64F9-449D-BBC2-225B12795A05@fmarchitect.com> <006D49BF-EB9D-4F21-87BF-6295DA07F0BD@preservationstudio.com> Message-ID: <004101c7d5e0$a24c52d0$c864a8c0@tmea.org> Let us know what the print_r($invoiceData) Dale suggested returns, as it should shed some light on the exact problem you are encountering. When you get an FX Error object it is usually because FX.php cannot communicate with the server hosting your WPE. Make sure your WPE server is running OK and that you are pointing to the correct computer in your PHP code. There's a little more info and some sample error catching code on this page (See section IV: Debugging and Error Handling): http://jonathanstark.com/web_publishing_with_filemaker_and_php.php Andrew Denman _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Friday, August 03, 2007 9:06 AM To: FX.php Discussion List Subject: Re: [FX.php List] Error: Cannot use object of type FX_Error as array I don't think the number of machines things are running on makes any difference here. Try putting print_r($invoiceData); on your page to see what you're really getting back from FX. It looks like you're getting an FX error object, which is not an array with an element named ['errorCode'] that you can reference. Dale On Aug 3, 2007, at 8:34 AM, Caleb Ruth wrote: They are on separate machines. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 On Aug 3, 2007, at 5:27 AM, Gjermund Gusland Thorsen wrote: Do you run apache and FileMaker on the same machine? It's recommended to separate the two... ggt667 On 8/3/07, Caleb Ruth wrote: BTW this is on OS X 10.4 Server. With PHP 5.2 installed by Filemaker Server 9. Thanks. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 On Aug 3, 2007, at 3:04 AM, Caleb Ruth wrote: Hi All, I think I may have a configuration problem. I am getting the following error: Fatal error: Cannot use object of type FX_Error as array in [filename].php on line 42 The line reported is just this: if($invoiceData['errorCode'] != 401) Any tips appreciated. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/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://www.iviking.org/pipermail/fx.php_list/attachments/20070803/c2ecea68/attachment.html From chris at iViking.org Fri Aug 3 10:13:48 2007 From: chris at iViking.org (Chris Hansen) Date: Fri Aug 3 10:14:48 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> Message-ID: Hi all! In short, proper practice when using FX.php is to have a bit of code like this right after your query is performed: if (FX::isError($invoiceData)) { // error handling here } Then you'd have an elseif() to handle no records found, and any other problems that may have cropped up. This is a good habit to form not only for FX.php, but FileMaker's API for PHP has an almost identical means of trapping for errors. HTH --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Aug 3, 2007, at 1:04 AM, Caleb Ruth wrote: > Hi All, > > I think I may have a configuration problem. I am getting the > following error: > Fatal error: Cannot use object of type FX_Error as array in > [filename].php on line 42 > > The line reported is just this: > if($invoiceData['errorCode'] != 401) > > Any tips appreciated. > > > -- > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Fri Aug 3 10:55:27 2007 From: bob at patin.com (Bob Patin) Date: Fri Aug 3 10:55:38 2007 Subject: [FX.php List] A question about editing a record Message-ID: Here's a question: When I'm editing a record that has lots of fields (30 or more), I've been having to check to see if the user actually inputted anything inot each field before including it into my EDIT script. In other words, like this: $search->AddDBParam('-recid',$recid); if (strlen($first_name)>0){$search->AddDBParam('First_name', $first_name);} Otherwise, if I try to edit using a variable that wasn't actually put into the EDIT form (let's say this record doesn't actually HAVE a first name), I get a 958 error. Is there an easier way to check for this? Should I be using ISSET instead? Is there a way NOT to have to do this for each line of my EDIT script? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 From cr at fmarchitect.com Fri Aug 3 12:25:05 2007 From: cr at fmarchitect.com (Caleb Ruth) Date: Fri Aug 3 12:25:12 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> Message-ID: <7F05182C-1821-4D5E-A73B-414FCCD76DC2@fmarchitect.com> The reason I thought it could be a configuration problem is that the exact same code works on one machine (OS X 10.4, php 5.2.1), but not the other (OS X 10.4 Server, php 5.2.1). However, they are both using the standard php.ini file that FMS9 installs. Thank you for your suggestions for improved code. -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 On Aug 3, 2007, at 12:13 PM, Chris Hansen wrote: > Hi all! > > In short, proper practice when using FX.php is to have a bit of > code like this right after your query is performed: > > if (FX::isError($invoiceData)) { > // error handling here > } > > Then you'd have an elseif() to handle no records found, and any > other problems that may have cropped up. This is a good habit to > form not only for FX.php, but FileMaker's API for PHP has an almost > identical means of trapping for errors. HTH > > --Chris Hansen > FileMaker 8 Certified Developer > FileMaker 7 Certified Developer > Creator of FX.php > "The best way from FileMaker to the Web." > www.iViking.org > > > On Aug 3, 2007, at 1:04 AM, Caleb Ruth wrote: > >> Hi All, >> >> I think I may have a configuration problem. I am getting the >> following error: >> Fatal error: Cannot use object of type FX_Error as array in >> [filename].php on line 42 >> >> The line reported is just this: >> if($invoiceData['errorCode'] != 401) >> >> Any tips appreciated. >> >> >> -- >> Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >> >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/45901bfc/attachment.html From jonathan at exit445.com Fri Aug 3 12:36:30 2007 From: jonathan at exit445.com (Jonathan Schwartz) Date: Fri Aug 3 12:39:12 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <7F05182C-1821-4D5E-A73B-414FCCD76DC2@fmarchitect.com> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com> <7F05182C-1821-4D5E-A73B-414FCCD76DC2@fmarchitect.com> Message-ID: Caleb, I can't give you the exact answer, but I seem to remember that OS X Server installs PHP differently than OS X Client. HTH, Jonathan >The reason I thought it could be a configuration problem is that the >exact same code works on one machine (OS X 10.4, php 5.2.1), but not >the other (OS X 10.4 Server, php 5.2.1). However, they are both >using the standard php.ini file that FMS9 installs. > >Thank you for your suggestions for improved code. > > > >-- >Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > >On Aug 3, 2007, at 12:13 PM, Chris Hansen wrote: > >>Hi all! >> >>In short, proper practice when using FX.php is to have a bit of >>code like this right after your query is performed: >> >>if (FX::isError($invoiceData)) { >> // error handling here >>} >> >>Then you'd have an elseif() to handle no records found, and any >>other problems that may have cropped up. This is a good habit to >>form not only for FX.php, but FileMaker's API for PHP has an almost >>identical means of trapping for errors. HTH >> >>--Chris Hansen >> FileMaker 8 Certified Developer >> FileMaker 7 Certified Developer >> Creator of FX.php >> "The best way from FileMaker to the Web." >> www.iViking.org >> >> >>On Aug 3, 2007, at 1:04 AM, Caleb Ruth wrote: >> >>>Hi All, >>> >>>I think I may have a configuration problem. I am getting the >>>following error: >>>Fatal error: Cannot use object of type FX_Error as array in >>>[filename].php on line 42 >>> >>>The line reported is just this: >>>if($invoiceData['errorCode'] != 401) >>> >>>Any tips appreciated. >>> >>> >>>-- >>>Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >>> >>> >>> >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/bed7d24c/attachment.html From cr at fmarchitect.com Fri Aug 3 12:48:07 2007 From: cr at fmarchitect.com (Caleb Ruth) Date: Fri Aug 3 12:48:15 2007 Subject: [FX.php List] Error: Cannot use object of type FX_Error as array In-Reply-To: <004101c7d5e0$a24c52d0$c864a8c0@tmea.org> References: <3EB27873-9484-4323-8BF4-17E0B9CFBC80@fmarchitect.com><47D036D9-64F9-449D-BBC2-225B12795A05@fmarchitect.com> <006D49BF-EB9D-4F21-87BF-6295DA07F0BD@preservationstudio.com> <004101c7d5e0$a24c52d0$c864a8c0@tmea.org> Message-ID: <403BD9A3-A31B-4608-B7BE-96F3A0DC0D1A@fmarchitect.com> print_r($invoiceData) returns (partially): FX_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 100 [message] => FX: cURL could not retrieve Post data in RetrieveFM7Data(). A bad URL is the most likely reason. I'll check my config. I can see now that the other issue is that my error handler is also broken. Thanks for the help! -- Caleb Ruth | cr@fmarchitect.com | 607-330-2058 On Aug 3, 2007, at 11:11 AM, Andrew Denman wrote: > Let us know what the print_r($invoiceData) Dale suggested returns, > as it should shed some light on the exact problem you are > encountering. > > > > When you get an FX Error object it is usually because FX.php cannot > communicate with the server hosting your WPE. Make sure your WPE > server is running OK and that you are pointing to the correct > computer in your PHP code. There?s a little more info and some > sample error catching code on this page (See section IV: Debugging > and Error Handling): > > http://jonathanstark.com/web_publishing_with_filemaker_and_php.php > > > > Andrew Denman > > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list- > bounces@mail.iviking.org] On Behalf Of Dale Bengston > Sent: Friday, August 03, 2007 9:06 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Error: Cannot use object of type > FX_Error as array > > > > I don't think the number of machines things are running on makes > any difference here. Try putting > > > > print_r($invoiceData); > > > > on your page to see what you're really getting back from FX. It > looks like you're getting an FX error object, which is not an array > with an element named ['errorCode'] that you can reference. > > > > Dale > > > > On Aug 3, 2007, at 8:34 AM, Caleb Ruth wrote: > > > > > They are on separate machines. > > > > > > -- > > Caleb Ruth | cr@fmarchitect.com | 607-330-2058 > > > > > > > > > > > > On Aug 3, 2007, at 5:27 AM, Gjermund Gusland Thorsen wrote: > > > > > Do you run apache and FileMaker on the same machine? > > > > It's recommended to separate the two... > > > > ggt667 > > > > On 8/3/07, Caleb Ruth wrote: > >> BTW this is on OS X 10.4 Server. With PHP 5.2 installed by >> Filemaker Server >> >> 9. Thanks. >> >> >> >> >> >> -- >> >> Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >> >> >> >> >> >> >> >> >> >> On Aug 3, 2007, at 3:04 AM, Caleb Ruth wrote: >> >> >> >> Hi All, >> >> >> >> I think I may have a configuration problem. I am getting the >> following >> >> error: >> >> Fatal error: Cannot use object of type FX_Error as array in >> [filename].php >> >> on line 42 >> >> The line reported is just this: >> >> if($invoiceData['errorCode'] != 401) >> >> >> >> Any tips appreciated. >> >> >> >> >> >> -- >> >> Caleb Ruth | cr@fmarchitect.com | 607-330-2058 >> >> >> >> >> >> >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/b56cb0e6/attachment-0001.html From jonathan at exit445.com Fri Aug 3 12:47:57 2007 From: jonathan at exit445.com (Jonathan Schwartz) Date: Fri Aug 3 12:49:26 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: Message-ID: Bob, Not sure what you mean about trying to edit a field that wasn't in the Edit form. Why would "first name" not be on every FMP record and every form, regardless of whether the user filled in the field? Regarding your shortcut request....I have a technique that was provided to be my Steve Winter some time ago. It used a for loop walking through an array to determine if there was a value to be inserted in a ADDDBParam statement. Well, the $_POST is an array, and you could probably do the same for each row of the array. See what I mean? HTH, Jonathan At 11:55 AM -0500 8/3/07, Bob Patin wrote: >Here's a question: > >When I'm editing a record that has lots of fields (30 or more), I've >been having to check to see if the user actually inputted anything >inot each field before including it into my EDIT script. In other >words, like this: > > >$search->AddDBParam('-recid',$recid); >if (strlen($first_name)>0){$search->AddDBParam('First_name',$first_name);} > >Otherwise, if I try to edit using a variable that wasn't actually >put into the EDIT form (let's say this record doesn't actually HAVE >a first name), I get a 958 error. > >Is there an easier way to check for this? > >Should I be using ISSET instead? Is there a way NOT to have to do >this for each line of my EDIT script? > >Thanks, > >Bob Patin >Longterm Solutions >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From adenman at tmea.org Fri Aug 3 13:09:52 2007 From: adenman at tmea.org (Andrew Denman) Date: Fri Aug 3 13:09:55 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: Message-ID: <007301c7d601$dec67d50$c864a8c0@tmea.org> Bob, I can't tell where in the submit process this is happening. To clarify: you have an edit form with a 'First_name' field. If the user submits the form with this field blank, you get a 958 (Parameter missing) error? If the form was submitted with a blank field, that field should not show up in the $_POST variable. Can you show us the code that gives you the 958 error? 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: Friday, August 03, 2007 11:55 AM To: FX.php Discussion List Subject: [FX.php List] A question about editing a record Here's a question: When I'm editing a record that has lots of fields (30 or more), I've been having to check to see if the user actually inputted anything inot each field before including it into my EDIT script. In other words, like this: $search->AddDBParam('-recid',$recid); if (strlen($first_name)>0){$search->AddDBParam('First_name', $first_name);} Otherwise, if I try to edit using a variable that wasn't actually put into the EDIT form (let's say this record doesn't actually HAVE a first name), I get a 958 error. Is there an easier way to check for this? Should I be using ISSET instead? Is there a way NOT to have to do this for each line of my EDIT script? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From igsmasupport at igsmasouth.org Fri Aug 3 15:30:51 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Fri Aug 3 15:31:00 2007 Subject: [FX.php List] Global field works on one table but not another? Message-ID: I have two data bases that were accessed via FX.PHP. Last year all worked fine. Clients entered events and then printed a billing sheet that they mailed in. Those billing sheets had some global fields for the fees and every thing worked! Now to take advantage of another table that ended up being the same in both data bases. I move the information in the second data base to the first data base (copy and paste the fields). Recreated the needed layouts. But for some reason, the Global fields in this new table do not work. I enter the fees in FMP and then when I quit the data base and then go back on line, those global fields are blank. I am not sure what I did different? The global field in the other table work fine. Is there some checkbox I am missing in the Define Data Base? Indexing? Any help would be appreciated. I even tried going back to the old second data base (the one I copied the fields from) and it works. All global info is there. But not in the new table in the first data base. Any ideas? Jon Montgomery -- Jon Montgomery Illinois Grade School Music Association Home email: vicepresident@comcast.net IGSMA email: vicepresident@igsmasouth.org School email: jwmontgomery@dqud300.perry.k12.il.us From dbengston at preservationstudio.com Fri Aug 3 15:36:53 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Aug 3 15:37:02 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: References: Message-ID: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> When you're working on a hosted file, the globals are "temporary" to the current user. If they were blank when the table was hosted, they will revert the next time you open the file. To get globals to stick, you have to open the file locally with FMP client, set the globals and then re-host the file. Dale On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: > I have two data bases that were accessed via FX.PHP. Last year all > worked > fine. Clients entered events and then printed a billing sheet that > they > mailed in. Those billing sheets had some global fields for the > fees and > every thing worked! > > Now to take advantage of another table that ended up being the same > in both > data bases. I move the information in the second data base to the > first > data base (copy and paste the fields). Recreated the needed > layouts. But > for some reason, the Global fields in this new table do not work. > I enter > the fees in FMP and then when I quit the data base and then go back > on line, > those global fields are blank. I am not sure what I did > different? The > global field in the other table work fine. > > Is there some checkbox I am missing in the Define Data Base? > Indexing? Any > help would be appreciated. > > I even tried going back to the old second data base (the one I > copied the > fields from) and it works. All global info is there. But not in > the new > table in the first data base. > > Any ideas? > > Jon Montgomery > > -- > Jon Montgomery > Illinois Grade School Music Association > Home email: vicepresident@comcast.net > IGSMA email: vicepresident@igsmasouth.org > School email: jwmontgomery@dqud300.perry.k12.il.us > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From igsmasupport at igsmasouth.org Fri Aug 3 15:41:48 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Fri Aug 3 15:41:55 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> Message-ID: Dale, I did set the globals with FMP but accessed them remotely. Is that what you are talking about? Should I open in in FMP on my computer and then put them back on the server? Jon On 8/3/07 4:36 PM, "Dale Bengston" wrote: > When you're working on a hosted file, the globals are "temporary" to > the current user. If they were blank when the table was hosted, they > will revert the next time you open the file. > > To get globals to stick, you have to open the file locally with FMP > client, set the globals and then re-host the file. > > Dale > > On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: > >> I have two data bases that were accessed via FX.PHP. Last year all >> worked >> fine. Clients entered events and then printed a billing sheet that >> they >> mailed in. Those billing sheets had some global fields for the >> fees and >> every thing worked! >> >> Now to take advantage of another table that ended up being the same >> in both >> data bases. I move the information in the second data base to the >> first >> data base (copy and paste the fields). Recreated the needed >> layouts. But >> for some reason, the Global fields in this new table do not work. >> I enter >> the fees in FMP and then when I quit the data base and then go back >> on line, >> those global fields are blank. I am not sure what I did >> different? The >> global field in the other table work fine. >> >> Is there some checkbox I am missing in the Define Data Base? >> Indexing? Any >> help would be appreciated. >> >> I even tried going back to the old second data base (the one I >> copied the >> fields from) and it works. All global info is there. But not in >> the new >> table in the first data base. >> >> Any ideas? >> >> Jon Montgomery >> >> -- >> Jon Montgomery >> Illinois Grade School Music Association >> Home email: vicepresident@comcast.net >> IGSMA email: vicepresident@igsmasouth.org >> School email: jwmontgomery@dqud300.perry.k12.il.us >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jsfmp at earthlink.net Fri Aug 3 15:42:13 2007 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Aug 3 15:42:18 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> References: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> Message-ID: <3F9237B0-EC9A-49EB-BFB0-CD08C54FC5B4@earthlink.net> Or alternatively you can have a script set to run on Opening that places the values you want into global fields. (This way, you could change the globals in the future just by changing the script, instead of having to take the file off FMS, change it, then open back up in FMS) -Joel On Aug 3, 2007, at 2:36 PM, Dale Bengston wrote: > When you're working on a hosted file, the globals are "temporary" > to the current user. If they were blank when the table was hosted, > they will revert the next time you open the file. > > To get globals to stick, you have to open the file locally with FMP > client, set the globals and then re-host the file. > > Dale > > On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: > >> I have two data bases that were accessed via FX.PHP. Last year all >> worked >> fine. Clients entered events and then printed a billing sheet >> that they >> mailed in. Those billing sheets had some global fields for the >> fees and >> every thing worked! >> >> Now to take advantage of another table that ended up being the >> same in both >> data bases. I move the information in the second data base to the >> first >> data base (copy and paste the fields). Recreated the needed >> layouts. But >> for some reason, the Global fields in this new table do not work. >> I enter >> the fees in FMP and then when I quit the data base and then go >> back on line, >> those global fields are blank. I am not sure what I did >> different? The >> global field in the other table work fine. >> >> Is there some checkbox I am missing in the Define Data Base? >> Indexing? Any >> help would be appreciated. >> >> I even tried going back to the old second data base (the one I >> copied the >> fields from) and it works. All global info is there. But not in >> the new >> table in the first data base. >> >> Any ideas? >> >> Jon Montgomery >> >> -- >> Jon Montgomery >> Illinois Grade School Music Association >> Home email: vicepresident@comcast.net >> IGSMA email: vicepresident@igsmasouth.org >> School email: jwmontgomery@dqud300.perry.k12.il.us >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 dan.cynosure at dbmscan.com Fri Aug 3 15:42:56 2007 From: dan.cynosure at dbmscan.com (DC) Date: Fri Aug 3 15:42:59 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> References: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> Message-ID: <46B3A160.3080608@dbmscan.com> or (sometimes) better... have an opening script (a script that runs when the file is opened) set the global to its default value. problems with that are that if you "open" a file by going to a layout with a related field (which "opens" the file) the opener script does not run - the FMP file has to be opened by a double-click or a script step. cheers. Dale Bengston had written: > When you're working on a hosted file, the globals are "temporary" to the > current user. If they were blank when the table was hosted, they will > revert the next time you open the file. > > To get globals to stick, you have to open the file locally with FMP > client, set the globals and then re-host the file. > > Dale > > On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: > >> I have two data bases that were accessed via FX.PHP. Last year all worked >> fine. Clients entered events and then printed a billing sheet that they >> mailed in. Those billing sheets had some global fields for the fees and >> every thing worked! >> >> Now to take advantage of another table that ended up being the same in >> both >> data bases. I move the information in the second data base to the first >> data base (copy and paste the fields). Recreated the needed layouts. >> But >> for some reason, the Global fields in this new table do not work. I >> enter >> the fees in FMP and then when I quit the data base and then go back on >> line, >> those global fields are blank. I am not sure what I did different? The >> global field in the other table work fine. >> >> Is there some checkbox I am missing in the Define Data Base? >> Indexing? Any >> help would be appreciated. >> >> I even tried going back to the old second data base (the one I copied the >> fields from) and it works. All global info is there. But not in the new >> table in the first data base. >> >> Any ideas? >> >> Jon Montgomery >> >> --Jon Montgomery >> Illinois Grade School Music Association >> Home email: vicepresident@comcast.net >> IGSMA email: vicepresident@igsmasouth.org >> School email: jwmontgomery@dqud300.perry.k12.il.us >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 dan.cynosure at dbmscan.com Fri Aug 3 15:50:47 2007 From: dan.cynosure at dbmscan.com (DC) Date: Fri Aug 3 15:50:50 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: <3F9237B0-EC9A-49EB-BFB0-CD08C54FC5B4@earthlink.net> References: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> <3F9237B0-EC9A-49EB-BFB0-CD08C54FC5B4@earthlink.net> Message-ID: <46B3A337.9050507@dbmscan.com> LOL! joel... snap! but (IMHO) my answer was better because of the mind numbing detail about opening scripts! dan Joel Shapiro had written: > Or alternatively you can have a script set to run on Opening that places > the values you want into global fields. (This way, you could change the > globals in the future just by changing the script, instead of having to > take the file off FMS, change it, then open back up in FMS) > > -Joel > > > On Aug 3, 2007, at 2:36 PM, Dale Bengston wrote: > >> When you're working on a hosted file, the globals are "temporary" to >> the current user. If they were blank when the table was hosted, they >> will revert the next time you open the file. >> >> To get globals to stick, you have to open the file locally with FMP >> client, set the globals and then re-host the file. >> >> Dale >> >> On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: >> >>> I have two data bases that were accessed via FX.PHP. Last year all >>> worked >>> fine. Clients entered events and then printed a billing sheet that they >>> mailed in. Those billing sheets had some global fields for the fees and >>> every thing worked! >>> >>> Now to take advantage of another table that ended up being the same >>> in both >>> data bases. I move the information in the second data base to the first >>> data base (copy and paste the fields). Recreated the needed >>> layouts. But >>> for some reason, the Global fields in this new table do not work. I >>> enter >>> the fees in FMP and then when I quit the data base and then go back >>> on line, >>> those global fields are blank. I am not sure what I did different? The >>> global field in the other table work fine. >>> >>> Is there some checkbox I am missing in the Define Data Base? >>> Indexing? Any >>> help would be appreciated. >>> >>> I even tried going back to the old second data base (the one I copied >>> the >>> fields from) and it works. All global info is there. But not in the >>> new >>> table in the first data base. >>> >>> Any ideas? >>> >>> Jon Montgomery >>> >>> --Jon Montgomery >>> Illinois Grade School Music Association >>> Home email: vicepresident@comcast.net >>> IGSMA email: vicepresident@igsmasouth.org >>> School email: jwmontgomery@dqud300.perry.k12.il.us >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jsfmp at earthlink.net Fri Aug 3 16:04:40 2007 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Aug 3 16:04:46 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: <46B3A337.9050507@dbmscan.com> References: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> <3F9237B0-EC9A-49EB-BFB0-CD08C54FC5B4@earthlink.net> <46B3A337.9050507@dbmscan.com> Message-ID: <75AD980E-8AE4-44B3-9016-4D0B1B1F8C12@earthlink.net> Dan, you're a better mind numb-er than I :-) However... Jon, do you need to use the global value over the web or just locally in FMP? I had thought I'd seen something the other day (on one of the FM lists) that opening scripts DO get called even when opened over the web (in the pseudo-client of FMS/WPE). But I just created a new global field on a hosted file, put a SetField in an opening script, and my php page shows no value for the global. So, if you do need the global value over the web, then it looks like Dale's original suggestion is what you'd need to do (close the file off of FMS, open the file locally, set the value, close the file, open it in FMS) -Joel On Aug 3, 2007, at 2:50 PM, DC wrote: > LOL! joel... snap! > > but (IMHO) my answer was better because of the mind numbing detail > about opening scripts! > > dan > > Joel Shapiro had written: >> Or alternatively you can have a script set to run on Opening that >> places the values you want into global fields. (This way, you >> could change the globals in the future just by changing the >> script, instead of having to take the file off FMS, change it, >> then open back up in FMS) >> -Joel >> On Aug 3, 2007, at 2:36 PM, Dale Bengston wrote: >>> When you're working on a hosted file, the globals are "temporary" >>> to the current user. If they were blank when the table was >>> hosted, they will revert the next time you open the file. >>> >>> To get globals to stick, you have to open the file locally with >>> FMP client, set the globals and then re-host the file. >>> >>> Dale >>> >>> On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: >>> >>>> I have two data bases that were accessed via FX.PHP. Last year >>>> all worked >>>> fine. Clients entered events and then printed a billing sheet >>>> that they >>>> mailed in. Those billing sheets had some global fields for the >>>> fees and >>>> every thing worked! >>>> >>>> Now to take advantage of another table that ended up being the >>>> same in both >>>> data bases. I move the information in the second data base to >>>> the first >>>> data base (copy and paste the fields). Recreated the needed >>>> layouts. But >>>> for some reason, the Global fields in this new table do not >>>> work. I enter >>>> the fees in FMP and then when I quit the data base and then go >>>> back on line, >>>> those global fields are blank. I am not sure what I did >>>> different? The >>>> global field in the other table work fine. >>>> >>>> Is there some checkbox I am missing in the Define Data Base? >>>> Indexing? Any >>>> help would be appreciated. >>>> >>>> I even tried going back to the old second data base (the one I >>>> copied the >>>> fields from) and it works. All global info is there. But not >>>> in the new >>>> table in the first data base. >>>> >>>> Any ideas? >>>> >>>> Jon Montgomery >>>> >>>> --Jon Montgomery >>>> Illinois Grade School Music Association >>>> Home email: vicepresident@comcast.net >>>> IGSMA email: vicepresident@igsmasouth.org >>>> School email: jwmontgomery@dqud300.perry.k12.il.us >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/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 igsmasupport at igsmasouth.org Fri Aug 3 17:41:16 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Fri Aug 3 17:41:20 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: <7670F00C-F703-4619-A1DC-D689CCB24F4C@preservationstudio.com> Message-ID: Dale, Joel and Dan, Thank you for the quick response. Dale - after I read your response, I remembered reading that somewhere but at the time it did not apply to anything I was doing. So it did not remain in memory. That was the problem. Joel and Dan - I choose not to go the script way. And my mind was already numb. This global has not changed in 5 years so editing it is not a problem once you guys pointed out the problem. You all have fun at DEVCON. Jon Montgomery Illinois Grade School Music Association On 8/3/07 4:36 PM, "Dale Bengston" wrote: > When you're working on a hosted file, the globals are "temporary" to > the current user. If they were blank when the table was hosted, they > will revert the next time you open the file. > > To get globals to stick, you have to open the file locally with FMP > client, set the globals and then re-host the file. > > Dale > > On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: > >> I have two data bases that were accessed via FX.PHP. Last year all >> worked >> fine. Clients entered events and then printed a billing sheet that >> they >> mailed in. Those billing sheets had some global fields for the >> fees and >> every thing worked! >> >> Now to take advantage of another table that ended up being the same >> in both >> data bases. I move the information in the second data base to the >> first >> data base (copy and paste the fields). Recreated the needed >> layouts. But >> for some reason, the Global fields in this new table do not work. >> I enter >> the fees in FMP and then when I quit the data base and then go back >> on line, >> those global fields are blank. I am not sure what I did >> different? The >> global field in the other table work fine. >> >> Is there some checkbox I am missing in the Define Data Base? >> Indexing? Any >> help would be appreciated. >> >> I even tried going back to the old second data base (the one I >> copied the >> fields from) and it works. All global info is there. But not in >> the new >> table in the first data base. >> >> Any ideas? >> >> Jon Montgomery >> >> -- >> Jon Montgomery >> Illinois Grade School Music Association >> Home email: vicepresident@comcast.net >> IGSMA email: vicepresident@igsmasouth.org >> School email: jwmontgomery@dqud300.perry.k12.il.us >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Fri Aug 3 22:08:13 2007 From: bob at patin.com (Bob Patin) Date: Fri Aug 3 22:08:20 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: Message-ID: <68E0406D-4FCC-4E7F-9C83-04E368BC852F@patin.com> False alarm, the error was something else... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Aug 3, 2007, at 1:47 PM, Jonathan Schwartz wrote: > Bob, > > Not sure what you mean about trying to edit a field that wasn't in > the Edit form. Why would "first name" not be on every FMP record > and every form, regardless of whether the user filled in the field? > > Regarding your shortcut request....I have a technique that was > provided to be my Steve Winter some time ago. It used a for loop > walking through an array to determine if there was a value to be > inserted in a ADDDBParam statement. Well, the $_POST is an array, > and you could probably do the same for each row of the array. > > See what I mean? > > HTH, > > Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070803/f21f7e1a/attachment.html From bob at patin.com Fri Aug 3 22:15:16 2007 From: bob at patin.com (Bob Patin) Date: Fri Aug 3 22:15:20 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: References: Message-ID: <72FEDD78-70E5-430F-AC12-5333561B989E@patin.com> Jon, Another idea would be to use a table with a single record in it, with the fields that you are now using as globals. Then you can access the fields when you need to, edit them as you need to, and not have to worry about dealing with the globals. If you'll relate this table to all of your other tables you can then access the fields' values whenever you need. Hope this helps, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Aug 3, 2007, at 6:41 PM, Jon Montgomery wrote: > Dale, Joel and Dan, > Thank you for the quick response. > > Dale - after I read your response, I remembered reading that > somewhere but > at the time it did not apply to anything I was doing. So it did > not remain > in memory. That was the problem. > > Joel and Dan - I choose not to go the script way. And my mind was > already > numb. This global has not changed in 5 years so editing it is not > a problem > once you guys pointed out the problem. > > You all have fun at DEVCON. > > Jon Montgomery > Illinois Grade School Music Association > > > On 8/3/07 4:36 PM, "Dale Bengston" > wrote: > >> When you're working on a hosted file, the globals are "temporary" to >> the current user. If they were blank when the table was hosted, they >> will revert the next time you open the file. >> >> To get globals to stick, you have to open the file locally with FMP >> client, set the globals and then re-host the file. >> >> Dale >> >> On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: >> >>> I have two data bases that were accessed via FX.PHP. Last year all >>> worked >>> fine. Clients entered events and then printed a billing sheet that >>> they >>> mailed in. Those billing sheets had some global fields for the >>> fees and >>> every thing worked! >>> >>> Now to take advantage of another table that ended up being the same >>> in both >>> data bases. I move the information in the second data base to the >>> first >>> data base (copy and paste the fields). Recreated the needed >>> layouts. But >>> for some reason, the Global fields in this new table do not work. >>> I enter >>> the fees in FMP and then when I quit the data base and then go back >>> on line, >>> those global fields are blank. I am not sure what I did >>> different? The >>> global field in the other table work fine. >>> >>> Is there some checkbox I am missing in the Define Data Base? >>> Indexing? Any >>> help would be appreciated. >>> >>> I even tried going back to the old second data base (the one I >>> copied the >>> fields from) and it works. All global info is there. But not in >>> the new >>> table in the first data base. >>> >>> Any ideas? >>> >>> Jon Montgomery >>> >>> -- >>> Jon Montgomery >>> Illinois Grade School Music Association >>> Home email: vicepresident@comcast.net >>> IGSMA email: vicepresident@igsmasouth.org >>> School email: jwmontgomery@dqud300.perry.k12.il.us >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Sat Aug 4 03:25:56 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Aug 4 03:26:02 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: <68E0406D-4FCC-4E7F-9C83-04E368BC852F@patin.com> References: <68E0406D-4FCC-4E7F-9C83-04E368BC852F@patin.com> Message-ID: I believe 958 shows up when some odd characters are used? On 8/4/07, Bob Patin wrote: > > False alarm, the error was something else... > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > > On Aug 3, 2007, at 1:47 PM, Jonathan Schwartz wrote: > > > Bob, > > > > > Not sure what you mean about trying to edit a field that wasn't in the Edit > form. Why would "first name" not be on every FMP record and every form, > regardless of whether the user filled in the field? > > > > > Regarding your shortcut request....I have a technique that was provided to > be my Steve Winter some time ago. It used a for loop walking through an > array to determine if there was a value to be inserted in a ADDDBParam > statement. Well, the $_POST is an array, and you could probably do the same > for each row of the array. > > > > > See what I mean? > > > > > HTH, > > > > > Jonathan > > _______________________________________________ > 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 Sat Aug 4 08:15:16 2007 From: bob at patin.com (Bob Patin) Date: Sat Aug 4 08:15:21 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: <68E0406D-4FCC-4E7F-9C83-04E368BC852F@patin.com> Message-ID: That's exactly what it was, I was off on a wild-goose chase. On Aug 4, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: > I believe 958 shows up when some odd characters are used? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070804/de5789d5/attachment.html From igsmasupport at igsmasouth.org Sat Aug 4 08:21:39 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Sat Aug 4 08:21:43 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: <72FEDD78-70E5-430F-AC12-5333561B989E@patin.com> Message-ID: Bob, I thought about doing that, and even checked to see if that is what I had done to the other data base that worked. It is just two fields and they don't change very often and when they do, I have lots of time before we use them. So I just went to the server and turned off that data base, I am the only one using it right now, plugged in the data and put it back on line. All works fine. Now that leads to another problem with FMS Admin program. I cannot connect remotely like I use to be able to do. In fact 2 weeks ago I could login to the FMSA server and now it cannot connect. Where should I start to trace the problem down. Both machines, server and remote, are Mac Intel's running Mac OS 10.4.10 (client not server). Thanks! Oh, have fun at the DevCon Jon On 8/3/07 11:15 PM, "Bob Patin" wrote: > Jon, > > Another idea would be to use a table with a single record in it, with > the fields that you are now using as globals. Then you can access the > fields when you need to, edit them as you need to, and not have to > worry about dealing with the globals. > > If you'll relate this table to all of your other tables you can then > access the fields' values whenever you need. > > Hope this helps, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > On Aug 3, 2007, at 6:41 PM, Jon Montgomery wrote: > >> Dale, Joel and Dan, >> Thank you for the quick response. >> >> Dale - after I read your response, I remembered reading that >> somewhere but >> at the time it did not apply to anything I was doing. So it did >> not remain >> in memory. That was the problem. >> >> Joel and Dan - I choose not to go the script way. And my mind was >> already >> numb. This global has not changed in 5 years so editing it is not >> a problem >> once you guys pointed out the problem. >> >> You all have fun at DEVCON. >> >> Jon Montgomery >> Illinois Grade School Music Association >> >> >> On 8/3/07 4:36 PM, "Dale Bengston" >> wrote: >> >>> When you're working on a hosted file, the globals are "temporary" to >>> the current user. If they were blank when the table was hosted, they >>> will revert the next time you open the file. >>> >>> To get globals to stick, you have to open the file locally with FMP >>> client, set the globals and then re-host the file. >>> >>> Dale >>> >>> On Aug 3, 2007, at 4:30 PM, Jon Montgomery wrote: >>> >>>> I have two data bases that were accessed via FX.PHP. Last year all >>>> worked >>>> fine. Clients entered events and then printed a billing sheet that >>>> they >>>> mailed in. Those billing sheets had some global fields for the >>>> fees and >>>> every thing worked! >>>> >>>> Now to take advantage of another table that ended up being the same >>>> in both >>>> data bases. I move the information in the second data base to the >>>> first >>>> data base (copy and paste the fields). Recreated the needed >>>> layouts. But >>>> for some reason, the Global fields in this new table do not work. >>>> I enter >>>> the fees in FMP and then when I quit the data base and then go back >>>> on line, >>>> those global fields are blank. I am not sure what I did >>>> different? The >>>> global field in the other table work fine. >>>> >>>> Is there some checkbox I am missing in the Define Data Base? >>>> Indexing? Any >>>> help would be appreciated. >>>> >>>> I even tried going back to the old second data base (the one I >>>> copied the >>>> fields from) and it works. All global info is there. But not in >>>> the new >>>> table in the first data base. >>>> >>>> Any ideas? >>>> >>>> Jon Montgomery >>>> >>>> -- >>>> Jon Montgomery >>>> Illinois Grade School Music Association >>>> Home email: vicepresident@comcast.net >>>> IGSMA email: vicepresident@igsmasouth.org >>>> School email: jwmontgomery@dqud300.perry.k12.il.us >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Sat Aug 4 10:04:24 2007 From: bob at patin.com (Bob Patin) Date: Sat Aug 4 10:04:30 2007 Subject: [FX.php List] Global field works on one table but not another? In-Reply-To: References: Message-ID: <2CCCD532-7261-4974-BDFF-ACAFF03AE5B7@patin.com> I wonder if something changed in the Preferences for FMSA Admin; there's a setting that will allow/disallow remote admin, and I bet that's where the problem is... Good luck! Bob On Aug 4, 2007, at 9:21 AM, Jon Montgomery wrote: > Bob, > I thought about doing that, and even checked to see if that is > what I > had done to the other data base that worked. It is just two fields > and they > don't change very often and when they do, I have lots of time > before we use > them. So I just went to the server and turned off that data base, > I am the > only one using it right now, plugged in the data and put it back on > line. > All works fine. > Now that leads to another problem with FMS Admin program. I > cannot > connect remotely like I use to be able to do. In fact 2 weeks ago > I could > login to the FMSA server and now it cannot connect. Where should I > start to > trace the problem down. Both machines, server and remote, are Mac > Intel's > running Mac OS 10.4.10 (client not server). > > Thanks! > > Oh, have fun at the DevCon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070804/3e9e4b62/attachment.html From whatdoyouwant at gmail.com Sat Aug 4 11:37:28 2007 From: whatdoyouwant at gmail.com (Nick) Date: Sat Aug 4 11:37:32 2007 Subject: [FX.php List] Differences between FMS9 and FMS8A In-Reply-To: <36D90291-6D47-4159-8607-67535B602DED@fmutils.com> References: <36D90291-6D47-4159-8607-67535B602DED@fmutils.com> Message-ID: <4d370f710708041037p65e12d53m3cbf2bfcbf0943be@mail.gmail.com> well, filemaker introduced a "-findquery" in 9's xml response, which helps you do complex finds. also, the server seems much faster (at least the clients do after installing server 9 advanced). that's all i know of as it's all i use. On 7/29/07, Glenn Singleton wrote: > > G'day, > > Anyone found *ANY* differences in how fx.php operates between FMS9 > and FMS8A ? > > I have been running a test system (without change) for two weeks with > no problems, but it is only a simple system of about 5 files in one > hosted FP7. > > I have been told by FM (unofficially), that it is *exactly* the same > engine as FMS8A. Is that actually posted somewhere on a FM web site ? > > Is it faster ? > > Any heads up appreciated. > > Regards > Singo > Down under on 28k > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070804/f20a297c/attachment.html From ggt667 at gmail.com Sun Aug 5 03:25:23 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Aug 5 03:25:28 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: <68E0406D-4FCC-4E7F-9C83-04E368BC852F@patin.com> Message-ID: Then check that you are using UTF-8 as encoding for the submitted form and the problem should vanish. On 8/4/07, Bob Patin wrote: > That's exactly what it was, I was off on a wild-goose chase. > > > > > On Aug 4, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: > > > I believe 958 shows up when some odd characters are used? > > _______________________________________________ > 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 Sun Aug 5 09:25:08 2007 From: bob at patin.com (Bob Patin) Date: Sun Aug 5 09:25:15 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: <68E0406D-4FCC-4E7F-9C83-04E368BC852F@patin.com> Message-ID: That's what I did; I've managed to forget about that issue about 5 times now... On Aug 5, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: > Then check that you are using UTF-8 as encoding for the submitted form > and the problem should vanish. > > On 8/4/07, Bob Patin wrote: >> That's exactly what it was, I was off on a wild-goose chase. >> >> >> >> >> On Aug 4, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: >> >> >> I believe 958 shows up when some odd characters are used? >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 igsmasupport at igsmasouth.org Sun Aug 5 10:41:37 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Sun Aug 5 10:41:42 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: Message-ID: How do you make sure that you are submitting UTF-8? Jon Montgomery On 8/5/07 10:25 AM, "Bob Patin" wrote: > That's what I did; I've managed to forget about that issue about 5 > times now... > > > On Aug 5, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: > >> Then check that you are using UTF-8 as encoding for the submitted form >> and the problem should vanish. >> >> On 8/4/07, Bob Patin wrote: >>> That's exactly what it was, I was off on a wild-goose chase. >>> >>> >>> >>> >>> On Aug 4, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: >>> >>> >>> I believe 958 shows up when some odd characters are used? >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Sun Aug 5 10:44:28 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Aug 5 10:44:32 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: Message-ID: There are two main ways one way is the in the webserver config script the other way is pr page, using the meta tag ggt667 On 8/5/07, Jon Montgomery wrote: > How do you make sure that you are submitting UTF-8? > > Jon Montgomery > > > On 8/5/07 10:25 AM, "Bob Patin" wrote: > > > That's what I did; I've managed to forget about that issue about 5 > > times now... > > > > > > On Aug 5, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: > > > >> Then check that you are using UTF-8 as encoding for the submitted form > >> and the problem should vanish. > >> > >> On 8/4/07, Bob Patin wrote: > >>> That's exactly what it was, I was off on a wild-goose chase. > >>> > >>> > >>> > >>> > >>> On Aug 4, 2007, at 4:25 AM, Gjermund Gusland Thorsen wrote: > >>> > >>> > >>> I believe 958 shows up when some odd characters are used? > >>> > >>> _______________________________________________ > >>> FX.php_List mailing list > >>> FX.php_List@mail.iviking.org > >>> http://www.iviking.org/mailman/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 rodney at fmpro2go.com Sun Aug 5 21:01:49 2007 From: rodney at fmpro2go.com (Rodney Schmidt) Date: Sun Aug 5 21:01:58 2007 Subject: [FX.php List] Parsing problem? Message-ID: Dear friends: I am using a bit of code to return a search using FX.php findall. In one of my calculations, the URL returned in the browser is different from the actual code in the PHP request. I am sure that I am doing something dumb, but if someone can give me a suggestion, it would be appreciated. Thank you very much. -- Rodney Schmidt MAC OS 10.4.10 PHP 5.2.2 Apache 1.3 using FX.php -------------- The PHP code below yields this URL in browsers and immediately returns to the first page of the query instead of the previous page: http://xxxxxxx/FX/query.php?skip=%3C?echo%20($skipsize-$groupsize);%20?%3E The symbols < and > and " seem to be parsed incorrectly by PHP, or have I missed something here? (I am sure that I have made a dumb mistake . . .) ------- The rest of the code is here: SetDBData('Inquiry.fp7','records',$groupsize); $search -> SetDBPassword($webPW,$webUN); $search -> FMSkipRecords($skipsize); $searchResult = $search -> FMFindall(); ?> 0){ ?> First  |   Prev   |   Next  |   Last From kfutter at sbc.melb.catholic.edu.au Sun Aug 5 21:19:47 2007 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Sun Aug 5 21:21:16 2007 Subject: [FX.php List] Parsing problem? In-Reply-To: Message-ID: On 6/8/07 1:01 PM, "Rodney Schmidt" wrote: > Dear friends: > > I am using a bit of code to return a search using FX.php findall. In one of > my calculations, the URL returned in the browser is different from the > actual code in the PHP request. I am sure that I am doing something dumb, > but if someone can give me a suggestion, it would be appreciated. > > Thank you very much. I can't be certain, but I've a feeling that introducing a PHP code block with the shorthand method (" References: Message-ID: <0DC9DEAF-3066-4B57-AA15-E34FCA3A1F93@patin.com> Rodney, If you did this in Dreamweaver, that might be where your problem occurred. In your raw code, do you see the < bracket, or do you see %3C ? I don't know HTML equivalents, but I bet that's the equivalent for a left caret. Good luck, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Aug 5, 2007, at 11:01 PM, Rodney Schmidt wrote: > Dear friends: > > I am using a bit of code to return a search using FX.php findall. > In one of > my calculations, the URL returned in the browser is different from the > actual code in the PHP request. I am sure that I am doing something > dumb, > but if someone can give me a suggestion, it would be appreciated. > > Thank you very much. > > -- > Rodney Schmidt > > MAC OS 10.4.10 > PHP 5.2.2 > Apache 1.3 > using FX.php > -------------- > The PHP code below > > > > yields this URL in browsers and immediately returns to the first > page of the > query instead of the previous page: > > http://xxxxxxx/FX/query.php?skip=%3C?echo%20($skipsize-$groupsize);% > 20?%3E > > The symbols < and > and " seem to be parsed incorrectly by PHP, or > have I > missed something here? > > (I am sure that I have made a dumb mistake . . .) > > ------- > > The rest of the code is here: > > include_once('FX.php'); > include_once('server_data.php'); > > if(isset($_GET['skip'])){ > > $skipsize=$_GET['skip']; > }else{ > $skipsize=0; > } > $groupsize=25; > $search = new FX($serverIP,$webCompanionPort); > $search -> SetDBData('Inquiry.fp7','records',$groupsize); > $search -> SetDBPassword($webPW,$webUN); > $search -> FMSkipRecords($skipsize); > $searchResult = $search -> FMFindall(); > > ?> > > 0){ ?> > First  |   > Prev >   |   > > > if($skipsize + $groupsize<$searchResult['foundCount']){ > $pages = explode('.',($searchResult['foundCount']/$groupsize)); > $pages_skip = $pages[0]; > ?> > > Next  |   > Last > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From rodney at fmpro2go.com Sun Aug 5 22:16:36 2007 From: rodney at fmpro2go.com (Rodney Schmidt) Date: Sun Aug 5 22:16:51 2007 Subject: [FX.php List] Re: Parsing problem? In-Reply-To: <20070806032119.BC3675436B2@www.iviking.org> Message-ID: Yes, you are correct. So obvious! Thank you very much! -- Rodney Schmidt > From: "fx.php_list-request@mail.iviking.org" > > Reply-To: > Date: Sun, 5 Aug 2007 21:21:19 -0600 (MDT) > To: > Subject: FX.php_List Digest, Vol 37, Issue 8 > > Message: 8 > Date: Mon, 06 Aug 2007 13:19:47 +1000 > From: Kevin Futter > Subject: Re: [FX.php List] Parsing problem? > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > On 6/8/07 1:01 PM, "Rodney Schmidt" wrote: > >> Dear friends: >> >> I am using a bit of code to return a search using FX.php findall. In one of >> my calculations, the URL returned in the browser is different from the >> actual code in the PHP request. I am sure that I am doing something dumb, >> but if someone can give me a suggestion, it would be appreciated. >> >> Thank you very much. > > I can't be certain, but I've a feeling that introducing a PHP code block > with the shorthand method (" with the full " anyway. > > > -- > Kevin Futter > Webmaster, St. Bernard's College > http://www.sbc.melb.catholic.edu.au/ From igsmasupport at igsmasouth.org Mon Aug 6 12:58:58 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Mon Aug 6 12:59:04 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: Message-ID: ggt, Is it safe to use UTF-8 on ALL of my php pages? Or just the ones submitting data to FM? Jon Montgomery On 8/5/07 11:44 AM, "Gjermund Gusland Thorsen" wrote: > There are two main ways > > one way is the in the webserver config script > > the other way is pr page, using the meta tag > > ggt667 > > On 8/5/07, Jon Montgomery wrote: >> How do you make sure that you are submitting UTF-8? >> >> Jon Montgomery >> From ggt667 at gmail.com Mon Aug 6 13:18:16 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Aug 6 13:18:21 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: References: Message-ID: Win 98 and MacOS 9.2.2 does use ISO-8859-1 as standard, not sure about the level og backward compatibility, however I do not worry about such old OSes anymore... ggt667 On 8/6/07, Jon Montgomery wrote: > ggt, > > Is it safe to use UTF-8 on ALL of my php pages? Or just the ones submitting > data to FM? > > Jon Montgomery > > On 8/5/07 11:44 AM, "Gjermund Gusland Thorsen" wrote: > > > There are two main ways > > > > one way is the in the webserver config script > > > > the other way is pr page, using the meta tag > > > > ggt667 > > > > On 8/5/07, Jon Montgomery wrote: > >> How do you make sure that you are submitting UTF-8? > >> > >> Jon Montgomery > >> > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From igsmasupport at igsmasouth.org Mon Aug 6 13:36:55 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Mon Aug 6 13:37:02 2007 Subject: [FX.php List] A question about editing a record In-Reply-To: Message-ID: I tech at a public school in Illinois. We still have a lab that uses Win 98! We also have and XP lab. But I really don't worry about it either. If a school using my site has old Oses, they just have to get an upgrade. It has helped many music departments to get an upgrade. The fine arts are usually at the bottom of the list for upgrades. Thanks for your help! Jon Montgomery Illinois Grade School Music Association On 8/6/07 2:18 PM, "Gjermund Gusland Thorsen" wrote: > Win 98 and MacOS 9.2.2 does use ISO-8859-1 as standard, not sure about > the level og backward compatibility, however I do not worry about such > old OSes anymore... > > ggt667 > > On 8/6/07, Jon Montgomery wrote: >> ggt, >> >> Is it safe to use UTF-8 on ALL of my php pages? Or just the ones submitting >> data to FM? >> >> Jon Montgomery >> >> On 8/5/07 11:44 AM, "Gjermund Gusland Thorsen" wrote: >> >>> There are two main ways >>> >>> one way is the in the webserver config script >>> >>> the other way is pr page, using the meta tag >>> >>> ggt667 >>> >>> On 8/5/07, Jon Montgomery wrote: >>>> How do you make sure that you are submitting UTF-8? >>>> >>>> Jon Montgomery >>>> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Tue Aug 7 08:29:00 2007 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Aug 7 08:30:15 2007 Subject: [FX.php List] Creating formatting from FX Message-ID: <20070807143010.2513E558A71@www.iviking.org> Hi all, I?m working on a solution which uses FMP as the backend db for both desktop and web users, essentially I?m adding a web component to an existing system. In the desktop based version they use a standard field to record ?notes?. The business rule of the organisation is, if you add a note, you add initials and date, in bold, after that note. It comes to pass that I need to put some information into that notes filed from FX. Is there any way to force specific characters in a text field to be in bold...? Thanks Steve No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 6/08/2007 4:53 p.m. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070807/363c770f/attachment.html From chris at iViking.org Tue Aug 7 09:11:20 2007 From: chris at iViking.org (Chris Hansen) Date: Tue Aug 7 09:12:25 2007 Subject: [FX.php List] Creating formatting from FX In-Reply-To: <20070807143010.2513E558A71@www.iviking.org> References: <20070807143010.2513E558A71@www.iviking.org> Message-ID: <06A1CE25-0464-4BB2-AAF4-DEECD8D036A7@iViking.org> Steve, I don't know of any definitive way of doing this. If it did work, it would have to be on the FileMaker side, as this isn't something that the WPE really allows for. I'd experiment with writing to a global, and then using a FileMaker script to write in the data and formatting. I'm not sure if that would work, but that's what I'd try. HTH --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Aug 7, 2007, at 8:29 AM, Steve Winter wrote: > Hi all, > > > > I?m working on a solution which uses FMP as the backend db for both > desktop and web users, essentially I?m adding a web component to an > existing system. In the desktop based version they use a standard > field to record ?notes?. > > > > The business rule of the organisation is, if you add a note, you > add initials and date, in bold, after that note. It comes to pass > that I need to put some information into that notes filed from FX. > Is there any way to force specific characters in a text field to be > in bold...? > > > > Thanks > > Steve > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: > 6/08/2007 4:53 p.m. > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From william.downs at gmail.com Tue Aug 7 09:48:37 2007 From: william.downs at gmail.com (William Downs) Date: Tue Aug 7 09:48:40 2007 Subject: [FX.php List] Populating a global field Message-ID: <3b77f2170708070848k7f4f20f7s5045c451fd9e8fc2@mail.gmail.com> Hi there experts I have read in a recent post that it is possible to populate a global field in Filemaker using FX.php - this used to be a no go, so can someone please tell me what has changed ? I am still using FM7SA - is this perhaps the reason why I cannot do it - or is also in the FX.php code ? Any answers happily excepted Many thanks in advance William From dbengston at preservationstudio.com Tue Aug 7 09:55:45 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Tue Aug 7 09:55:51 2007 Subject: [FX.php List] Populating a global field In-Reply-To: <3b77f2170708070848k7f4f20f7s5045c451fd9e8fc2@mail.gmail.com> References: <3b77f2170708070848k7f4f20f7s5045c451fd9e8fc2@mail.gmail.com> Message-ID: <12732CF8-14FD-469E-A580-0213FDA534C3@preservationstudio.com> Each web "connection" made to FMSA is a different user, in my understanding. Therefore globals are set and forgotten each time the user loads another page. As an alternative from the web, I would suggest storing temp/global information in PHP session variables. Dale On Aug 7, 2007, at 10:48 AM, William Downs wrote: > Hi there experts > > I have read in a recent post that it is possible to populate a global > field in Filemaker using FX.php - this used to be a no go, so can > someone please tell me what has changed ? > > I am still using FM7SA - is this perhaps the reason why I cannot do it > - or is also in the FX.php code ? > > Any answers happily excepted > > Many thanks in advance > > William > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Tue Aug 7 10:04:01 2007 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Aug 7 10:04:04 2007 Subject: [FX.php List] Creating formatting from FX Message-ID: <6481991.16491186502641946.JavaMail.ken@troymeyers.com> Steve, I've dealt with something similar, and not that it's the best way, I collected the notes in one field, the user name in another, and the date in another... and then calculated the field that would be seen as a final result using the 3 source fields. The calculated field is just the concatenation of the 3 fields, but with TextStyleAdd(text;styles) do the style shift, in your case Bold for the style. -Troy > Hi all, > > I?m working on a solution which uses FMP as the backend db for both > desktop and web users, essentially I?m adding a web component to an > existing system. In the desktop based version they use a standard field > to record ?notes?. > > The business rule of the organisation is, if you add a note, you add > initials and date, in bold, after that note. It comes to pass that I > need to put some information into that notes filed from FX. Is there any > way to force specific characters in a text field to be in bold...? > > Thanks > > Steve From chris at iViking.org Tue Aug 7 10:12:04 2007 From: chris at iViking.org (Chris Hansen) Date: Tue Aug 7 10:13:10 2007 Subject: [FX.php List] Populating a global field In-Reply-To: <12732CF8-14FD-469E-A580-0213FDA534C3@preservationstudio.com> References: <3b77f2170708070848k7f4f20f7s5045c451fd9e8fc2@mail.gmail.com> <12732CF8-14FD-469E-A580-0213FDA534C3@preservationstudio.com> Message-ID: <2F90812F-733E-46D6-87DA-C1CF9122397C@iViking.org> Right. Globals have always worked, but their contents can only be used for the current query. Once the data comes back, the global is wiped, and future connections will have to reset the field. As Dale says, if you need to store persistent information, use PHP sessions. --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Aug 7, 2007, at 9:55 AM, Dale Bengston wrote: > Each web "connection" made to FMSA is a different user, in my > understanding. Therefore globals are set and forgotten each time > the user loads another page. > > As an alternative from the web, I would suggest storing temp/global > information in PHP session variables. > > Dale > > On Aug 7, 2007, at 10:48 AM, William Downs wrote: > >> Hi there experts >> >> I have read in a recent post that it is possible to populate a global >> field in Filemaker using FX.php - this used to be a no go, so can >> someone please tell me what has changed ? >> >> I am still using FM7SA - is this perhaps the reason why I cannot >> do it >> - or is also in the FX.php code ? >> >> Any answers happily excepted >> >> Many thanks in advance >> >> William >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From tcmeyers at troymeyers.com Tue Aug 7 10:22:11 2007 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Aug 7 10:22:14 2007 Subject: [FX.php List] [OFF sort of] Shifting from 8.5 to 9 gradually Message-ID: <4705121.16811186503731717.JavaMail.ken@troymeyers.com> I've got FileMaker Pro 9, FileMaker Pro 9 Advanced, and FileMaker Server 9 from the FMI maintenance program, but I haven't installed or used any of them yet. We are a small company, and I do all the customer service, orders, FM and web programming... not enough hours in the day. I'd like to gently switch to 9 if possible, a piece at a time. It's very important that I don't mess up our web site, 100% of our sales come from there, so I _think_ I'd like to cope with switching Server over last. I'd like to be able to use the advanced authoring tools of FMPro 9 Advanced right way (like having multiple script windows open), so I _think_ I'd like to put that on my machine first. If it takes it, I could avoid using new database features so that the client machines (10 of them, FMP 8.5) don't urp. Can I mix the various versions of the different components without causing troubles? I sure don't want my PHP to stop working, let alone employees' workstations. -Troy From rogerkiwi at aol.com Tue Aug 7 11:01:41 2007 From: rogerkiwi at aol.com (Roger Moffat) Date: Tue Aug 7 11:01:51 2007 Subject: [FX.php List] [OFF sort of] Shifting from 8.5 to 9 gradually In-Reply-To: <4705121.16811186503731717.JavaMail.ken@troymeyers.com> References: <4705121.16811186503731717.JavaMail.ken@troymeyers.com> Message-ID: On Aug 7, 2007, at 12:22 PM, Troy Meyers wrote: > I'd like to be able to use the advanced authoring tools of FMPro 9 > Advanced right way (like having multiple script windows open), so I > _think_ I'd like to put that on my machine first. If it takes it, I > could avoid using new database features so that the client machines > (10 of them, FMP 8.5) don't urp. > > Can I mix the various versions of the different components without > causing troubles? > > I sure don't want my PHP to stop working, let alone employees' > workstations. I'm doing that at the moment... I didn't buy maintenance on FM Server Advanced, so am using FM Server Advanced 8.0 with databases that are now being developed using FileMaker Pro Advanced 9. It was as simple as installing the FileMaker Pro Advanced 9 software - it has taken over the .fp7 files on my machine and they open with a double click. The PHP should be unaffected by this change. Cheers Roger From tcmeyers at troymeyers.com Tue Aug 7 11:59:55 2007 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Aug 7 12:00:00 2007 Subject: [FX.php List] [OFF sort of] Shifting from 8.5 to 9 gradually Message-ID: <7153636.31186509595513.JavaMail.tcmeyers@troymeyers.com> Thanks Roger, I guess it's not too much of a leap to install FMP 9 on the workstations too, if it all works with Server 8 Advanced. That way I won't have to hold back using new design features. I guess I'm kind of waiting to make sure there isn't fallout reported about switching from Server 8 Advanced to Server 9 Advanced regarding PHP trouble or other configuration troubles. We only have one machine for both the FileMaker server and the web serving... which I think someone said is no longer recommended. I'd like to keep it on one if I could, when I'm brave enough to switch. I just dread having hours or days that the site doesn't work because of the switch. -Troy > I'm doing that at the moment... > > I didn't buy maintenance on FM Server Advanced, so am using FM Server > Advanced 8.0 with databases that are now being developed using > FileMaker Pro Advanced 9. > > It was as simple as installing the FileMaker Pro Advanced 9 software > - it has taken over the .fp7 files on my machine and they open with a > double click. > > The PHP should be unaffected by this change. > > Cheers > > Roger From ggt667 at gmail.com Tue Aug 7 15:18:50 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Aug 7 15:18:54 2007 Subject: [FX.php List] Populating a global field In-Reply-To: <2F90812F-733E-46D6-87DA-C1CF9122397C@iViking.org> References: <3b77f2170708070848k7f4f20f7s5045c451fd9e8fc2@mail.gmail.com> <12732CF8-14FD-469E-A580-0213FDA534C3@preservationstudio.com> <2F90812F-733E-46D6-87DA-C1CF9122397C@iViking.org> Message-ID: However you should be able to set a global with FMEdit to retrieve related data through a portal if that is what you are attempting to do... ggt667 On 8/7/07, Chris Hansen wrote: > Right. Globals have always worked, but their contents can only be > used for the current query. Once the data comes back, the global is > wiped, and future connections will have to reset the field. As Dale > says, if you need to store persistent information, use PHP sessions. > > --Chris Hansen > FileMaker 8 Certified Developer > FileMaker 7 Certified Developer > Creator of FX.php > "The best way from FileMaker to the Web." > www.iViking.org > > > On Aug 7, 2007, at 9:55 AM, Dale Bengston wrote: > > > Each web "connection" made to FMSA is a different user, in my > > understanding. Therefore globals are set and forgotten each time > > the user loads another page. > > > > As an alternative from the web, I would suggest storing temp/global > > information in PHP session variables. > > > > Dale > > > > On Aug 7, 2007, at 10:48 AM, William Downs wrote: > > > >> Hi there experts > >> > >> I have read in a recent post that it is possible to populate a global > >> field in Filemaker using FX.php - this used to be a no go, so can > >> someone please tell me what has changed ? > >> > >> I am still using FM7SA - is this perhaps the reason why I cannot > >> do it > >> - or is also in the FX.php code ? > >> > >> Any answers happily excepted > >> > >> Many thanks in advance > >> > >> William > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Tue Aug 7 15:21:49 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Aug 7 15:21:52 2007 Subject: [FX.php List] [OFF sort of] Shifting from 8.5 to 9 gradually In-Reply-To: <7153636.31186509595513.JavaMail.tcmeyers@troymeyers.com> References: <7153636.31186509595513.JavaMail.tcmeyers@troymeyers.com> Message-ID: FMSA 8 and 9 are essentially the same, database hosting wise. However admining is a little bit better. ggt667 On 8/7/07, Troy Meyers wrote: > Thanks Roger, I guess it's not too much of a leap to install FMP 9 on the workstations too, if it all works with Server 8 Advanced. That way I won't have to hold back using new design features. > > I guess I'm kind of waiting to make sure there isn't fallout reported about switching from Server 8 Advanced to Server 9 Advanced regarding PHP trouble or other configuration troubles. We only have one machine for both the FileMaker server and the web serving... which I think someone said is no longer recommended. I'd like to keep it on one if I could, when I'm brave enough to switch. I just dread having hours or days that the site doesn't work because of the switch. > > -Troy > > > > I'm doing that at the moment... > > > > I didn't buy maintenance on FM Server Advanced, so am using FM Server > > Advanced 8.0 with databases that are now being developed using > > FileMaker Pro Advanced 9. > > > > It was as simple as installing the FileMaker Pro Advanced 9 software > > - it has taken over the .fp7 files on my machine and they open with a > > double click. > > > > The PHP should be unaffected by this change. > > > > Cheers > > > > Roger > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From steve at holecomm.ca Tue Aug 7 11:04:01 2007 From: steve at holecomm.ca (Steve St-Laurent) Date: Tue Aug 7 15:55:39 2007 Subject: [FX.php List] Decimal rounding Message-ID: <8C22104E-914B-4FEC-960A-22686DC69659@holecomm.ca> I have three dollar values, formatted to two decimal places both as Round calculations and in the number formatting on the layout. But I'm unable to get them to the browser with two decimal places. Sometimes I get two, sometimes one, sometimes none if the dollars are a whole number. I'm v-e-r-y new to fx.php and to PHP generally. Any ideas how to resolve this? Thx. ------------------ Steve St-Laurent Hole-in-the-Wall Communications Vancouver, BC | steve@holecomm.ca From igsmasupport at igsmasouth.org Tue Aug 7 16:08:26 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Tue Aug 7 16:08:31 2007 Subject: [FX.php List] Decimal rounding In-Reply-To: <8C22104E-914B-4FEC-960A-22686DC69659@holecomm.ca> Message-ID: Steve, Here is what I use to show dollar signs to two places on a browser. I found this at: http://us.php.net/manual/en/function.number-format.php Don't know if this is what you are after as I don't need to round, but hope it helps! Jon Montgomery Illinois Grade School Music Association On 8/7/07 12:04 PM, "Steve St-Laurent" wrote: > I have three dollar values, formatted to two decimal places both as > Round calculations and in the number formatting on the layout. But > I'm unable to get them to the browser with two decimal places. > Sometimes I get two, sometimes one, sometimes none if the dollars are > a whole number. > > I'm v-e-r-y new to fx.php and to PHP generally. Any ideas how to > resolve this? Thx. > > ------------------ > Steve St-Laurent > Hole-in-the-Wall Communications > Vancouver, BC | steve@holecomm.ca > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Tue Aug 7 16:34:58 2007 From: bob at patin.com (Bob Patin) Date: Tue Aug 7 16:35:18 2007 Subject: [FX.php List] [OFF sort of] Shifting from 8.5 to 9 gradually In-Reply-To: References: <7153636.31186509595513.JavaMail.tcmeyers@troymeyers.com> Message-ID: <715C4AAD-B510-48A4-A9CB-0CB28CD671F8@patin.com> There are some significant differences in FM Server 9: 1. You don't have to install the Web Publishing Engine to do PHP hosting anymore (at least with the FM API). 2. When you do backups, you can choose to have consistency checked in your backups, which is a very good idea. 3. You don't have to install Admin software on any computer in order to administer the server. You can run the Admin from any browser on any computer (any modern OS that is). 4. THIS ONE IS HUGE FOR MY COMPANY: You can upload files directly to the server, and server will open them (both Windows and Mac), and in Mac OS X will even set permissions properly. It'll even enable network access for you as well if you forget to enable it in your databases. 5. You can do PHP with FM Server, and don't have to buy FM Server Advanced--which for many people will be a welcome change. On Aug 7, 2007, at 5:21 PM, Gjermund Gusland Thorsen wrote: > FMSA 8 and 9 are essentially the same, database hosting wise. > > However admining is a little bit better. > > ggt667 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070807/e1c79be6/attachment-0001.html From ggt667 at gmail.com Tue Aug 7 16:46:33 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Aug 7 16:46:37 2007 Subject: [FX.php List] Decimal rounding In-Reply-To: References: <8C22104E-914B-4FEC-960A-22686DC69659@holecomm.ca> Message-ID: This is also an option: http://www.php.net/manual/en/function.money-format.php On 8/8/07, Jon Montgomery wrote: > Steve, > Here is what I use to show dollar signs to two places on a browser. > > > > I found this at: http://us.php.net/manual/en/function.number-format.php > > Don't know if this is what you are after as I don't need to round, but hope > it helps! > > Jon Montgomery > Illinois Grade School Music Association > > > On 8/7/07 12:04 PM, "Steve St-Laurent" wrote: > > > I have three dollar values, formatted to two decimal places both as > > Round calculations and in the number formatting on the layout. But > > I'm unable to get them to the browser with two decimal places. > > Sometimes I get two, sometimes one, sometimes none if the dollars are > > a whole number. > > > > I'm v-e-r-y new to fx.php and to PHP generally. Any ideas how to > > resolve this? Thx. > > > > ------------------ > > Steve St-Laurent > > Hole-in-the-Wall Communications > > Vancouver, BC | steve@holecomm.ca > > > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Tue Aug 7 16:48:03 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Aug 7 16:48:08 2007 Subject: [FX.php List] [OFF sort of] Shifting from 8.5 to 9 gradually In-Reply-To: <715C4AAD-B510-48A4-A9CB-0CB28CD671F8@patin.com> References: <7153636.31186509595513.JavaMail.tcmeyers@troymeyers.com> <715C4AAD-B510-48A4-A9CB-0CB28CD671F8@patin.com> Message-ID: In terms of the technical terms hosting I do not see the big difference. On 8/8/07, Bob Patin wrote: > There are some significant differences in FM Server 9: > > 1. You don't have to install the Web Publishing Engine to do PHP hosting > anymore (at least with the FM API). > > 2. When you do backups, you can choose to have consistency checked in your > backups, which is a very good idea. > > 3. You don't have to install Admin software on any computer in order to > administer the server. You can run the Admin from any browser on any > computer (any modern OS that is). > > 4. THIS ONE IS HUGE FOR MY COMPANY: You can upload files directly to the > server, and server will open them (both Windows and Mac), and in Mac OS X > will even set permissions properly. It'll even enable network access for you > as well if you forget to enable it in your databases. > > 5. You can do PHP with FM Server, and don't have to buy FM Server > Advanced--which for many people will be a welcome change. > > > > On Aug 7, 2007, at 5:21 PM, Gjermund Gusland Thorsen wrote: > > > FMSA 8 and 9 are essentially the same, database hosting wise. > > > > > However admining is a little bit better. > > > > > ggt667 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From dbengston at preservationstudio.com Tue Aug 7 19:56:29 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Tue Aug 7 19:56:28 2007 Subject: [FX.php List] Decimal rounding In-Reply-To: References: <8C22104E-914B-4FEC-960A-22686DC69659@holecomm.ca> Message-ID: Watch out though. The money_format function does not work if your PHP/ web server is running on Windows. Dale On Aug 7, 2007, at 5:46 PM, Gjermund Gusland Thorsen wrote: > This is also an option: http://www.php.net/manual/en/function.money- > format.php > > On 8/8/07, Jon Montgomery wrote: >> Steve, >> Here is what I use to show dollar signs to two places on a >> browser. >> >> > '); ?> >> >> I found this at: http://us.php.net/manual/en/function.number- >> format.php >> >> Don't know if this is what you are after as I don't need to round, >> but hope >> it helps! >> >> Jon Montgomery >> Illinois Grade School Music Association >> >> >> On 8/7/07 12:04 PM, "Steve St-Laurent" wrote: >> >>> I have three dollar values, formatted to two decimal places both as >>> Round calculations and in the number formatting on the layout. But >>> I'm unable to get them to the browser with two decimal places. >>> Sometimes I get two, sometimes one, sometimes none if the dollars >>> are >>> a whole number. >>> >>> I'm v-e-r-y new to fx.php and to PHP generally. Any ideas how to >>> resolve this? Thx. >>> >>> ------------------ >>> Steve St-Laurent >>> Hole-in-the-Wall Communications >>> Vancouver, BC | steve@holecomm.ca >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 info at visioncomputerconsulting.com Tue Aug 7 21:07:45 2007 From: info at visioncomputerconsulting.com (Vision Computer Consulting) Date: Tue Aug 7 21:07:51 2007 Subject: [FX.php List] Decimal rounding In-Reply-To: References: <8C22104E-914B-4FEC-960A-22686DC69659@holecomm.ca> Message-ID: <11BBA00B-4C74-4884-989E-04A6CCCFE51B@visioncomputerconsulting.com> You might want to try $decimal_number = number_format(12,2) and do echo $$decimal_number (outputs e $12.00). On Aug 7, 2007, at 6:56 PM, Dale Bengston wrote: > Watch out though. The money_format function does not work if your > PHP/web server is running on Windows. > > Dale > > On Aug 7, 2007, at 5:46 PM, Gjermund Gusland Thorsen wrote: > >> This is also an option: http://www.php.net/manual/en/ >> function.money-format.php >> >> On 8/8/07, Jon Montgomery wrote: >>> Steve, >>> Here is what I use to show dollar signs to two places on a >>> browser. >>> >>> >> 2,'.',' '); ?> >>> >>> I found this at: http://us.php.net/manual/en/function.number- >>> format.php >>> >>> Don't know if this is what you are after as I don't need to >>> round, but hope >>> it helps! >>> >>> Jon Montgomery >>> Illinois Grade School Music Association >>> >>> >>> On 8/7/07 12:04 PM, "Steve St-Laurent" wrote: >>> >>>> I have three dollar values, formatted to two decimal places both as >>>> Round calculations and in the number formatting on the layout. But >>>> I'm unable to get them to the browser with two decimal places. >>>> Sometimes I get two, sometimes one, sometimes none if the >>>> dollars are >>>> a whole number. >>>> >>>> I'm v-e-r-y new to fx.php and to PHP generally. Any ideas how to >>>> resolve this? Thx. >>>> >>>> ------------------ >>>> Steve St-Laurent >>>> Hole-in-the-Wall Communications >>>> Vancouver, BC | steve@holecomm.ca >>>> >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/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 rodney at fmpro2go.com Tue Aug 7 22:19:50 2007 From: rodney at fmpro2go.com (Rodney Schmidt) Date: Tue Aug 7 22:20:06 2007 Subject: [FX.php List] Re: Parsing problem? In-Reply-To: <20070807155550.7F4C4558CED@www.iviking.org> Message-ID: I want to thank Bob Patin and Kevin Futter who responded to me and the list about this problem. The code in question had been copied from a book I purchased online that had an important omission. Thanks to your comments, I corrected the code and all works fine now. I do not entirely fault the book, for I should have been more observant and known better. I have learned. Corrected code snippet is below, original first: Thanks again. -- Rodney Schmidt > From: "fx.php_list-request@mail.iviking.org" > > Reply-To: > Date: Tue, 7 Aug 2007 09:55:50 -0600 (MDT) > To: > Subject: FX.php_List Digest, Vol 37, Issue 9 > > > Message: 1 > Date: Mon, 6 Aug 2007 00:11:55 -0400 > From: Bob Patin > Subject: Re: [FX.php List] Parsing problem? > To: "FX.php Discussion List" > Message-ID: <0DC9DEAF-3066-4B57-AA15-E34FCA3A1F93@patin.com> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Rodney, > > If you did this in Dreamweaver, that might be where your problem > occurred. > > In your raw code, do you see the < bracket, or do you see %3C ? I > don't know HTML equivalents, but I bet that's the equivalent for a > left caret. > > Good luck, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > On Aug 5, 2007, at 11:01 PM, Rodney Schmidt wrote: > >> Dear friends: >> >> I am using a bit of code to return a search using FX.php findall. >> In one of >> my calculations, the URL returned in the browser is different from the >> actual code in the PHP request. I am sure that I am doing something >> dumb, >> but if someone can give me a suggestion, it would be appreciated. >> >> Thank you very much. >> >> -- >> Rodney Schmidt From jlannon at gmail.com Wed Aug 8 10:35:00 2007 From: jlannon at gmail.com (John Lannon) Date: Wed Aug 8 10:35:05 2007 Subject: [FX.php List] Re: FX.php_List Digest, Vol 37, Issue 10 In-Reply-To: <20070807223520.736665596BE@www.iviking.org> References: <20070807223520.736665596BE@www.iviking.org> Message-ID: <2f1e67ef0708080935v455cb4f5k8eb67e6518cebecc@mail.gmail.com> > Message: 10 > Date: Tue, 7 Aug 2007 18:34:58 -0400 > From: Bob Patin > Subject: Re: [FX.php List] [OFF sort of] Shifting from 8.5 to 9 > gradually > To: "FX.php Discussion List" > Message-ID: <715C4AAD-B510-48A4-A9CB-0CB28CD671F8@patin.com> > Content-Type: text/plain; charset="us-ascii" > > There are some significant differences in FM Server 9: > > 1. You don't have to install the Web Publishing Engine to do PHP > hosting anymore (at least with the FM API). Regarding Bob's point #1: I was under the impression that the Web Publishing Engine is still necessary for Web Publishing in 9. However, Server 9 and Server 9 Advanced both ship with the WPE. The difference is that Server 9 does not ship with Instant Web Publishing and ODBC/JDBC support. So - and please correct me if I'm wrong - one still has to deal with WPE (and it's concomitant Java quirks). John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070808/dfcacce9/attachment.html From tcmeyers at troymeyers.com Wed Aug 8 11:46:05 2007 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Wed Aug 8 11:46:08 2007 Subject: [FX.php List] Not a valid path - for scheduled backups Message-ID: <1330621.1111186595165376.JavaMail.seedlings@troymeyers.com> To my great shock I just discovered that my FMS8A backup schedules haven't been being executed since 5/27/07... I know, I should have been checking. I thought I was doing OK having Retrospect backup the backups to DVD. Not if there weren't new backups. What is odd is that the backup file path now says "Not a valid path" in the schedule setup but did originally say "Valid path" and used to work. I don't know what changed on 5/27/07 but I guess something did. My backup drive is an external hard drive, FireWire connected. I thought it made sense to have the backups on an external. At some time I thought I heard someone mention not being able to backup to an external drive... I thought I was misunderstanding, and thought I knew that it was working for me, so I glossed over that. Is that the problem - the drive being external? How is having to use the startup drive good as a backup if the startup crashes? I set up a new temporary (I hope) schedule to backup to the startup drive, but since ideally I do 14 non-overwriting backups a week, I don't have enough space there. Any suggestions? Does FMS9A also have this limitation? -Troy From igsmasupport at igsmasouth.org Wed Aug 8 11:52:39 2007 From: igsmasupport at igsmasouth.org (Jon Montgomery) Date: Wed Aug 8 11:52:45 2007 Subject: [FX.php List] Not a valid path - for scheduled backups In-Reply-To: <1330621.1111186595165376.JavaMail.seedlings@troymeyers.com> Message-ID: Troy, I remember those posts. But don't remember the exact reason for the posts now. I just checked my backups on external drive (USB) and they backed up this AM. FMSA 8 on Mac OS 10.4. Not much help but it does work for backups to an external drive. Jon Montgomery On 8/8/07 12:46 PM, "Troy Meyers" wrote: > To my great shock I just discovered that my FMS8A backup schedules haven't > been being executed since 5/27/07... I know, I should have been checking. I > thought I was doing OK having Retrospect backup the backups to DVD. Not if > there weren't new backups. > > What is odd is that the backup file path now says "Not a valid path" in the > schedule setup but did originally say "Valid path" and used to