From robhelleshoj at tiscali.dk Sun Apr 2 08:38:25 2006 From: robhelleshoj at tiscali.dk (Rob H. Christensen) Date: Sun Apr 2 08:38:45 2006 Subject: [FX.php List] Checkbox Message-ID: I have some checkboxes, which can have multiple values. How do I show the checked boxes on the page? I have tried this: $value){ if($TRK==$value){ $Select="checked";}else{$Select="";} ?> "> This shows the checked box as long as there is only one checked. As soon as more options are checked, it only shows empty checkboxes. $TRK is an array, which correctly displays the checked boxes. Any suggestions? Rob From steve at bluecrocodile.co.nz Sun Apr 2 19:41:56 2006 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Sun Apr 2 19:42:27 2006 Subject: [FX.php List] Checkbox In-Reply-To: Message-ID: <20060403014225.09C612E8060@www.iviking.org> Rob, I'm a little lost here, but it looks to me like you're trying to compare a scalar variable '$value' with an array '$TRK' in the statement if ($TRK == $value), which in my understanding of php isn't going to return the result you expect... If I've got this right $TRK is an array which contains all of the values which have been selected, is that correct...? Give this a try and see if it works for you; $value){ ?> /> Note however that this is also going to result in you losing data when this is posted back to the db because you're using the name 'Trykkeri' for each of the check boxes, so whichever is the last checkbox selected is what that variable will enter when posted back to the db. If you want to have an array which stores all of the checked values use this; $value){ ?> /> Note the addition of the [] in the name="Trykkeri[]" section...you'll then end up with all the values being posted back to your php page, at which point you can write them back to your db... Hope this helps...let me know if not, or if something doesn't make sense... Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Rob H. Christensen Sent: Monday, 3 April 2006 12:38 a.m. To: fx.php_list@mail.iviking.org Subject: [FX.php List] Checkbox I have some checkboxes, which can have multiple values. How do I show the checked boxes on the page? I have tried this: $value){ if($TRK==$value){ $Select="checked";}else{$Select="";} ?> "> This shows the checked box as long as there is only one checked. As soon as more options are checked, it only shows empty checkboxes. $TRK is an array, which correctly displays the checked boxes. Any suggestions? Rob _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From allyson at fmwebschool.com Mon Apr 3 09:47:46 2006 From: allyson at fmwebschool.com (Allyson Olm) Date: Mon Apr 3 09:50:17 2006 Subject: [FX.php List] Checkbox In-Reply-To: <20060403014225.09C612E8060@www.iviking.org> Message-ID: <004001c65735$f58f4bd0$0301a8c0@AllysonDesk> Hi Rob, I usually use eregi() to determine whether the array contains the value list value. foreach($vlResult['valueLists']['contact_type'] as $key => $value){ if(eregi($value,$searchData['contact_type'][0])){ $selected = 'checked'; }else{ $selected = ''; } ?> > In kindness, Allyson Olm FMWebschool http://www.fmwebschool.com -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Steve Winter Sent: Sunday, April 02, 2006 9:42 PM To: 'FX.php Discussion List' Subject: RE: [FX.php List] Checkbox Rob, I'm a little lost here, but it looks to me like you're trying to compare a scalar variable '$value' with an array '$TRK' in the statement if ($TRK == $value), which in my understanding of php isn't going to return the result you expect... If I've got this right $TRK is an array which contains all of the values which have been selected, is that correct...? Give this a try and see if it works for you; $value){ ?> /> Note however that this is also going to result in you losing data when this is posted back to the db because you're using the name 'Trykkeri' for each of the check boxes, so whichever is the last checkbox selected is what that variable will enter when posted back to the db. If you want to have an array which stores all of the checked values use this; $value){ ?> /> Note the addition of the [] in the name="Trykkeri[]" section...you'll then end up with all the values being posted back to your php page, at which point you can write them back to your db... Hope this helps...let me know if not, or if something doesn't make sense... Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Rob H. Christensen Sent: Monday, 3 April 2006 12:38 a.m. To: fx.php_list@mail.iviking.org Subject: [FX.php List] Checkbox I have some checkboxes, which can have multiple values. How do I show the checked boxes on the page? I have tried this: $value){ if($TRK==$value){ $Select="checked";}else{$Select="";} ?> "> This shows the checked box as long as there is only one checked. As soon as more options are checked, it only shows empty checkboxes. $TRK is an array, which correctly displays the checked boxes. Any suggestions? Rob _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/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 sujag2100 at yahoo.com Mon Apr 3 19:22:32 2006 From: sujag2100 at yahoo.com (Pete Jag) Date: Mon Apr 3 19:22:46 2006 Subject: [FX.php List] Unstored Calculations Message-ID: <20060404012232.57852.qmail@web50605.mail.yahoo.com> Hi List, I have a problem with unstored calculations not shown on the web. I have a portal that has several fields from a relationship. All the data from the other fields show with no problem, but the unstored calculation does not. I used fxparser to view the data. Everything shows fine accept for the unstored calculation. Any idea of how to make this data available or how to overcome this type of issue? Chris __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From steve at bluecrocodile.co.nz Mon Apr 3 20:58:31 2006 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Mon Apr 3 20:59:10 2006 Subject: [FX.php List] Checkbox In-Reply-To: <004001c65735$f58f4bd0$0301a8c0@AllysonDesk> Message-ID: <20060404025907.091192E892E@www.iviking.org> Hi Allyson, Out of curiosity, may I just ask two questions about your suggestion below, which vary from the way I was doing things; 1. why would you choose eregi() over in_array() ? 2. why would you set a variable, rather than just perform the test where it is required, then echo the appropriate response..? Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Allyson Olm Sent: Tuesday, 4 April 2006 1:48 a.m. To: 'FX.php Discussion List' Subject: RE: [FX.php List] Checkbox Hi Rob, I usually use eregi() to determine whether the array contains the value list value. foreach($vlResult['valueLists']['contact_type'] as $key => $value){ if(eregi($value,$searchData['contact_type'][0])){ $selected = 'checked'; }else{ $selected = ''; } ?> > In kindness, Allyson Olm FMWebschool http://www.fmwebschool.com -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Steve Winter Sent: Sunday, April 02, 2006 9:42 PM To: 'FX.php Discussion List' Subject: RE: [FX.php List] Checkbox Rob, I'm a little lost here, but it looks to me like you're trying to compare a scalar variable '$value' with an array '$TRK' in the statement if ($TRK == $value), which in my understanding of php isn't going to return the result you expect... If I've got this right $TRK is an array which contains all of the values which have been selected, is that correct...? Give this a try and see if it works for you; $value){ ?> /> Note however that this is also going to result in you losing data when this is posted back to the db because you're using the name 'Trykkeri' for each of the check boxes, so whichever is the last checkbox selected is what that variable will enter when posted back to the db. If you want to have an array which stores all of the checked values use this; $value){ ?> /> Note the addition of the [] in the name="Trykkeri[]" section...you'll then end up with all the values being posted back to your php page, at which point you can write them back to your db... Hope this helps...let me know if not, or if something doesn't make sense... Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Rob H. Christensen Sent: Monday, 3 April 2006 12:38 a.m. To: fx.php_list@mail.iviking.org Subject: [FX.php List] Checkbox I have some checkboxes, which can have multiple values. How do I show the checked boxes on the page? I have tried this: $value){ if($TRK==$value){ $Select="checked";}else{$Select="";} ?> "> This shows the checked box as long as there is only one checked. As soon as more options are checked, it only shows empty checkboxes. $TRK is an array, which correctly displays the checked boxes. Any suggestions? Rob _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/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 adenman at tmea.org Mon Apr 3 23:03:04 2006 From: adenman at tmea.org (Andrew Denman) Date: Mon Apr 3 23:03:49 2006 Subject: [FX.php List] Unstored Calculations In-Reply-To: <20060404012232.57852.qmail@web50605.mail.yahoo.com> Message-ID: <000101c657a5$0eb8a4c0$b800a8c0@tmea.org> Are you using FileMaker 7? I ran into a similar sounding problem before we upgraded to FM8. In Define>Accounts and Privileges under the 'Custom Privileges...' for Records, if the [Any New Table] 'View' permissions are set to 'No' then my relationships wouldn't work outside the FM client. Unfortunately, I don't believe this was fixed in FM7 - just in FM8. If this isn't your scenario, I suggest poking around the permissions on the files... I've inadvertently set up restrictions that prevented some calculations from working on the web before. It's now one of the first places I check when things aren't working as expected. Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Pete Jag Sent: Monday, April 03, 2006 8:23 PM To: fx.php_list@mail.iviking.org Subject: [FX.php List] Unstored Calculations Hi List, I have a problem with unstored calculations not shown on the web. I have a portal that has several fields from a relationship. All the data from the other fields show with no problem, but the unstored calculation does not. I used fxparser to view the data. Everything shows fine accept for the unstored calculation. Any idea of how to make this data available or how to overcome this type of issue? Chris From dbruell at comcast.net Tue Apr 4 09:38:00 2006 From: dbruell at comcast.net (Daniel Bruell) Date: Tue Apr 4 09:48:42 2006 Subject: [FX.php List] Displaying error codes Message-ID: Greetings, I'm new to FX-PHP and PHP in general. I'm getting a blank response page to a 'create new record' action. Before I send my code, was wondering how to get FX-PHP to return an error code on a response page. thanks in advance, Dan Dan Bruell dbruell@comcast.net "Don't be afraid to try something new; amateurs built the Ark, professionals built the Titanic." From andy at fmpug.com Tue Apr 4 09:50:17 2006 From: andy at fmpug.com (Andy Gaunt) Date: Tue Apr 4 09:50:42 2006 Subject: [FX.php List] Displaying error codes In-Reply-To: Message-ID: <003c01c657ff$7953f460$0202a8c0@SHUTTLE> Try $QueryResult['errorCode']; Where QueryResult is the result of your FX query. Also, you can use Print_r($QueryResult); To see the array printed to screen (view the source code to help make sense of the returned data. HTH Andy Gaunt T: 407.810.4722 andy@fmpug.com http://www.fmpug.com Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award For chapter locations, dates & times please visit the website at http://www.fmpug.com If you can make it to a meeting, please RSVP at http://www.fmpug.com/rsvp.php -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Daniel Bruell Sent: Tuesday, April 04, 2006 11:38 AM To: FX.php Discussion List Subject: [FX.php List] Displaying error codes Greetings, I'm new to FX-PHP and PHP in general. I'm getting a blank response page to a 'create new record' action. Before I send my code, was wondering how to get FX-PHP to return an error code on a response page. thanks in advance, Dan Dan Bruell dbruell@comcast.net "Don't be afraid to try something new; amateurs built the Ark, professionals built the Titanic." _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From robhelleshoj at tiscali.dk Tue Apr 4 11:52:01 2006 From: robhelleshoj at tiscali.dk (Rob H. Christensen) Date: Tue Apr 4 11:52:35 2006 Subject: [FX.php List] Checkbox Message-ID: I can see, that I am not the only one who runs into problems here. My original solution to show the data from FM wads taken from "FX.php in 8 hours" (page 49) $value){ if($state_value==$value){ $selected="checked"; }else{ $selected=""; } ?> > That is the same as the one for radio buttons on the previous page just with the word radio changed to checkbox. It does not work. Then I gave it a thought, looked up the definitions for checkboxes and found out, I had to do something else. I tried $value){ if($TRK==$value){ $Select="checked";}else{$Select="";} ?> "> Does not work I modified this in several steps ending up with: $value){ if(in_array($value,$TRK2,true){$Select="checked";}else{$Select="";} ?> "> It does not work. The point is, as long as there is but one out of five checkboxes checked, it works. But as soon as more then one is checked (and that is what checkboxes are for) it does not work. Somehow the data coming from FileMaker is not what I think it is. If I display the array in the page (print_r), it contains the names of the checked boxes in $Data['Trykkeri'][0] like Kniv010 and 4F014, when I spilt the array later on, it suddenly contained until several more of this kind, mirroring my experiments with the names of the checkboxes (the valuelist in FMP) Now, how do I compare the content of $Data['Trykkeri'] with the content of the valuelist, in order to check the boxes on the webpage? Allyson, Your solution: $value){ ?> /> Works only for one box checked not for more, just as the one you wrote in "FX.php in 8 hours" > Note however that this is also going to result in you losing data when this > is posted back to the db because you're using the name 'Trykkeri' for each > of the check boxes, so whichever is the last checkbox selected is what that > variable will enter when posted back to the db. In FileMaker (6 at least) the checkbox is a valuelist with one name and a field with one name (I use the same name in both cases) set as a checkbox taking its values from the valuelist. If I understand you correct in html you want a different name for each value in the checkbox. I did not come so far as to edit FileMaker from this particular page yet , so I am wondering. The difenitions about checkboxes say, that several of them can have the same name: (definitions from GoLive) "Several checkboxes in a form may share the same control name. Thus, for example, checkboxes allow users to select several values for the same property. The INPUT element is used to create a checkbox control." Rob From fx at 9degrees.com Tue Apr 4 12:35:52 2006 From: fx at 9degrees.com (Michael Layne) Date: Tue Apr 4 12:36:10 2006 Subject: [FX.php List] Checkbox In-Reply-To: References: Message-ID: <4432BC88.4090301@9degrees.com> Hi all, Here's what I did... first, since I never really got comfortable with using or the use of value lists - and to make FileMaker as much a 'place of storage' as possible (as opposed to using FileMaker specific features such as "Value Lists") , more so as a back-end to a web app... here goes: I have simple storage fields: answer02 (text) answer10 (text) I have associative arrays that contains all the possible values for the check boxes OR radio buttons (keys to store, values to display): $ans02 = array ('n0' => 'less than 20','20' => '20-30','30' => '30-40','40' => '40-60','60' => 'over 60'); $ans10 = array ('TP' => 'Top Producer','MSOffice' => 'Microsoft Office', 'Publisher' => 'Publisher','FMLS/MLS' => 'FMLS/MLS','SalesCloser' => 'Sales Closer'); Since I use the same PHP template to add and modify records, I use the handy switch; '$mod'. So, based on whether the user is adding or editing the record, I do this: RADIO BUTTONS (one) if($mod == '1') { foreach($ans02 as $value => $label) { $checked = $dJP['answer02'][0] == $value ? "checked=\"checked\"" : ""; echo "" . $label . "\n"; } } else { foreach($ans02 as $value => $label) { echo "" . $label . "\n"; } } CHECK BOXES (multi) - Allyson - I didn't look closely at your example, but I too use 'eregi' if($mod == '1') { $count10 = 1; // count10 because there are 15 questions on the form, this is No. 10... foreach($ans10 as $value => $label) { $checked = ( eregi($value,$dJP['answer10'][0])) ? "checked=\"checked\"" : ""; // real logic here... echo "" . $label . "\n"; if ($count10 == 6) { //this is simply to adhere to a content width and keep things looking nice... echo "
\n"; } $count10++; } } else { $count10 = 1; foreach($ans10 as $value => $label) { echo "" . $label . "\n"; if ($count10 == 6) { echo "
\n"; } $count10++; } } If 'anwser10' value = "MSOffice, Publisher, SalesCloser", then this will really display: [ ] Top Producer [x] Microsoft Office [x] Publisher [ ] FMLS/MLS [x] Sales Closer Now, some of you may have a more elegant way of doing this, and I might too If I did it today (it's 2 years old), but I do know IT WORKS. It's in a production environment on a pretty busy site. HTH, Michael Michael Layne | 9 degrees development | www.9degrees.com | 404.226.7835 | Skype: LayneBay Rob H. Christensen wrote: > I can see, that I am not the only one who runs into problems here. > > My original solution to show the data from FM wads taken from "FX.php in 8 > hours" (page 49) > > $state_value=$findData['state'][0]; > foreach($listsResult['valueLists']['state'] as $key=>$value){ > if($state_value==$value){ > $selected="checked"; > }else{ > $selected=""; > } > ?> > > > } > ?> > > > That is the same as the one for radio buttons on the previous page just with > the word radio changed to checkbox. > > It does not work. > > Then I gave it a thought, looked up the definitions for checkboxes and found > out, I had to do something else. > I tried > > $TRK=$Data['Trykkeri'][0]; > foreach($Vis2ListResult['valueLists']['Trykkeri'] as $key=>$value){ > if($TRK==$value){ $Select="checked";}else{$Select="";} ?> > "> }?> > > Does not work > > I modified this in several steps ending up with: > > > $TRK=$Data['Trykkeri'][0]; > $TRK2=list(",",$TRK > foreach($Vis2ListResult['valueLists']['Trykkeri'] as $key=>$value){ > if(in_array($value,$TRK2,true){$Select="checked";}else{$Select="";} ?> > "> }?> > > It does not work. > > The point is, as long as there is but one out of five checkboxes checked, it > works. But as soon as more then one is checked (and that is what checkboxes > are for) it does not work. > > Somehow the data coming from FileMaker is not what I think it is. If I > display the array in the page (print_r), it contains the names of the > checked boxes in $Data['Trykkeri'][0] like Kniv010 and 4F014, when I spilt > the array later on, it suddenly contained until several more of this kind, > mirroring my experiments with the names of the checkboxes (the valuelist in > FMP) > > > Now, how do I compare the content of $Data['Trykkeri'] with the content of > the valuelist, in order to check the boxes on the webpage? > > Allyson, > > Your solution: > > $value){ ?> > > /> > > > > Works only for one box checked not for more, just as the one you wrote in > "FX.php in 8 hours" > > >> Note however that this is also going to result in you losing data when this >> is posted back to the db because you're using the name 'Trykkeri' for each >> of the check boxes, so whichever is the last checkbox selected is what that >> variable will enter when posted back to the db. >> > > In FileMaker (6 at least) the checkbox is a valuelist with one name and a > field with one name (I use the same name in both cases) set as a checkbox > taking its values from the valuelist. > > If I understand you correct in html you want a different name for each value > in the checkbox. I did not come so far as to edit FileMaker from this > particular page yet , so I am wondering. The difenitions about checkboxes > say, that several of them can have the same name: > > (definitions from GoLive) > "Several checkboxes in a form may share the same control name. Thus, for > example, checkboxes allow users to select several values for the same > property. The INPUT element is used to create a checkbox control." > > Rob > > > > _______________________________________________ > 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/20060404/f36db359/attachment-0001.html From derrick at fogles.net Tue Apr 4 12:37:05 2006 From: derrick at fogles.net (Derrick Fogle) Date: Tue Apr 4 12:37:57 2006 Subject: [FX.php List] Checkbox In-Reply-To: References: Message-ID: The foreach() loop operating on the value list is working correctly, right? You get one checkbox for each value in the value list? I've never seen the selected/checked value placed in quotes before; what happens if you do the selected output without being in quotes (but make sure there's a space after the closing quote for the value parameter)? Also, I would drop the third argument from the in_array() function; it only serves to make the comparison a strict "type-alike" match. Remember, too, that everything is case sensitive, although the code looks like it should be comparing like-cased values. The only other thing I can think of is the difference in the way the value list and the actual values are formatted. The value list has different separators than the actual field with the checked values, I think. The field with checked values should have each value separated by a return (\r), while the value list itself is an actual array, not a single field with some arbitrary separation character. OK, my brain is empty now. Sorry I can't be more specific with my suggestions, but I hope this at least helps the debugging process. On Apr 4, 2006, at 12:52 PM, Rob H. Christensen wrote: > I can see, that I am not the only one who runs into problems here. > > My original solution to show the data from FM wads taken from > "FX.php in 8 > hours" (page 49) > > $state_value=$findData['state'][0]; > foreach($listsResult['valueLists']['state'] as $key=>$value){ > if($state_value==$value){ > $selected="checked"; > }else{ > $selected=""; > } > ?> > > > } > ?> > > > That is the same as the one for radio buttons on the previous page > just with > the word radio changed to checkbox. > > It does not work. > > Then I gave it a thought, looked up the definitions for checkboxes > and found > out, I had to do something else. > I tried > > $TRK=$Data['Trykkeri'][0]; > foreach($Vis2ListResult['valueLists']['Trykkeri'] as $key=>$value){ > if($TRK==$value){ $Select="checked";}else{$Select="";} ?> > "> }?> > > Does not work > > I modified this in several steps ending up with: > > > $TRK=$Data['Trykkeri'][0]; > $TRK2=list(",",$TRK > foreach($Vis2ListResult['valueLists']['Trykkeri'] as $key=>$value){ > if(in_array($value,$TRK2,true){$Select="checked";}else{$Select="";} ?> > "> }?> > > It does not work. > > The point is, as long as there is but one out of five checkboxes > checked, it > works. But as soon as more then one is checked (and that is what > checkboxes > are for) it does not work. > > Somehow the data coming from FileMaker is not what I think it is. If I > display the array in the page (print_r), it contains the names of the > checked boxes in $Data['Trykkeri'][0] like Kniv010 and 4F014, when > I spilt > the array later on, it suddenly contained until several more of > this kind, > mirroring my experiments with the names of the checkboxes (the > valuelist in > FMP) > > > Now, how do I compare the content of $Data['Trykkeri'] with the > content of > the valuelist, in order to check the boxes on the webpage? > > Allyson, > > Your solution: > > > $value){ ?> > > > /> > > > > Works only for one box checked not for more, just as the one you > wrote in > "FX.php in 8 hours" > >> Note however that this is also going to result in you losing data >> when this >> is posted back to the db because you're using the name 'Trykkeri' >> for each >> of the check boxes, so whichever is the last checkbox selected is >> what that >> variable will enter when posted back to the db. > > In FileMaker (6 at least) the checkbox is a valuelist with one name > and a > field with one name (I use the same name in both cases) set as a > checkbox > taking its values from the valuelist. > > If I understand you correct in html you want a different name for > each value > in the checkbox. I did not come so far as to edit FileMaker from this > particular page yet , so I am wondering. The difenitions about > checkboxes > say, that several of them can have the same name: > > (definitions from GoLive) > "Several checkboxes in a form may share the same control name. > Thus, for > example, checkboxes allow users to select several values for the same > property. The INPUT element is used to create a checkbox control." > > Rob > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Derrick Fogle derrick@fogles.net From jawbrey at harmonic-data.com Tue Apr 4 15:52:22 2006 From: jawbrey at harmonic-data.com (Jason H Awbrey) Date: Tue Apr 4 15:53:34 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 Message-ID: <271F8CE3-4869-4481-A81E-EFF93883AB92@harmonic-data.com> Hello all, Has anyone used FX.php to query FileMaker via the ODBC interface? It seems as though I would need to specify a DSN somewhere but don't see anywhere I would be able to do that. Does anyone have a simple example they could share that could get me pointed in the right direction? Cheers, Jason From jbarclay at uiuc.edu Tue Apr 4 17:25:02 2006 From: jbarclay at uiuc.edu (John Phillip Barclay) Date: Tue Apr 4 17:25:24 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 In-Reply-To: <271F8CE3-4869-4481-A81E-EFF93883AB92@harmonic-data.com> Message-ID: My understanding is the FX.php is designed to avoid the Filemaker ODBC by using the XML/Web publishing interface for filemaker. I tried using the PHP ODBC class (http://us2.php.net/manual/en/function.odbc-execute.php) on a recent project to connect to FMP in PHP and found the following limitations: - documentation was incomplete - buggy behaviour. This could be on the php or fmp odbc side as I never bothered to pin it down. - slow performance. Oh it was terrible. - lack of a user community. Not much dialog or documentation on odbc and filemaker. After switching to FX.php I found performance to be quicker and haven't found any bugs besides working with portals. It seems that Filemaker isn't really designed for ODBC. The documentation is good and along with this listserve and Google have answered all my questions thus far. PEAR:DB supports many popular databases, but not Filemaker. My guess is that is because of the ODBC limitations of filemaker and the success of FX.php. I'm not sure if there is much motivation to adapt it form filemaker. John Barclay , Champaign, Illinois, U.S. -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jason H Awbrey Sent: Tuesday, April 04, 2006 4:52 PM To: FX.php Discussion List Subject: [FX.php List] FX.php and SQL queries against FMSA 8 Hello all, Has anyone used FX.php to query FileMaker via the ODBC interface? It seems as though I would need to specify a DSN somewhere but don't see anywhere I would be able to do that. Does anyone have a simple example they could share that could get me pointed in the right direction? Cheers, Jason _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Tue Apr 4 18:14:45 2006 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Apr 4 18:15:00 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 In-Reply-To: <271F8CE3-4869-4481-A81E-EFF93883AB92@harmonic-data.com> References: <271F8CE3-4869-4481-A81E-EFF93883AB92@harmonic-data.com> Message-ID: Hi Jason FWIW: I've heard of someone doing CWP using ODBC but they're using Cold Fusion and/or Witango, not FX.php. -Joel On Apr 4, 2006, at 2:52 PM, Jason H Awbrey wrote: > Hello all, > > Has anyone used FX.php to query FileMaker via the ODBC interface? > It seems as though I would need to specify a DSN somewhere but > don't see anywhere I would be able to do that. Does anyone have a > simple example they could share that could get me pointed in the > right direction? > > Cheers, > Jason > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Tue Apr 4 18:28:03 2006 From: chris at iViking.org (Chris Hansen) Date: Tue Apr 4 18:28:19 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 In-Reply-To: <271F8CE3-4869-4481-A81E-EFF93883AB92@harmonic-data.com> References: <271F8CE3-4869-4481-A81E-EFF93883AB92@harmonic-data.com> Message-ID: Jason, Of course I have; I built the thing =) Granted, I should echo what others have said about performance, but you can do some cool things (e.g. updating every record that matches specified criteria, etc.) And, I didn't find performance to be THAT much slower than accessing FileMaker via the XML interface. In the case of ODBC, your DSN is entered using SetDBData(). Seemed the most logical use of FX syntax for an ODBC connection. Just FYI, setting everything up on Mac OS X (as opposed to Windows) can be hairy (or was when I did it) because of differences in the way that the ODBC drivers are set up in the OS versus PHP. (That may have changed by now, though.) Best, --Chris Hansen FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Apr 4, 2006, at 3:52 PM, Jason H Awbrey wrote: > Hello all, > > Has anyone used FX.php to query FileMaker via the ODBC interface? > It seems as though I would need to specify a DSN somewhere but > don't see anywhere I would be able to do that. Does anyone have a > simple example they could share that could get me pointed in the > right direction? > > Cheers, > Jason > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jawbrey at harmonic-data.com Tue Apr 4 22:08:04 2006 From: jawbrey at harmonic-data.com (Jason H Awbrey) Date: Tue Apr 4 22:08:10 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 In-Reply-To: References: <271F8CE3-4869-4481-A81E-EFF93883AB92@harmonic-data.com> Message-ID: John, Joel and Chris, Thanks for the answers. Just so I don't sound like a total nut case, let me elaborate a bit. I have a solution that is tied to an ENORMOUS FileMaker system. Due to the complexity of the system, the CWP interface via XML/FX.php is slower than (I believe) it should be. Query times at this point are in the 7-12 second range. That's about 6-11 seconds waiting for FileMaker to respond (work through the metadata) and then ~1 second to return the XML. There have been some version updates that could give us a performance boost, but I won't get to implement those until I move everything to a new server tomorrow. Now that Chris has added the ODBC features to the FX.php class, I was thinking it would be easy to test and see if the ODBC interface would be any faster than the XML interface by simply changing my queries to use the ODBC query string. It is understood that under normal circumstances the ODBC interface would be a bit slower than the XML interface due to the information that it has to return. The thought would be to create an ODBC interface file with an abstracted TOG of just the TOs we would need access to. If that doesn't get the desired results, I've got a trick or two more up my sleeve using XML, they're just a bit more involved. I'll bark up that tree when I get there... Isn't optimization fun?!? Cheers, Jason ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Jason Awbrey Web Integration FileMaker 7 Certified Developer Harmonic Data Associates http://www.harmonic-data.com jawbrey@harmonic-data.com w - 214 269.2804 ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ On Apr 4, 2006, at 7:28 PM, Chris Hansen wrote: > Jason, > > Of course I have; I built the thing =) Granted, I should echo what > others have said about performance, but you can do some cool things > (e.g. updating every record that matches specified criteria, etc.) > And, I didn't find performance to be THAT much slower than > accessing FileMaker via the XML interface. In the case of ODBC, > your DSN is entered using SetDBData(). Seemed the most > logical use of FX syntax for an ODBC connection. > > Just FYI, setting everything up on Mac OS X (as opposed to Windows) > can be hairy (or was when I did it) because of differences in the > way that the ODBC drivers are set up in the OS versus PHP. (That > may have changed by now, though.) > > Best, > > --Chris Hansen > FileMaker 7 Certified Developer > Creator of FX.php > "The best way from FileMaker to the Web." > www.iViking.org > > > On Apr 4, 2006, at 3:52 PM, Jason H Awbrey wrote: > >> Hello all, >> >> Has anyone used FX.php to query FileMaker via the ODBC interface? >> It seems as though I would need to specify a DSN somewhere but >> don't see anywhere I would be able to do that. Does anyone have a >> simple example they could share that could get me pointed in the >> right direction? >> >> Cheers, >> Jason >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 mattw at netfriends.net Wed Apr 5 07:53:11 2006 From: mattw at netfriends.net (Matthew White) Date: Wed Apr 5 06:53:40 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 In-Reply-To: Message-ID: Hey all, We have a relatively complex php based system and are getting bit by the performance bug as well. We are using the xml in fx.php and individual queries are fine performance-wise (return results in 1-3 seconds for up to hundreds of thousands of records), but we get hammered on simultaneous queries. The web connector just bogs down on multiple queries simultaneously. It also hogs massive cpu resources on the server. Also, any query against the xml interface takes an absolute min of .5 seconds for us. We have tested extensively and feel confident that is true. This means if a process makes a series of queries, the time is chained, i.e. A process that requires 5 queries would take an absolute min of 2.5 seconds, but that is ideal, in fact it can take 5-6 seconds easily. Tie that together with mutliple simultaneous queries from different clients and performance goes down the drain. What we have discovered is that the native odbc calls without fx reduce min call time to less than .1 seconds. That is a lot better. That was a simple insert to a log file, but still much better. Now we are evaluating switching our fx xml calls to ODBC, but I am getting sql parse errors back from the ODBC driver when using fx. I am trying to troubleshoot that now. (If Chris is listening, I would love to relate my problems about the fx odbc errors I am getting :) Overall, it looks like the response from the data base engine is excellent, but the web connector is hamstringing us. BTW, make sure you don't have un-stored calcs on the layouts you are using for the xml queries. They will kill you. Also untapped errors running scripts totally hose the web connector. You may get totally instability in the xml interface if you get a scripting error in filemaker. Moral of the story, avoid running scripts or trap errors very carefully. Just my 3 cents worth. Matt On 4/4/06 11:08 PM, "Jason H Awbrey" wrote: > John, Joel and Chris, > > Thanks for the answers. Just so I don't sound like a total nut case, > let me elaborate a bit. I have a solution that is tied to an ENORMOUS > FileMaker system. Due to the complexity of the system, the CWP > interface via XML/FX.php is slower than (I believe) it should be. > Query times at this point are in the 7-12 second range. That's about > 6-11 seconds waiting for FileMaker to respond (work through the > metadata) and then ~1 second to return the XML. There have been some > version updates that could give us a performance boost, but I won't > get to implement those until I move everything to a new server tomorrow. > > Now that Chris has added the ODBC features to the FX.php class, I was > thinking it would be easy to test and see if the ODBC interface would > be any faster than the XML interface by simply changing my queries to > use the ODBC query string. It is understood that under normal > circumstances the ODBC interface would be a bit slower than the XML > interface due to the information that it has to return. The thought > would be to create an ODBC interface file with an abstracted TOG of > just the TOs we would need access to. > > If that doesn't get the desired results, I've got a trick or two > more up my sleeve using XML, they're just a bit more involved. I'll > bark up that tree when I get there... > > Isn't optimization fun?!? > > Cheers, > Jason > > > ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ > Jason Awbrey > Web Integration > FileMaker 7 Certified Developer > Harmonic Data Associates > http://www.harmonic-data.com > jawbrey@harmonic-data.com > w - 214 269.2804 > ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ > > > On Apr 4, 2006, at 7:28 PM, Chris Hansen wrote: > >> Jason, >> >> Of course I have; I built the thing =) Granted, I should echo what >> others have said about performance, but you can do some cool things >> (e.g. updating every record that matches specified criteria, etc.) >> And, I didn't find performance to be THAT much slower than >> accessing FileMaker via the XML interface. In the case of ODBC, >> your DSN is entered using SetDBData(). Seemed the most >> logical use of FX syntax for an ODBC connection. >> >> Just FYI, setting everything up on Mac OS X (as opposed to Windows) >> can be hairy (or was when I did it) because of differences in the >> way that the ODBC drivers are set up in the OS versus PHP. (That >> may have changed by now, though.) >> >> Best, >> >> --Chris Hansen >> FileMaker 7 Certified Developer >> Creator of FX.php >> "The best way from FileMaker to the Web." >> www.iViking.org >> >> >> On Apr 4, 2006, at 3:52 PM, Jason H Awbrey wrote: >> >>> Hello all, >>> >>> Has anyone used FX.php to query FileMaker via the ODBC interface? >>> It seems as though I would need to specify a DSN somewhere but >>> don't see anywhere I would be able to do that. Does anyone have a >>> simple example they could share that could get me pointed in the >>> right direction? >>> >>> Cheers, >>> Jason >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 -- Matt White Director Of Development SciMed Solutions (919) 287-1817 (919) 540-3283 (Voice Mail, Pager) matt@scimedsolutions.com From andy at fmpug.com Wed Apr 5 07:18:08 2006 From: andy at fmpug.com (Andy Gaunt) Date: Wed Apr 5 07:18:26 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 In-Reply-To: Message-ID: <003401c658b3$62df00d0$0202a8c0@SHUTTLE> And if I may Matt, For all those doing multiple queries to find related records... start using portals. The data for portals inside the FX array is just a simple 'for loop' away from being used and this is much quicker than multiple queries. We have pages that perform a single query using over 10 portals on the layout to return information AND build the HTML page (including load graphics) in under 2 seconds (oh, and we write a new record to FileMaker in that time and pull ads from an external PHP Ad server). Andy Gaunt T: 407.810.4722 andy@fmpug.com http://www.fmpug.com Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award For chapter locations, dates & times please visit the website at http://www.fmpug.com If you can make it to a meeting, please RSVP at http://www.fmpug.com/rsvp.php -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Matthew White Sent: Wednesday, April 05, 2006 9:53 AM To: FX.php Discussion List Subject: Re: [FX.php List] FX.php and SQL queries against FMSA 8 Hey all, We have a relatively complex php based system and are getting bit by the performance bug as well. We are using the xml in fx.php and individual queries are fine performance-wise (return results in 1-3 seconds for up to hundreds of thousands of records), but we get hammered on simultaneous queries. The web connector just bogs down on multiple queries simultaneously. It also hogs massive cpu resources on the server. Also, any query against the xml interface takes an absolute min of .5 seconds for us. We have tested extensively and feel confident that is true. This means if a process makes a series of queries, the time is chained, i.e. A process that requires 5 queries would take an absolute min of 2.5 seconds, but that is ideal, in fact it can take 5-6 seconds easily. Tie that together with mutliple simultaneous queries from different clients and performance goes down the drain. What we have discovered is that the native odbc calls without fx reduce min call time to less than .1 seconds. That is a lot better. That was a simple insert to a log file, but still much better. Now we are evaluating switching our fx xml calls to ODBC, but I am getting sql parse errors back from the ODBC driver when using fx. I am trying to troubleshoot that now. (If Chris is listening, I would love to relate my problems about the fx odbc errors I am getting :) Overall, it looks like the response from the data base engine is excellent, but the web connector is hamstringing us. BTW, make sure you don't have un-stored calcs on the layouts you are using for the xml queries. They will kill you. Also untapped errors running scripts totally hose the web connector. You may get totally instability in the xml interface if you get a scripting error in filemaker. Moral of the story, avoid running scripts or trap errors very carefully. Just my 3 cents worth. Matt On 4/4/06 11:08 PM, "Jason H Awbrey" wrote: > John, Joel and Chris, > > Thanks for the answers. Just so I don't sound like a total nut case, > let me elaborate a bit. I have a solution that is tied to an ENORMOUS > FileMaker system. Due to the complexity of the system, the CWP > interface via XML/FX.php is slower than (I believe) it should be. > Query times at this point are in the 7-12 second range. That's about > 6-11 seconds waiting for FileMaker to respond (work through the > metadata) and then ~1 second to return the XML. There have been some > version updates that could give us a performance boost, but I won't > get to implement those until I move everything to a new server tomorrow. > > Now that Chris has added the ODBC features to the FX.php class, I was > thinking it would be easy to test and see if the ODBC interface would > be any faster than the XML interface by simply changing my queries to > use the ODBC query string. It is understood that under normal > circumstances the ODBC interface would be a bit slower than the XML > interface due to the information that it has to return. The thought > would be to create an ODBC interface file with an abstracted TOG of > just the TOs we would need access to. > > If that doesn't get the desired results, I've got a trick or two > more up my sleeve using XML, they're just a bit more involved. I'll > bark up that tree when I get there... > > Isn't optimization fun?!? > > Cheers, > Jason > > > ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ > Jason Awbrey > Web Integration > FileMaker 7 Certified Developer > Harmonic Data Associates > http://www.harmonic-data.com > jawbrey@harmonic-data.com > w - 214 269.2804 > ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ > > > On Apr 4, 2006, at 7:28 PM, Chris Hansen wrote: > >> Jason, >> >> Of course I have; I built the thing =) Granted, I should echo what >> others have said about performance, but you can do some cool things >> (e.g. updating every record that matches specified criteria, etc.) >> And, I didn't find performance to be THAT much slower than >> accessing FileMaker via the XML interface. In the case of ODBC, >> your DSN is entered using SetDBData(). Seemed the most >> logical use of FX syntax for an ODBC connection. >> >> Just FYI, setting everything up on Mac OS X (as opposed to Windows) >> can be hairy (or was when I did it) because of differences in the >> way that the ODBC drivers are set up in the OS versus PHP. (That >> may have changed by now, though.) >> >> Best, >> >> --Chris Hansen >> FileMaker 7 Certified Developer >> Creator of FX.php >> "The best way from FileMaker to the Web." >> www.iViking.org >> >> >> On Apr 4, 2006, at 3:52 PM, Jason H Awbrey wrote: >> >>> Hello all, >>> >>> Has anyone used FX.php to query FileMaker via the ODBC interface? >>> It seems as though I would need to specify a DSN somewhere but >>> don't see anywhere I would be able to do that. Does anyone have a >>> simple example they could share that could get me pointed in the >>> right direction? >>> >>> Cheers, >>> Jason >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 -- Matt White Director Of Development SciMed Solutions (919) 287-1817 (919) 540-3283 (Voice Mail, Pager) matt@scimedsolutions.com _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From mattw at netfriends.net Wed Apr 5 08:29:33 2006 From: mattw at netfriends.net (Matthew White) Date: Wed Apr 5 07:29:51 2006 Subject: [FX.php List] FX.php and SQL queries against FMSA 8 In-Reply-To: <003401c658b3$62df00d0$0202a8c0@SHUTTLE> Message-ID: Another tip, We do logging for every page hit. I used to do a separate insert query, now we add the log hit to a portal with the .0 portal feature. Nice. (Of course with a speedy odbc insert working now, I could log with that without noticable performance hits) Matt On 4/5/06 8:18 AM, "Andy Gaunt" wrote: > And if I may Matt, > > For all those doing multiple queries to find related records... start using > portals. The data for portals inside the FX array is just a simple 'for > loop' away from being used and this is much quicker than multiple queries. > > We have pages that perform a single query using over 10 portals on the > layout to return information AND build the HTML page (including load > graphics) in under 2 seconds (oh, and we write a new record to FileMaker in > that time and pull ads from an external PHP Ad server). > > Andy Gaunt > T: 407.810.4722 > andy@fmpug.com > http://www.fmpug.com > > Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award > > For chapter locations, dates & times please visit the website at > http://www.fmpug.com If you can make it to a meeting, please RSVP at > http://www.fmpug.com/rsvp.php > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Matthew White > Sent: Wednesday, April 05, 2006 9:53 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] FX.php and SQL queries against FMSA 8 > > Hey all, > > We have a relatively complex php based system and are getting bit by the > performance bug as well. We are using the xml in fx.php and individual > queries are fine performance-wise (return results in 1-3 seconds for up to > hundreds of thousands of records), but we get hammered on simultaneous > queries. The web connector just bogs down on multiple queries > simultaneously. It also hogs massive cpu resources on the server. > > Also, any query against the xml interface takes an absolute min of .5 > seconds for us. We have tested extensively and feel confident that is true. > This means if a process makes a series of queries, the time is chained, i.e. > A process that requires 5 queries would take an absolute min of 2.5 seconds, > but that is ideal, in fact it can take 5-6 seconds easily. Tie that together > with mutliple simultaneous queries from different clients and performance > goes down the drain. > > What we have discovered is that the native odbc calls without fx reduce min > call time to less than .1 seconds. That is a lot better. That was a simple > insert to a log file, but still much better. Now we are evaluating switching > our fx xml calls to ODBC, but I am getting sql parse errors back from the > ODBC driver when using fx. I am trying to troubleshoot that now. > > (If Chris is listening, I would love to relate my problems about the fx odbc > errors I am getting :) > > Overall, it looks like the response from the data base engine is excellent, > but the web connector is hamstringing us. > > BTW, make sure you don't have un-stored calcs on the layouts you are using > for the xml queries. They will kill you. Also untapped errors running > scripts totally hose the web connector. You may get totally instability in > the xml interface if you get a scripting error in filemaker. Moral of the > story, avoid running scripts or trap errors very carefully. > > Just my 3 cents worth. > > Matt > > > > > > On 4/4/06 11:08 PM, "Jason H Awbrey" wrote: > >> John, Joel and Chris, >> >> Thanks for the answers. Just so I don't sound like a total nut case, >> let me elaborate a bit. I have a solution that is tied to an ENORMOUS >> FileMaker system. Due to the complexity of the system, the CWP >> interface via XML/FX.php is slower than (I believe) it should be. >> Query times at this point are in the 7-12 second range. That's about >> 6-11 seconds waiting for FileMaker to respond (work through the >> metadata) and then ~1 second to return the XML. There have been some >> version updates that could give us a performance boost, but I won't >> get to implement those until I move everything to a new server tomorrow. >> >> Now that Chris has added the ODBC features to the FX.php class, I was >> thinking it would be easy to test and see if the ODBC interface would >> be any faster than the XML interface by simply changing my queries to >> use the ODBC query string. It is understood that under normal >> circumstances the ODBC interface would be a bit slower than the XML >> interface due to the information that it has to return. The thought >> would be to create an ODBC interface file with an abstracted TOG of >> just the TOs we would need access to. >> >> If that doesn't get the desired results, I've got a trick or two >> more up my sleeve using XML, they're just a bit more involved. I'll >> bark up that tree when I get there... >> >> Isn't optimization fun?!? >> >> Cheers, >> Jason >> >> >> ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ >> Jason Awbrey >> Web Integration >> FileMaker 7 Certified Developer >> Harmonic Data Associates >> http://www.harmonic-data.com >> jawbrey@harmonic-data.com >> w - 214 269.2804 >> ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ >> >> >> On Apr 4, 2006, at 7:28 PM, Chris Hansen wrote: >> >>> Jason, >>> >>> Of course I have; I built the thing =) Granted, I should echo what >>> others have said about performance, but you can do some cool things >>> (e.g. updating every record that matches specified criteria, etc.) >>> And, I didn't find performance to be THAT much slower than >>> accessing FileMaker via the XML interface. In the case of ODBC, >>> your DSN is entered using SetDBData(). Seemed the most >>> logical use of FX syntax for an ODBC connection. >>> >>> Just FYI, setting everything up on Mac OS X (as opposed to Windows) >>> can be hairy (or was when I did it) because of differences in the >>> way that the ODBC drivers are set up in the OS versus PHP. (That >>> may have changed by now, though.) >>> >>> Best, >>> >>> --Chris Hansen >>> FileMaker 7 Certified Developer >>> Creator of FX.php >>> "The best way from FileMaker to the Web." >>> www.iViking.org >>> >>> >>> On Apr 4, 2006, at 3:52 PM, Jason H Awbrey wrote: >>> >>>> Hello all, >>>> >>>> Has anyone used FX.php to query FileMaker via the ODBC interface? >>>> It seems as though I would need to specify a DSN somewhere but >>>> don't see anywhere I would be able to do that. Does anyone have a >>>> simple example they could share that could get me pointed in the >>>> right direction? >>>> >>>> Cheers, >>>> Jason >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/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 -- Matt White Director Of Development SciMed Solutions (919) 287-1817 (919) 540-3283 (Voice Mail, Pager) matt@scimedsolutions.com From robhelleshoj at tiscali.dk Wed Apr 5 12:07:04 2006 From: robhelleshoj at tiscali.dk (Rob H. Christensen) Date: Wed Apr 5 12:07:23 2006 Subject: [FX.php List] Checkbox In-Reply-To: <20060405125340.9E6922E96BD@www.iviking.org> Message-ID: Derrick, > The foreach() loop operating on the value list is working correctly, > right? You get one checkbox for each value in the value list? Yes, you are right. I get the value lists contents with each its checkbox on the page exactly as I want it. What I do not get is the possibility to show which values are ticked off, if there is more the one box checked. > > I've never seen the selected/checked value placed in quotes before; > what happens if you do the selected output without being in quotes > (but make sure there's a space after the closing quote for the value > parameter)? That was just an experiment. It does not seem to make a difference. > Also, I would drop the third argument from the in_array() function; > it only serves to make the comparison a strict "type-alike" match. > Remember, too, that everything is case sensitive, although the code > looks like it should be comparing like-cased values. That also was an experiment. But I do match strings, which either are alike character for character or not alike. Each value is a combination of letters and numbers > > The only other thing I can think of is the difference in the way the > value list and the actual values are formatted. The value list has > different separators than the actual field with the checked values, I > think. The valuelist can be changed into an array with split, using "," as separator. I am not sure how it is formatted in XML or how FX parses this. I need to dig more into this. >The field with checked values should have each value separated > by a return (\r), while the value list itself is an actual array, not > a single field with some arbitrary separation character. > > OK, my brain is empty now. That's a problem well known to me too. Late evenings coding seem to produce lots of empty space... Rob From cthacker at cls.ucsf.edu Wed Apr 5 17:46:25 2006 From: cthacker at cls.ucsf.edu (chris thacker) Date: Wed Apr 5 17:46:48 2006 Subject: [FX.php List] installation and testing Message-ID: <79A69529-CCBE-4015-A2C7-55F33B594B2A@cls.ucsf.edu> I'm new to fx.php. I've used mysql and postgres. I'm trying to install FX and use the demo databases on one OS X box running 10.4.6. (my personal desktop mac) I've read the instructions and perused the archives for this list and haven't had any success. I've copied the FX folder to /Library/Webserver/Documents/ When I load http://myipaddress/fx/ I get an error: ------------------------------------------------------------------------ ---------------------------------------- iViking FX -- Book List Demo Page Author Title Pages FX_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 100 [message] => FX: ExecuteQuery XML error: Mismatched tag at line 3 [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /Library/WebServer/Documents/FX/FX.php [line] => 1362 [function] => FX_Error [class] => FX_Error [object] => FX_Error Object *RECURSION* [type] => -> [args] => Array ( [0] => ExecuteQuery XML error: Mismatched tag at line 3 ...[edited out]... ------------------------------------------------------------------------ ------------------------ loading any other page within the FX folder returns a blank page. (maybe it's supposed to, i don't know) I changed server_data.php to have my ip address (and even tried 'localhost') and the port 8080, which filemaker pro is set up to use. I've tried both filemaker 6 and 7... though not Unlimited... maybe that's required? Is there anything else I'm missing? Is there a newer install guide for dummies? Thanks! ____________ Chris Thacker Campus Life Services - Information Systems University of California at San Francisco [help desk] 415 502-5511 [direct line] 415 514-3373 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060405/79aa7e73/attachment-0001.html From robhelleshoj at tiscali.dk Thu Apr 6 04:13:26 2006 From: robhelleshoj at tiscali.dk (robhelleshoj@tiscali.dk) Date: Thu Apr 6 04:13:51 2006 Subject: [FX.php List] Re: Checkbox Message-ID: <1144318406.4434e9c66a2de@webmailtisctest.uni2.net> Derrick, > I've never seen the selected/checked value placed in quotes before; > what happens if you do the selected output without being in quotes > (but make sure there's a space after the closing quote for the value > parameter)? That was part of the problem: there was no space before 'checked'. > The only other thing I can think of is the difference in the way the > value list and the actual values are formatted. The value list has > different separators than the actual field with the checked values, I > think. >The valuelist can be changed into an array with split, using "," as >separator. I am not sure how it is formatted in XML or how FX parses this. >I need to dig more into this. True. I used print_r to display the arrays and that way I found out, that I used the wrong separator in the split function. >The field with checked values should have each value separated > by a return (\r), while the value list itself is an actual array, not > a single field with some arbitrary separation character. I used \n, not \r. So the final code became: $value){ if(in_array($value,$TRK2)){ $Select="checked";}else{$Select="";} ?> > Next phase is to use this to also update FileMaker. Rob From tmyers at itainc.com Fri Apr 7 16:46:04 2006 From: tmyers at itainc.com (Thomas Myers) Date: Fri Apr 7 16:46:13 2006 Subject: [FX.php List] [FMP-IF: CurrentAction.eq.delete] In-Reply-To: <1144318406.4434e9c66a2de@webmailtisctest.uni2.net> References: <1144318406.4434e9c66a2de@webmailtisctest.uni2.net> Message-ID: Am converting a CDML program and I have the body of a frame based page referring to "[FMP-IF: CurrentAction.eq.delete]". Any ideas on how to reproduce this in FX. The only way I can think of is to set my own session global each time I do a call... Am I missing an easier way? Thanks Tom -- Thomas Myers - ITA,Inc. (585)889-9119 5 Wood Sorrel mailto:tmyers@itainc.com Rochester, NY 14624 http://www.itainc.com C/C++, Photoshop Plug-Ins, Filemaker, Filemaker Plug-ins, Visual Basic, Real Basic, SCSI, Firewire, USB, Applescript, XML, Filemaker, TWAIN, Quicktime, Mac/Win cross platform solutions. From chris at iViking.org Sat Apr 8 10:55:04 2006 From: chris at iViking.org (Chris Hansen) Date: Sat Apr 8 10:55:11 2006 Subject: [FX.php List] [FMP-IF: CurrentAction.eq.delete] In-Reply-To: References: <1144318406.4434e9c66a2de@webmailtisctest.uni2.net> Message-ID: Tom, Yes, there is an easier way. Take advantage of the fact that a button is only passed to the processing form. So, assuming that you have multiple actions being processed on a single page, you might have something like this: $myQuery = new FX(FM_IP, FM_PORT, FM_TYPE); $myQuery->SetDBData('Database_Name', 'Database_Lauyout'); $myQuery->SetDBUserPass(FM_UN, FM_PW); if (isset($_POST['editButton'])) { $myQuery->SetRecordID($_POST['tempRecord']); $myQuery->AddDBParam('Field1', $_POST['formField1']); $myQuery->AddDBParam('Field2', $_POST['formField2']); $myData = $myQuery->DoFXAction(FX_ACTION_EDIT); } elseif (isset($_POST['deleteButton'])) { $myQuery->SetRecordID($_POST['tempRecord']); $myData = $myQuery->DoFXAction(FX_ACTION_DELETE); } Make sense? This way you can actually have the database information set once (above the conditionals) and only have the portions of code that are distinct within the conditional's branches. Some notes: 1) I've used syntax for the individual actions that appeared in FX.php v4.0, however the FMFind(), FMEdit(), etc. methods would work just the same. 2) The code above assumes that you have inputs something like this associated with the record: 3) Of course the above could be expanded with logic for additional actions. The curriculum that I created for the PHP class that I teach for The Moyer Group goes into this and other areas in much greater detail. For more information, go here: http://www.moyergroup.com/pages/cwp.php HTH Chris Hansen Application Developer The Moyer Group chansen@moyergroup.com http://www.moyergroup.com/ - Creator of FX.php "The best way from FileMaker to the Web." http://www.iViking.org/ - FileMaker 7 Certified Developer On Apr 7, 2006, at 4:46 PM, Thomas Myers wrote: > Am converting a CDML program and I have the body of a frame based > page referring to "[FMP-IF: CurrentAction.eq.delete]". > > Any ideas on how to reproduce this in FX. The only way I can think > of is to set my own session global each time I do a call... > > Am I missing an easier way? > > Thanks > > Tom > > -- > Thomas Myers - ITA,Inc. > (585)889-9119 > 5 Wood Sorrel mailto:tmyers@itainc.com > Rochester, NY 14624 http://www.itainc.com > > C/C++, Photoshop Plug-Ins, Filemaker, Filemaker Plug-ins, Visual > Basic, Real Basic, SCSI, Firewire, USB, Applescript, XML, > Filemaker, TWAIN, Quicktime, Mac/Win cross platform solutions. > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From cthacker at cls.ucsf.edu Wed Apr 5 17:46:25 2006 From: cthacker at cls.ucsf.edu (chris thacker) Date: Mon Apr 10 11:22:19 2006 Subject: [FX.php List] installation and testing Message-ID: <893A9A64-6C57-4A3D-A886-C99B45F25612@cls.ucsf.edu> I'm new to fx.php. I've used mysql and postgres. I'm trying to install FX and use the demo databases on one OS X box running 10.4.6. (my personal desktop mac) I've read the instructions and perused the archives for this list and haven't had any success. I've copied the FX folder to /Library/Webserver/Documents/ When I load http://myipaddress/fx/ I get an error: ------------------------------------------------------------------------ ---------------------------------------- iViking FX -- Book List Demo Page Author Title Pages FX_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 100 [message] => FX: ExecuteQuery XML error: Mismatched tag at line 3 [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /Library/WebServer/Documents/FX/FX.php [line] => 1362 [function] => FX_Error [class] => FX_Error [object] => FX_Error Object *RECURSION* [type] => -> [args] => Array ( [0] => ExecuteQuery XML error: Mismatched tag at line 3 ...[edited out]... ------------------------------------------------------------------------ ------------------------ loading any other page within the FX folder returns a blank page. (maybe it's supposed to, i don't know) I changed server_data.php to have my ip address (and even tried 'localhost') and the port 8080, which filemaker pro is set up to use. I've tried both filemaker 6 and 7... though not Unlimited... maybe that's required? Is there anything else I'm missing? Is there a newer install guide for dummies? Thanks! ____________ Chris Thacker Campus Life Services - Information Systems University of California at San Francisco [help desk] 415 502-5511 [direct line] 415 514-3373 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060405/f26ea175/attachment-0001.html From bob at patin.com Mon Apr 10 11:39:42 2006 From: bob at patin.com (Bob Patin) Date: Mon Apr 10 11:40:04 2006 Subject: [FX.php List] Simple question that's stumping me... Message-ID: <54872631-BC58-400D-AEBB-543164C1DB77@patin.com> I've got a query that returns a long list; what my client would like is to have a link on each result in the results table, that would re- query the database using the product serial number that they click on, which should trim the search results down to 2 or 3 records. I thought that I could create a link that says "search_results.php? model=123" and then the database would be re-queried using the model # that I specify in my created link. However, when I do that, my $_POST variable doesn't show any value. I thought that specifying "model=123" was the same as getting it from a form's output; isn't there a way to type in a URL that's the same as inputting a value in a simple one-field form? I know this is elementary, but it's stopped me in my tracks all of a sudden... Thanks, Bob From derrick at fogles.net Mon Apr 10 11:41:15 2006 From: derrick at fogles.net (Derrick Fogle) Date: Mon Apr 10 11:41:51 2006 Subject: [FX.php List] installation and testing In-Reply-To: <893A9A64-6C57-4A3D-A886-C99B45F25612@cls.ucsf.edu> References: <893A9A64-6C57-4A3D-A886-C99B45F25612@cls.ucsf.edu> Message-ID: It doesn't work unless you've got a running install of FM Server Advanced to query. It's a licensing issue with FMP that keeps any client installs (regular or advanced) from working with FX.php. On Apr 5, 2006, at 6:46 PM, chris thacker wrote: > I'm new to fx.php. I've used mysql and postgres. > > I'm trying to install FX and use the demo databases on one OS X box > running 10.4.6. (my personal desktop mac) > I've read the instructions and perused the archives for this list > and haven't had any success. > > I've copied the FX folder to /Library/Webserver/Documents/ > > When I load http://myipaddress/fx/ I get an error: > > > > ---------------------------------------------------------------------- > ------------------------------------------ > iViking FX -- Book List Demo Page > > Author > Title > Pages > FX_Error Object > ( > [error_message_prefix] => > [mode] => 1 > [level] => 1024 > [code] => 100 > [message] => FX: ExecuteQuery XML error: Mismatched tag at line 3 > [userinfo] => > [backtrace] => Array > ( > [0] => Array > ( > [file] => /Library/WebServer/Documents/FX/FX.php > [line] => 1362 > [function] => FX_Error > [class] => FX_Error > [object] => FX_Error Object > *RECURSION* > [type] => -> > [args] => Array > ( > [0] => ExecuteQuery XML error: > Mismatched tag at line 3 > ...[edited out]... > > ---------------------------------------------------------------------- > -------------------------- > > loading any other page within the FX folder returns a blank page. > (maybe it's supposed to, i don't know) > > I changed server_data.php to have my ip address (and even tried > 'localhost') and the port 8080, which filemaker pro is set up to > use. I've tried both filemaker 6 and 7... though not Unlimited... > maybe that's required? > > Is there anything else I'm missing? Is there a newer install > guide for dummies? > > Thanks! > > > ____________ > Chris Thacker > Campus Life Services - Information Systems > University of California at San Francisco > [help desk] 415 502-5511 > [direct line] 415 514-3373 > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Derrick Fogle derrick@fogles.net From shannah at sfu.ca Mon Apr 10 11:46:28 2006 From: shannah at sfu.ca (Steve Hannah) Date: Mon Apr 10 11:46:48 2006 Subject: [FX.php List] Simple question that's stumping me... In-Reply-To: <54872631-BC58-400D-AEBB-543164C1DB77@patin.com> References: <54872631-BC58-400D-AEBB-543164C1DB77@patin.com> Message-ID: <050DA0CA-0140-4755-AB65-7969FF388B78@sfu.ca> Hi Bob, > > I thought that specifying "model=123" was the same as getting it > from a form's output; isn't there a way to type in a URL that's the > same as inputting a value in a simple one-field form? > This is almost correct. Specifying model=123 is the same as inputting a value in a simple one-field form where *method="GET"*. These variables will appear in the $_GET array. To pass $_POST variables you must submit a form. There was a thread last week talking about ways to pass $_POST variables by clicking a link. The method that was suggested in that thread was to have a form with a hidden field, then create a link that submits the form from javascript. Hope this helps. Best regards Steve Hannah > I know this is elementary, but it's stopped me in my tracks all of > a sudden... > > Thanks, > > Bob > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > ---------------------------------------- Steve Hannah Web Services Developer Faculty of Applied Sciences Simon Fraser University shannah@sfu.ca 604-268-7228 Homepage: http://www.sjhannah.com From bob at patin.com Mon Apr 10 12:11:40 2006 From: bob at patin.com (Bob Patin) Date: Mon Apr 10 12:11:54 2006 Subject: [FX.php List] Retrieving domain name Message-ID: <06004484-ADB2-4528-A226-9BACF031F507@patin.com> I have a client whose site uses 3 different domain names; we need to track which domain name the visitor has used to get to my PHP page. Is there a way to parse out the domain name that someone used to get to a PHP page? I could do it with HTML redirect pages, but I'd rather do this more simply if possible. Any ideas, FX gurus? :) Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA SKYPE: USERNAME: longtermsolutions CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: bob@patin.com ICQ: 159333060 From bob at patin.com Mon Apr 10 12:12:26 2006 From: bob at patin.com (Bob Patin) Date: Mon Apr 10 12:12:36 2006 Subject: [FX.php List] Simple question that's stumping me... In-Reply-To: <050DA0CA-0140-4755-AB65-7969FF388B78@sfu.ca> References: <54872631-BC58-400D-AEBB-543164C1DB77@patin.com> <050DA0CA-0140-4755-AB65-7969FF388B78@sfu.ca> Message-ID: Perfect, I didn't think about that, but that's perfect! Thanks, Steve, Bob On Apr 10, 2006, at 12:46 PM, Steve Hannah wrote: > Hi Bob, > >> >> I thought that specifying "model=123" was the same as getting it >> from a form's output; isn't there a way to type in a URL that's >> the same as inputting a value in a simple one-field form? >> > > This is almost correct. Specifying model=123 is the same as > inputting a value in a simple one-field form where *method="GET"*. > These variables will appear in the $_GET array. To pass $_POST > variables you must submit a form. > > There was a thread last week talking about ways to pass $_POST > variables by clicking a link. The method that was suggested in > that thread was to have a form with a hidden field, then create a > link that submits the form from javascript. > > Hope this helps. > > Best regards > > Steve Hannah > > >> I know this is elementary, but it's stopped me in my tracks all of >> a sudden... >> >> Thanks, >> >> Bob >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > > > ---------------------------------------- > Steve Hannah > Web Services Developer > > Faculty of Applied Sciences > Simon Fraser University > shannah@sfu.ca > 604-268-7228 > Homepage: http://www.sjhannah.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tsepper at dctandt.com Mon Apr 10 12:16:14 2006 From: tsepper at dctandt.com (Tom Sepper) Date: Mon Apr 10 12:17:41 2006 Subject: [FX.php List] Retrieving domain name Message-ID: <82CF38DD410DB640ABB314B5C66F61133BBB2F@director-wjsghs.dcvalue.com> $_SERVER['HTTP_REFERER'] http://us3.php.net/reserved.variables Just be advised this isn't always set as it's possible to block the sending of referer values. Hope this helps! Tom -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Monday, April 10, 2006 1:12 PM To: FX.php Discussion List Subject: [FX.php List] Retrieving domain name I have a client whose site uses 3 different domain names; we need to track which domain name the visitor has used to get to my PHP page. Is there a way to parse out the domain name that someone used to get to a PHP page? I could do it with HTML redirect pages, but I'd rather do this more simply if possible. Any ideas, FX gurus? :) Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA SKYPE: USERNAME: longtermsolutions CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: bob@patin.com ICQ: 159333060 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From shannah at sfu.ca Mon Apr 10 12:18:27 2006 From: shannah at sfu.ca (Steve Hannah) Date: Mon Apr 10 12:18:40 2006 Subject: [FX.php List] Retrieving domain name In-Reply-To: <06004484-ADB2-4528-A226-9BACF031F507@patin.com> References: <06004484-ADB2-4528-A226-9BACF031F507@patin.com> Message-ID: <956107CA-03E8-4CBB-A13B-E56379DB9A90@sfu.ca> There should be a number of ways to get this information using the $_SERVER or $_ENV arrays. Some of these are platform dependent and will be different depending on whether you're running PHP as CGI or as an apache module. The best way to find out what is in these is just to to do: print_r($_SERVER); off the top of my head i think you should be able to use $_SERVER ['HTTP_HOST'] or $_SERVER['REQUEST_URI'] and parse out the host part. Best regards Steve On 10-Apr-06, at 11:11 AM, Bob Patin wrote: > I have a client whose site uses 3 different domain names; we need > to track which domain name the visitor has used to get to my PHP page. > > Is there a way to parse out the domain name that someone used to > get to a PHP page? I could do it with HTML redirect pages, but I'd > rather do this more simply if possible. > > Any ideas, FX gurus? :) > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA SKYPE: > USERNAME: longtermsolutions > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: bob@patin.com > ICQ: 159333060 > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Mon Apr 10 12:21:20 2006 From: bob at patin.com (Bob Patin) Date: Mon Apr 10 12:21:40 2006 Subject: [FX.php List] Retrieving domain name In-Reply-To: <956107CA-03E8-4CBB-A13B-E56379DB9A90@sfu.ca> References: <06004484-ADB2-4528-A226-9BACF031F507@patin.com> <956107CA-03E8-4CBB-A13B-E56379DB9A90@sfu.ca> Message-ID: Again, perfect! Thanks, Bob On Apr 10, 2006, at 1:18 PM, Steve Hannah wrote: > $_SERVER['HTTP_HOST'] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060410/2b543e83/attachment.html From michaelr.check at gmail.com Mon Apr 10 16:33:34 2006 From: michaelr.check at gmail.com (Michael Check) Date: Mon Apr 10 16:33:48 2006 Subject: [FX.php List] min php version requirements? Message-ID: is there a minimum requirement for PHP running FX 4? Running locally OSX 10.4.5, apache 1.3.33, php 4.3.11, FM6 it works fine. Running on test server Win 2000 sp4, IIS5, php 4.3.0, FM6 it stalls. On the test server I can see that the FM6 database selects all for the page (correctly), but the page never loads. It stalls out completely. Thanks, Michael Check From kfutter at sbc.melb.catholic.edu.au Tue Apr 11 21:23:37 2006 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Tue Apr 11 21:23:53 2006 Subject: [FX.php List] error 958 parameter missing from query In-Reply-To: <442CB27F.9080907@9degrees.com> Message-ID: On 31/3/06 3:39 PM, "Michael Layne" wrote: > This also might help - it helped us tremendously when we found that smart > quotes (such as copying/pasting from Word or even values from a FileMaker > field being sent through Troi URL plug-in) was causing records not to be > added, etc.: > > first the PHP function: > > function convertSmartQuotes($string) { > ??? $search = array(chr(145), > ??????????????????? chr(146), > ??????????????????? chr(147), > ??????????????????? chr(148), > ??????????????????? chr(151)); > ? > ??? $replace = array("'", > ???????????????????? "'", > ???????????????????? '"', > ???????????????????? '"', > ???????????????????? '-'); > ? > ??? return str_replace($search, $replace, $string); > } > > > then to the incoming values: > ? > ??? $q = new FX($ip,$port); > ??? $q->SetDBData($db,$lay); > ??? $q->SetDBPassword('xxxx','xxxx'); > > ??? //this is the important bit....................... ? > ??? foreach ($_POST as $key => $value) { > ??? ??? $realvalue = convertSmartQuotes($value); > ??? ??? $q -> AddDBParam($key, $realvalue); > ??? } > ??? //......................................................... > ??? $r = $q->FMNew();??? > > HTH, > > Michael > Michael - I've just today experienced the very problem your function seeks to address, so thanks for posting it. It took me an hour's worth of hacking around just to realise that smart quotes were the problem, and you've saved me the trouble of looking up character codes and writing my own function! -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ From Jane.Chinn at cwu.EDU Tue Apr 11 17:28:44 2006 From: Jane.Chinn at cwu.EDU (Jane Chinn) Date: Wed Apr 12 08:45:03 2006 Subject: [FX.php List] References: Message-ID: Hi, Can you give me an equivalent in FX.php for the old cdml: I keep receiving a mismatched tag error at line 6 message from FX Parser. I have reviewed Chris Thatcher's e-mail. We are using Filemaker 8 advanced and still get this error. I turned on the debugging and appear to be accessing the filemaker Pro7 data file. I can find no reason why I am getting the mismatched tag error. Any suggestions? Ken Surber Design Engineer Donco Air Products -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060412/ce20caf6/attachment.html From dbengston at preservationstudio.com Wed Apr 12 13:21:54 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Wed Apr 12 13:22:40 2006 Subject: [FX.php List] References: Message-ID: <000FA5C8-B25D-4101-913B-F1142BC19F5D@preservationstudio.com> Hi Jane, Assuming your data coming from FX is in an array called $result, it would be something like this: Hope this helps, Dale Bengston On Apr 11, 2006, at 6:28 PM, Jane Chinn wrote: > Hi, > > Can you give me an equivalent in FX.php for the old cdml: > > > Thanks, > Jane Chinn > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From Jane.Chinn at cwu.EDU Wed Apr 12 13:52:44 2006 From: Jane.Chinn at cwu.EDU (Jane Chinn) Date: Wed Apr 12 13:49:48 2006 Subject: [FX.php List] References: <000FA5C8-B25D-4101-913B-F1142BC19F5D@preservationstudio.com> Message-ID: Hi Dale, I'm sure the example you gave me would work too. On my page I have $searchData){ ?> and then the resulting data from Thanks! Jane On Apr 12, 2006, at 12:21 PM, Dale Bengston wrote: > Hi Jane, > > Assuming your data coming from FX is in an array called $result, it > would be something like this: > > > > Hope this helps, > Dale Bengston > > On Apr 11, 2006, at 6:28 PM, Jane Chinn wrote: > >> Hi, >> >> Can you give me an equivalent in FX.php for the old cdml: >> >> > >> Thanks, >> Jane Chinn >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From headhoncho at customikesolutions.com Wed Apr 12 16:44:41 2006 From: headhoncho at customikesolutions.com (Michael Ward) Date: Wed Apr 12 16:45:04 2006 Subject: [FX.php List] Mismatched tag error In-Reply-To: <247729C1CF7E5148843FBADE8511EC471175C0@server2.donco.local> References: <247729C1CF7E5148843FBADE8511EC471175C0@server2.donco.local> Message-ID: On 13/04/2006, at 2:32 AM, Ken Surber wrote: > I keep receiving a mismatched tag error at line 6 message from FX > Parser. I have reviewed Chris Thatcher's e-mail. We are using > Filemaker 8 advanced FileMaker 8 _Server_ advanced? > and still get this error. I turned on the debugging and appear to > be accessing the filemaker Pro7 data file. I can find no reason > why I am getting the mismatched tag error. Any suggestions? > > Ken Surber > Design Engineer > Donco Air Products > > _______________________________________________ > 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/20060413/a9ac759b/attachment.html From tmyers at itainc.com Thu Apr 13 07:59:34 2006 From: tmyers at itainc.com (Thomas Myers) Date: Thu Apr 13 07:59:59 2006 Subject: [FX.php List] References: Message-ID: Can someone give me an equivilent in fx.php for this old cdml: This is found in a web page that has a bunch of graphic tabs, this is the code that is executed when you click the tab. Thanks Tom From dan.cynosure at dbmscan.com Thu Apr 13 10:18:25 2006 From: dan.cynosure at dbmscan.com (DC) Date: Thu Apr 13 10:18:50 2006 Subject: [FX.php List] References: Message-ID: <443E79D1.1060300@dbmscan.com> um, have you even tried to write some php code to convert this? why don't you give it a try and then post any questions you have. the main thing in your href URL is the use of tokens. usually you can replace tokens with GET, POST, or SESSION variables. wouldn't it be wonderful to have a CDML to FX converter in the guise of a listserv? best, dan Thomas Myers had written: > Can someone give me an equivilent in fx.php for this old cdml: > > onmouseout="changeImages( > /*CMP*/'AdminL',/*URL*/'Images/AdminL.gif');return true" > HREF="FMPro?-db=Users&-Lay=WebLayout&-Format=AdminFrame.php&User=[FMP-Field: > User]&-Script=UpdateDate&-Token.1=[FMP-CurrentToken: > 1]&-Token.3=[FMP-CurrentToken: 3]&-Find" target="_top"> src="Images/AdminL.gif" name="AdminL" width=86 height=31 border=0 > align=bottom> > > This is found in a web page that has a bunch of graphic tabs, this is > the code that is executed when you click the tab. > > Thanks > > Tom > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From tami at asktami.com Thu Apr 13 21:44:43 2006 From: tami at asktami.com (Tami Williams) Date: Thu Apr 13 21:45:02 2006 Subject: [FX.php List] need info on perceived and actual strengths and weaknesses of using PHP with FileMaker to build dynamic web sites Message-ID: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> Hello: I'm trying to find out the strengths and weaknesses of using PHP with FileMaker to build dynamic web sites. What are the things that bug you about using PHP with FileMaker? What do you like? What are the things that non-developers/clients think are the strenghts? The weaknesses? I'm trying to gather as much information as possible by next Tuesday (4/18/06) so any information you can provide will be greatly appreciated. If this is the wrong forum for these questions, I apologize. Thanks in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "It's better to burn out than to fade away." Tami Williams Creative Computing Improve, manage and unify data with custom database and web applications. FileMaker and Lasso specialist. Tel: 770.457.3221 Fax: 770.454.7419 E-Mail: tami@asktami.com Web: http://www.asktami.com FileMaker Solutions Alliance Associate | Lasso Professional Alliance Member From dbengston at preservationstudio.com Thu Apr 13 22:39:57 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Apr 13 22:40:25 2006 Subject: [FX.php List] need info on perceived and actual strengths and weaknesses of using PHP with FileMaker to build dynamic web sites In-Reply-To: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> References: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> Message-ID: > I'm trying to find out the strengths and weaknesses of using PHP > with FileMaker to build dynamic web sites. Okay. The questions seem a bit loaded, but I'll give it a go. > What are the things that bug you about using PHP with FileMaker? > What do you like? The thing that bugs me about PHP versus Lasso or CDML is, how I'm still scratching the surface of PHP's capabilities, and I'm frustrated by how much I have to learn. When I was doing CDML development, I was always frustrated by the limitations of the environment. The things I like about PHP: I now consider myself a php/web developer who prefers to use FileMaker as my data source... as opposed to a FileMaker developer trying to figure out how to get my data to the web, and running into brick walls every day. I am now free to use the full power of Apache and PHP to drive my solutions. I am integrating a lot of AJAX-to-FX.php work right now, and it's very exciting to work on interfaces that use this technology. I can now integrate FileMaker data with any and all of the open-source PHP libraries out there that generate PDFs, Excel files, accept and manipulate uploaded files, etc. So the downside is the discovery/learning curve with PHP. The upside is its very potential. > What are the things that non-developers/clients think are the > strenghts? The weaknesses? My clients don't care about the technology being used. They want me to solve problems. Inherently, I think the clients I did CDML work for understand that PHP is a zillion steps up from what we could do in the CDML sandbox. One thing that non-developers see as a strength of PHP is its price: free. PHP and its open-source community is much more IT-friendly too. Hope this helps, Dale Bengston On Apr 13, 2006, at 10:44 PM, Tami Williams wrote: > Hello: > > I'm trying to find out the strengths and weaknesses of using PHP > with FileMaker to build dynamic web sites. > > What are the things that bug you about using PHP with FileMaker? > What do you like? > > What are the things that non-developers/clients think are the > strenghts? The weaknesses? > > I'm trying to gather as much information as possible by next > Tuesday (4/18/06) so any information you can provide will be > greatly appreciated. > > If this is the wrong forum for these questions, I apologize. > > > Thanks in advance. > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "It's better to burn out than to fade away." > > Tami Williams > Creative Computing > Improve, manage and unify data with custom database and web > applications. > FileMaker and Lasso specialist. > > Tel: 770.457.3221 > Fax: 770.454.7419 > E-Mail: tami@asktami.com > Web: http://www.asktami.com > > FileMaker Solutions Alliance Associate | Lasso Professional > Alliance Member > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jbarclay at uiuc.edu Thu Apr 13 23:32:16 2006 From: jbarclay at uiuc.edu (John Phillip Barclay) Date: Thu Apr 13 23:32:38 2006 Subject: [FX.php List] need info on perceived and actual strengths andweaknesses of using PHP with FileMaker to build dynamic web sites In-Reply-To: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> Message-ID: I did a proposal for a recent project that couldn't find any suitable developers in its first RFP. I believe the resason they couldn't find developers was the pool of developers who knew Lasso or FMP/XML AND Filemaker was relatively small. In our proposal, one of the reasons I gave for going with PHP was that they would have an easier time finding people to upgrade and maitain the website in the future. As far as a developers interest, I believe PHP is a much more versatile skill to develop that Lasso, CDML, or Filemaker custom xml/xslt. John Barclay -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tami Williams Sent: Thursday, April 13, 2006 10:45 PM To: fx.php_list@mail.iviking.org Subject: [FX.php List] need info on perceived and actual strengths andweaknesses of using PHP with FileMaker to build dynamic web sites Hello: I'm trying to find out the strengths and weaknesses of using PHP with FileMaker to build dynamic web sites. What are the things that bug you about using PHP with FileMaker? What do you like? What are the things that non-developers/clients think are the strenghts? The weaknesses? I'm trying to gather as much information as possible by next Tuesday (4/18/06) so any information you can provide will be greatly appreciated. If this is the wrong forum for these questions, I apologize. Thanks in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "It's better to burn out than to fade away." Tami Williams Creative Computing Improve, manage and unify data with custom database and web applications. FileMaker and Lasso specialist. Tel: 770.457.3221 Fax: 770.454.7419 E-Mail: tami@asktami.com Web: http://www.asktami.com FileMaker Solutions Alliance Associate | Lasso Professional Alliance Member _______________________________________________ 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 Apr 14 09:17:10 2006 From: dan.cynosure at dbmscan.com (DC) Date: Fri Apr 14 09:17:39 2006 Subject: [FX.php List] need info on perceived and actual strengths and weaknesses of using PHP with FileMaker to build dynamic web sites In-Reply-To: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> References: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> Message-ID: <801B054F-EBAB-4A68-AB81-789E0F62CCA2@dbmscan.com> Tami, First of all, you don't have to use PHP at all. FMP offers Instant Web Publishing (IWP) which is point and click database web serving at it's finest. As long as you don't mind accepting loss of control of some of the interface choices you can be up and running a database on the web in about an hour. It's nice because you make your web UI using FMP's layout mode and it just works. Two things that might influence the decision about using FMP on the web (applies to any server-side scripting language you might use PHP, ASP, perl, python, ruby, etc...) as opposed to using a more raw open source database system: 1) Filemaker offers a built in UI for data entry. If you have people in house doing data entry, FMP is great because it is so easy to get an interface up and running in a local network. Most other databases require you to build interfaces from scratch - I'm thinking of MySQL or other UNIX style databases here. Anything for internal use can be created using FMP's layout mode (and if you use IWP as noted above you can use your FMP layouts on the web). 2) If you go with FMP, you'll have to spend money up front but you need comparatively less technical skill to get everything running properly serving through PHP on the web. Setting up SQL databases is not point and click, but FMP is. Also, to reiterate other comments... the PHP community and code library is VAST - that is worth weighing very seriously. dan On Apr 13, 2006, at 11:44 PM, Tami Williams wrote: > Hello: > > I'm trying to find out the strengths and weaknesses of using PHP > with FileMaker to build dynamic web sites. > > What are the things that bug you about using PHP with FileMaker? > What do you like? > > What are the things that non-developers/clients think are the > strenghts? The weaknesses? > > I'm trying to gather as much information as possible by next > Tuesday (4/18/06) so any information you can provide will be > greatly appreciated. > > If this is the wrong forum for these questions, I apologize. > > > Thanks in advance. > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "It's better to burn out than to fade away." > > Tami Williams > Creative Computing > Improve, manage and unify data with custom database and web > applications. > FileMaker and Lasso specialist. > > Tel: 770.457.3221 > Fax: 770.454.7419 > E-Mail: tami@asktami.com > Web: http://www.asktami.com > > FileMaker Solutions Alliance Associate | Lasso Professional > Alliance Member > > _______________________________________________ > 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 Apr 14 09:51:50 2006 From: dan.cynosure at dbmscan.com (DC) Date: Fri Apr 14 09:52:10 2006 Subject: [FX.php List] need info on perceived and actual strengths and weaknesses of using PHP with FileMaker to build dynamic web sites In-Reply-To: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> References: <15226FB1-2B73-41A9-B7C6-7031599512F8@asktami.com> Message-ID: <6CFF9246-4BEB-4418-AB0B-798A260EBB83@dbmscan.com> Hi Tami, Maybe you should have mentioned that you are an experienced Filemaker Lasso developer? That might be key in talking to you at the right level. It looks like your website shows that you've been working with FMP since FMP4, maybe FMP3? Ok, well, I gather that you don't need advice about IWP as a way of avoiding PHP then... Bad: PHP gives you a path to get simple things working simply, but with great power comes great responsibility. There are so many options and ways of structuring code that it is very easy to overly complicate things. That means that when working with FMP it really pays to have a competent database engineer design the databases with a proper data model so the PHP doesn't get too fat making up for the database deficiencies. Good: PHP offers almost limitless potential - if there isn't a library that does what you need, you can code it yourself - in PHP. That means that when working with FMP you'll be able to offer features that FMP just doesn't do natively or with plugins. And also on the good side, I just can't let an opportunity go by without mentioning Smarty. http://smarty.php.net do the crash course and then check out the wiki for information on using smarty and FMP together. I trust that was more on target with your skill level. dan On Apr 13, 2006, at 11:44 PM, Tami Williams wrote: > Hello: > > I'm trying to find out the strengths and weaknesses of using PHP > with FileMaker to build dynamic web sites. > > What are the things that bug you about using PHP with FileMaker? > What do you like? > > What are the things that non-developers/clients think are the > strenghts? The weaknesses? > > I'm trying to gather as much information as possible by next > Tuesday (4/18/06) so any information you can provide will be > greatly appreciated. > > If this is the wrong forum for these questions, I apologize. > > > Thanks in advance. > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "It's better to burn out than to fade away." > > Tami Williams > Creative Computing > Improve, manage and unify data with custom database and web > applications. > FileMaker and Lasso specialist. > > Tel: 770.457.3221 > Fax: 770.454.7419 > E-Mail: tami@asktami.com > Web: http://www.asktami.com > > FileMaker Solutions Alliance Associate | Lasso Professional > Alliance Member > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From marisa at datasmithconsulting.net Sat Apr 15 04:09:51 2006 From: marisa at datasmithconsulting.net (Marisa Smith) Date: Mon Apr 17 10:05:13 2006 Subject: [FX.php List] [OT]Accepting Credit Card Payments Message-ID: <37E422B1-A580-4A23-85D8-1A3075BAD183@datasmithconsulting.net> I'm looking into accepting credit card payments by my own clients, and am trying to find a good, low-cost solution for just a few transactions per year, and it has to WORK WITH A MAC. I have had several people I know recommend using Quickbooks, which I already use for my accounting, but it is not available in the Macintosh version of Quickbooks. I also looked at the eAuthorize plugin from Waves In Motion for FMSA, but it is also only for Windows. I'm really only thinking of offering this because of a few payment delays I've had working with educational institutions that have a complex PO/check-cutting process. In some cases, it's taken me hours of effort to coordinate payment of a simple invoice, that I could have just had charged to their Purchasing Card. Most of the merchant accounts out there seem geared to high-volume point of sale businesses, so I wondered if anyone could point me in the right direction for a low-volume solution? I'd rather have a personal recommendation from people with similar business interests to start with since I came up with thousands of hits when I did a google search. Thanks in advance. Marisa P.S. I'm not looking to integrate this with my own website, although I'm not against that idea. For the number of times I would use this, I'm just as happy to write their number down, login somewhere, and hand-enter the transaction for processing. --------------------------------------------------------------------- Marisa Smith, President DataSmith Consulting, LLC 9206 Huron River Drive Dexter, MI 48130 Phone & Fax: (734) 426-8077 http://www.datasmithconsulting.net Filemaker Solutions Alliance Associate Member -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060415/10a9a985/attachment-0001.html From Ken at doncoair.com Mon Apr 17 05:19:04 2006 From: Ken at doncoair.com (Ken Surber) Date: Mon Apr 17 10:05:16 2006 Subject: [FX.php List] Mismatched tag error Message-ID: <247729C1CF7E5148843FBADE8511EC471175C1@server2.donco.local> Yes, I did mean FileMaker8_Server_advanced. The following 2 lines are the result of having the debugging option turned on. Accessing FileMaker Pro 7 data. Using FileMaker URL: http://ken:admin@our_IPaddress/fmi/xml/FMPXMLRESULT.xml?-db=DOS+Products.fp7&-lay=Product&-max=3&Model=dcd&-find The following traceback is shown when I show the text from FX_parser. [error_message_prefix] = [mode] = 1 [level] = 1024 [code] = 100 [message] = FX: ExecuteQuery XML error: Mismatched tag at line 6 [userinfo] = [backtrace] = Array (4) [0] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\FX.php [line] = 1362 [function] = FX_Error [class] = FX_Error [object] = Object id #2 [type] = -> [args] = Array (1) [0] = ExecuteQuery XML error: Mismatched tag at line 6 [1] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\FX.php [line] = 1529 [function] = ExecuteQuery [class] = FX [object] = Object id #1 [type] = -> [args] = Array (1) [0] = -find [2] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\FX.php [line] = 1753 [function] = FMAction [class] = FX [object] = Object id #1 [type] = -> [args] = Array (4) [0] = -find [1] = 1 [2] = full [3] = 1 [3] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\fxparser\index.php [line] = 78 [function] = FMFind [class] = FX [object] = Object id #1 [type] = -> [args] = Array (0) [callback] = -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org]On Behalf Of Michael Ward Sent: Wednesday, April 12, 2006 5:45 PM To: FX.php Discussion List Subject: Re: [FX.php List] Mismatched tag error On 13/04/2006, at 2:32 AM, Ken Surber wrote: I keep receiving a mismatched tag error at line 6 message from FX Parser. I have reviewed Chris Thatcher's e-mail. We are using Filemaker 8 advanced FileMaker 8 _Server_ advanced? and still get this error. I turned on the debugging and appear to be accessing the filemaker Pro7 data file. I can find no reason why I am getting the mismatched tag error. Any suggestions? Ken Surber Design Engineer Donco Air Products _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list !DSPAM:443d82f7303361960467807! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060417/9e17bdf4/attachment-0001.html From derrick at fogles.net Mon Apr 17 10:18:51 2006 From: derrick at fogles.net (Derrick Fogle) Date: Mon Apr 17 10:20:05 2006 Subject: [FX.php List] [OT]Accepting Credit Card Payments In-Reply-To: <37E422B1-A580-4A23-85D8-1A3075BAD183@datasmithconsulting.net> References: <37E422B1-A580-4A23-85D8-1A3075BAD183@datasmithconsulting.net> Message-ID: <4A4B2B7D-09DC-4CE4-B237-D38599520120@fogles.net> Why not use PayPal for this? On Apr 15, 2006, at 5:09 AM, Marisa Smith wrote: > I'm looking into accepting credit card payments by my own clients, > and am trying to find a good, low-cost solution for just a few > transactions per year, and it has to WORK WITH A MAC. I have had > several people I know recommend using Quickbooks, which I already > use for my accounting, but it is not available in the Macintosh > version of Quickbooks. I also looked at the eAuthorize plugin from > Waves In Motion for FMSA, but it is also only for Windows. > > I'm really only thinking of offering this because of a few payment > delays I've had working with educational institutions that have a > complex PO/check-cutting process. In some cases, it's taken me > hours of effort to coordinate payment of a simple invoice, that I > could have just had charged to their Purchasing Card. Most of the > merchant accounts out there seem geared to high-volume point of > sale businesses, so I wondered if anyone could point me in the > right direction for a low-volume solution? I'd rather have a > personal recommendation from people with similar business interests > to start with since I came up with thousands of hits when I did a > google search. > > Thanks in advance. > Marisa > > P.S. I'm not looking to integrate this with my own website, > although I'm not against that idea. For the number of times I > would use this, I'm just as happy to write their number down, login > somewhere, and hand-enter the transaction for processing. > > --------------------------------------------------------------------- > Marisa Smith, President > DataSmith Consulting, LLC > 9206 Huron River Drive > Dexter, MI 48130 > Phone & Fax: (734) 426-8077 > http://www.datasmithconsulting.net > Filemaker Solutions Alliance Associate Member > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Derrick Fogle derrick@fogles.net From adenman at tmea.org Mon Apr 17 10:35:05 2006 From: adenman at tmea.org (Andrew Denman) Date: Mon Apr 17 10:35:29 2006 Subject: [FX.php List] Mismatched tag error In-Reply-To: <247729C1CF7E5148843FBADE8511EC471175C1@server2.donco.local> Message-ID: <001901c6623c$e27efa10$d164a8c0@tmea.org> Have you also updated the Web Publishing Engine to the latest version? I remember having this problem in FMSA8 before they issued the update. http://www.filemaker.com/support/updaters/fms8av1a_win.html http://www.filemaker.com/support/updaters/fms8av1a_mac.html On a slightly unrelated note, it looks like we're getting another FM8 update soon: http://filemaker.custhelp.com/cgi-bin/filemaker.cfg/php/enduser/std_adp.php? p_faqid=5907 Andrew Denman _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Ken Surber Sent: Monday, April 17, 2006 6:19 AM To: FX.php Discussion List Subject: RE: [FX.php List] Mismatched tag error Yes, I did mean FileMaker8_Server_advanced. The following 2 lines are the result of having the debugging option turned on. Accessing FileMaker Pro 7 data. Using FileMaker URL: http://ken:admin@our_IPaddress/fmi/xml/FMPXMLRESULT.xml?-db=DOS+Products.fp7 &-lay=Product&-max=3&Model=dcd&-find The following traceback is shown when I show the text from FX_parser. [error_message_prefix] = [mode] = 1 [level] = 1024 [code] = 100 [message] = FX: ExecuteQuery XML error: Mismatched tag at line 6 [userinfo] = [backtrace] = Array (4) [0] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\FX.php [line] = 1362 [function] = FX_Error [class] = FX_Error [object] = Object id #2 [type] = -> [args] = Array (1) [0] = ExecuteQuery XML error: Mismatched tag at line 6 [1] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\FX.php [line] = 1529 [function] = ExecuteQuery [class] = FX [object] = Object id #1 [type] = -> [args] = Array (1) [0] = -find [2] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\FX.php [line] = 1753 [function] = FMAction [class] = FX [object] = Object id #1 [type] = -> [args] = Array (4) [0] = -find [1] = 1 [2] = full [3] = 1 [3] = Array(7) [file] = C:\Inetpub\wwwroot\INTRANET\FX\fxparser\index.php [line] = 78 [function] = FMFind [class] = FX [object] = Object id #1 [type] = -> [args] = Array (0) [callback] = -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060417/4e2ff71a/attachment.html From Ken at doncoair.com Mon Apr 17 11:58:16 2006 From: Ken at doncoair.com (Ken Surber) Date: Mon Apr 17 11:54:43 2006 Subject: [FX.php List] Mismatched tag error Message-ID: <247729C1CF7E5148843FBADE8511EC471175C2@server2.donco.local> The Web Publishing Engine shows the version to be 8.0.1.28 which I believe is the latest version. The only other issue with regard to the updates may be the order of update. I updated the Web Publishing Engine prior to updating FM Server 8 to V2. I haven't seen anything that leads me to believe this could be an issue. Thanks for the help. Ken Surber Design Engineer Donco Air Products -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org]On Behalf Of Andrew Denman Sent: Monday, April 17, 2006 11:35 AM To: 'FX.php Discussion List' Subject: RE: [FX.php List] Mismatched tag error Have you also updated the Web Publishing Engine to the latest version? I remember having this problem in FMSA8 before they issued the update. http://www.filemaker.com/support/updaters/fms8av1a_win.html http://www.filemaker.com/support/updaters/fms8av1a_mac.html On a slightly unrelated note, it looks like we're getting another FM8 update soon: http://filemaker.custhelp.com/cgi-bin/filemaker.cfg/php/enduser/std_adp.php?p_faqid=5907 Andrew Denman _____ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060417/3084f248/attachment-0001.html From tami at asktami.com Mon Apr 17 12:47:37 2006 From: tami at asktami.com (Tami Williams) Date: Mon Apr 17 12:47:57 2006 Subject: [FX.php List] can you use php to connect to both FileMaker and MySQL simultaneously Message-ID: Thanks in advance for any help. Can you use php to connect to both FileMaker and MySQL simultaneously? Has anyone ever done it? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "It's better to burn out than to fade away." Tami Williams Creative Computing Improve, manage and unify data with custom database and web applications. FileMaker and Lasso specialist. Tel: 770.457.3221 Fax: 770.454.7419 E-Mail: tami@asktami.com Web: http://www.asktami.com FileMaker Solutions Alliance Associate | Lasso Professional Alliance Member From derrick at fogles.net Mon Apr 17 13:18:21 2006 From: derrick at fogles.net (Derrick Fogle) Date: Mon Apr 17 13:18:43 2006 Subject: [FX.php List] can you use php to connect to both FileMaker and MySQL simultaneously In-Reply-To: References: Message-ID: <4477F7C6-1166-4CFF-B8BC-3AB64E109BFA@fogles.net> Yes, works great. On Apr 17, 2006, at 1:47 PM, Tami Williams wrote: > Thanks in advance for any help. > > Can you use php to connect to both FileMaker and MySQL > simultaneously? Has anyone ever done it? > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "It's better to burn out than to fade away." > > Tami Williams > Creative Computing > Improve, manage and unify data with custom database and web > applications. > FileMaker and Lasso specialist. > > Tel: 770.457.3221 > Fax: 770.454.7419 > E-Mail: tami@asktami.com > Web: http://www.asktami.com > > FileMaker Solutions Alliance Associate | Lasso Professional > Alliance Member > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Derrick Fogle derrick@fogles.net From chris at iViking.org Mon Apr 17 13:19:23 2006 From: chris at iViking.org (Chris Hansen) Date: Mon Apr 17 13:19:33 2006 Subject: [FX.php List] can you use php to connect to both FileMaker and MySQL simultaneously In-Reply-To: References: Message-ID: Tami, it's absolutely possible. In fact, the MySQL cache which is distributed with FX.php can connect to both FileMaker and MySQL in the course of a single request -- depending on the information's age and presence in the cache. (I'm not sure if both connections are open at the same time, but there's no reason this wouldn't work.) Also, in case you didn't know FX.php can connect to both FileMaker and MySQL if you so desire. HTH Chris Hansen Application Developer The Moyer Group chansen@moyergroup.com http://www.moyergroup.com/ - Creator of FX.php "The best way from FileMaker to the Web." http://www.iViking.org/ - FileMaker 7 Certified Developer On Apr 17, 2006, at 12:47 PM, Tami Williams wrote: > Thanks in advance for any help. > > Can you use php to connect to both FileMaker and MySQL > simultaneously? Has anyone ever done it? > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "It's better to burn out than to fade away." > > Tami Williams > Creative Computing > Improve, manage and unify data with custom database and web > applications. > FileMaker and Lasso specialist. > > Tel: 770.457.3221 > Fax: 770.454.7419 > E-Mail: tami@asktami.com > Web: http://www.asktami.com > > FileMaker Solutions Alliance Associate | Lasso Professional > Alliance Member > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From fx at 9degrees.com Mon Apr 17 13:30:23 2006 From: fx at 9degrees.com (Michael Layne) Date: Mon Apr 17 13:30:46 2006 Subject: [FX.php List] can you use php to connect to both FileMaker and MySQL simultaneously In-Reply-To: References: Message-ID: <4443ECCF.2060808@9degrees.com> Sure, I have developed a few solutions that talk to both. Say querying some products in a catalog in MySQL, then adding them to a lineitem PO in FileMaker, etc: the user selects from a list of POs provided by MySQL. They select the PO and enter a quantity... then they hit this page that gets all the info from MySQL and throws it into a new record in FMSA. // mysql $q = "SELECT * FROM catalog WHERE SKU = '" . $_REQUEST['sku'] . "' LIMIT 1"; // query $r = mysql_query($q,$connection) or die ("Unable to retrieve information from MySQL server: " . mysql_error()); // result $dCatalog = mysql_fetch_object($r); // get results into an object // FX $qFX = new FX($ip, $port); $qFX->SetDBData($fmdb,$lay); $qFX->AddDBParam('sessionID',session_id()); $qFX->AddDBParam('userID',$_SESSION['uid']); $qFX->AddDBParam('vendor',$dCatalog->Vendor); $qFX->AddDBParam('vendorName',$vendorNamee); $qFX->AddDBParam('agent',$dCatalog->Agent); $qFX->AddDBParam('pm',$dCatalog->PM); $qFX->AddDBParam('sku',$dCatalog->SKU); $qFX->AddDBParam('skuDesc',$dCatalog->SKUDesc); $qFX->AddDBParam('labelType',$lblt); // based on logic omitted - doesn't relate. $qFX->AddDBParam('retail',$retail); $qFX->AddDBParam('country',$dCatalog->Country); $qFX->AddDBParam('qty',$_POST['qty']); $rFX = $qFX->FMNew(); we just used the power of MySQL (catalog is 200,000 records) to create a single line-item order in FM. Hope this helps... and Hi Tami! Long time! Hope you are well... Michael Michael Layne | 9 degrees development | www.9degrees.com | 404.226.7835 | Skype: LayneBay Tami Williams wrote: > Thanks in advance for any help. > > Can you use php to connect to both FileMaker and MySQL > simultaneously? Has anyone ever done it? > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "It's better to burn out than to fade away." > > Tami Williams > Creative Computing > Improve, manage and unify data with custom database and web applications. > FileMaker and Lasso specialist. > > Tel: 770.457.3221 > Fax: 770.454.7419 > E-Mail: tami@asktami.com > Web: http://www.asktami.com > > FileMaker Solutions Alliance