From ggt667 at gmail.com Fri Sep 1 00:00:02 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 1 00:00:19 2006 Subject: [FX.php List] Embed php into HTML or vice versa? In-Reply-To: References: Message-ID: I only use " (double quotes) for \n and \t in php and inside HTML tags, this would be my approach;using Hannah's code as starting point: and foreach( $searchResult['data'] as $key => $value ) {//start for each list( $currentRecord, $modid ) = explode( '.', $key ); $line[] = ' {$value['FamilyName'][0]} {$value['StuList'][0]} {$value['Address1'][0]} {$value['City'][0]} {$value['State'][0]} {$value['Zip'][0]} $'.number_format($value['AmtTotal'][0],'2','.','').' $'.number_format( $value['LunchTotalPrice'][0],'2','.','').' {'.$value['PTAMembership'][0].'} '; } //end for each ?> // between and '.implode( '' . "\n" . '', $line ).'';?> On 9/1/06, Kevin Futter wrote: > On 1/9/06 1:03 PM, "DC" wrote: > > > On Aug 31, 2006, at 10:22 PM, Kevin Futter wrote: > > > >> The PHP manual itself recommends against them, and they can cause > >> all sorts of problems in XML environments, where they can (do) look > >> like an XML prolog. > > > > True. But, the manual says that you shouldn't use them if you are > > developing libraries or code to run on other people's machines. For > > your own use on your own systems it is a good tool to have available > > - especially working with web designers. > > > > According to the PHP manual, your comment about XML also seems to > > apply to XHTML though I am not sure why the presence of short PHP > > tags in PHP code would make a whit of difference to the validity of > > XHTML output by said code. Since you so kindly clarified the most > > recent XHTML question would you mind explaining why short tags would > > impinge on XHTML? (I understand the problem with XML) > > > > Well, if you consider that XHTML is technically a reformulation of HTML as > an application of XML, it makes more sense. Most pages that are marked up as > XHTML (even including the correct doctype) are not actually *served* or > *parsed* as XHTML, but as plain ole HTML. Why? Because the only thing that > actually determines whether a document is one or the other is its > server-supplied MIME-type header. HTML is served as text/html, whereas XHTML > has a MIME-type of application/xhtml+xml. > > However, XHTML is almost never served with this MIME-type. Why? Because IE6 > and below barf on it. Completely. Hence, the vast majority of the world's > web servers currently deploy text/html for XHTML to avoid this issue, making > most XHTML documents technically not XHTML at all. > > So, the reason that it appears that short opening tags being confused for > XML prologs has no effect in XHTML is because most of the world's XHTML > pages ... aren't. If they were, you'd see the problem then, for sure, since > technically XHTML requires an XML prolog to pass muster. IE7 purportedly > gets this right now, so things will be changing, and there's much more to > deploying XHTML correctly than simple syntax changes. > > There's more info here for those who are still curious: > > http://hixie.ch/advocacy/xhtml > > > -- > Kevin Futter > Webmaster, St. Bernard's College > http://www.sbc.melb.catholic.edu.au/ > > > > ------------------------------------------ > This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. > > > _______________________________________________ > 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 Fri Sep 1 00:14:28 2006 From: shannah at sfu.ca (Steve Hannah) Date: Fri Sep 1 00:14:52 2006 Subject: [FX.php List] Embed php into HTML or vice versa? In-Reply-To: References: Message-ID: <6434AB8D-EA9D-4470-8006-53C6DE34896F@sfu.ca> Normally, using single quotes for HTML is nicer to work with so you don't have to escape the double quotes in the html attributes. However PHP doesn't process variables inside single quotes so this won't work here. E.g. {$value['City'][0]} will be just printed as {$value['City'][0]} and not the associated value.. unfortunately -Steve On 31-Aug-06, at 11:00 PM, Gjermund Gusland Thorsen wrote: > I only use " (double quotes) for \n and \t in php and inside HTML > tags, > this would be my approach;using Hannah's code as starting point: > > // between and > foreach( $searchResult['data'] as $key => $value ) {//start for each > list( $currentRecord, $modid ) = explode( '.', $key ); > $line[] = ' > {$value > ['FamilyName'][0]} > > {$value['StuList'][0]} > {$value['Address1'][0]} > {$value['City'][0]} > {$value['State'][0]} > {$value['Zip'][0]} > > > $'.number_format($value['AmtTotal'][0],'2','.','').' > > > > > $'.number_format( $value['LunchTotalPrice'][0],'2','.','').' > > > {'.$value['PTAMembership'][0].'} > '; > } //end for each > ?> > > // between and > '.implode( '' . "\n" . ' class="ver12">', $line ).'';?> > > > On 9/1/06, Kevin Futter wrote: >> On 1/9/06 1:03 PM, "DC" wrote: >> >> > On Aug 31, 2006, at 10:22 PM, Kevin Futter wrote: >> > >> >> The PHP manual itself recommends against them, and they can cause >> >> all sorts of problems in XML environments, where they can (do) >> look >> >> like an XML prolog. >> > >> > True. But, the manual says that you shouldn't use them if you are >> > developing libraries or code to run on other people's machines. For >> > your own use on your own systems it is a good tool to have >> available >> > - especially working with web designers. >> > >> > According to the PHP manual, your comment about XML also seems to >> > apply to XHTML though I am not sure why the presence of short PHP >> > tags in PHP code would make a whit of difference to the validity of >> > XHTML output by said code. Since you so kindly clarified the most >> > recent XHTML question would you mind explaining why short tags >> would >> > impinge on XHTML? (I understand the problem with XML) >> > >> >> Well, if you consider that XHTML is technically a reformulation of >> HTML as >> an application of XML, it makes more sense. Most pages that are >> marked up as >> XHTML (even including the correct doctype) are not actually >> *served* or >> *parsed* as XHTML, but as plain ole HTML. Why? Because the only >> thing that >> actually determines whether a document is one or the other is its >> server-supplied MIME-type header. HTML is served as text/html, >> whereas XHTML >> has a MIME-type of application/xhtml+xml. >> >> However, XHTML is almost never served with this MIME-type. Why? >> Because IE6 >> and below barf on it. Completely. Hence, the vast majority of the >> world's >> web servers currently deploy text/html for XHTML to avoid this >> issue, making >> most XHTML documents technically not XHTML at all. >> >> So, the reason that it appears that short opening tags being >> confused for >> XML prologs has no effect in XHTML is because most of the world's >> XHTML >> pages ... aren't. If they were, you'd see the problem then, for >> sure, since >> technically XHTML requires an XML prolog to pass muster. IE7 >> purportedly >> gets this right now, so things will be changing, and there's much >> more to >> deploying XHTML correctly than simple syntax changes. >> >> There's more info here for those who are still curious: >> >> http://hixie.ch/advocacy/xhtml >> >> >> -- >> Kevin Futter >> Webmaster, St. Bernard's College >> http://www.sbc.melb.catholic.edu.au/ >> >> >> >> ------------------------------------------ >> This e-mail and any attachments may be confidential. You must not >> disclose or use the information in this e-mail if you are not the >> intended recipient. If you have received this e-mail in error, >> please notify us immediately and delete the e-mail and all >> copies. The College does not guarantee that this e-mail is virus >> or error free. The attached files are provided and may only be >> used on the basis that the user assumes all responsibility for any >> loss, damage or consequence resulting directly or indirectly from >> the use of the attached files, whether caused by the negligence of >> the sender or not. The content and opinions in this e-mail are >> not necessarily those of the College. >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 shannah at sfu.ca Fri Sep 1 00:25:37 2006 From: shannah at sfu.ca (Steve Hannah) Date: Fri Sep 1 00:25:56 2006 Subject: [FX.php List] Embed php into HTML or vice versa? In-Reply-To: References: Message-ID: Okay, here is another solution that ties together various aspects that we all want, using the print << $value) {//start for each $recordDetails=explode('.',$key); $currentRecord=$recordDetails[0]; $AmtTotal = '$'.number_format($value['AmtTotal'][0],'2',".",""); $LunchTotalPrice = '$'.number_format($value['LunchTotalPrice'] [0],'2',".",""); print << {$value['FamilyName'][0]} {$value['StuList'][0]} {$value['Address1'][0]} {$value['City'][0]} {$value['State'][0]} {$value['Zip'][0]} {$AmtTotal} {$LunchTotalPrice} {$value['PTAMembership'][0]} END; } //end for each ?> On 31-Aug-06, at 11:00 PM, Gjermund Gusland Thorsen wrote: > I only use " (double quotes) for \n and \t in php and inside HTML > tags, > this would be my approach;using Hannah's code as starting point: > > // between and > foreach( $searchResult['data'] as $key => $value ) {//start for each > list( $currentRecord, $modid ) = explode( '.', $key ); > $line[] = ' > {$value > ['FamilyName'][0]} > > {$value['StuList'][0]} > {$value['Address1'][0]} > {$value['City'][0]} > {$value['State'][0]} > {$value['Zip'][0]} > > > $'.number_format($value['AmtTotal'][0],'2','.','').' > > > > > $'.number_format( $value['LunchTotalPrice'][0],'2','.','').' > > > {'.$value['PTAMembership'][0].'} > '; > } //end for each > ?> > > // between and > '.implode( '' . "\n" . ' class="ver12">', $line ).'';?> > > > On 9/1/06, Kevin Futter wrote: >> On 1/9/06 1:03 PM, "DC" wrote: >> >> > On Aug 31, 2006, at 10:22 PM, Kevin Futter wrote: >> > >> >> The PHP manual itself recommends against them, and they can cause >> >> all sorts of problems in XML environments, where they can (do) >> look >> >> like an XML prolog. >> > >> > True. But, the manual says that you shouldn't use them if you are >> > developing libraries or code to run on other people's machines. For >> > your own use on your own systems it is a good tool to have >> available >> > - especially working with web designers. >> > >> > According to the PHP manual, your comment about XML also seems to >> > apply to XHTML though I am not sure why the presence of short PHP >> > tags in PHP code would make a whit of difference to the validity of >> > XHTML output by said code. Since you so kindly clarified the most >> > recent XHTML question would you mind explaining why short tags >> would >> > impinge on XHTML? (I understand the problem with XML) >> > >> >> Well, if you consider that XHTML is technically a reformulation of >> HTML as >> an application of XML, it makes more sense. Most pages that are >> marked up as >> XHTML (even including the correct doctype) are not actually >> *served* or >> *parsed* as XHTML, but as plain ole HTML. Why? Because the only >> thing that >> actually determines whether a document is one or the other is its >> server-supplied MIME-type header. HTML is served as text/html, >> whereas XHTML >> has a MIME-type of application/xhtml+xml. >> >> However, XHTML is almost never served with this MIME-type. Why? >> Because IE6 >> and below barf on it. Completely. Hence, the vast majority of the >> world's >> web servers currently deploy text/html for XHTML to avoid this >> issue, making >> most XHTML documents technically not XHTML at all. >> >> So, the reason that it appears that short opening tags being >> confused for >> XML prologs has no effect in XHTML is because most of the world's >> XHTML >> pages ... aren't. If they were, you'd see the problem then, for >> sure, since >> technically XHTML requires an XML prolog to pass muster. IE7 >> purportedly >> gets this right now, so things will be changing, and there's much >> more to >> deploying XHTML correctly than simple syntax changes. >> >> There's more info here for those who are still curious: >> >> http://hixie.ch/advocacy/xhtml >> >> >> -- >> Kevin Futter >> Webmaster, St. Bernard's College >> http://www.sbc.melb.catholic.edu.au/ >> >> >> >> ------------------------------------------ >> This e-mail and any attachments may be confidential. You must not >> disclose or use the information in this e-mail if you are not the >> intended recipient. If you have received this e-mail in error, >> please notify us immediately and delete the e-mail and all >> copies. The College does not guarantee that this e-mail is virus >> or error free. The attached files are provided and may only be >> used on the basis that the user assumes all responsibility for any >> loss, damage or consequence resulting directly or indirectly from >> the use of the attached files, whether caused by the negligence of >> the sender or not. The content and opinions in this e-mail are >> not necessarily those of the College. >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 gary.redmond at ucd.ie Fri Sep 1 04:02:40 2006 From: gary.redmond at ucd.ie (gary redmond) Date: Fri Sep 1 04:02:57 2006 Subject: [FX.php List] error help In-Reply-To: References: <55A24BE0-FE30-4526-B615-0F7771F53172@dbmscan.com> Message-ID: Ok I have created a form on a age called test.php and then have it set to post to the file addstudent.php (code below) but it's still not adding the student to the db. SetDBData('Student.fp7','stureg',$groupSize); $register->SetDBPassword('','Admin'); $register->AddDBParam('stunum',$stunum); $register->AddDBParam('last',$lastname); $register->AddDBParam('first',$firstname); $registerResult=$register->FMNew(); echo $registerResult['errorCode']; foreach($registerResult['data'] as $key=>$registerData); ?> ----- Original Message ----- From: Kevin Futter Date: Friday, September 1, 2006 0:24 am Subject: Re: [FX.php List] error help To: "FX.php Discussion List" > On 1/9/06 12:50 AM, "DC" wrote: > > > looks like there is still a bunch of blank space... did you use the > > bbedit trick or do it by hand and replace with real return > characters?> > > you have to tediously remove every single itty bitty space character > > including the ones in between code pieces like equals signs and all > > the spaces after semicolons and in the html if you copy pasted that. > > it's really tedious. so if you don't have an automated way of doing > > it you've got to be really precise and thorough. > > > > also, the same goes for the included files. > > > > this probably isn't part of your issue, but, i noticed that you are > > using single quotes in HTML attributes. i'm pretty sure that double > > quotes are required by one standard or other. i recall reading that > > with regards to XHTML or something. sorry i can't be more > specific - > > maybe someone else on the list has more detail on why double quotes > > are better for HTML attributes. > > Yes, double quotation marks are indeed required by all versions of > the XHTML > spec. They are of course optional for single character attribute > values in > all versions of the HTML spec, but good practice nonetheless. Multiple > character attribute values still require quoting with double-quotes > in HTML > though. > > -- > Kevin Futter > Webmaster, St. Bernard's College > http://www.sbc.melb.catholic.edu.au/ > > > > ------------------------------------------ > This e-mail and any attachments may be confidential. You must not > disclose or use the information in this e-mail if you are not the > intended recipient. If you have received this e-mail in error, > please notify us immediately and delete the e-mail and all copies. > The College does not guarantee that this e-mail is virus or error > free. The attached files are provided and may only be used on the > basis that the user assumes all responsibility for any loss, damage > or consequence resulting directly or indirectly from the use of the > attached files, whether caused by the negligence of the sender or > not. The content and opinions in this e-mail are not necessarily > those of the College. > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From gerry.charest at agfa.com Fri Sep 1 07:21:23 2006 From: gerry.charest at agfa.com (gerry.charest@agfa.com) Date: Fri Sep 1 07:21:47 2006 Subject: [FX.php List] Plug-in's and Web Server Advanced Message-ID: I have a group of databases that are intended for web access only. I use a plug-in Tori File to do limited file movements on the server based on activities selected by the web user. Everything worked fine under the FMP Five and Six version of the web server, I think this is because the old web server was an actual client and had the files open in an application window. With the New 7 and 8.5 Server Advanced running as a service, I can no longer process any scripts from the web that access the Tori File Plug-in. The plug in just returns "?". Processing other scripts is not a problem. Is there something special with the server? have I set something incorrectly at the server level and the plug-in? Any ideas?. I'm Using FX PHP to make the calls to the web-enabled FMP Server all other scripts process as expected. I did not want to use PHP to do the file movements for security reasons. Best Regards Gerry Charest -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/263a21a9/attachment-0001.html From erik at cayre.dk Fri Sep 1 07:58:21 2006 From: erik at cayre.dk (=?ISO-8859-1?Q?Erik_Andreas_Cayr=E9?=) Date: Fri Sep 1 07:58:51 2006 Subject: [FX.php List] Plug-in's and Web Server Advanced In-Reply-To: References: Message-ID: <68C2C8A9-DB58-4F08-A9CF-C9B4F06D3C00@cayre.dk> Den 01/09/2006 kl. 15.21 skrev gerry.charest@agfa.com: > I have a group of databases that are intended for web access only. > I use a plug-in Tori File to do limited file movements on the > server based on activities selected by the web user. Everything > worked fine under the FMP Five and Six version of the web server, I > think this is because the old web server was an actual client and > had the files open in an application window. With the New 7 and 8.5 > Server Advanced running as a service, I can no longer process any > scripts from the web that access the Tori File Plug-in. The plug in > just returns "?". Processing other scripts is not a problem. Is > there something special with the server? have I set something > incorrectly at the server level and the plug-in? Any ideas?. I think the Troi File plugin, as most if not all other plugins, is a client-side plugin. This means that it will not work on the server. You may want to check this with the publisher, Troi Automatisering. > I'm Using FX PHP to make the calls to the web-enabled FMP Server > all other scripts process as expected. I did not want to use PHP to > do the file movements for security reasons. You probably have no choice when running FMSA 7+. I'm quite certain your solution can be made secure using PHP for file manipulation though. best regards --- Erik Andreas Cayr? Spangsbjerg M?llevej 169 DK-6705 Esbjerg ? Home Tel: +45 75150512 Mobile: +45 40161183 ?If you can't explain it simply, you don't understand it well enough.? -- Albert Einstein ?If you don't have time to do it right, when will you have time to do it over?? -- John Wooden, basketball coach -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1856 bytes Desc: not available Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/3deef118/smime.bin From jhdo at central.uh.edu Fri Sep 1 08:14:21 2006 From: jhdo at central.uh.edu (Jerry Do) Date: Fri Sep 1 08:14:42 2006 Subject: [FX.php List] Authenticate with FileMaker account. In-Reply-To: Message-ID: It works! The command that solved this is the "is_array". I added another "else" to it though. if( is_array( $queryResult ) ) { If( $queryResult['foundCount']==1 ) { echo "passed"; } else { echo "failed"; } } Else { echo "invalid login"; } Thank you, My hair can grow back again. :) Jerry On 9/1/06 12:40 AM, "Gjermund Gusland Thorsen" wrote: > if( is_array( $queryResult ) ) { > If( $queryResult['foundCount']==1 ) { > echo "passed"; > } else { > echo "failed"; > } > } From jonathan at eschwartz.com Fri Sep 1 08:12:04 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Fri Sep 1 08:14:46 2006 Subject: [FX.php List] error help In-Reply-To: References: <55A24BE0-FE30-4526-B615-0F7771F53172@dbmscan.com> Message-ID: Gary, I feel your pain. ;-) This is the point where I step back and diagnose the symptoms from the 50,000 foot view: - Are all other scripts working and this is the only script that doesn't work? - If so, what is different about this script than other scripts? - FP7 file? - layout? - function? - field - If any of these is different than in currently working scripts, review: - spelling/capitalization (sunum is not equal to StuNum) - availability (fields on layout, layout on layout list, etc) - permissions (adding a record has different permissions than review and edit, I believe) -Where in the process is it going wrong? - I like to add little "markers" along the way to have the script tell me "it was there". For instance, I would put a in the last line of the addstudent.php script. If you see the message on the resulting page, you know at least that the script was executed. - I like to add a label to the errorcode line, just to know that the line was executed. The tools that I use to look under the covers appear below. You can use one of these or all of these. All of these would be copied into your addstudent.php page. I leave them on the page and simply comment them in and out as needed to solve a problem. This on shows exactly what query filemaker is being sent. If the query isn't right, that's a good thing to know. //************DEBUG*********** define("DEBUG", true); //************DEBUG*********** This shows what fx.php knows about your data before sending the query to FileMaker. // **********SEARCH REQUEST********** echo "
";
  print_r($_REQUEST);
  print_r($____________);  ///change to your $register, in this case
  echo "
"; // **********SEARCH REQUEST********** This shows what fx.php knows about your data before after FileMaker sends a response to your query. //********** SEARCH RESULT*************** echo "
";
print_r($__________); ///Change to $registerResult, in this case
echo "
"; ///********** SEARCH RESULT*************** This shows everything you ever wanted to know about your system. //**********GLOBALS*************** echo "
";
print_r ($GLOBALS); ///No need to change this variable.
echo "
"; //**********GLOBALS*************** With these tools, you learn a whole lot more about what is going on and how to resolve problems. Hope this helps. Jonathan At 11:02 AM +0100 9/1/06, gary redmond wrote: >Ok I have created a form on a age called test.php > > > >and then have it set to post to the file addstudent.php (code below) but >it's still not adding the student to the db. > > >include_once('FX/FX.php'); >include_once('FX/server_data.php'); > >$stunum=$_POST['stunum']; >$first=$_POST['first']; >$last=$_POST['last']; > > > >$groupSize='50'; > > >$register=new FX($serverIP,$webCompanionPort,''); >$register->SetDBData('Student.fp7','stureg',$groupSize); >$register->SetDBPassword('','Admin'); >$register->AddDBParam('stunum',$stunum); >$register->AddDBParam('last',$lastname); >$register->AddDBParam('first',$firstname); > > >$registerResult=$register->FMNew(); > >echo $registerResult['errorCode']; >foreach($registerResult['data'] as $key=>$registerData); > > >?> > > > > > > > > >----- Original Message ----- >From: Kevin Futter >Date: Friday, September 1, 2006 0:24 am >Subject: Re: [FX.php List] error help >To: "FX.php Discussion List" > >> On 1/9/06 12:50 AM, "DC" wrote: >> >> > looks like there is still a bunch of blank space... did you use the >> > bbedit trick or do it by hand and replace with real return >> characters?> >> > you have to tediously remove every single itty bitty space character >> > including the ones in between code pieces like equals signs and all >> > the spaces after semicolons and in the html if you copy pasted that. > > > it's really tedious. so if you don't have an automated way of doing >> > it you've got to be really precise and thorough. >> > >> > also, the same goes for the included files. >> > >> > this probably isn't part of your issue, but, i noticed that you are >> > using single quotes in HTML attributes. i'm pretty sure that double >> > quotes are required by one standard or other. i recall reading that >> > with regards to XHTML or something. sorry i can't be more >> specific - >> > maybe someone else on the list has more detail on why double quotes >> > are better for HTML attributes. >> >> Yes, double quotation marks are indeed required by all versions of >> the XHTML >> spec. They are of course optional for single character attribute >> values in >> all versions of the HTML spec, but good practice nonetheless. Multiple >> character attribute values still require quoting with double-quotes >> in HTML >> though. >> >> -- >> Kevin Futter >> Webmaster, St. Bernard's College >> http://www.sbc.melb.catholic.edu.au/ >> >> >> >> ------------------------------------------ >> This e-mail and any attachments may be confidential. You must not >> disclose or use the information in this e-mail if you are not the >> intended recipient. If you have received this e-mail in error, >> please notify us immediately and delete the e-mail and all copies. >> The College does not guarantee that this e-mail is virus or error >> free. The attached files are provided and may only be used on the >> basis that the user assumes all responsibility for any loss, damage >> or consequence resulting directly or indirectly from the use of the >> attached files, whether caused by the negligence of the sender or >> not. The content and opinions in this e-mail are not necessarily >> those of the College. >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dbengston at preservationstudio.com Fri Sep 1 08:18:13 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Sep 1 08:18:36 2006 Subject: [FX.php List] Embed php into HTML or vice versa? In-Reply-To: References: Message-ID: I completely agree. This is the approach I use too. On Sep 1, 2006, at 1:00 AM, Gjermund Gusland Thorsen wrote: > I only use " (double quotes) for \n and \t in php and inside HTML > tags, > this would be my approach;using Hannah's code as starting point: > > // between and > foreach( $searchResult['data'] as $key => $value ) {//start for each > list( $currentRecord, $modid ) = explode( '.', $key ); > $line[] = ' > {$value > ['FamilyName'][0]} > > {$value['StuList'][0]} > {$value['Address1'][0]} > {$value['City'][0]} > {$value['State'][0]} > {$value['Zip'][0]} > > > $'.number_format($value['AmtTotal'][0],'2','.','').' > > > > > $'.number_format( $value['LunchTotalPrice'][0],'2','.','').' > > > {'.$value['PTAMembership'][0].'} > '; > } //end for each > ?> > > // between and > '.implode( '' . "\n" . ' class="ver12">', $line ).'';?> > > > On 9/1/06, Kevin Futter wrote: >> On 1/9/06 1:03 PM, "DC" wrote: >> >> > On Aug 31, 2006, at 10:22 PM, Kevin Futter wrote: >> > >> >> The PHP manual itself recommends against them, and they can cause >> >> all sorts of problems in XML environments, where they can (do) >> look >> >> like an XML prolog. >> > >> > True. But, the manual says that you shouldn't use them if you are >> > developing libraries or code to run on other people's machines. For >> > your own use on your own systems it is a good tool to have >> available >> > - especially working with web designers. >> > >> > According to the PHP manual, your comment about XML also seems to >> > apply to XHTML though I am not sure why the presence of short PHP >> > tags in PHP code would make a whit of difference to the validity of >> > XHTML output by said code. Since you so kindly clarified the most >> > recent XHTML question would you mind explaining why short tags >> would >> > impinge on XHTML? (I understand the problem with XML) >> > >> >> Well, if you consider that XHTML is technically a reformulation of >> HTML as >> an application of XML, it makes more sense. Most pages that are >> marked up as >> XHTML (even including the correct doctype) are not actually >> *served* or >> *parsed* as XHTML, but as plain ole HTML. Why? Because the only >> thing that >> actually determines whether a document is one or the other is its >> server-supplied MIME-type header. HTML is served as text/html, >> whereas XHTML >> has a MIME-type of application/xhtml+xml. >> >> However, XHTML is almost never served with this MIME-type. Why? >> Because IE6 >> and below barf on it. Completely. Hence, the vast majority of the >> world's >> web servers currently deploy text/html for XHTML to avoid this >> issue, making >> most XHTML documents technically not XHTML at all. >> >> So, the reason that it appears that short opening tags being >> confused for >> XML prologs has no effect in XHTML is because most of the world's >> XHTML >> pages ... aren't. If they were, you'd see the problem then, for >> sure, since >> technically XHTML requires an XML prolog to pass muster. IE7 >> purportedly >> gets this right now, so things will be changing, and there's much >> more to >> deploying XHTML correctly than simple syntax changes. >> >> There's more info here for those who are still curious: >> >> http://hixie.ch/advocacy/xhtml >> >> >> -- >> Kevin Futter >> Webmaster, St. Bernard's College >> http://www.sbc.melb.catholic.edu.au/ >> >> >> >> ------------------------------------------ >> This e-mail and any attachments may be confidential. You must not >> disclose or use the information in this e-mail if you are not the >> intended recipient. If you have received this e-mail in error, >> please notify us immediately and delete the e-mail and all >> copies. The College does not guarantee that this e-mail is virus >> or error free. The attached files are provided and may only be >> used on the basis that the user assumes all responsibility for any >> loss, damage or consequence resulting directly or indirectly from >> the use of the attached files, whether caused by the negligence of >> the sender or not. The content and opinions in this e-mail are >> not necessarily those of the College. >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Fri Sep 1 08:21:08 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Sep 1 08:21:23 2006 Subject: [FX.php List] error help In-Reply-To: References: <55A24BE0-FE30-4526-B615-0F7771F53172@dbmscan.com> Message-ID: <72BAC254-B935-4A19-9ABD-7E03A5B74A9B@preservationstudio.com> One thing I noticed... you are setting variables called $first and $last from $_POST, but referring to them in your FX query as $firstname and $lastname. Dale On Sep 1, 2006, at 5:02 AM, gary redmond wrote: > Ok I have created a form on a age called test.php > > > > and then have it set to post to the file addstudent.php (code > below) but > it's still not adding the student to the db. > > > include_once('FX/FX.php'); > include_once('FX/server_data.php'); > > $stunum=$_POST['stunum']; > $first=$_POST['first']; > $last=$_POST['last']; > > > > $groupSize='50'; > > > $register=new FX($serverIP,$webCompanionPort,''); > $register->SetDBData('Student.fp7','stureg',$groupSize); > $register->SetDBPassword('','Admin'); > $register->AddDBParam('stunum',$stunum); > $register->AddDBParam('last',$lastname); > $register->AddDBParam('first',$firstname); > > > $registerResult=$register->FMNew(); > > echo $registerResult['errorCode']; > foreach($registerResult['data'] as $key=>$registerData); > > > ?> > > > > > > > > > ----- Original Message ----- > From: Kevin Futter > Date: Friday, September 1, 2006 0:24 am > Subject: Re: [FX.php List] error help > To: "FX.php Discussion List" > >> On 1/9/06 12:50 AM, "DC" wrote: >> >>> looks like there is still a bunch of blank space... did you use the >>> bbedit trick or do it by hand and replace with real return >> characters?> >>> you have to tediously remove every single itty bitty space character >>> including the ones in between code pieces like equals signs and all >>> the spaces after semicolons and in the html if you copy pasted that. >>> it's really tedious. so if you don't have an automated way of doing >>> it you've got to be really precise and thorough. >>> >>> also, the same goes for the included files. >>> >>> this probably isn't part of your issue, but, i noticed that you are >>> using single quotes in HTML attributes. i'm pretty sure that double >>> quotes are required by one standard or other. i recall reading that >>> with regards to XHTML or something. sorry i can't be more >> specific - >>> maybe someone else on the list has more detail on why double quotes >>> are better for HTML attributes. >> >> Yes, double quotation marks are indeed required by all versions of >> the XHTML >> spec. They are of course optional for single character attribute >> values in >> all versions of the HTML spec, but good practice nonetheless. >> Multiple >> character attribute values still require quoting with double-quotes >> in HTML >> though. >> >> -- >> Kevin Futter >> Webmaster, St. Bernard's College >> http://www.sbc.melb.catholic.edu.au/ >> >> >> >> ------------------------------------------ >> This e-mail and any attachments may be confidential. You must not >> disclose or use the information in this e-mail if you are not the >> intended recipient. If you have received this e-mail in error, >> please notify us immediately and delete the e-mail and all copies. >> The College does not guarantee that this e-mail is virus or error >> free. The attached files are provided and may only be used on the >> basis that the user assumes all responsibility for any loss, damage >> or consequence resulting directly or indirectly from the use of the >> attached files, whether caused by the negligence of the sender or >> not. The content and opinions in this e-mail are not necessarily >> those of the College. >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Fri Sep 1 08:28:40 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Sep 1 08:28:56 2006 Subject: [FX.php List] Plug-in's and Web Server Advanced In-Reply-To: References: Message-ID: <81C67CBB-64C6-4E5A-BF48-65696B5E8EBF@preservationstudio.com> One approach you could take would be to have an "empty" FileMaker file (no data or tables) that is accessible to the web, and now web access to your main solution files. Then make TOs in the empty, web- only file to your main file(s), using the web-accessible file as a filter for what can get served to the web. Dale On Sep 1, 2006, at 8:21 AM, gerry.charest@agfa.com wrote: > I have a group of databases that are intended for web access only. > I use a plug-in Tori File to do limited file movements on the > server based on activities selected by the web user. Everything > worked fine under the FMP Five and Six version of the web server, I > think this is because the old web server was an actual client and > had the files open in an application window. With the New 7 and 8.5 > Server Advanced running as a service, I can no longer process any > scripts from the web that access the Tori File Plug-in. The plug in > just returns "?". Processing other scripts is not a problem. Is > there something special with the server? have I set something > incorrectly at the server level and the plug-in? Any ideas?. > > I'm Using FX PHP to make the calls to the web-enabled FMP Server > all other scripts process as expected. I did not want to use PHP to > do the file movements for security reasons. > > > Best Regards > Gerry Charest > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Fri Sep 1 08:39:25 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Fri Sep 1 08:39:55 2006 Subject: [FX.php List] error help In-Reply-To: <72BAC254-B935-4A19-9ABD-7E03A5B74A9B@preservationstudio.com> References: <55A24BE0-FE30-4526-B615-0F7771F53172@dbmscan.com> <72BAC254-B935-4A19-9ABD-7E03A5B74A9B@preservationstudio.com> Message-ID: Another possible problem... you used a different field name for Last Name on your form: stunum
firstname
surname
Using the tools I provided, starting with Debug, would show you that these fields were not properly displayed in the query. J At 9:21 AM -0500 9/1/06, Dale Bengston wrote: >One thing I noticed... you are setting variables called $first and >$last from $_POST, but referring to them in your FX query as >$firstname and $lastname. > >Dale > >On Sep 1, 2006, at 5:02 AM, gary redmond wrote: > >>Ok I have created a form on a age called test.php >> >> >> >>and then have it set to post to the file addstudent.php (code below) but >>it's still not adding the student to the db. >> >> >>>include_once('FX/FX.php'); >>include_once('FX/server_data.php'); >> >>$stunum=$_POST['stunum']; >>$first=$_POST['first']; >>$last=$_POST['last']; >> >> >> >>$groupSize='50'; >> >> >>$register=new FX($serverIP,$webCompanionPort,''); >>$register->SetDBData('Student.fp7','stureg',$groupSize); >>$register->SetDBPassword('','Admin'); >>$register->AddDBParam('stunum',$stunum); >>$register->AddDBParam('last',$lastname); >>$register->AddDBParam('first',$firstname); >> >> >>$registerResult=$register->FMNew(); >> >>echo $registerResult['errorCode']; >>foreach($registerResult['data'] as $key=>$registerData); >> >> >>?> >> >> >> >> >> >> >> >> >>----- Original Message ----- >>From: Kevin Futter >>Date: Friday, September 1, 2006 0:24 am >>Subject: Re: [FX.php List] error help >>To: "FX.php Discussion List" >> >>>On 1/9/06 12:50 AM, "DC" wrote: >>> >>>>looks like there is still a bunch of blank space... did you use the >>>>bbedit trick or do it by hand and replace with real return >>>characters?> >>>>you have to tediously remove every single itty bitty space character >>>>including the ones in between code pieces like equals signs and all >>>>the spaces after semicolons and in the html if you copy pasted that. >>>>it's really tedious. so if you don't have an automated way of doing >>>>it you've got to be really precise and thorough. >>>> >>>>also, the same goes for the included files. >>>> >>>>this probably isn't part of your issue, but, i noticed that you are >>>>using single quotes in HTML attributes. i'm pretty sure that double >>>>quotes are required by one standard or other. i recall reading that >>>>with regards to XHTML or something. sorry i can't be more >>>specific - >>>>maybe someone else on the list has more detail on why double quotes >>>>are better for HTML attributes. >>> >>>Yes, double quotation marks are indeed required by all versions of >>>the XHTML >>>spec. They are of course optional for single character attribute >>>values in >>>all versions of the HTML spec, but good practice nonetheless. Multiple >>>character attribute values still require quoting with double-quotes >>>in HTML >>>though. >>> >>>-- >>>Kevin Futter >>>Webmaster, St. Bernard's College >>>http://www.sbc.melb.catholic.edu.au/ >>> >>> >>> >>>------------------------------------------ >>>This e-mail and any attachments may be confidential. You must not >>>disclose or use the information in this e-mail if you are not the >>>intended recipient. If you have received this e-mail in error, >>>please notify us immediately and delete the e-mail and all copies. >>>The College does not guarantee that this e-mail is virus or error >>>free. The attached files are provided and may only be used on the >>>basis that the user assumes all responsibility for any loss, damage >>>or consequence resulting directly or indirectly from the use of the >>>attached files, whether caused by the negligence of the sender or >>>not. The content and opinions in this e-mail are not necessarily >>>those of the College. >>> >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/6a911595/attachment.html From dan.cynosure at dbmscan.com Fri Sep 1 08:57:01 2006 From: dan.cynosure at dbmscan.com (DC) Date: Fri Sep 1 08:57:20 2006 Subject: [FX.php List] error help In-Reply-To: References: <55A24BE0-FE30-4526-B615-0F7771F53172@dbmscan.com> <72BAC254-B935-4A19-9ABD-7E03A5B74A9B@preservationstudio.com> Message-ID: Just a general counsel... you should look at writing code as building a brick wall - you have to put down the bottom bricks first, then, only when you are certain that those are placed properly do you put the next layer on. with a brick wall it is almost impossible to put the second layer on before the first, but with code, you can put lots of layers on right away and really stuff yourself up. start simple. build incrementally. test. (oh, did i mention test?) dan On Sep 1, 2006, at 10:39 AM, Jonathan Schwartz wrote: > Another possible problem... you used a different field name for > Last Name on your form: > > stunum
> firstname
> surname
> > > > > Using the tools I provided, starting with Debug, would show you > that these fields were not properly displayed in the query. > > J > > > > > At 9:21 AM -0500 9/1/06, Dale Bengston wrote: >> One thing I noticed... you are setting variables called $first and >> $last from $_POST, but referring to them in your FX query as >> $firstname and $lastname. >> >> Dale >> >> On Sep 1, 2006, at 5:02 AM, gary redmond wrote: >>> Ok I have created a form on a age called test.php >>> >>> >>> >>> and then have it set to post to the file addstudent.php (code >>> below) but >>> it's still not adding the student to the db. >>> >>> >>> >> include_once('FX/FX.php'); >>> include_once('FX/server_data.php'); >>> >>> $stunum=$_POST['stunum']; >>> $first=$_POST['first']; >>> $last=$_POST['last']; >>> >>> >>> >>> $groupSize='50'; >>> >>> >>> $register=new FX($serverIP,$webCompanionPort,''); >>> $register->SetDBData('Student.fp7','stureg',$groupSize); >>> $register->SetDBPassword('','Admin'); >>> $register->AddDBParam('stunum',$stunum); >>> $register->AddDBParam('last',$lastname); >>> $register->AddDBParam('first',$firstname); >>> >>> >>> $registerResult=$register->FMNew(); >>> >>> echo $registerResult['errorCode']; >>> foreach($registerResult['data'] as $key=>$registerData); >>> >>> >>> ?> >>> >>> >>> >>> >>> >>> >>> >>> >>> ----- Original Message ----- >>> From: Kevin Futter >>> Date: Friday, September 1, 2006 0:24 am >>> Subject: Re: [FX.php List] error help >>> To: "FX.php Discussion List" >>>> On 1/9/06 12:50 AM, "DC" wrote: >>>>> looks like there is still a bunch of blank space... did you use >>>>> the >>>>> bbedit trick or do it by hand and replace with real return >>>> characters?> >>>>> you have to tediously remove every single itty bitty space >>>>> character >>>>> including the ones in between code pieces like equals signs and >>>>> all >>>>> the spaces after semicolons and in the html if you copy pasted >>>>> that. >>>>> it's really tedious. so if you don't have an automated way of >>>>> doing >>>>> it you've got to be really precise and thorough. >>>>> >>>>> also, the same goes for the included files. >>>>> >>>>> this probably isn't part of your issue, but, i noticed that you >>>>> are >>>>> using single quotes in HTML attributes. i'm pretty sure that >>>>> double >>>>> quotes are required by one standard or other. i recall reading >>>>> that >>>>> with regards to XHTML or something. sorry i can't be more >>>> specific - >>>>> maybe someone else on the list has more detail on why double >>>>> quotes >>>>> are better for HTML attributes. >>>> >>>> Yes, double quotation marks are indeed required by all versions of >>>> the XHTML >>>> spec. They are of course optional for single character attribute >>>> values in >>>> all versions of the HTML spec, but good practice nonetheless. >>>> Multiple >>>> character attribute values still require quoting with double-quotes >>>> in HTML >>>> though. >>>> >>>> -- >>>> Kevin Futter >>>> Webmaster, St. Bernard's College >>>> http://www.sbc.melb.catholic.edu.au/ >>>> >>>> >>>> >>>> ------------------------------------------ >>>> This e-mail and any attachments may be confidential. You must not >>>> disclose or use the information in this e-mail if you are not the >>>> intended recipient. If you have received this e-mail in error, >>>> please notify us immediately and delete the e-mail and all copies. >>>> The College does not guarantee that this e-mail is virus or error >>>> free. The attached files are provided and may only be used on the >>>> basis that the user assumes all responsibility for any loss, damage >>>> or consequence resulting directly or indirectly from the use of the >>>> attached files, whether caused by the negligence of the sender or >>>> not. The content and opinions in this e-mail are not necessarily >>>> those of the College. >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From gerry.charest at agfa.com Fri Sep 1 09:01:49 2006 From: gerry.charest at agfa.com (gerry.charest@agfa.com) Date: Fri Sep 1 09:02:11 2006 Subject: [FX.php List] Plug-in's and Web Server Advanced Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/c9d662c7/graycol-0001.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/c9d662c7/ecblank-0001.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic19464.gif Type: image/gif Size: 1255 bytes Desc: not available Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/c9d662c7/pic19464-0001.gif From dbengston at preservationstudio.com Fri Sep 1 09:57:05 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Sep 1 09:57:18 2006 Subject: [FX.php List] Plug-in's and Web Server Advanced In-Reply-To: References: Message-ID: <0155C6EE-B0E4-47D8-8ECA-2D97C1334258@preservationstudio.com> Wow. Cool! On Sep 1, 2006, at 10:01 AM, gerry.charest@agfa.com wrote: > Thanks for your post Erik and Dale but, when all else fails RTFM. I > found this in the FMSA8-Web-Installation manual. > > Installing plug-ins for the Web Publishing Engine > If you want to use calculation plug-ins with the Web Publishing > Engine, you must install the plug-ins in the following folder on > the host where the Web Publishing Engine is installed. These folder > locations are relative to the installation folder where the Web > Publishing Engine is installed (not the root folder): > In Windows: > Web Publishing\publishing-engine\wpc\Plugins > In the Mac OS: > Library/FileMaker Server/Web Publishing/publishing-engine/wpc/Plugins > Note You must install the plug-ins for the Web Publishing Engine > in addition to any plug-ins you may have installed for FileMaker > Server or FileMaker Pro, even if they are the same plug-ins. For > additional information about using plug-ins, see the FileMaker > Server Administrator?s Guide. > > I added a copy of the plug-in to the specified location and > restarted the service and Life is good again! > > Best regards > Gerry > > > > Erik Andreas Cayr? > > > > > > > Erik Andreas Cayr? > Sent by: fx.php_list-bounces@mail.iviking.org > 09/01/2006 09:58 AM > Please respond to "FX.php Discussion List" > > > > > To: "FX.php Discussion List" > cc: (bcc: Gerry Charest/MJVYN/AGFA) > Subject: Re: [FX.php List] Plug-in's and Web Server Advanced > > > > Den 01/09/2006 kl. 15.21 skrev gerry.charest@agfa.com: > > > I have a group of databases that are intended for web access only. > > I use a plug-in Tori File to do limited file movements on the > > server based on activities selected by the web user. Everything > > worked fine under the FMP Five and Six version of the web server, I > > think this is because the old web server was an actual client and > > had the files open in an application window. With the New 7 and 8.5 > > Server Advanced running as a service, I can no longer process any > > scripts from the web that access the Tori File Plug-in. The plug in > > just returns "?". Processing other scripts is not a problem. Is > > there something special with the server? have I set something > > incorrectly at the server level and the plug-in? Any ideas?. > > I think the Troi File plugin, as most if not all other plugins, is a > client-side plugin. This means that it will not work on the server. > You may want to check this with the publisher, Troi Automatisering. > > > I'm Using FX PHP to make the calls to the web-enabled FMP Server > > all other scripts process as expected. I did not want to use PHP to > > do the file movements for security reasons. > > You probably have no choice when running FMSA 7+. > I'm quite certain your solution can be made secure using PHP for file > manipulation though. > > best regards > > --- > Erik Andreas Cayr? > Spangsbjerg M?llevej 169 > DK-6705 Esbjerg ? > > Home Tel: +45 75150512 > Mobile: +45 40161183 > > ?If you can't explain it simply, you don't understand it well enough.? > -- Albert Einstein > > ?If you don't have time to do it right, when will you have time to do > it over?? > -- John Wooden, basketball coach > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/be00ee52/attachment.html From erik at cayre.dk Fri Sep 1 13:49:41 2006 From: erik at cayre.dk (=?ISO-8859-1?Q?Erik_Andreas_Cayr=E9?=) Date: Fri Sep 1 13:50:12 2006 Subject: [FX.php List] Plug-in's and Web Server Advanced In-Reply-To: References: Message-ID: Den 01/09/2006 kl. 17.01 skrev gerry.charest@agfa.com: > Thanks for your post Erik and Dale but, when all else fails RTFM. I > found this in the FMSA8-Web-Installation manual. I couldn't have said it any better... I stand corrected! > Installing plug-ins for the Web Publishing Engine ... > I added a copy of the plug-in to the specified location and > restarted the service and Life is good again! Thanks for putting the solution on the list, so we may all learn...! --- Erik Andreas Cayr? Spangsbjerg M?llevej 169 DK-6705 Esbjerg ? Home Tel: +45 75150512 Mobile: +45 40161183 ?If you can't explain it simply, you don't understand it well enough.? -- Albert Einstein ?If you don't have time to do it right, when will you have time to do it over?? -- John Wooden, basketball coach -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1856 bytes Desc: not available Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/d5160126/smime.bin From gary.redmond at ucd.ie Fri Sep 1 14:01:46 2006 From: gary.redmond at ucd.ie (Gary Redmond) Date: Fri Sep 1 14:02:01 2006 Subject: [FX.php List] code help In-Reply-To: References: Message-ID: <44F891AA.6030309@ucd.ie> Hi, Just wondering if someone can help me I have a form where students enter their student number. When this is submitted I would like the database to be searched for the student number, if it found it should give a message saying You are already registered otherwise it should create a new record with that student number and display a form for the rest of the details (0bviously I can code the form myself but how do i do the rest) Thanks Erik Andreas Cayr? wrote: > > Den 01/09/2006 kl. 17.01 skrev gerry.charest@agfa.com: > >> Thanks for your post Erik and Dale but, when all else fails RTFM. I >> found this in the FMSA8-Web-Installation manual. > > > I couldn't have said it any better... I stand corrected! > >> Installing plug-ins for the Web Publishing Engine > > ... > >> I added a copy of the plug-in to the specified location and restarted >> the service and Life is good again! > > > Thanks for putting the solution on the list, so we may all learn...! > > --- > Erik Andreas Cayr? > Spangsbjerg M?llevej 169 > DK-6705 Esbjerg ? > > Home Tel: +45 75150512 > Mobile: +45 40161183 > > ?If you can't explain it simply, you don't understand it well enough.? > -- Albert Einstein > > ?If you don't have time to do it right, when will you have time to do > it over?? > -- John Wooden, basketball coach > > > > ------------------------------------------------------------------------ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jhdo at Central.UH.EDU Fri Sep 1 14:24:04 2006 From: jhdo at Central.UH.EDU (Do, Jerry H) Date: Fri Sep 1 14:24:23 2006 Subject: [FX.php List] code help References: <44F891AA.6030309@ucd.ie> Message-ID: hi, you might try something like this. $q = new FX($serverIP,$webCompanionPort); $q -> SetDBData('somedatabase.fp7','account'); $q -> SetDBPassword($webPW,$webUN); $q -> AddDBParam('id','="'.$id.'"',"eq"); $qResult = $q -> FMFind(); if ($qResult ['errorCode']==401) { echo "No account found... proceed to register."; } else if($qResult ['errorCode']==0) { echo"you are already register"; } else... ..... I am not good with PHP yet, but I think something like that might work. Good luck, Jerry, -----Original Message----- From: fx.php_list-bounces@mail.iviking.org on behalf of Gary Redmond Sent: Fri 9/1/2006 3:01 PM To: FX.php Discussion List Subject: [FX.php List] code help Hi, Just wondering if someone can help me I have a form where students enter their student number. When this is submitted I would like the database to be searched for the student number, if it found it should give a message saying You are already registered otherwise it should create a new record with that student number and display a form for the rest of the details (0bviously I can code the form myself but how do i do the rest) Thanks Erik Andreas Cayr? wrote: > > Den 01/09/2006 kl. 17.01 skrev gerry.charest@agfa.com: > >> Thanks for your post Erik and Dale but, when all else fails RTFM. I >> found this in the FMSA8-Web-Installation manual. > > > I couldn't have said it any better... I stand corrected! > >> Installing plug-ins for the Web Publishing Engine > > ... > >> I added a copy of the plug-in to the specified location and restarted >> the service and Life is good again! > > > Thanks for putting the solution on the list, so we may all learn...! > > --- > Erik Andreas Cayr? > Spangsbjerg M?llevej 169 > DK-6705 Esbjerg ? > > Home Tel: +45 75150512 > Mobile: +45 40161183 > > ?If you can't explain it simply, you don't understand it well enough.? > -- Albert Einstein > > ?If you don't have time to do it right, when will you have time to do > it over?? > -- John Wooden, basketball coach > > > > ------------------------------------------------------------------------ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3812 bytes Desc: not available Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060901/14009e1f/attachment-0001.bin From jonathan at eschwartz.com Fri Sep 1 14:27:16 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Fri Sep 1 14:27:46 2006 Subject: [FX.php List] code help In-Reply-To: <44F891AA.6030309@ucd.ie> References: <44F891AA.6030309@ucd.ie> Message-ID: Gary, In the Dale Bengstrom tradition ;-), I would he happy to explain how I would do it...but you have to do the coding yourself. In the target page: 1) Perform the find based on the studentnumber. 2) Detect the number of records found 3) With "if/else" statements, control the next step: - if count = 0>>No record exists>>create record - count = 1 >>record exists>>display recrod - count >1>> you've got a problem Taka shot at the scripting, and I'd be happy to help. Jonathan PS...Did you solve the previous problem? At 9:01 PM +0100 9/1/06, Gary Redmond wrote: >Hi, > >Just wondering if someone can help me I have a >form where students enter their student number. >When this is submitted I would like the database >to be searched for the student number, if it >found it should give a message saying You are >already registered otherwise it should create a >new record with that student number and display >a form for the rest of the details (0bviously I >can code the form myself but how do i do the >rest) > >Thanks > >Erik Andreas Cayr? wrote: >> >>Den 01/09/2006 kl. 17.01 skrev gerry.charest@agfa.com: >> >>>Thanks for your post Erik and Dale but, when >>>all else fails RTFM. I found this in the >>>FMSA8-Web-Installation manual. >> >> >>I couldn't have said it any better... I stand corrected! >> >>>Installing plug-ins for the Web Publishing Engine >> >>... >> >>>I added a copy of the plug-in to the specified >>>location and restarted the service and Life >>>is good again! >> >> >>Thanks for putting the solution on the list, so we may all learn...! >> >>--- >>Erik Andreas Cayr? >>Spangsbjerg M?llevej 169 >>DK-6705 Esbjerg ? >> >>Home Tel: +45 75150512 >>Mobile: +45 40161183 >> >>?If you can't explain it simply, you don't understand it well enough.? >>-- Albert Einstein >> >>?If you don't have time to do it right, when >>will you have time to do it over?? >>-- John Wooden, basketball coach >> >> >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From gary.redmond at ucd.ie Fri Sep 1 20:38:15 2006 From: gary.redmond at ucd.ie (Gary Redmond) Date: Fri Sep 1 20:38:28 2006 Subject: [FX.php List] code help In-Reply-To: References: <44F891AA.6030309@ucd.ie> Message-ID: <44F8EE97.2080409@ucd.ie> Jonathan, I'm really new to PHP but i'll give it a go, infact I've never written a php script before. Yep previous problem is solved, in the web publishing engine for the option to specify the location of the filemaker server I used a hostname and all worked fine when I used the ip address here - not sure why really strange cause the hostname definetly maps to the ip address. Jonathan Schwartz wrote: > Gary, > > In the Dale Bengstrom tradition ;-), I would he happy to explain how I > would do it...but you have to do the coding yourself. > > In the target page: > 1) Perform the find based on the studentnumber. > 2) Detect the number of records found > 3) With "if/else" statements, control the next step: > - if count = 0>>No record exists>>create record > - count = 1 >>record exists>>display recrod > - count >1>> you've got a problem > > > Taka shot at the scripting, and I'd be happy to help. > > Jonathan > > PS...Did you solve the previous problem? > > > At 9:01 PM +0100 9/1/06, Gary Redmond wrote: > >> Hi, >> >> Just wondering if someone can help me I have a form where students >> enter their student number. When this is submitted I would like the >> database to be searched for the student number, if it found it should >> give a message saying You are already registered otherwise it should >> create a new record with that student number and display a form for >> the rest of the details (0bviously I can code the form myself but how >> do i do the rest) >> >> Thanks >> >> Erik Andreas Cayr? wrote: >> >>> >>> Den 01/09/2006 kl. 17.01 skrev gerry.charest@agfa.com: >>> >>>> Thanks for your post Erik and Dale but, when all else fails RTFM. I >>>> found this in the FMSA8-Web-Installation manual. >>> >>> >>> >>> I couldn't have said it any better... I stand corrected! >>> >>>> Installing plug-ins for the Web Publishing Engine >>> >>> >>> ... >>> >>>> I added a copy of the plug-in to the specified location and >>>> restarted the service and Life is good again! >>> >>> >>> >>> Thanks for putting the solution on the list, so we may all learn...! >>> >>> --- >>> Erik Andreas Cayr? >>> Spangsbjerg M?llevej 169 >>> DK-6705 Esbjerg ? >>> >>> Home Tel: +45 75150512 >>> Mobile: +45 40161183 >>> >>> ?If you can't explain it simply, you don't understand it well enough.? >>> -- Albert Einstein >>> >>> ?If you don't have time to do it right, when will you have time to >>> do it over?? >>> -- John Wooden, basketball coach >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Fri Sep 1 20:47:23 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Fri Sep 1 20:49:42 2006 Subject: [FX.php List] code help In-Reply-To: <44F8EE97.2080409@ucd.ie> References: <44F891AA.6030309@ucd.ie> <44F8EE97.2080409@ucd.ie> Message-ID: Gary, Welcome to fx.php. I used to be the resident beginner. Jonathan At 3:38 AM +0100 9/2/06, Gary Redmond wrote: >Jonathan, > >I'm really new to PHP but i'll give it a go, >infact I've never written a php script before. > >Yep previous problem is solved, in the web >publishing engine for the option to specify the >location of the filemaker server I used a >hostname and all worked fine when I used the ip >address here - not sure why really strange cause >the hostname definetly maps to the ip address. > > > Jonathan Schwartz wrote: >>Gary, >> >>In the Dale Bengstrom tradition ;-), I would he >>happy to explain how I would do it...but you >>have to do the coding yourself. >> >>In the target page: >> 1) Perform the find based on the studentnumber. >> 2) Detect the number of records found >> 3) With "if/else" statements, control the next step: >> - if count = 0>>No record exists>>create record >> - count = 1 >>record exists>>display recrod >> - count >1>> you've got a problem >> >> >>Taka shot at the scripting, and I'd be happy to help. >> >>Jonathan >> >>PS...Did you solve the previous problem? >> >> >>At 9:01 PM +0100 9/1/06, Gary Redmond wrote: >> >>>Hi, >>> >>>Just wondering if someone can help me I have a >>>form where students enter their student >>>number. When this is submitted I would like >>>the database to be searched for the student >>>number, if it found it should give a message >>>saying You are already registered otherwise it >>>should create a new record with that student >>>number and display a form for the rest of the >>>details (0bviously I can code the form myself >>>but how do i do the rest) >>> >>>Thanks >>> >>>Erik Andreas Cayr? wrote: >>> >>>> >>>>Den 01/09/2006 kl. 17.01 skrev gerry.charest@agfa.com: >>>> >>>>>Thanks for your post Erik and Dale but, when >>>>>all else fails RTFM. I found this in the >>>>>FMSA8-Web-Installation manual. >>>> >>>> >>>> >>>>I couldn't have said it any better... I stand corrected! >>>> >>>>>Installing plug-ins for the Web Publishing Engine >>>> >>>> >>>>... >>>> >>>>>I added a copy of the plug-in to the >>>>>specified location and restarted the >>>>>service and Life is good again! >>>> >>>> >>>> >>>>Thanks for putting the solution on the list, so we may all learn...! >>>> >>>>--- >>>>Erik Andreas Cayr? >>>>Spangsbjerg M?llevej 169 >>>>DK-6705 Esbjerg ? >>>> >>>>Home Tel: +45 75150512 >>>>Mobile: +45 40161183 >>>> >>>>?If you can't explain it simply, you don't understand it well enough.? >>>>-- Albert Einstein >>>> >>>>?If you don't have time to do it right, when >>>>will you have time to do it over?? >>>>-- John Wooden, basketball coach >>>> >>>> >>>> >>>>------------------------------------------------------------------------ >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Sat Sep 2 09:51:02 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sat Sep 2 09:56:26 2006 Subject: [FX.php List] Search Syntx In-Reply-To: References: Message-ID: Is there a list of search syntax rules for users of an fx.php-powered search web page? I'm learning by trial and error, for instance that "*" works as a wildcard and the ">" sign works. I'm looking for the entire list, and I'm not sure if this is the domain of fx.php or PHP or FileMaker. Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dbengston at preservationstudio.com Sat Sep 2 11:07:16 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Sat Sep 2 11:07:46 2006 Subject: [FX.php List] Search Syntx In-Reply-To: References: Message-ID: <7F300A86-6683-4203-B613-1D46B3B831BF@preservationstudio.com> My understanding is that an FX query performs and actual FMP search, so any of the search wild cards should work. Back in the days of FMU6, you could actually double-check your queries by choosing "Modify last find" in the FMU client and looking at what was filled in. Any wild cards you hard-coded in the query were visible in when viewing modify the last find. Likewise, if you are using 'gt' or 'lt' or 'eq' in any of your db parameters, you could see the wild card added in FMU. I have not tested every wild card. I know that ... (three periods) between two dates finds all the dates in that range, and searching on emails is tricky because they contain the @ symbol which is also a wild card. That's a long way around to saying I think anything that works in FMP will work if passed by FX to FMP. Dale On Sep 2, 2006, at 10:51 AM, Jonathan Schwartz wrote: > Is there a list of search syntax rules for users of an fx.php- > powered search web page? > > I'm learning by trial and error, for instance that "*" works as a > wildcard and the ">" sign works. > > I'm looking for the entire list, and I'm not sure if this is the > domain of fx.php or PHP or FileMaker. > > Thanks > > Jonathan > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From log-out at yacobi.com Tue Sep 5 07:23:46 2006 From: log-out at yacobi.com (Log-Out) Date: Tue Sep 5 07:23:01 2006 Subject: [FX.php List] Finding several recids Message-ID: <44FD7A62.1020706@yacobi.com> Hello, I'm traying to find several records using the recids: $someFind->AddDBParam('-recid', '123'); $someFind->AddDBParam('-recid', '256'); $someFind->AddDBParam('-recid', '335'); But I'm only receive one record (with recid '335'). What's the correct code to find these records? Thanks. Log-Out Madrid-Spain From adenman at tmea.org Tue Sep 5 12:34:52 2006 From: adenman at tmea.org (Andrew Denman) Date: Tue Sep 5 12:35:04 2006 Subject: [FX.php List] Search Syntx In-Reply-To: <7F300A86-6683-4203-B613-1D46B3B831BF@preservationstudio.com> Message-ID: <05ce01c6d119$fa746f00$c864a8c0@tmea.org> >From my experience with searches, if it works in FileMaker it works on the web. For a full list just click the little triangle next to "Symbols" on the status area in find mode. Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Saturday, September 02, 2006 12:07 PM To: FX.php Discussion List Subject: Re: [FX.php List] Search Syntx My understanding is that an FX query performs and actual FMP search, so any of the search wild cards should work. Back in the days of FMU6, you could actually double-check your queries by choosing "Modify last find" in the FMU client and looking at what was filled in. Any wild cards you hard-coded in the query were visible in when viewing modify the last find. Likewise, if you are using 'gt' or 'lt' or 'eq' in any of your db parameters, you could see the wild card added in FMU. I have not tested every wild card. I know that ... (three periods) between two dates finds all the dates in that range, and searching on emails is tricky because they contain the @ symbol which is also a wild card. That's a long way around to saying I think anything that works in FMP will work if passed by FX to FMP. Dale On Sep 2, 2006, at 10:51 AM, Jonathan Schwartz wrote: > Is there a list of search syntax rules for users of an fx.php- > powered search web page? > > I'm learning by trial and error, for instance that "*" works as a > wildcard and the ">" sign works. > > I'm looking for the entire list, and I'm not sure if this is the > domain of fx.php or PHP or FileMaker. > > Thanks > > Jonathan > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 jonathan at eschwartz.com Tue Sep 5 12:44:48 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Tue Sep 5 12:48:39 2006 Subject: [FX.php List] Search Syntx In-Reply-To: <05ce01c6d119$fa746f00$c864a8c0@tmea.org> References: <05ce01c6d119$fa746f00$c864a8c0@tmea.org> Message-ID: Thanks Dale and Andrew. That was a "DOH!" moment. ;-) Jonathan At 1:34 PM -0500 9/5/06, Andrew Denman wrote: > >From my experience with searches, if it works in FileMaker it works on the >web. For a full list just click the little triangle next to "Symbols" on >the status area in find mode. > >Andrew Denman > >-----Original Message----- >From: fx.php_list-bounces@mail.iviking.org >[mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston >Sent: Saturday, September 02, 2006 12:07 PM >To: FX.php Discussion List >Subject: Re: [FX.php List] Search Syntx > >My understanding is that an FX query performs and actual FMP search, >so any of the search wild cards should work. > >Back in the days of FMU6, you could actually double-check your >queries by choosing "Modify last find" in the FMU client and looking >at what was filled in. Any wild cards you hard-coded in the query >were visible in when viewing modify the last find. Likewise, if you >are using 'gt' or 'lt' or 'eq' in any of your db parameters, you >could see the wild card added in FMU. > >I have not tested every wild card. I know that ... (three periods) >between two dates finds all the dates in that range, and searching on >emails is tricky because they contain the @ symbol which is also a >wild card. > >That's a long way around to saying I think anything that works in FMP >will work if passed by FX to FMP. > >Dale > >On Sep 2, 2006, at 10:51 AM, Jonathan Schwartz wrote: > >> Is there a list of search syntax rules for users of an fx.php- >> powered search web page? >> >> I'm learning by trial and error, for instance that "*" works as a >> wildcard and the ">" sign works. >> >> I'm looking for the entire list, and I'm not sure if this is the >> domain of fx.php or PHP or FileMaker. >> >> Thanks >> >> Jonathan >> -- >> >> Jonathan Schwartz >> FileMaker 8 Certified Developer >> Associate Member, FileMaker Solutions Alliance >> Schwartz & Company >> jonathan@eschwartz.com >> http://www.eschwartz.com >> http://www.exit445.com >> 415-381-1852 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From FHASELTINE at aol.com Tue Sep 5 20:04:31 2006 From: FHASELTINE at aol.com (FHASELTINE@aol.com) Date: Tue Sep 5 20:04:48 2006 Subject: [FX.php List] multiple entries for updating. Message-ID: I have a FM field called Projects. The field "Projects" in my Filemaker data base permits entries from a value list in it and multiple entries are allowed. On my web page all the values in the "Project" field are visible. However, how do I design an edit function for that field. I made a drop down list, but I could only change one entry and it wiped out all the others. I would like people to be able to select several Projects and have them all entered into the data base. Does anyone have any coding that would do this. Florence? Haseltine AIM: Fhaseltine fhaseltine@aol.com 240-476-7837 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060905/cceb79bf/attachment.html From FHASELTINE at aol.com Tue Sep 5 20:12:23 2006 From: FHASELTINE at aol.com (FHASELTINE@aol.com) Date: Tue Sep 5 20:12:37 2006 Subject: [FX.php List] Access Level Problems Message-ID: <548.6bf4d06.322f8887@aol.com> I am giving my logon permissions different access levels. Access 10 can edit and see everything. However I want a person who is login to be able to access their own record but not anyone elses, Say I give Jane Doe an access level 5. level 5 is allowed to see all the members She signs in and sees all the members, she needs to change her information.? How do I code it so that she can change her record or a person with level 10 access can change her record.? I tried to figure out how to have it recognize the Last Name of the person and I have given the 'admin' name = LastName but I cannot figure out how to do an or statement in the coding that will work. I have the following coding for that permits the Edit link to be seen when //???? = 5) //???? ???? ???? ???? { ?> //???? ???? ???? ???? Edit //???? ???? ???? ???? Thanks, do you have any suggestion? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060905/25d60bf8/attachment.html From FHASELTINE at aol.com Tue Sep 5 20:17:09 2006 From: FHASELTINE at aol.com (FHASELTINE@aol.com) Date: Tue Sep 5 20:17:21 2006 Subject: [FX.php List] I got the following coding to work to eliminate the apostrophe's Message-ID: <564.57359fe.322f89a5@aol.com> Last week I needed help to strip out the character "\" when I would try to Post a word like Women's. It came out Women\'s. The following to coding worked //$Education = $_POST['Education']; //$findrecord -> AddDBParam('Education',stripslashes($Education)); and this also worked //$findrecord -> AddDBParam('Education',stripslashes($_POST['Education']); Thanks Florence? Haseltine AIM: Fhaseltine fhaseltine@aol.com 240-476-7837 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060905/cb18d273/attachment.html From kfutter at sbc.melb.catholic.edu.au Tue Sep 5 20:47:32 2006 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Tue Sep 5 20:47:52 2006 Subject: [FX.php List] multiple entries for updating. In-Reply-To: Message-ID: On 6/9/06 12:04 PM, "FHASELTINE@aol.com" wrote: > I have a FM field called Projects. The field "Projects" in my Filemaker data > base permits entries from a value list in it and multiple entries are allowed. > > On my web page all the values in the "Project" field are visible. However, > how do I design an edit function for that field. > > I made a drop down list, but I could only change one entry and it wiped out > all the others. > > I would like people to be able to select several Projects and have them all > entered into the data base. > > Does anyone have any coding that would do this. > > Florence? Haseltine > AIM: Fhaseltine > fhaseltine@aol.com > 240-476-7837 > I'm not convinced I know what you're getting at here, but it sounds to me like you're populating a select element with values from your value list. By default, select elements are designed to allow you to select only one option. To enable multiple selections, use the 'multiple' attribute: HTML - Having never actually needed to do this with PHP/FM, I'll leave it to someone who has to explain that side of it. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ------------------------------------------ This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. From ggt667 at gmail.com Wed Sep 6 00:11:30 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 6 00:11:41 2006 Subject: [FX.php List] Finding several recids In-Reply-To: <44FD7A62.1020706@yacobi.com> References: <44FD7A62.1020706@yacobi.com> Message-ID: So you are attempting to find a set of recids, but where do you find that set? ggt On 9/5/06, Log-Out wrote: > Hello, I'm traying to find several records using the recids: > > $someFind->AddDBParam('-recid', '123'); > $someFind->AddDBParam('-recid', '256'); > $someFind->AddDBParam('-recid', '335'); > > But I'm only receive one record (with recid '335'). What's the correct > code to find these records? > > Thanks. > > Log-Out > Madrid-Spain > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From log-out at yacobi.com Wed Sep 6 02:16:36 2006 From: log-out at yacobi.com (Log-Out) Date: Wed Sep 6 02:15:35 2006 Subject: [FX.php List] Finding several recids In-Reply-To: References: <44FD7A62.1020706@yacobi.com> Message-ID: <44FE83E4.6070807@yacobi.com> This was only an example, in fact I do a previous search to find these recids. The example doesn't work (FM only find the las -recid), but I found the solution: I created a calculation field (named "recid") that shows the -recid of the record. Then I use this code: $someFind->AddDBParam('-lop', 'or'); $someFind->AddDBParam('recid', '123', 'eq'); $someFind->AddDBParam('recid', '256', 'eq'); $someFind->AddDBParam('recid', '335', 'eq'); and FM finds exactly these three records. Thanks. Gjermund Gusland Thorsen escribi?: > So you are attempting to find a set of recids, > but where do you find that set? > > ggt > > On 9/5/06, Log-Out wrote: >> Hello, I'm traying to find several records using the recids: >> >> $someFind->AddDBParam('-recid', '123'); >> $someFind->AddDBParam('-recid', '256'); >> $someFind->AddDBParam('-recid', '335'); >> >> But I'm only receive one record (with recid '335'). What's the correct >> code to find these records? >> >> Thanks. >> >> Log-Out >> Madrid-Spain From gary.redmond at ucd.ie Wed Sep 6 02:18:52 2006 From: gary.redmond at ucd.ie (Gary Redmond) Date: Wed Sep 6 02:19:07 2006 Subject: [FX.php List] carry data over In-Reply-To: <44FE83E4.6070807@yacobi.com> References: <44FD7A62.1020706@yacobi.com> <44FE83E4.6070807@yacobi.com> Message-ID: <44FE846C.1040106@ucd.ie> Ok I have a form that asks a user for their name etc, when they press submit it adds the details to a new record however, I would like to have another form on the next page that allows them to add more to the record. From alex at gandrpublishing.com Wed Sep 6 06:13:11 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Wed Sep 6 06:13:36 2006 Subject: [FX.php List] carry data over In-Reply-To: <44FE846C.1040106@ucd.ie> Message-ID: <000f01c6d1ad$d3d18970$1700000a@gandrpublishing.com> Gary, You'll need the recid of the page you want to edit - On your FileMaker layout, create a calculation field that is Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html Before you move to the second page, you'll first need to find the record you just created. Bring back the record ID, make it a session variable, and use it on the following pages as the parameter in your edit. Your edit will look something like this: $edit=new FX($serverIP,$webCompanionPort,'FMPro7'); $edit->SetDBData('FileName.fp7','LayoutName'); $edit->SetDBPassword('password','username'); $edit->AddDBParam('-recid', $recid); $edit->AddDBParam('AdditionalField1', $additionalfield1); $edit->AddDBParam('AdditionalField2', $additionalfield2); //(and so on) $editResult=$edit->FMEdit(); The Ultimate Guide to FileMaker and PHP is a really great resource - page 152 walks you through a wonderful example. http://www.fmwebschool.com/filemaker_php.php I hope this helps - - I didn't go step by step through everything, but the Ultimate Guide does - - I've used it a lot and I find it very helpful. If anyone has anything to add that I have forgotten, please do so. I'm still trying to get my feet wet with this stuff, but I like to try to help whenever I can... Alex P. Gates -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gary Redmond Sent: Wednesday, September 06, 2006 3:19 AM To: FX.php Discussion List Subject: [FX.php List] carry data over Ok I have a form that asks a user for their name etc, when they press submit it adds the details to a new record however, I would like to have another form on the next page that allows them to add more to the record. _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Wed Sep 6 08:11:01 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Wed Sep 6 08:11:22 2006 Subject: [FX.php List] carry data over In-Reply-To: <000f01c6d1ad$d3d18970$1700000a@gandrpublishing.com> References: <000f01c6d1ad$d3d18970$1700000a@gandrpublishing.com> Message-ID: <00A20977-3AAF-4FD3-8D13-9DE4414BD21D@preservationstudio.com> Actually, you don't need to re-find the record you just created. The variable you set to be the result of FMNEW() contains the typical FX data array for a single FMP record, including the record ID. You can reference this in the second form. Dale On Sep 6, 2006, at 7:13 AM, Alex Gates wrote: > Gary, > > You'll need the recid of the page you want to edit - > On your FileMaker layout, create a calculation field that is > Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html > > Before you move to the second page, you'll first need to find the > record > you just created. Bring back the record ID, make it a session > variable, > and use it on the following pages as the parameter in your edit. > > Your edit will look something like this: > > $edit=new FX($serverIP,$webCompanionPort,'FMPro7'); > $edit->SetDBData('FileName.fp7','LayoutName'); > $edit->SetDBPassword('password','username'); > $edit->AddDBParam('-recid', $recid); > $edit->AddDBParam('AdditionalField1', $additionalfield1); > $edit->AddDBParam('AdditionalField2', $additionalfield2); > //(and so on) > $editResult=$edit->FMEdit(); > > > The Ultimate Guide to FileMaker and PHP is a really great resource - > page 152 walks you through a wonderful example. > > http://www.fmwebschool.com/filemaker_php.php > > I hope this helps - - I didn't go step by step through everything, but > the Ultimate Guide does - - I've used it a lot and I find it very > helpful. > > If anyone has anything to add that I have forgotten, please do so. > I'm still trying to get my feet wet with this stuff, but I like to try > to help whenever I can... > > Alex P. Gates > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gary > Redmond > Sent: Wednesday, September 06, 2006 3:19 AM > To: FX.php Discussion List > Subject: [FX.php List] carry data over > > Ok I have a form that asks a user for their name etc, when they press > submit it adds the details to a new record however, I would like to > have > > another form on the next page that allows them to add more to the > record. > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 jonathan at eschwartz.com Wed Sep 6 09:24:15 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 6 09:26:13 2006 Subject: [FX.php List] carry data over In-Reply-To: <00A20977-3AAF-4FD3-8D13-9DE4414BD21D@preservationstudio.com> References: <000f01c6d1ad$d3d18970$1700000a@gandrpublishing.com> <00A20977-3AAF-4FD3-8D13-9DE4414BD21D@preservationstudio.com> Message-ID: Chiming in... That is the case when the second page containing the FMNew response also contained the second form...or at least performed an include for the second form. Otherwise, we'd be looking into setting variables in sessions to track the recid. Correct? I'm making this distinction because many of the examples and tutorials out there offer a simple form->form response scenario, and don't address the reality of a continuous process which can involve multiple forms in the process as well as multiple functions on the same page. Gary...this was a major stumbling block in my own learning curve of how to track the same record throughout a series of pages. Once I learned how to use "sessions", it was smooth sailing. I encourage you to get this under your belt as soon as you can. Jonathan >Actually, you don't need to re-find the record you just created. The >variable you set to be the result of FMNEW() contains the typical FX >data array for a single FMP record, including the record ID. You can >reference this in the second form. > >Dale > >On Sep 6, 2006, at 7:13 AM, Alex Gates wrote: > >>Gary, >> >>You'll need the recid of the page you want to edit - >>On your FileMaker layout, create a calculation field that is >>Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html >> >>Before you move to the second page, you'll first need to find the record >>you just created. Bring back the record ID, make it a session variable, >>and use it on the following pages as the parameter in your edit. >> >>Your edit will look something like this: >> >>$edit=new FX($serverIP,$webCompanionPort,'FMPro7'); >> $edit->SetDBData('FileName.fp7','LayoutName'); >> $edit->SetDBPassword('password','username'); >> $edit->AddDBParam('-recid', $recid); >> $edit->AddDBParam('AdditionalField1', $additionalfield1); >> $edit->AddDBParam('AdditionalField2', $additionalfield2); >>//(and so on) >> $editResult=$edit->FMEdit(); >> >> >>The Ultimate Guide to FileMaker and PHP is a really great resource - >>page 152 walks you through a wonderful example. >> >>http://www.fmwebschool.com/filemaker_php.php >> >>I hope this helps - - I didn't go step by step through everything, but >>the Ultimate Guide does - - I've used it a lot and I find it very >>helpful. >> >>If anyone has anything to add that I have forgotten, please do so. >>I'm still trying to get my feet wet with this stuff, but I like to try >>to help whenever I can... >> >>Alex P. Gates >>-----Original Message----- >>From: fx.php_list-bounces@mail.iviking.org >>[mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gary Redmond >>Sent: Wednesday, September 06, 2006 3:19 AM >>To: FX.php Discussion List >>Subject: [FX.php List] carry data over >> >>Ok I have a form that asks a user for their name etc, when they press >>submit it adds the details to a new record however, I would like to have >> >>another form on the next page that allows them to add more to the >>record. >> >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dbengston at preservationstudio.com Wed Sep 6 09:50:16 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Wed Sep 6 09:50:26 2006 Subject: [FX.php List] carry data over In-Reply-To: References: <000f01c6d1ad$d3d18970$1700000a@gandrpublishing.com> <00A20977-3AAF-4FD3-8D13-9DE4414BD21D@preservationstudio.com> Message-ID: Jonathan, I was addressing the fact that it's not necessary to hit your FMP table with a FMFind() immediately after performing FMNew() ... or FMEdit() for that matter ... to obtain the record data. In the scenario presented by the original poster, the second input form is presented to the user as the "landing" page from the first form submit, which would require no additional FMFind(). If it's possible for your users to move around non-linearly, then yes, absolutely, you would need to keep track of the record id or a primary key to retrieve the record again. As for retrieving the record id, I prefer to just parse it out of the FX array since it's already there, rather than create a redundant calc field that exposes it in the field data. Whenever possible, I let PHP do the work instead of FMP. It's faster that way. Dale On Sep 6, 2006, at 10:24 AM, Jonathan Schwartz wrote: > Chiming in... > > That is the case when the second page containing the FMNew response > also contained the second form...or at least performed an include > for the second form. Otherwise, we'd be looking into setting > variables in sessions to track the recid. Correct? > > I'm making this distinction because many of the examples and > tutorials out there offer a simple form->form response scenario, > and don't address the reality of a continuous process which can > involve multiple forms in the process as well as multiple functions > on the same page. > > Gary...this was a major stumbling block in my own learning curve of > how to track the same record throughout a series of pages. Once I > learned how to use "sessions", it was smooth sailing. I encourage > you to get this under your belt as soon as you can. > > Jonathan > >> Actually, you don't need to re-find the record you just created. >> The variable you set to be the result of FMNEW() contains the >> typical FX data array for a single FMP record, including the >> record ID. You can reference this in the second form. >> >> Dale >> >> On Sep 6, 2006, at 7:13 AM, Alex Gates wrote: >> >>> Gary, >>> >>> You'll need the recid of the page you want to edit - >>> On your FileMaker layout, create a calculation field that is >>> Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html >>> >>> Before you move to the second page, you'll first need to find the >>> record >>> you just created. Bring back the record ID, make it a session >>> variable, >>> and use it on the following pages as the parameter in your edit. >>> >>> Your edit will look something like this: >>> >>> $edit=new FX($serverIP,$webCompanionPort,'FMPro7'); >>> $edit->SetDBData('FileName.fp7','LayoutName'); >>> $edit->SetDBPassword('password','username'); >>> $edit->AddDBParam('-recid', $recid); >>> $edit->AddDBParam('AdditionalField1', $additionalfield1); >>> $edit->AddDBParam('AdditionalField2', $additionalfield2); >>> //(and so on) >>> $editResult=$edit->FMEdit(); >>> >>> >>> The Ultimate Guide to FileMaker and PHP is a really great resource - >>> page 152 walks you through a wonderful example. >>> >>> http://www.fmwebschool.com/filemaker_php.php >>> >>> I hope this helps - - I didn't go step by step through >>> everything, but >>> the Ultimate Guide does - - I've used it a lot and I find it very >>> helpful. >>> >>> If anyone has anything to add that I have forgotten, please do so. >>> I'm still trying to get my feet wet with this stuff, but I like >>> to try >>> to help whenever I can... >>> >>> Alex P. Gates >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gary >>> Redmond >>> Sent: Wednesday, September 06, 2006 3:19 AM >>> To: FX.php Discussion List >>> Subject: [FX.php List] carry data over >>> >>> Ok I have a form that asks a user for their name etc, when they >>> press >>> submit it adds the details to a new record however, I would like >>> to have >>> >>> another form on the next page that allows them to add more to the >>> record. >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From alex at gandrpublishing.com Wed Sep 6 09:55:10 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Wed Sep 6 09:55:31 2006 Subject: [FX.php List] carry data over In-Reply-To: Message-ID: <001a01c6d1cc$d66143f0$1700000a@gandrpublishing.com> Dale and Jonathan, I never realized it was possible to parse the recid out of the FX array. Jonathan--> you always claim to be the "resident beginner," but believe me, you are strides ahead of me. Would you mind sharing how to parse the recid out of the FX array? If there is no field on the layout, how do you get it? Thanks! Alex P. Gates -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Wednesday, September 06, 2006 10:50 AM To: FX.php Discussion List Subject: Re: [FX.php List] carry data over Jonathan, I was addressing the fact that it's not necessary to hit your FMP table with a FMFind() immediately after performing FMNew() ... or FMEdit() for that matter ... to obtain the record data. In the scenario presented by the original poster, the second input form is presented to the user as the "landing" page from the first form submit, which would require no additional FMFind(). If it's possible for your users to move around non-linearly, then yes, absolutely, you would need to keep track of the record id or a primary key to retrieve the record again. As for retrieving the record id, I prefer to just parse it out of the FX array since it's already there, rather than create a redundant calc field that exposes it in the field data. Whenever possible, I let PHP do the work instead of FMP. It's faster that way. Dale On Sep 6, 2006, at 10:24 AM, Jonathan Schwartz wrote: > Chiming in... > > That is the case when the second page containing the FMNew response > also contained the second form...or at least performed an include > for the second form. Otherwise, we'd be looking into setting > variables in sessions to track the recid. Correct? > > I'm making this distinction because many of the examples and > tutorials out there offer a simple form->form response scenario, > and don't address the reality of a continuous process which can > involve multiple forms in the process as well as multiple functions > on the same page. > > Gary...this was a major stumbling block in my own learning curve of > how to track the same record throughout a series of pages. Once I > learned how to use "sessions", it was smooth sailing. I encourage > you to get this under your belt as soon as you can. > > Jonathan > >> Actually, you don't need to re-find the record you just created. >> The variable you set to be the result of FMNEW() contains the >> typical FX data array for a single FMP record, including the >> record ID. You can reference this in the second form. >> >> Dale >> >> On Sep 6, 2006, at 7:13 AM, Alex Gates wrote: >> >>> Gary, >>> >>> You'll need the recid of the page you want to edit - >>> On your FileMaker layout, create a calculation field that is >>> Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html >>> >>> Before you move to the second page, you'll first need to find the >>> record >>> you just created. Bring back the record ID, make it a session >>> variable, >>> and use it on the following pages as the parameter in your edit. >>> >>> Your edit will look something like this: >>> >>> $edit=new FX($serverIP,$webCompanionPort,'FMPro7'); >>> $edit->SetDBData('FileName.fp7','LayoutName'); >>> $edit->SetDBPassword('password','username'); >>> $edit->AddDBParam('-recid', $recid); >>> $edit->AddDBParam('AdditionalField1', $additionalfield1); >>> $edit->AddDBParam('AdditionalField2', $additionalfield2); >>> //(and so on) >>> $editResult=$edit->FMEdit(); >>> >>> >>> The Ultimate Guide to FileMaker and PHP is a really great resource - >>> page 152 walks you through a wonderful example. >>> >>> http://www.fmwebschool.com/filemaker_php.php >>> >>> I hope this helps - - I didn't go step by step through >>> everything, but >>> the Ultimate Guide does - - I've used it a lot and I find it very >>> helpful. >>> >>> If anyone has anything to add that I have forgotten, please do so. >>> I'm still trying to get my feet wet with this stuff, but I like >>> to try >>> to help whenever I can... >>> >>> Alex P. Gates >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gary >>> Redmond >>> Sent: Wednesday, September 06, 2006 3:19 AM >>> To: FX.php Discussion List >>> Subject: [FX.php List] carry data over >>> >>> Ok I have a form that asks a user for their name etc, when they >>> press >>> submit it adds the details to a new record however, I would like >>> to have >>> >>> another form on the next page that allows them to add more to the >>> record. >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 jonathan at eschwartz.com Wed Sep 6 10:34:09 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 6 10:36:02 2006 Subject: [FX.php List] carry data over In-Reply-To: References: <000f01c6d1ad$d3d18970$1700000a@gandrpublishing.com> <00A20977-3AAF-4FD3-8D13-9DE4414BD21D@preservationstudio.com> Message-ID: Dale, Thanks for the detail. I, too, have been putting the calc field for recid on the layout and using it in subsequent searches after the first page. I thought that I was "cheating" a little, because it's so easy to just continue using the same field after FM returns the value....versus using some other key value. ;-) Thanks for the validation. >Jonathan, > >I was addressing the fact that it's not necessary to hit your FMP >table with a FMFind() immediately after performing FMNew() ... or >FMEdit() for that matter ... to obtain the record data. > >In the scenario presented by the original poster, the second input >form is presented to the user as the "landing" page from the first >form submit, which would require no additional FMFind(). If it's >possible for your users to move around non-linearly, then yes, >absolutely, you would need to keep track of the record id or a >primary key to retrieve the record again. > >As for retrieving the record id, I prefer to just parse it out of >the FX array since it's already there, rather than create a >redundant calc field that exposes it in the field data. Whenever >possible, I let PHP do the work instead of FMP. It's faster that way. > >Dale > > > >On Sep 6, 2006, at 10:24 AM, Jonathan Schwartz wrote: > >>Chiming in... >> >>That is the case when the second page containing the FMNew response >>also contained the second form...or at least performed an include >>for the second form. Otherwise, we'd be looking into setting >>variables in sessions to track the recid. Correct? >> >>I'm making this distinction because many of the examples and >>tutorials out there offer a simple form->form response scenario, >>and don't address the reality of a continuous process which can >>involve multiple forms in the process as well as multiple functions >>on the same page. >> >>Gary...this was a major stumbling block in my own learning curve of >>how to track the same record throughout a series of pages. Once I >>learned how to use "sessions", it was smooth sailing. I encourage >>you to get this under your belt as soon as you can. >> >>Jonathan >> >>>Actually, you don't need to re-find the record you just created. >>>The variable you set to be the result of FMNEW() contains the >>>typical FX data array for a single FMP record, including the >>>record ID. You can reference this in the second form. >>> >>>Dale >>> >>>On Sep 6, 2006, at 7:13 AM, Alex Gates wrote: >>> >>>>Gary, >>>> >>>>You'll need the recid of the page you want to edit - >>>>On your FileMaker layout, create a calculation field that is >>>>Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html >>>> >>>>Before you move to the second page, you'll first need to find the record >>>>you just created. Bring back the record ID, make it a session variable, >>>>and use it on the following pages as the parameter in your edit. >>>> >>>>Your edit will look something like this: >>>> >>>>$edit=new FX($serverIP,$webCompanionPort,'FMPro7'); >>>> $edit->SetDBData('FileName.fp7','LayoutName'); >>>> $edit->SetDBPassword('password','username'); >>>> $edit->AddDBParam('-recid', $recid); >>>> $edit->AddDBParam('AdditionalField1', $additionalfield1); >>>> $edit->AddDBParam('AdditionalField2', $additionalfield2); >>>>//(and so on) >>>> $editResult=$edit->FMEdit(); >>>> >>>> >>>>The Ultimate Guide to FileMaker and PHP is a really great resource - >>>>page 152 walks you through a wonderful example. >>>> >>>>http://www.fmwebschool.com/filemaker_php.php >>>> >>>>I hope this helps - - I didn't go step by step through everything, but >>>>the Ultimate Guide does - - I've used it a lot and I find it very >>>>helpful. >>>> >>>>If anyone has anything to add that I have forgotten, please do so. >>>>I'm still trying to get my feet wet with this stuff, but I like to try >>>>to help whenever I can... >>>> >>>>Alex P. Gates >>>>-----Original Message----- >>>>From: fx.php_list-bounces@mail.iviking.org >>>>[mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gary Redmond >>>>Sent: Wednesday, September 06, 2006 3:19 AM >>>>To: FX.php Discussion List >>>>Subject: [FX.php List] carry data over >>>> >>>>Ok I have a form that asks a user for their name etc, when they press >>>>submit it adds the details to a new record however, I would like to have >>>> >>>>another form on the next page that allows them to add more to the >>>>record. >>>> >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Wed Sep 6 11:03:39 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 6 11:06:01 2006 Subject: [FX.php List] carry data over In-Reply-To: <001a01c6d1cc$d66143f0$1700000a@gandrpublishing.com> References: <001a01c6d1cc$d66143f0$1700000a@gandrpublishing.com> Message-ID: Alex, Ahem...I am now the "Former Beginner", and soon graduating to "Over Confident Novice". ;-) A couple things to know: (Expert users...feel free to correct me as I attempt to teach) 1) There is a *wealth* of data that goes to and comes back from FMP/fx.php every time you talk with the server. It is a very worthwhile suggestion to place a handful of standard php commands on your pages to see what goes on behind the scenes. With these arrays visible, the whole conversation between fx.php and FMP and your scripts starts to make a whole lot more sense. Two examples: This one shows all the data that is returned from FMP/fx.php after a query: //********** SEARCH RESULT*************** echo "
";
print_r($searchResult); //replace the "$searchResult" with the name 
of your own variable.
echo "
"; ///********** SEARCH RESULT*************** This one shows the exact query that fx.php delivers to FMP Server Advanced: //************DEBUG*********** define("DEBUG", true); //************DEBUG*********** 2) The recid is contained within the arrays that come back from FMP. You need to insert a couple lines of code to extract it. The code itself depends on whether you have one or mulitple records coming back, and whether you want to include the recid in a link on a list of records, for instance. Here is an example of the Explode command that I use to extract the recid when a list of records is returned: foreach($searchResult['data'] as $key => $value) { $recordDetails=explode('.',$key); $currentRecord=$recordDetails[0]; } Here's how it breaks down: The array that comes back from fx.php has the recid looking like this: 12345.123. The first part of the string is the actual internal recid of the record in FMP. The second part of the string is the number of times the record has been edited. You want to separate the recid. The explode command does that, much like the Left(field(position(field, ".", "1', "1') ) would work in native FMP. The result is grabbing the recid for that record. You can also view the recid in native FMP by using the Get(RecordNumber) calc field. Put it on your layout and then you can see what is going on. Does that help? It took me a *long time* to put these pieces together. If folks see a value of a "former beginner" explaining things in this fashion, please let me know. I can do more. Cheers Jonathan See the [0] at the end of $recordDetails? This means: grab the first value you find in the array called >Dale and Jonathan, > >I never realized it was possible to parse the recid out of the FX array. > >Jonathan--> you always claim to be the "resident beginner," but believe >me, you are strides ahead of me. > >Would you mind sharing how to parse the recid out of the FX array? If >there is no field on the layout, how do you get it? > >Thanks! > >Alex P. Gates > >-----Original Message----- >From: fx.php_list-bounces@mail.iviking.org >[mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston >Sent: Wednesday, September 06, 2006 10:50 AM >To: FX.php Discussion List >Subject: Re: [FX.php List] carry data over > >Jonathan, > >I was addressing the fact that it's not necessary to hit your FMP >table with a FMFind() immediately after performing FMNew() ... or >FMEdit() for that matter ... to obtain the record data. > >In the scenario presented by the original poster, the second input >form is presented to the user as the "landing" page from the first >form submit, which would require no additional FMFind(). If it's >possible for your users to move around non-linearly, then yes, >absolutely, you would need to keep track of the record id or a >primary key to retrieve the record again. > >As for retrieving the record id, I prefer to just parse it out of the >FX array since it's already there, rather than create a redundant >calc field that exposes it in the field data. Whenever possible, I >let PHP do the work instead of FMP. It's faster that way. > >Dale > > > >On Sep 6, 2006, at 10:24 AM, Jonathan Schwartz wrote: > >> Chiming in... >> >> That is the case when the second page containing the FMNew response >> also contained the second form...or at least performed an include >> for the second form. Otherwise, we'd be looking into setting >> variables in sessions to track the recid. Correct? >> >> I'm making this distinction because many of the examples and >> tutorials out there offer a simple form->form response scenario, >> and don't address the reality of a continuous process which can >> involve multiple forms in the process as well as multiple functions >> on the same page. >> >> Gary...this was a major stumbling block in my own learning curve of >> how to track the same record throughout a series of pages. Once I >> learned how to use "sessions", it was smooth sailing. I encourage >> you to get this under your belt as soon as you can. >> >> Jonathan >> >>> Actually, you don't need to re-find the record you just created. >>> The variable you set to be the result of FMNEW() contains the >>> typical FX data array for a single FMP record, including the >>> record ID. You can reference this in the second form. >>> >>> Dale >>> >>> On Sep 6, 2006, at 7:13 AM, Alex Gates wrote: >>> >>>> Gary, >>>> >>>> You'll need the recid of the page you want to edit - >>>> On your FileMaker layout, create a calculation field that is >>>> Get(RecordID) http://www.filemaker.com/help/FunctionsRef-251.html >>>> >>>> Before you move to the second page, you'll first need to find the >>>> record >>>> you just created. Bring back the record ID, make it a session >>>> variable, >>>> and use it on the following pages as the parameter in your edit. >>>> >>>> Your edit will look something like this: >>>> >>>> $edit=new FX($serverIP,$webCompanionPort,'FMPro7'); >>>> $edit->SetDBData('FileName.fp7','LayoutName'); >>>> $edit->SetDBPassword('password','username'); >>>> $edit->AddDBParam('-recid', $recid); >>>> $edit->AddDBParam('AdditionalField1', $additionalfield1); >>>> $edit->AddDBParam('AdditionalField2', $additionalfield2); >>>> //(and so on) >>>> $editResult=$edit->FMEdit(); >>>> >>>> >>>> The Ultimate Guide to FileMaker and PHP is a really great resource - >>>> page 152 walks you through a wonderful example. >>>> >>>> http://www.fmwebschool.com/filemaker_php.php >>>> >>>> I hope this helps - - I didn't go step by step through >>>> everything, but >>>> the Ultimate Guide does - - I've used it a lot and I find it very >>>> helpful. >>>> >>>> If anyone has anything to add that I have forgotten, please do so. >>>> I'm still trying to get my feet wet with this stuff, but I like >>>> to try >>>> to help whenever I can... >>>> >>>> Alex P. Gates >>>> -----Original Message----- >>>> From: fx.php_list-bounces@mail.iviking.org >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gary >>>> Redmond >>>> Sent: Wednesday, September 06, 2006 3:19 AM >>>> To: FX.php Discussion List >>>> Subject: [FX.php List] carry data over >>>> >>>> Ok I have a form that asks a user for their name etc, when they >>>> press >>>> submit it adds the details to a new record however, I would like >>>> to have >>>> >>>> another form on the next page that allows them to add more to the >>>> record. >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> >> Jonathan Schwartz >> FileMaker 8 Certified Developer >> Associate Member, FileMaker Solutions Alliance >> Schwartz & Company >> jonathan@eschwartz.com >> http://www.eschwartz.com >> http://www.exit445.com >> 415-381-1852 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list > > > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060906/d4b37cbe/attachment-0001.html From mlindal at pfc.forestry.ca Wed Sep 6 11:24:05 2006 From: mlindal at pfc.forestry.ca (Lindal, Mark) Date: Wed Sep 6 11:24:20 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 7 In-Reply-To: <20060906170604.0744735A02F@www.iviking.org> Message-ID: Jonathan et al, A correction to your finding recID from the data returned in FMNew() foreach($searchResult['data'] as $key => $value); $recordDetails=explode('.',$key); $currentRecord=$recordDetails[0]; Take the { } out and end your foreach with a ';' Otherwise you are telling it to loop through all the data. In this case only one record is found - so it will only loop once and there are cases when you want the recid for a series of record. But in the case of only one record - this is better coding. ------------------------------ Mark Lindal Publications Technician / Technicien, publications Canadian Forest Service / Service canadien des for?ts Natural Resources Canada / Ressources naturelles Canada Government of Canada / Gouvernement du Canada 506 West Burnside Road / 506, chemin Burnside ouest Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 mlindal@pfc.forestry.ca 250-363-0603 From jonathan at eschwartz.com Wed Sep 6 11:40:13 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 6 11:40:58 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 7 In-Reply-To: References: Message-ID: Mark, Thanks for the clarification. I started talking about single record return and ended up describing multiple record return. Jonathan >Jonathan et al, > >A correction to your finding recID from the data returned in FMNew() > > foreach($searchResult['data'] as $key => $value); > $recordDetails=explode('.',$key); > $currentRecord=$recordDetails[0]; > >Take the { } out and end your foreach with a ';' > >Otherwise you are telling it to loop through all the data. >In this case only one record is found - so it will only loop once and there >are cases when you want the recid for a series of record. > >But in the case of only one record - this is better coding. > > >------------------------------ >Mark Lindal >Publications Technician / Technicien, publications >Canadian Forest Service / Service canadien des for?ts >Natural Resources Canada / Ressources naturelles Canada >Government of Canada / Gouvernement du Canada >506 West Burnside Road / 506, chemin Burnside ouest >Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 > >mlindal@pfc.forestry.ca >250-363-0603 > > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dan.cynosure at dbmscan.com Wed Sep 6 13:51:17 2006 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 6 13:51:39 2006 Subject: [FX.php List] recids and each() vs. foreach() coding style In-Reply-To: References: Message-ID: <232255BD-A310-43CC-871C-95ADCE5670FC@dbmscan.com> Hi Mark, I'd suggest that better coding style would be to use the each() function rather than the confusing foreach() with a semicolon. each() returns the key and value of the current array element which in the case of a new array is the first element. using each() it is clear that you only want one record and by default it is the first record. if you want to be really strict then consider the reset() function which will force the internal array pointer to the first array element before returning it. this is useful in case you aren't sure if one of your previous array manipulations left the internal array point "awry". by using foreach() with semicolon it suggests that you might be iterating over the array. and in fact you *are* iterating the array. because of that, foreach() with semicolon style returns the *last* element of the array rather than the first element. in fact, before the recent post i considered foreach() with a semicolon to be a syntax error since i'd never seen foreach() used to accomplish what each() ( and reset() ) do very clearly. here is some code that will make it easy to see what i mean: ----------------------------------------------------------- array('fieldname' => array('data1')), '2.2' => array('fieldname' => array('data2')), '3.3' => array('fieldname' => array('data3')) ); // this is clear coding style // get the first array item list($key,$value) = each($searchResult['data']); list($recid,$mod)=explode('.',$key); // shows that each gets first array item echo '
';
print_r($recid);
print_r($mod);
echo '
'; //-------------------------------- echo '
'; // this is unusual coding style // use semicolon foreach() foreach($searchResult['data'] as $key => $value); list($recid,$mod)=explode('.',$key); // shows that foreach gets last array item echo '
';
print_r($recid);
print_r($mod);
echo '
'; //-------------------------------- echo '
'; // here's a weird thing I found at php.net // comments on the foreach() function // and semicolon syntax // you can use it like array_keys() // and array_values() at the same time! // use unusual semicolon style foreach(), // but this time use array notation to get // keys into one array and values into another foreach($searchResult['data'] as $keys[] => $values[]); // shows that foreach gets all array items // into two arrays in one line!! // did i mention that i love oneliners... echo '
';
print_r($keys);
print_r($values);
echo '
'; ?> --------------------------------------------------------- my 2, dan On Sep 6, 2006, at 1:24 PM, Lindal, Mark wrote: > Jonathan et al, > > A correction to your finding recID from the data returned in FMNew() > > foreach($searchResult['data'] as $key => $value); > $recordDetails=explode('.',$key); > $currentRecord=$recordDetails[0]; > > Take the { } out and end your foreach with a ';' > > Otherwise you are telling it to loop through all the data. > In this case only one record is found - so it will only loop once > and there > are cases when you want the recid for a series of record. > > But in the case of only one record - this is better coding. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060906/f733208b/attachment.html From dbengston at preservationstudio.com Wed Sep 6 15:21:32 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Wed Sep 6 15:21:50 2006 Subject: [FX.php List] recids and each() vs. foreach() coding style In-Reply-To: <232255BD-A310-43CC-871C-95ADCE5670FC@dbmscan.com> References: <232255BD-A310-43CC-871C-95ADCE5670FC@dbmscan.com> Message-ID: <6CDA76C9-3786-4898-A231-69671D0526C2@preservationstudio.com> You can also use key() in the same way if you're just interested in the key, not the value.... $key = key($searchResult['data']); list($recid,$mod)=explode('.',$key); Dale On Sep 6, 2006, at 2:51 PM, DC wrote: > Hi Mark, > > I'd suggest that better coding style would be to use the each() > function rather than the confusing foreach() with a semicolon. > > each() returns the key and value of the current array element which > in the case of a new array is the first element. > > using each() it is clear that you only want one record and by > default it is the first record. > > if you want to be really strict then consider the reset() function > which will force the internal array pointer to the first array > element before returning it. this is useful in case you aren't sure > if one of your previous array manipulations left the internal array > point "awry". > > by using foreach() with semicolon it suggests that you might be > iterating over the array. and in fact you *are* iterating the array. > > because of that, foreach() with semicolon style returns the *last* > element of the array rather than the first element. > > in fact, before the recent post i considered foreach() with a > semicolon to be a syntax error since i'd never seen foreach() used > to accomplish what each() ( and reset() ) do very clearly. > > here is some code that will make it easy to see what i mean: > ----------------------------------------------------------- > > // mock up array like FX.php data > $searchResult['data'] = array( > '1.1' => array('fieldname' => array('data1')), > '2.2' => array('fieldname' => array('data2')), > '3.3' => array('fieldname' => array('data3')) ); > > // this is clear coding style > // get the first array item > list($key,$value) = each($searchResult['data']); > list($recid,$mod)=explode('.',$key); > > // shows that each gets first array item > echo '
';
> print_r($recid);
> print_r($mod);
> echo '
'; > > > //-------------------------------- > echo '
'; > > // this is unusual coding style > // use semicolon foreach() > foreach($searchResult['data'] as $key => $value); > list($recid,$mod)=explode('.',$key); > > // shows that foreach gets last array item > echo '
';
> print_r($recid);
> print_r($mod);
> echo '
'; > > //-------------------------------- > echo '
'; > > // here's a weird thing I found at php.net > // comments on the foreach() function > // and semicolon syntax > // you can use it like array_keys() > // and array_values() at the same time! > // use unusual semicolon style foreach(), > // but this time use array notation to get > // keys into one array and values into another > foreach($searchResult['data'] as $keys[] => $values[]); > > // shows that foreach gets all array items > // into two arrays in one line!! > // did i mention that i love oneliners... > echo '
';
> print_r($keys);
> print_r($values);
> echo '
'; > > ?> > > --------------------------------------------------------- > > my 2, > dan > > On Sep 6, 2006, at 1:24 PM, Lindal, Mark wrote: > >> Jonathan et al, >> >> A correction to your finding recID from the data returned in FMNew() >> >> foreach($searchResult['data'] as $key => $value); >> $recordDetails=explode('.',$key); >> $currentRecord=$recordDetails[0]; >> >> Take the { } out and end your foreach with a ';' >> >> Otherwise you are telling it to loop through all the data. >> In this case only one record is found - so it will only loop once >> and there >> are cases when you want the recid for a series of record. >> >> But in the case of only one record - this is better coding. > > _______________________________________________ > 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/20060906/57090b43/attachment-0001.html From erik at cayre.dk Wed Sep 6 17:12:35 2006 From: erik at cayre.dk (=?ISO-8859-1?Q?Erik_Andreas_Cayr=E9?=) Date: Wed Sep 6 17:13:01 2006 Subject: [FX.php List] carry data over In-Reply-To: References: <001a01c6d1cc$d66143f0$1700000a@gandrpublishing.com> Message-ID: <0C22157A-05A5-4ABD-B6A8-44D835FE9ACF@cayre.dk> Den 06/09/2006 kl. 19.03 skrev Jonathan Schwartz: > f folks see a value of a "former beginner" explaining things in > this fashion, please let me know. I can do more. I've been thinking for a while about having an FAQ on this list. Some time in ancient history, when I still used news (nntp, anyone remember?), I noticed a good practice on many newsgroups. Some seasoned regular on these newsgroups would maintain and regularly repost an FAQ. The idea is quite simple: Collecting the most valuable bits of 'gold' and reposting these to the list helps all users. It solves the 'where did I store that great tip I read some months ago?' and the 'gosh! I just arrived and all this talk is way over my head. ...I feel ...stupid?' Chris, and others, what do you think? --- Erik Andreas Cayr? Spangsbjerg M?llevej 169 DK-6705 Esbjerg ? Home Tel: +45 75150512 Mobile: +45 40161183 ?If you can't explain it simply, you don't understand it well enough.? -- Albert Einstein ?If you don't have time to do it right, when will you have time to do it over?? -- John Wooden, basketball coach -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1856 bytes Desc: not available Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060907/ccf1a28c/smime.bin From ggt667 at gmail.com Thu Sep 7 00:51:35 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 7 00:51:50 2006 Subject: [FX.php List] Finding several recids In-Reply-To: <44FE83E4.6070807@yacobi.com> References: <44FD7A62.1020706@yacobi.com> <44FE83E4.6070807@yacobi.com> Message-ID: Through XML those 3 are 3 different queries. What is the purpose of this task? ggt667 On 9/6/06, Log-Out wrote: > This was only an example, in fact I do a previous search to find these > recids. > > The example doesn't work (FM only find the las -recid), but I found the > solution: I created a calculation field (named "recid") that shows the > -recid of the record. Then I use this code: > > $someFind->AddDBParam('-lop', 'or'); > $someFind->AddDBParam('recid', '123', 'eq'); > $someFind->AddDBParam('recid', '256', 'eq'); > $someFind->AddDBParam('recid', '335', 'eq'); > > and FM finds exactly these three records. > > Thanks. > > Gjermund Gusland Thorsen escribi?: > > So you are attempting to find a set of recids, > > but where do you find that set? > > > > ggt > > > > On 9/5/06, Log-Out wrote: > >> Hello, I'm traying to find several records using the recids: > >> > >> $someFind->AddDBParam('-recid', '123'); > >> $someFind->AddDBParam('-recid', '256'); > >> $someFind->AddDBParam('-recid', '335'); > >> > >> But I'm only receive one record (with recid '335'). What's the correct > >> code to find these records? > >> > >> Thanks. > >> > >> Log-Out > >> Madrid-Spain > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From log-out at yacobi.com Thu Sep 7 05:23:16 2006 From: log-out at yacobi.com (Log-Out) Date: Thu Sep 7 05:22:16 2006 Subject: [FX.php List] Finding several recids In-Reply-To: References: <44FD7A62.1020706@yacobi.com> <44FE83E4.6070807@yacobi.com> Message-ID: <45000124.3000109@yacobi.com> The user uses a form to find records with several criteria. Each found record has a checkbox and the user can select some of them for exporting. I use the -recid to know which records the user want to export. Log-Out Gjermund Gusland Thorsen escribi?: > Through XML those 3 are 3 different queries. > > What is the purpose of this task? > > ggt667 > > On 9/6/06, Log-Out wrote: >> This was only an example, in fact I do a previous search to find these >> recids. >> >> The example doesn't work (FM only find the las -recid), but I found the >> solution: I created a calculation field (named "recid") that shows the >> -recid of the record. Then I use this code: >> >> $someFind->AddDBParam('-lop', 'or'); >> $someFind->AddDBParam('recid', '123', 'eq'); >> $someFind->AddDBParam('recid', '256', 'eq'); >> $someFind->AddDBParam('recid', '335', 'eq'); >> >> and FM finds exactly these three records. >> >> Thanks. >> >> Gjermund Gusland Thorsen escribi?: >> > So you are attempting to find a set of recids, >> > but where do you find that set? >> > >> > ggt >> > >> > On 9/5/06, Log-Out wrote: >> >> Hello, I'm traying to find several records using the recids: >> >> >> >> $someFind->AddDBParam('-recid', '123'); >> >> $someFind->AddDBParam('-recid', '256'); >> >> $someFind->AddDBParam('-recid', '335'); >> >> >> >> But I'm only receive one record (with recid '335'). What's the >> correct >> >> code to find these records? >> >> >> >> Thanks. >> >> >> >> Log-Out >> >> Madrid-Spain >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 derrick at fogles.net Thu Sep 7 08:02:10 2006 From: derrick at fogles.net (Derrick Fogle) Date: Thu Sep 7 08:04:28 2006 Subject: [FX.php List] Making FMP wait for PHP actions Message-ID: <54393724-ABDD-4C4F-BA6F-CAD71F75D1CB@fogles.net> I just posted a note on the FMWebSchool board about making an FMP script wait for a PHP script to finish. http://fmwebschool.com/frm/index.php?topic=502.0 Derrick Fogle derrick@fogles.net From jonathan at eschwartz.com Thu Sep 7 08:17:32 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Thu Sep 7 08:19:11 2006 Subject: [FX.php List] Output In-Reply-To: <54393724-ABDD-4C4F-BA6F-CAD71F75D1CB@fogles.net> References: <54393724-ABDD-4C4F-BA6F-CAD71F75D1CB@fogles.net> Message-ID: Is anyone publishing data out of their fx.php solutions to allow users to receive either excel or pdf format? Now that I've been successful in the data entry , edit and review phases, I'm looking at how users can receive native FMP reports and data exports. Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dness at bondedbuilders.com Thu Sep 7 09:01:36 2006 From: dness at bondedbuilders.com (David Ness) Date: Thu Sep 7 08:58:29 2006 Subject: [FX.php List] Output In-Reply-To: Message-ID: <5CF517C96A6D704984FB81D6D61383A20103F9E1@exchange.bondedbuilders.com> Yes, I've had excellent results outputting PDFs. See this link for a free PHP tool: http://fpdf.org/ -- David Ness, Database Systems Programmer Bonded Builders Warranty Group 1500 Kings Highway Port Charlotte, FL 33980 800.749.0381 x3123 (National Toll Free) 941.255.3274 x3123 (Local) -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan Schwartz Sent: Thursday, September 07, 2006 10:18 AM To: FX.php Discussion List Subject: [FX.php List] Output Is anyone publishing data out of their fx.php solutions to allow users to receive either excel or pdf format? Now that I've been successful in the data entry , edit and review phases, I'm looking at how users can receive native FMP reports and data exports. Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From dness at bondedbuilders.com Thu Sep 7 09:13:20 2006 From: dness at bondedbuilders.com (David Ness) Date: Thu Sep 7 09:10:10 2006 Subject: [FX.php List] Output In-Reply-To: <5CF517C96A6D704984FB81D6D61383A20103F9E1@exchange.bondedbuilders.com> Message-ID: <5CF517C96A6D704984FB81D6D61383A20103F9E2@exchange.bondedbuilders.com> Oh, and be certain to look over the 'plug-in functions' for fpdf listed under the 'Scripts' link on their homepage. I create PDF's from FileMaker data using PHP & the fpdf class that include Invoices, Statements, Contracts, etc, using full justification, graphics, and even bar codes. Now if someone could just develop a WYSIWYG tool for fphp.... One suggestion: Because the tool is very x-y coordinate centric, build your pages in sections or blocks which reference variables for the starting xy coordinates. Then, when you need to start moving your blocks around, you can change just the reference variables, which will move all the elements of that block around without having to change each element separately. -- David Ness, Database Systems Programmer Bonded Builders Warranty Group 1500 Kings Highway Port Charlotte, FL 33980 800.749.0381 x3123 (National Toll Free) 941.255.3274 x3123 (Local) -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of David Ness Sent: Thursday, September 07, 2006 11:02 AM To: FX.php Discussion List Subject: RE: [FX.php List] Output Yes, I've had excellent results outputting PDFs. See this link for a free PHP tool: http://fpdf.org/ -- David Ness, Database Systems Programmer Bonded Builders Warranty Group 1500 Kings Highway Port Charlotte, FL 33980 800.749.0381 x3123 (National Toll Free) 941.255.3274 x3123 (Local) -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan Schwartz Sent: Thursday, September 07, 2006 10:18 AM To: FX.php Discussion List Subject: [FX.php List] Output Is anyone publishing data out of their fx.php solutions to allow users to receive either excel or pdf format? Now that I've been successful in the data entry , edit and review phases, I'm looking at how users can receive native FMP reports and data exports. Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Thu Sep 7 09:38:45 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Sep 7 09:39:12 2006 Subject: [FX.php List] Output In-Reply-To: <5CF517C96A6D704984FB81D6D61383A20103F9E2@exchange.bondedbuilders.com> References: <5CF517C96A6D704984FB81D6D61383A20103F9E2@exchange.bondedbuilders.com> Message-ID: A large part of my consulting is building print-shop workflows that produce complex, for-publication PDFs using standard templates and variable data entered via the web. I'm using FPDF (http:// www.fpdf.org/). I'm using the PEAR class Spreadsheet_Excel_Writer (http:// pear.php.net/package/Spreadsheet_Excel_Writer) to generate Excel files from the web. Also a great tool. Both are open-source. Hooray! Dale On Sep 7, 2006, at 10:13 AM, David Ness wrote: > Oh, and be certain to look over the 'plug-in functions' for fpdf > listed > under the 'Scripts' link on their homepage. > > I create PDF's from FileMaker data using PHP & the fpdf class that > include Invoices, Statements, Contracts, etc, using full > justification, > graphics, and even bar codes. > > Now if someone could just develop a WYSIWYG tool for fphp.... > > One suggestion: Because the tool is very x-y coordinate centric, build > your pages in sections or blocks which reference variables for the > starting xy coordinates. Then, when you need to start moving your > blocks > around, you can change just the reference variables, which will > move all > the elements of that block around without having to change each > element > separately. > > > -- > David Ness, > Database Systems Programmer > > Bonded Builders Warranty Group > 1500 Kings Highway > Port Charlotte, FL 33980 > 800.749.0381 x3123 (National Toll Free) > 941.255.3274 x3123 (Local) > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of David Ness > Sent: Thursday, September 07, 2006 11:02 AM > To: FX.php Discussion List > Subject: RE: [FX.php List] Output > > Yes, I've had excellent results outputting PDFs. See this link for a > free PHP tool: > > http://fpdf.org/ > > > -- > > David Ness, > Database Systems Programmer > > Bonded Builders Warranty Group > 1500 Kings Highway > Port Charlotte, FL 33980 > 800.749.0381 x3123 (National Toll Free) > 941.255.3274 x3123 (Local) > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan > Schwartz > Sent: Thursday, September 07, 2006 10:18 AM > To: FX.php Discussion List > Subject: [FX.php List] Output > > Is anyone publishing data out of their fx.php solutions to allow users > to receive either excel or pdf format? > > Now that I've been successful in the data entry , edit and review > phases, I'm looking at how users can receive native FMP reports and > data > exports. > > Thanks > > Jonathan > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance Schwartz & Company > jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 aliciamc at dso.ufl.edu Thu Sep 7 10:13:23 2006 From: aliciamc at dso.ufl.edu (Alicia M. Cosenza) Date: Thu Sep 7 10:13:38 2006 Subject: [FX.php List] Query Question In-Reply-To: Message-ID: <763EF8AB90E46040B6EC22D033A022E107A690@ex02.jou.ufl.edu> Hello, I need to select from my from my database based on a date range ie. All events between the dates 9/2/2006 to 9/14/2006 I am unsure on how to do this with FX PHP. I have tried... $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); $query->AddDBParam ('Event_Date', date("n/j/Y", $endDate), 'lte'); but it is not returning all the events in between. I read something earlier about using the '...' between two dates finds all the dates in that range but I do not know how to format it to work with AddDBParam. Thanks for any help, Alicia Cosenza PS. Yes, I'm new to FX.php. From derrick at fogles.net Thu Sep 7 10:15:29 2006 From: derrick at fogles.net (Derrick Fogle) Date: Thu Sep 7 10:17:39 2006 Subject: [FX.php List] Query Question In-Reply-To: <763EF8AB90E46040B6EC22D033A022E107A690@ex02.jou.ufl.edu> References: <763EF8AB90E46040B6EC22D033A022E107A690@ex02.jou.ufl.edu> Message-ID: <438F50D2-5B1D-499F-8C48-D9F62F63BA16@fogles.net> query->AddDBParam ('Event_Date', date("n/j/Y", $startDate) . "..." . date("n/j/Y", $endDate)); On Sep 7, 2006, at 11:13 AM, Alicia M. Cosenza wrote: > Hello, > > I need to select from my from my database based on a date range > > ie. All events between the dates 9/2/2006 to 9/14/2006 > > I am unsure on how to do this with FX PHP. > > I have tried... > > $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); > $query->AddDBParam ('Event_Date', date("n/j/Y", $endDate), 'lte'); > > but it is not returning all the events in between. I read something > earlier about using the '...' between two dates finds all the dates in > that range but I do not know how to format it to work with AddDBParam. > > Thanks for any help, > > Alicia Cosenza > > PS. Yes, I'm new to FX.php. > > > _______________________________________________ > 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 ggt667 at gmail.com Thu Sep 7 10:21:32 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 7 10:22:01 2006 Subject: [FX.php List] Making FMP wait for PHP actions In-Reply-To: <54393724-ABDD-4C4F-BA6F-CAD71F75D1CB@fogles.net> References: <54393724-ABDD-4C4F-BA6F-CAD71F75D1CB@fogles.net> Message-ID: And why do you post a link to a forum on here? ggt667 On 9/7/06, Derrick Fogle wrote: > I just posted a note on the FMWebSchool board about making an FMP > script wait for a PHP script to finish. > > http://fmwebschool.com/frm/index.php?topic=502.0 > > Derrick Fogle > derrick@fogles.net > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Thu Sep 7 10:24:59 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 7 10:25:23 2006 Subject: [FX.php List] Output In-Reply-To: References: <5CF517C96A6D704984FB81D6D61383A20103F9E2@exchange.bondedbuilders.com> Message-ID: Yes, I have a solution that produces numberous XLSes pr hour, written in python ggt667 On 9/7/06, Dale Bengston wrote: > A large part of my consulting is building print-shop workflows that > produce complex, for-publication PDFs using standard templates and > variable data entered via the web. I'm using FPDF (http:// > www.fpdf.org/). > > I'm using the PEAR class Spreadsheet_Excel_Writer (http:// > pear.php.net/package/Spreadsheet_Excel_Writer) to generate Excel > files from the web. Also a great tool. > > Both are open-source. Hooray! > > Dale > > > > On Sep 7, 2006, at 10:13 AM, David Ness wrote: > > > Oh, and be certain to look over the 'plug-in functions' for fpdf > > listed > > under the 'Scripts' link on their homepage. > > > > I create PDF's from FileMaker data using PHP & the fpdf class that > > include Invoices, Statements, Contracts, etc, using full > > justification, > > graphics, and even bar codes. > > > > Now if someone could just develop a WYSIWYG tool for fphp.... > > > > One suggestion: Because the tool is very x-y coordinate centric, build > > your pages in sections or blocks which reference variables for the > > starting xy coordinates. Then, when you need to start moving your > > blocks > > around, you can change just the reference variables, which will > > move all > > the elements of that block around without having to change each > > element > > separately. > > > > > > -- > > David Ness, > > Database Systems Programmer > > > > Bonded Builders Warranty Group > > 1500 Kings Highway > > Port Charlotte, FL 33980 > > 800.749.0381 x3123 (National Toll Free) > > 941.255.3274 x3123 (Local) > > > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org > > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of David Ness > > Sent: Thursday, September 07, 2006 11:02 AM > > To: FX.php Discussion List > > Subject: RE: [FX.php List] Output > > > > Yes, I've had excellent results outputting PDFs. See this link for a > > free PHP tool: > > > > http://fpdf.org/ > > > > > > -- > > > > David Ness, > > Database Systems Programmer > > > > Bonded Builders Warranty Group > > 1500 Kings Highway > > Port Charlotte, FL 33980 > > 800.749.0381 x3123 (National Toll Free) > > 941.255.3274 x3123 (Local) > > > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org > > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan > > Schwartz > > Sent: Thursday, September 07, 2006 10:18 AM > > To: FX.php Discussion List > > Subject: [FX.php List] Output > > > > Is anyone publishing data out of their fx.php solutions to allow users > > to receive either excel or pdf format? > > > > Now that I've been successful in the data entry , edit and review > > phases, I'm looking at how users can receive native FMP reports and > > data > > exports. > > > > Thanks > > > > Jonathan > > > > -- > > > > Jonathan Schwartz > > FileMaker 8 Certified Developer > > Associate Member, FileMaker Solutions Alliance Schwartz & Company > > jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com > > 415-381-1852 > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From stephen at fmwebschool.com Thu Sep 7 10:26:02 2006 From: stephen at fmwebschool.com (Stephen Knight) Date: Thu Sep 7 10:26:28 2006 Subject: [FX.php List] Making FMP wait for PHP actions In-Reply-To: Message-ID: <20060907162625.EF68635AEBC@www.iviking.org> Perhaps because the forum contains a lot of useful information from wonderful contributors :) That is what makes this a community, there are many resources available in many places. In Kindness Stephen K Knight http://www.fmwebschool.com 800.353.7950 / 386.453.5843 FMWebschool, we bring the web to life FX.PHP PHP XML MySQL CDML ASP CONFIDENTIALITY NOTICE: This Electronic Mail (e-mail) contains confidential and privileged information intended only for the use of the individual or entity to which it is sent. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please immediately notify the sender by reply e-mail or telephone. -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen Sent: Thursday, September 07, 2006 12:22 PM To: FX.php Discussion List Subject: Re: [FX.php List] Making FMP wait for PHP actions And why do you post a link to a forum on here? ggt667 On 9/7/06, Derrick Fogle wrote: > I just posted a note on the FMWebSchool board about making an FMP > script wait for a PHP script to finish. > > http://fmwebschool.com/frm/index.php?topic=502.0 > > Derrick Fogle > derrick@fogles.net > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Thu Sep 7 10:27:10 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 7 10:27:28 2006 Subject: [FX.php List] Query Question In-Reply-To: <438F50D2-5B1D-499F-8C48-D9F62F63BA16@fogles.net> References: <763EF8AB90E46040B6EC22D033A022E107A690@ex02.jou.ufl.edu> <438F50D2-5B1D-499F-8C48-D9F62F63BA16@fogles.net> Message-ID: Derrick, that worked with FMU 5.0 -> 6.0, and did not work with FM7SA, does it work again now in 8.5? ggt667 On 9/7/06, Derrick Fogle wrote: > query->AddDBParam ('Event_Date', date("n/j/Y", $startDate) . "..." . > date("n/j/Y", $endDate)); > > > On Sep 7, 2006, at 11:13 AM, Alicia M. Cosenza wrote: > > > Hello, > > > > I need to select from my from my database based on a date range > > > > ie. All events between the dates 9/2/2006 to 9/14/2006 > > > > I am unsure on how to do this with FX PHP. > > > > I have tried... > > > > $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); > > $query->AddDBParam ('Event_Date', date("n/j/Y", $endDate), 'lte'); > > > > but it is not returning all the events in between. I read something > > earlier about using the '...' between two dates finds all the dates in > > that range but I do not know how to format it to work with AddDBParam. > > > > Thanks for any help, > > > > Alicia Cosenza > > > > PS. Yes, I'm new to FX.php. > > > > > > _______________________________________________ > > 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 > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From aliciamc at dso.ufl.edu Thu Sep 7 10:35:22 2006 From: aliciamc at dso.ufl.edu (Alicia M. Cosenza) Date: Thu Sep 7 10:35:37 2006 Subject: [FX.php List] Query Question In-Reply-To: Message-ID: <763EF8AB90E46040B6EC22D033A022E107A693@ex02.jou.ufl.edu> Yeah I'm on FM 7. It's not working for me. Alicia Cosenza -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen Sent: Thursday, September 07, 2006 12:27 PM To: FX.php Discussion List Subject: Re: Re: [FX.php List] Query Question Derrick, that worked with FMU 5.0 -> 6.0, and did not work with FM7SA, does it work again now in 8.5? ggt667 On 9/7/06, Derrick Fogle wrote: > query->AddDBParam ('Event_Date', date("n/j/Y", $startDate) . "..." . > date("n/j/Y", $endDate)); > > > On Sep 7, 2006, at 11:13 AM, Alicia M. Cosenza wrote: > > > Hello, > > > > I need to select from my from my database based on a date range > > > > ie. All events between the dates 9/2/2006 to 9/14/2006 > > > > I am unsure on how to do this with FX PHP. > > > > I have tried... > > > > $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); > > $query->AddDBParam ('Event_Date', date("n/j/Y", $endDate), 'lte'); > > > > but it is not returning all the events in between. I read something > > earlier about using the '...' between two dates finds all the dates in > > that range but I do not know how to format it to work with AddDBParam. > > > > Thanks for any help, > > > > Alicia Cosenza > > > > PS. Yes, I'm new to FX.php. > > > > > > _______________________________________________ > > 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 > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 derrick at fogles.net Thu Sep 7 10:38:08 2006 From: derrick at fogles.net (Derrick Fogle) Date: Thu Sep 7 10:40:20 2006 Subject: [FX.php List] Query Question In-Reply-To: <763EF8AB90E46040B6EC22D033A022E107A693@ex02.jou.ufl.edu> References: <763EF8AB90E46040B6EC22D033A022E107A693@ex02.jou.ufl.edu> Message-ID: <8AA51401-FEF0-40A6-8F66-51A5D4E49CC9@fogles.net> Yeah, sorry, just a quick attempt to help without knowing which version you're on. Maybe Gjermund can help you. On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: > Yeah I'm on FM 7. It's not working for me. Derrick Fogle derrick@fogles.net From aliciamc at dso.ufl.edu Thu Sep 7 10:52:51 2006 From: aliciamc at dso.ufl.edu (Alicia M. Cosenza) Date: Thu Sep 7 10:53:04 2006 Subject: [FX.php List] Query Question In-Reply-To: <8AA51401-FEF0-40A6-8F66-51A5D4E49CC9@fogles.net> Message-ID: <763EF8AB90E46040B6EC22D033A022E107A699@ex02.jou.ufl.edu> Yeah I appreciate it. Alicia Cosenza -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick Fogle Sent: Thursday, September 07, 2006 12:38 PM To: FX.php Discussion List Subject: Re: [FX.php List] Query Question Yeah, sorry, just a quick attempt to help without knowing which version you're on. Maybe Gjermund can help you. On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: > Yeah I'm on FM 7. It's not working for me. Derrick Fogle derrick@fogles.net _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Thu Sep 7 12:27:48 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Thu Sep 7 12:28:21 2006 Subject: [FX.php List] Output In-Reply-To: References: <5CF517C96A6D704984FB81D6D61383A20103F9E2@exchange.bondedbuilders.com> Message-ID: So..so far I haven't heard about the ability to get FileMaker to spit these items out. In my present scenario, I have reports formatted in FMP and it would be easiest to continue to use that formatting if FMP could be coaxed to do it. Thinking out loud.... I know that FMPServer can't print and export data on its own, so then FMSA can't do it either. Choices remaining are: 1) User employs FileMaker client to print/export. (Easy/Requires FMP) 2) Satellite robot copy of FMP constantly polls Server for print/export requests. (Requires separate machine and resources) 3) Rewrite print and export routines in php, effectively reducing the need for FileMaker. Do I have this right? Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From chris at iViking.org Thu Sep 7 13:34:07 2006 From: chris at iViking.org (Chris Hansen) Date: Thu Sep 7 13:34:20 2006 Subject: [FX.php List] Making FMP wait for PHP actions In-Reply-To: <20060907162625.EF68635AEBC@www.iviking.org> References: <20060907162625.EF68635AEBC@www.iviking.org> Message-ID: <166CACA4-C6D5-416A-B73D-3EE8C948160D@iViking.org> Stephen's post is only partly true, as can be seen by the fact that Derrick had to post the link to his tip so that everyone could see it. It IS the contributors that make a list great. Multiple lists are another matter. I realize that companies get a lot of great marketing opportunities from their lists, but the community as a whole benefits to a lesser extent, and may be harmed by competing lists. You see, if you find a problem with FX.php and post it to the another list (and there are lots of them), I -- the developer -- remain unaware of the problem. I just don't have the time to follow all of the lists out there. So, if you want to post to another list on an FX.php topic, please cross- post to this one. And if you prefer to post to only one list, please post to this one. That said, there is _nothing_ wrong with the odd link to another list, though cross-posts are better. Also, I realize that some people prefer a bulletin board format. I am currently in the process of arranging such a resource for FX.php (keep an eye on www.iviking.org for updates.) Thanks for all of your contributions (both to FX.php and the list)! Best, --Chris Hansen FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Sep 7, 2006, at 10:26 AM, Stephen Knight wrote: > Perhaps because the forum contains a lot of useful information from > wonderful contributors :) That is what makes this a community, > there are > many resources available in many places. > > > In Kindness > Stephen K Knight > http://www.fmwebschool.com > 800.353.7950 / 386.453.5843 > FMWebschool, we bring the web to life > FX.PHP PHP XML MySQL CDML ASP > > CONFIDENTIALITY NOTICE: This Electronic Mail (e-mail) contains > confidential > and privileged information intended only for the use of the > individual or > entity to which it is sent. If the reader of this message is not the > intended recipient, or the employee or agent responsible for > delivery to the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication is STRICTLY > PROHIBITED. If > you have received this communication in error, please immediately > notify the > sender by reply e-mail or telephone. > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund > Gusland > Thorsen > Sent: Thursday, September 07, 2006 12:22 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] Making FMP wait for PHP actions > > And why do you post a link to a forum on here? > > ggt667 > > On 9/7/06, Derrick Fogle wrote: >> I just posted a note on the FMWebSchool board about making an FMP >> script wait for a PHP script to finish. >> >> http://fmwebschool.com/frm/index.php?topic=502.0 >> >> Derrick Fogle >> derrick@fogles.net >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 thesquid at mac.com Thu Sep 7 12:06:44 2006 From: thesquid at mac.com (Dana Coe) Date: Thu Sep 7 13:34:55 2006 Subject: [FX.php List] Re: Output In-Reply-To: <20060907161342.4A7ED35ADF4@www.iviking.org> References: <20060907161342.4A7ED35ADF4@www.iviking.org> Message-ID: <404E339B-87E2-49C4-B203-00FC3A8E100C@mac.com> Hi all, I generate excels using the Spreadsheet::writer::excel perl cpan module - I've used the php class, it's GREAT, BUT you run up against a limit pretty fast on how big your excels can be. (~ >1.5MB) This has something to do with php's readline function from what I understand. The perl class has an adjunct class called ::big that will let you output monstrous excels no problem. I can generate product list excels for thousands of products - including photos - that are 10-25MB in size. How to interface that with the php code from FX? Now that's a knotty problem! There is a pecl php class that lets you call perl code from within php - this works great, but the documentation is really sparse. Also, something in the code absolutely mangles unicode, so I can't use that. Still, it's an elegant solution if the excel php class won't produce big enough excels for you, and your needs don't encompass unicode charsets. Now I use FX to have php write a delimited file to the server (results of my FX call) and call the perl script directly to process the text file. Works great; all the unicode formatting is held. To insert photos, you have to have the photos in BMP format. I call a script from the php that converts them via ImageMagic from jpeg to appropriately sized bmps and pass the path to the excel generator. Anyways, if anyone is interested in the code, I'd be happy to send it to them. Regards, Dana L. Coe Infinite Harmony (Hangzhou) Co., LTD World Trade Center Tower B 11F 122 Shuguang Road Hangzhou Zhejiang 310007 China Office: +86-571-87630182 Fax: +86-571-87630176 Cell: +86-139-05813322 On Sep 8, 2006, at 12:13 AM, fx.php_list-request@mail.iviking.org wrote: > Message: 5 > Date: Thu, 7 Sep 2006 07:17:32 -0700 > From: Jonathan Schwartz > Subject: [FX.php List] Output > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset="us-ascii" ; format="flowed" > > Is anyone publishing data out of their fx.php solutions to allow > users to receive either excel or pdf format? > > Now that I've been successful in the data entry , edit and review > phases, I'm looking at how users can receive native FMP reports and > data exports. > > Thanks > > Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060908/814b4314/attachment.html From ggt667 at gmail.com Thu Sep 7 14:27:20 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 7 14:27:34 2006 Subject: [FX.php List] Query Question In-Reply-To: <763EF8AB90E46040B6EC22D033A022E107A699@ex02.jou.ufl.edu> References: <8AA51401-FEF0-40A6-8F66-51A5D4E49CC9@fogles.net> <763EF8AB90E46040B6EC22D033A022E107A699@ex02.jou.ufl.edu> Message-ID: The work around I know of for FileMaker 7 and up is to have two fields with the same dates in them. Do not make a calculation field, make sure you enter the same date in each field instead. $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/Y", $endDate), 'lte'); This is due to a limitation in the FileMaker XML query. ggt667 On 9/7/06, Alicia M. Cosenza wrote: > Yeah I appreciate it. > > Alicia Cosenza > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick Fogle > Sent: Thursday, September 07, 2006 12:38 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] Query Question > > Yeah, sorry, just a quick attempt to help without knowing which > version you're on. Maybe Gjermund can help you. > > On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: > > > Yeah I'm on FM 7. It's not working for me. > > > Derrick Fogle > derrick@fogles.net > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 chris at iViking.org Thu Sep 7 14:58:28 2006 From: chris at iViking.org (Chris Hansen) Date: Thu Sep 7 14:58:42 2006 Subject: [FX.php List] Query Question In-Reply-To: References: <8AA51401-FEF0-40A6-8F66-51A5D4E49CC9@fogles.net> <763EF8AB90E46040B6EC22D033A022E107A699@ex02.jou.ufl.edu> Message-ID: <2F64C05B-CA4B-4359-8396-18CBE2BECF78@iViking.org> Hello, Actually, you should be able to you the syntax that you'd use in FileMaker, too: $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", $endDate); $query->AddDBParam ('Event_Date', $dateRange); Note that there are other work-arounds, but my guess is that this syntax would be faster. HTH --Chris Hansen FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Sep 7, 2006, at 2:27 PM, Gjermund Gusland Thorsen wrote: > The work around I know of for FileMaker 7 and up is to have two fields > with the same dates in them. > Do not make a calculation field, make sure you enter the same date in > each field instead. > > $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); > $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/Y", > $endDate), 'lte'); > > This is due to a limitation in the FileMaker XML query. > > ggt667 > > On 9/7/06, Alicia M. Cosenza wrote: >> Yeah I appreciate it. >> >> Alicia Cosenza >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick >> Fogle >> Sent: Thursday, September 07, 2006 12:38 PM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Query Question >> >> Yeah, sorry, just a quick attempt to help without knowing which >> version you're on. Maybe Gjermund can help you. >> >> On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: >> >> > Yeah I'm on FM 7. It's not working for me. >> >> >> Derrick Fogle >> derrick@fogles.net >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 jasonlewis at weber.edu Thu Sep 7 18:28:14 2006 From: jasonlewis at weber.edu (Jason LEWIS) Date: Thu Sep 7 21:01:44 2006 Subject: [FX.php List] Query Question In-Reply-To: <2F64C05B-CA4B-4359-8396-18CBE2BECF78@iViking.org> References: <8AA51401-FEF0-40A6-8F66-51A5D4E49CC9@fogles.net> <763EF8AB90E46040B6EC22D033A022E107A699@ex02.jou.ufl.edu> <2F64C05B-CA4B-4359-8396-18CBE2BECF78@iViking.org> Message-ID: <450064BE0200005F00010EA2@gwvsmta2.weber.edu> I am currently on FMP4. The date range search on this version works with three periods or two periods. I don't have FM7SA to test, but is this a possibility? Jason >>> Chris Hansen 09/07/2006 2:58 PM >>> Hello, Actually, you should be able to you the syntax that you'd use in FileMaker, too: $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", $endDate); $query->AddDBParam ('Event_Date', $dateRange); Note that there are other work-arounds, but my guess is that this syntax would be faster. HTH --Chris Hansen FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Sep 7, 2006, at 2:27 PM, Gjermund Gusland Thorsen wrote: > The work around I know of for FileMaker 7 and up is to have two fields > with the same dates in them. > Do not make a calculation field, make sure you enter the same date in > each field instead. > > $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); > $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/Y", > $endDate), 'lte'); > > This is due to a limitation in the FileMaker XML query. > > ggt667 > > On 9/7/06, Alicia M. Cosenza wrote: >> Yeah I appreciate it. >> >> Alicia Cosenza >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick >> Fogle >> Sent: Thursday, September 07, 2006 12:38 PM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Query Question >> >> Yeah, sorry, just a quick attempt to help without knowing which >> version you're on. Maybe Gjermund can help you. >> >> On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: >> >> > Yeah I'm on FM 7. It's not working for me. >> >> >> Derrick Fogle >> derrick@fogles.net >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From fx at 9degrees.com Thu Sep 7 21:05:33 2006 From: fx at 9degrees.com (Michael Layne) Date: Thu Sep 7 21:05:50 2006 Subject: [FX.php List] PHP and Javascript? In-Reply-To: <8326E0FD-D2A6-4642-8D96-AB242407D15F@mac.com> References: <8326E0FD-D2A6-4642-8D96-AB242407D15F@mac.com> Message-ID: <4500DDFD.5020009@9degrees.com> Chuck, Well, here's how I populate a JavaScript array with a PHP one... grabbing photos that live in the file system and belong to a particular record ($record) HTH. Let me know If I can (try) to explain anything more... Michael Michael Layne : 9 degrees development : www.9degrees.com : 404.226.7835 Charles Ross wrote: > Is it possible to get a PHP array to a JavaScript function? > > I'm trying to populate a menu based on the selection for another menu. > Basically it's a parent/child relationship. The user selects the > parent from one menu and the children of that parent appear in a > second menu. > > Getting the data from the database is done with PHP. Changing the > second menu would be done, I think, with JavaScript (which I'm also > learning as I go). I've been trying to figure out how to get the data > from one to the other, but haven't succeeded. > > Or perhaps I'm going about this in entirely the wrong way. Any > assistance would be appreciated. > > Thanks, > Chuck Ross > _______________________________________________ > 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/20060907/bfef1300/attachment-0001.html From FHASELTINE at aol.com Fri Sep 8 04:56:23 2006 From: FHASELTINE at aol.com (FHASELTINE@aol.com) Date: Fri Sep 8 04:56:54 2006 Subject: [FX.php List] Inserting Photo's Message-ID: Dana Coe I would very much appreciate the code for inserting pictures using FX. Thank you, florence Florence Haseltine AIM: Fhaseltine fhaseltine@aol.com 240-476-7837 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060908/ae9472b9/attachment.html From FHASELTINE at aol.com Fri Sep 8 05:02:49 2006 From: FHASELTINE at aol.com (FHASELTINE@aol.com) Date: Fri Sep 8 05:03:10 2006 Subject: [FX.php List] When loading a page Message-ID: I have an index.php page that loads when the URL is called. I have a small search on it that I would like executed as the page is called. It simply has a list of the current active Universities participating in the program, How do I get the webpage to activate my Find call without POSTing to it. I tried the sample programs and I can get them all showing, but the complication I have is that I only want to show 5 of the 20 sites at a time. So I cannot figure the coding for loading and then permitting the first 5 sites to show and then go onto the next five sites, without doing a search for them first. Hope I am making sense. Florence Haseltine AIM: Fhaseltine fhaseltine@aol.com 240-476-7837 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060908/6f7a7cb1/attachment.html From ggt667 at gmail.com Fri Sep 8 06:13:44 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 8 06:14:00 2006 Subject: [FX.php List] When loading a page In-Reply-To: References: Message-ID: use skip On 9/8/06, FHASELTINE@aol.com wrote: > I have an index.php page that loads when the URL is called. I have a small > search on it that I would like executed as the page is called. It simply > has a list of the current active Universities participating in the program, > How do I get the webpage to activate my Find call without POSTing to it. > > I tried the sample programs and I can get them all showing, but the > complication I have is that I only want to show 5 of the 20 sites at a > time. So I cannot figure the coding for loading and then permitting the > first 5 sites to show and then go onto the next five sites, without doing a > search for them first. Hope I am making sense. > > Florence Haseltine > AIM: Fhaseltine > fhaseltine@aol.com > 240-476-7837 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > From ggt667 at gmail.com Fri Sep 8 06:14:31 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 8 06:14:49 2006 Subject: [FX.php List] When loading a page In-Reply-To: References: Message-ID: Just make the search with most criterias static and have a dynamic value for skip records. ggt667 On 9/8/06, FHASELTINE@aol.com wrote: > I have an index.php page that loads when the URL is called. I have a small > search on it that I would like executed as the page is called. It simply > has a list of the current active Universities participating in the program, > How do I get the webpage to activate my Find call without POSTing to it. > > I tried the sample programs and I can get them all showing, but the > complication I have is that I only want to show 5 of the 20 sites at a > time. So I cannot figure the coding for loading and then permitting the > first 5 sites to show and then go onto the next five sites, without doing a > search for them first. Hope I am making sense. > > Florence Haseltine > AIM: Fhaseltine > fhaseltine@aol.com > 240-476-7837 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > From sbaetz at soscs.net Fri Sep 8 06:24:56 2006 From: sbaetz at soscs.net (Scott Baetz) Date: Fri Sep 8 06:25:22 2006 Subject: [FX.php List] Javascript & PHP In-Reply-To: <20060908030555.559BA35B924@www.iviking.org> References: <20060908030555.559BA35B924@www.iviking.org> Message-ID: <45016118.5090100@soscs.net> Chuck, I believe this is easier than you might think. First, I strongly recommend a good web search on this matter. I've found that www.JavaScript.com can provide a number of good leads in the right direction. At the core of this situation, you might ask yourself, how is this going to be structured? Frankly you should create your two related javascript'ed menus without PHP first (I only suggest this as you are indicating that you are learning JavaScript as you go). With this basic coding mastered, you will realize that as Michael mentions below, you are simple going to load the data values from a standard FXphp call. BAM you are done. Best regards, Scott Baetz sbaetz@soscs.net http://www.soscs.net > Message: 6 > Date: Thu, 07 Sep 2006 23:05:33 -0400 > From: Michael Layne > Subject: Re: [FX.php List] PHP and Javascript? > To: "FX.php Discussion List" > Message-ID: <4500DDFD.5020009@9degrees.com> > Content-Type: text/plain; charset="iso-8859-1" > > Chuck, > > Well, here's how I populate a JavaScript array with a PHP one... > grabbing photos that live in the file system and belong to a particular > record ($record) > > > > HTH. Let me know If I can (try) to explain anything more... > > Michael > > Michael Layne : 9 degrees development : www.9degrees.com : 404.226.7835 > > Charles Ross wrote: > >> Is it possible to get a PHP array to a JavaScript function? >> >> I'm trying to populate a menu based on the selection for another menu. >> Basically it's a parent/child relationship. The user selects the >> parent from one menu and the children of that parent appear in a >> second menu. >> >> Getting the data from the database is done with PHP. Changing the >> second menu would be done, I think, with JavaScript (which I'm also >> learning as I go). I've been trying to figure out how to get the data >> from one to the other, but haven't succeeded. >> >> Or perhaps I'm going about this in entirely the wrong way. Any >> assistance would be appreciated. >> >> Thanks, >> Chuck Ross >> _______________________________________________ >> 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/20060907/bfef1300/attachment.html > > ------------------------------ > > _______________________________________________ > FX.php_List > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > End of FX.php_List Digest, Vol 26, Issue 11 > ******************************************* > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060908/e343030a/attachment.html From aliciamc at dso.ufl.edu Fri Sep 8 08:36:40 2006 From: aliciamc at dso.ufl.edu (Alicia M. Cosenza) Date: Fri Sep 8 08:36:58 2006 Subject: [FX.php List] Query Question In-Reply-To: <450064BE0200005F00010EA2@gwvsmta2.weber.edu> Message-ID: <763EF8AB90E46040B6EC22D033A022E107A6D5@ex02.jou.ufl.edu> Hello, As it turns out I had a small php error when I made the $eventrange statement and it was causing the error. So it does work. Sorry for the confusion. Thanks for the help, Alicia Cosenza -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jason LEWIS Sent: Thursday, September 07, 2006 8:28 PM To: FX.php Discussion List Subject: Re: [FX.php List] Query Question I am currently on FMP4. The date range search on this version works with three periods or two periods. I don't have FM7SA to test, but is this a possibility? Jason >>> Chris Hansen 09/07/2006 2:58 PM >>> Hello, Actually, you should be able to you the syntax that you'd use in FileMaker, too: $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", $endDate); $query->AddDBParam ('Event_Date', $dateRange); Note that there are other work-arounds, but my guess is that this syntax would be faster. HTH --Chris Hansen FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Sep 7, 2006, at 2:27 PM, Gjermund Gusland Thorsen wrote: > The work around I know of for FileMaker 7 and up is to have two fields > with the same dates in them. > Do not make a calculation field, make sure you enter the same date in > each field instead. > > $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); > $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/Y", > $endDate), 'lte'); > > This is due to a limitation in the FileMaker XML query. > > ggt667 > > On 9/7/06, Alicia M. Cosenza wrote: >> Yeah I appreciate it. >> >> Alicia Cosenza >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick >> Fogle >> Sent: Thursday, September 07, 2006 12:38 PM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Query Question >> >> Yeah, sorry, just a quick attempt to help without knowing which >> version you're on. Maybe Gjermund can help you. >> >> On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: >> >> > Yeah I'm on FM 7. It's not working for me. >> >> >> Derrick Fogle >> derrick@fogles.net >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From derrick at fogles.net Fri Sep 8 09:09:28 2006 From: derrick at fogles.net (Derrick Fogle) Date: Fri Sep 8 09:11:46 2006 Subject: [FX.php List] Query Question In-Reply-To: <763EF8AB90E46040B6EC22D033A022E107A6D5@ex02.jou.ufl.edu> References: <763EF8AB90E46040B6EC22D033A022E107A6D5@ex02.jou.ufl.edu> Message-ID: <9ECFA9A6-A526-474D-B806-A9CD651A91C2@fogles.net> OK, since I haven't run across this myself yet, I'd like to ask the list for some clarification on this issue. I'm under the impression that there really is a glitch in the FM7SA XML query that keeps date range searches like "9/8/2006...9/10/2006" from working correctly. But I don't understand what difference these two approaches make the FMP's XML query: This works? - > $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", > $endDate); > $query->AddDBParam ('Event_Date', $dateRange); This doesn't work? - > $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate) . > '...' . date("n/j/Y", $endDate)); Sorry, that just doesn't make a lot of sense. By the time the data gets submitted to FM7SA's XML interface, the string should be exactly the same one way or the other. Did one of the FM7SA updates fix the XML query bug? Or is there something in FX.php that mangles the concatenation embedded in the AddDBParam statement vs. the pre- concatenated text presented in a single variable? Someone please help me understand. Thanks, On Sep 8, 2006, at 9:36 AM, Alicia M. Cosenza wrote: > Hello, > > As it turns out I had a small php error when I made the $eventrange > statement and it was causing the error. So it does work. Sorry > for the > confusion. > > Thanks for the help, > > Alicia Cosenza > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jason LEWIS > Sent: Thursday, September 07, 2006 8:28 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] Query Question > > I am currently on FMP4. The date range search on this version works > with three periods or two periods. I don't have FM7SA to test, but is > this a possibility? > > Jason > >>>> Chris Hansen 09/07/2006 2:58 PM >>> > Hello, > > Actually, you should be able to you the syntax that you'd use in > FileMaker, too: > > $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", > $endDate); > $query->AddDBParam ('Event_Date', $dateRange); > > Note that there are other work-arounds, but my guess is that this > syntax would be faster. HTH > > --Chris Hansen > FileMaker 7 Certified Developer > Creator of FX.php > "The best way from FileMaker to the Web." > www.iViking.org > > > On Sep 7, 2006, at 2:27 PM, Gjermund Gusland Thorsen wrote: > >> The work around I know of for FileMaker 7 and up is to have two > fields >> with the same dates in them. >> Do not make a calculation field, make sure you enter the same date > in >> each field instead. >> >> $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); >> $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/Y", >> $endDate), 'lte'); >> >> This is due to a limitation in the FileMaker XML query. >> >> ggt667 >> >> On 9/7/06, Alicia M. Cosenza wrote: >>> Yeah I appreciate it. >>> >>> Alicia Cosenza >>> >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick > >>> Fogle >>> Sent: Thursday, September 07, 2006 12:38 PM >>> To: FX.php Discussion List >>> Subject: Re: [FX.php List] Query Question >>> >>> Yeah, sorry, just a quick attempt to help without knowing which >>> version you're on. Maybe Gjermund can help you. >>> >>> On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: >>> >>>> Yeah I'm on FM 7. It's not working for me. >>> >>> >>> Derrick Fogle >>> derrick@fogles.net >>> >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Derrick Fogle derrick@fogles.net From dan.cynosure at dbmscan.com Fri Sep 8 15:25:59 2006 From: dan.cynosure at dbmscan.com (DC) Date: Fri Sep 8 15:26:23 2006 Subject: [FX.php List] Query Question In-Reply-To: <9ECFA9A6-A526-474D-B806-A9CD651A91C2@fogles.net> References: <763EF8AB90E46040B6EC22D033A022E107A6D5@ex02.jou.ufl.edu> <9ECFA9A6-A526-474D-B806-A9CD651A91C2@fogles.net> Message-ID: <4501DFE7.4010309@dbmscan.com> Me too. Can anyone using the latest FMSA7 or 8 confirm that date ranges specified by the dot dot dot range string work? That is, without doing the funky workaround proffered by ggt earlier? best, dan Derrick Fogle had written: > OK, since I haven't run across this myself yet, I'd like to ask the > list for some clarification on this issue. I'm under the impression > that there really is a glitch in the FM7SA XML query that keeps date > range searches like "9/8/2006...9/10/2006" from working correctly. But > I don't understand what difference these two approaches make the FMP's > XML query: > > This works? - > >> $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", >> $endDate); >> $query->AddDBParam ('Event_Date', $dateRange); > > > This doesn't work? - > >> $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate) . '...' . >> date("n/j/Y", $endDate)); > > > Sorry, that just doesn't make a lot of sense. By the time the data gets > submitted to FM7SA's XML interface, the string should be exactly the > same one way or the other. Did one of the FM7SA updates fix the XML > query bug? Or is there something in FX.php that mangles the > concatenation embedded in the AddDBParam statement vs. the pre- > concatenated text presented in a single variable? > > Someone please help me understand. > > Thanks, > > On Sep 8, 2006, at 9:36 AM, Alicia M. Cosenza wrote: > >> Hello, >> >> As it turns out I had a small php error when I made the $eventrange >> statement and it was causing the error. So it does work. Sorry for the >> confusion. >> >> Thanks for the help, >> >> Alicia Cosenza >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jason LEWIS >> Sent: Thursday, September 07, 2006 8:28 PM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Query Question >> >> I am currently on FMP4. The date range search on this version works >> with three periods or two periods. I don't have FM7SA to test, but is >> this a possibility? >> >> Jason >> >>>>> Chris Hansen 09/07/2006 2:58 PM >>> >> >> Hello, >> >> Actually, you should be able to you the syntax that you'd use in >> FileMaker, too: >> >> $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", >> $endDate); >> $query->AddDBParam ('Event_Date', $dateRange); >> >> Note that there are other work-arounds, but my guess is that this >> syntax would be faster. HTH >> >> --Chris Hansen >> FileMaker 7 Certified Developer >> Creator of FX.php >> "The best way from FileMaker to the Web." >> www.iViking.org >> >> >> On Sep 7, 2006, at 2:27 PM, Gjermund Gusland Thorsen wrote: >> >>> The work around I know of for FileMaker 7 and up is to have two >> >> fields >> >>> with the same dates in them. >>> Do not make a calculation field, make sure you enter the same date >> >> in >> >>> each field instead. >>> >>> $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); >>> $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/Y", >>> $endDate), 'lte'); >>> >>> This is due to a limitation in the FileMaker XML query. >>> >>> ggt667 >>> >>> On 9/7/06, Alicia M. Cosenza wrote: >>> >>>> Yeah I appreciate it. >>>> >>>> Alicia Cosenza >>>> >>>> -----Original Message----- >>>> From: fx.php_list-bounces@mail.iviking.org >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick >> >> >>>> Fogle >>>> Sent: Thursday, September 07, 2006 12:38 PM >>>> To: FX.php Discussion List >>>> Subject: Re: [FX.php List] Query Question >>>> >>>> Yeah, sorry, just a quick attempt to help without knowing which >>>> version you're on. Maybe Gjermund can help you. >>>> >>>> On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: >>>> >>>>> Yeah I'm on FM 7. It's not working for me. >>>> >>>> >>>> >>>> Derrick Fogle >>>> derrick@fogles.net >>>> >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > Derrick Fogle > derrick@fogles.net > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From andy at fmpug.com Fri Sep 8 15:33:36 2006 From: andy at fmpug.com (Andy Gaunt) Date: Fri Sep 8 15:34:01 2006 Subject: [FX.php List] Query Question In-Reply-To: <4501DFE7.4010309@dbmscan.com> Message-ID: <007b01c6d38e$725b9860$0202a8c0@SHUTTLE> FMSA8.0v4 Date range searches such as '01/01/2006...09/08/2006' Also using two variables such as $startDate .'...'.$endDate Both work no problem at all Andy Gaunt Office: 321.206.3658 Mobile: 407.810.4722 andy@fmpug.com http://www.fmpug.com 2006 FileMaker Excellence Award Winner 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 DC Sent: Friday, September 08, 2006 5:26 PM To: FX.php Discussion List Subject: Re: [FX.php List] Query Question Me too. Can anyone using the latest FMSA7 or 8 confirm that date ranges specified by the dot dot dot range string work? That is, without doing the funky workaround proffered by ggt earlier? best, dan Derrick Fogle had written: > OK, since I haven't run across this myself yet, I'd like to ask the > list for some clarification on this issue. I'm under the impression > that there really is a glitch in the FM7SA XML query that keeps date > range searches like "9/8/2006...9/10/2006" from working correctly. But > I don't understand what difference these two approaches make the FMP's > XML query: > > This works? - > >> $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", >> $endDate); >> $query->AddDBParam ('Event_Date', $dateRange); > > > This doesn't work? - > >> $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate) . '...' . >> date("n/j/Y", $endDate)); > > > Sorry, that just doesn't make a lot of sense. By the time the data gets > submitted to FM7SA's XML interface, the string should be exactly the > same one way or the other. Did one of the FM7SA updates fix the XML > query bug? Or is there something in FX.php that mangles the > concatenation embedded in the AddDBParam statement vs. the pre- > concatenated text presented in a single variable? > > Someone please help me understand. > > Thanks, > > On Sep 8, 2006, at 9:36 AM, Alicia M. Cosenza wrote: > >> Hello, >> >> As it turns out I had a small php error when I made the $eventrange >> statement and it was causing the error. So it does work. Sorry for the >> confusion. >> >> Thanks for the help, >> >> Alicia Cosenza >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jason LEWIS >> Sent: Thursday, September 07, 2006 8:28 PM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Query Question >> >> I am currently on FMP4. The date range search on this version works >> with three periods or two periods. I don't have FM7SA to test, but is >> this a possibility? >> >> Jason >> >>>>> Chris Hansen 09/07/2006 2:58 PM >>> >> >> Hello, >> >> Actually, you should be able to you the syntax that you'd use in >> FileMaker, too: >> >> $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", >> $endDate); >> $query->AddDBParam ('Event_Date', $dateRange); >> >> Note that there are other work-arounds, but my guess is that this >> syntax would be faster. HTH >> >> --Chris Hansen >> FileMaker 7 Certified Developer >> Creator of FX.php >> "The best way from FileMaker to the Web." >> www.iViking.org >> >> >> On Sep 7, 2006, at 2:27 PM, Gjermund Gusland Thorsen wrote: >> >>> The work around I know of for FileMaker 7 and up is to have two >> >> fields >> >>> with the same dates in them. >>> Do not make a calculation field, make sure you enter the same date >> >> in >> >>> each field instead. >>> >>> $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), 'gte'); >>> $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/Y", >>> $endDate), 'lte'); >>> >>> This is due to a limitation in the FileMaker XML query. >>> >>> ggt667 >>> >>> On 9/7/06, Alicia M. Cosenza wrote: >>> >>>> Yeah I appreciate it. >>>> >>>> Alicia Cosenza >>>> >>>> -----Original Message----- >>>> From: fx.php_list-bounces@mail.iviking.org >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick >> >> >>>> Fogle >>>> Sent: Thursday, September 07, 2006 12:38 PM >>>> To: FX.php Discussion List >>>> Subject: Re: [FX.php List] Query Question >>>> >>>> Yeah, sorry, just a quick attempt to help without knowing which >>>> version you're on. Maybe Gjermund can help you. >>>> >>>> On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: >>>> >>>>> Yeah I'm on FM 7. It's not working for me. >>>> >>>> >>>> >>>> Derrick Fogle >>>> derrick@fogles.net >>>> >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > Derrick Fogle > derrick@fogles.net > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Fri Sep 8 20:34:31 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Sep 8 20:35:03 2006 Subject: [FX.php List] Query Question In-Reply-To: <4501DFE7.4010309@dbmscan.com> References: <763EF8AB90E46040B6EC22D033A022E107A6D5@ex02.jou.ufl.edu> <9ECFA9A6-A526-474D-B806-A9CD651A91C2@fogles.net> <4501DFE7.4010309@dbmscan.com> Message-ID: I have a solution that was started on v7 FMSA, finished on v8FMSA and deployed live on v8 FMSA. It uses ... in date ranges no problem. Dale On Sep 8, 2006, at 4:25 PM, DC wrote: > Me too. Can anyone using the latest FMSA7 or 8 confirm that date > ranges specified by the dot dot dot range string work? > > That is, without doing the funky workaround proffered by ggt earlier? > > best, > dan > > Derrick Fogle had written: >> OK, since I haven't run across this myself yet, I'd like to ask >> the list for some clarification on this issue. I'm under the >> impression that there really is a glitch in the FM7SA XML query >> that keeps date range searches like "9/8/2006...9/10/2006" from >> working correctly. But I don't understand what difference these >> two approaches make the FMP's XML query: >> This works? - >>> $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", >>> $endDate); >>> $query->AddDBParam ('Event_Date', $dateRange); >> This doesn't work? - >>> $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate) . >>> '...' . date("n/j/Y", $endDate)); >> Sorry, that just doesn't make a lot of sense. By the time the >> data gets submitted to FM7SA's XML interface, the string should >> be exactly the same one way or the other. Did one of the FM7SA >> updates fix the XML query bug? Or is there something in FX.php >> that mangles the concatenation embedded in the AddDBParam >> statement vs. the pre- concatenated text presented in a single >> variable? >> Someone please help me understand. >> Thanks, >> On Sep 8, 2006, at 9:36 AM, Alicia M. Cosenza wrote: >>> Hello, >>> >>> As it turns out I had a small php error when I made the $eventrange >>> statement and it was causing the error. So it does work. Sorry >>> for the >>> confusion. >>> >>> Thanks for the help, >>> >>> Alicia Cosenza >>> >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jason >>> LEWIS >>> Sent: Thursday, September 07, 2006 8:28 PM >>> To: FX.php Discussion List >>> Subject: Re: [FX.php List] Query Question >>> >>> I am currently on FMP4. The date range search on this version works >>> with three periods or two periods. I don't have FM7SA to test, >>> but is >>> this a possibility? >>> >>> Jason >>> >>>>>> Chris Hansen 09/07/2006 2:58 PM >>> >>> >>> Hello, >>> >>> Actually, you should be able to you the syntax that you'd use in >>> FileMaker, too: >>> >>> $dateRange = date("n/j/Y", $startDate) . '...' . date("n/j/Y", >>> $endDate); >>> $query->AddDBParam ('Event_Date', $dateRange); >>> >>> Note that there are other work-arounds, but my guess is that this >>> syntax would be faster. HTH >>> >>> --Chris Hansen >>> FileMaker 7 Certified Developer >>> Creator of FX.php >>> "The best way from FileMaker to the Web." >>> www.iViking.org >>> >>> >>> On Sep 7, 2006, at 2:27 PM, Gjermund Gusland Thorsen wrote: >>> >>>> The work around I know of for FileMaker 7 and up is to have two >>> >>> fields >>> >>>> with the same dates in them. >>>> Do not make a calculation field, make sure you enter the same date >>> >>> in >>> >>>> each field instead. >>>> >>>> $query->AddDBParam ('Event_Date', date("n/j/Y", $startDate), >>>> 'gte'); >>>> $query->AddDBParam ('Event_DateStupidWorkAroundField', date("n/j/ >>>> Y", >>>> $endDate), 'lte'); >>>> >>>> This is due to a limitation in the FileMaker XML query. >>>> >>>> ggt667 >>>> >>>> On 9/7/06, Alicia M. Cosenza wrote: >>>> >>>>> Yeah I appreciate it. >>>>> >>>>> Alicia Cosenza >>>>> >>>>> -----Original Message----- >>>>> From: fx.php_list-bounces@mail.iviking.org >>>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick >>> >>> >>>>> Fogle >>>>> Sent: Thursday, September 07, 2006 12:38 PM >>>>> To: FX.php Discussion List >>>>> Subject: Re: [FX.php List] Query Question >>>>> >>>>> Yeah, sorry, just a quick attempt to help without knowing which >>>>> version you're on. Maybe Gjermund can help you. >>>>> >>>>> On Sep 7, 2006, at 11:35 AM, Alicia M. Cosenza wrote: >>>>> >>>>>> Yeah I'm on FM 7. It's not working for me. >>>>> >>>>> >>>>> >>>>> Derrick Fogle >>>>> derrick@fogles.net >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> Derrick Fogle >> derrick@fogles.net >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 jonathan at eschwartz.com Sat Sep 9 09:54:22 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sat Sep 9 09:58:58 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: References: <763EF8AB90E46040B6EC22D033A022E107A6D5@ex02.jou.ufl.edu> <9ECFA9A6-A526-474D-B806-A9CD651A91C2@fogles.net> <4501DFE7.4010309@dbmscan.com> Message-ID: Hi Folks, I'm attempting to get more efficient with scripting. My first step was to remove hard-code field names from my favorite search and display script, creating variables for each field and defining those variables at the top of the document. This works great. Now, I can re-purpose the script for another db and layout by just changing the field variables at the top of the page, instead of ripping apart the entire document. The second area I'm looking at is to reduce the repetition of repetitive code (example below actually has 10+ iterations) and use an iterative loop to accomplish the same, counting from 1 to n lines. Is that possible/reasonable/reccomended/etc? Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From andy at fmpug.com Sat Sep 9 10:34:20 2006 From: andy at fmpug.com (Andy Gaunt) Date: Sat Sep 9 10:34:37 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: Message-ID: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> Jonathon, Try the following. '; $total = 10; $counter = 1; while ($counter <= $total) { echo ''; $ counter ++; } echo ''; ?> Changing the value for the while statement will let you increase or decrease the number of cells created. Another option is a 'for' loop $total = 20; echo ''; for($counter=0; $counter < $total; $counter++) { echo ''; } echo ''; Andy Gaunt Office: 321.206.3658 Mobile: 407.810.4722 andy@fmpug.com http://www.fmpug.com 2006 FileMaker Excellence Award Winner 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 Jonathan Schwartz Sent: Saturday, September 09, 2006 11:54 AM To: FX.php Discussion List Subject: [FX.php List] Creating Reusable Code Hi Folks, I'm attempting to get more efficient with scripting. My first step was to remove hard-code field names from my favorite search and display script, creating variables for each field and defining those variables at the top of the document. This works great. Now, I can re-purpose the script for another db and layout by just changing the field variables at the top of the page, instead of ripping apart the entire document. The second area I'm looking at is to reduce the repetition of repetitive code (example below actually has 10+ iterations) and use an iterative loop to accomplish the same, counting from 1 to n lines. Is that possible/reasonable/reccomended/etc? Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Sat Sep 9 16:06:04 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sat Sep 9 16:08:57 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> References: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> Message-ID: Andy, Thanks for the help. I understand the approach now, but can't get the code to work. I reworked it a couple dozen times and still am getting the literal value of "$term1" instead of the value of the variable, previously defined on the page. From the resulting html source code: Here's my current php code: '; $counter ++; } echo ""; ?> Jonathan >Jonathon, > >Try the following. > >echo ''; >$total = 10; >$counter = 1; >while ($counter <= $total) { > echo 'id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; > $ counter ++; >} >echo ''; >?> > >Changing the value for the while statement will let you increase or decrease >the number of cells created. > >Another option is a 'for' loop > > >$total = 20; >echo ''; >for($counter=0; $counter < $total; $counter++) { > echo 'id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >} >echo ''; > > > > >Andy Gaunt >Office: 321.206.3658 >Mobile: 407.810.4722 >andy@fmpug.com >http://www.fmpug.com > >2006 FileMaker Excellence Award Winner >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 Jonathan Schwartz >Sent: Saturday, September 09, 2006 11:54 AM >To: FX.php Discussion List >Subject: [FX.php List] Creating Reusable Code > >Hi Folks, > >I'm attempting to get more efficient with scripting. > >My first step was to remove hard-code field names from my favorite >search and display script, creating variables for each field and >defining those variables at the top of the document. This works >great. Now, I can re-purpose the script for another db and layout by >just changing the field variables at the top of the page, instead of >ripping apart the entire document. > >The second area I'm looking at is to reduce the repetition of >repetitive code (example below actually has 10+ iterations) and use >an iterative loop to accomplish the same, counting from 1 to n lines. > >Is that possible/reasonable/reccomended/etc? > >Thanks > >Jonathan > > > > > > >-- > >Jonathan Schwartz >FileMaker 8 Certified Developer >Associate Member, FileMaker Solutions Alliance >Schwartz & Company >jonathan@eschwartz.com >http://www.eschwartz.com >http://www.exit445.com >415-381-1852 > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dan.cynosure at dbmscan.com Sat Sep 9 16:29:50 2006 From: dan.cynosure at dbmscan.com (DC) Date: Sat Sep 9 16:30:12 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: References: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> Message-ID: <275E50AD-26CE-4FDB-B3EE-1233FF2571C4@dbmscan.com> jonathan, unless your field names are purposefully named with number endings, why don't you simplify it and remove the need for $counter and while loop. it looks like you are trying to create variable names on the fly by appending a number... if you really want to do it this way you need to use 'varaible variables' but they are pretty weird so it's best to keep it simple. try double dollar sign $$term instead of \ $term. but, really you should read up on variable variables to get it right. if you want to make it simple, change the approach and make a field name array: just put the field names you want in an array at the top of the page and iterate over the array to get your field names out into the table. same thing with any fieldwidths or field values you want. just make sure the arrays are all the same size. so instead of: > ... etc... use: '; { ?> HTH, dan On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: > Andy, > > Thanks for the help. > > I understand the approach now, but can't get the code to work. I > reworked it a couple dozen times and still am getting the literal > value of "$term1" instead of the value of the variable, previously > defined on the page. > > From the resulting html source code: > > > > > Here's my current php code: > > > > > $total = 11; > $counter = 1; > while ($counter <= $total) { > $beginning="\$term"; > $termcurrent = $beginning.$counter; > echo ''; > $counter ++; } > echo ""; > ?> > > > > Jonathan > > > > >> Jonathon, >> >> Try the following. >> >> > echo ''; >> $total = 10; >> $counter = 1; >> while ($counter <= $total) { >> echo '> id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; >> $ counter ++; } >> echo ''; >> ?> >> >> Changing the value for the while statement will let you increase >> or decrease >> the number of cells created. >> >> Another option is a 'for' loop >> >> >> $total = 20; >> echo ''; >> for($counter=0; $counter < $total; $counter++) { >> echo '> id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >> } >> echo ''; >> >> >> >> >> Andy Gaunt >> Office: 321.206.3658 >> Mobile: 407.810.4722 >> andy@fmpug.com >> http://www.fmpug.com >> 2006 FileMaker Excellence Award Winner >> 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 >> Jonathan Schwartz >> Sent: Saturday, September 09, 2006 11:54 AM >> To: FX.php Discussion List >> Subject: [FX.php List] Creating Reusable Code >> >> Hi Folks, >> >> I'm attempting to get more efficient with scripting. >> >> My first step was to remove hard-code field names from my favorite >> search and display script, creating variables for each field and >> defining those variables at the top of the document. This works >> great. Now, I can re-purpose the script for another db and layout by >> just changing the field variables at the top of the page, instead of >> ripping apart the entire document. >> >> The second area I'm looking at is to reduce the repetition of >> repetitive code (example below actually has 10+ iterations) and use >> an iterative loop to accomplish the same, counting from 1 to n lines. >> >> Is that possible/reasonable/reccomended/etc? >> >> Thanks >> >> Jonathan >> >> >> >> >> >> >> -- >> >> Jonathan Schwartz >> FileMaker 8 Certified Developer >> Associate Member, FileMaker Solutions Alliance >> Schwartz & Company >> jonathan@eschwartz.com >> http://www.eschwartz.com >> http://www.exit445.com >> 415-381-1852 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Sat Sep 9 18:02:22 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sat Sep 9 18:03:55 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: <275E50AD-26CE-4FDB-B3EE-1233FF2571C4@dbmscan.com> References: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> <275E50AD-26CE-4FDB-B3EE-1233FF2571C4@dbmscan.com> Message-ID: Dan, Thanks for the tip. I switched over to creating arrays to hold the 10 values in 2 categories. And while I was able to use your suggested script to echo out the values in the first array, my success quickly went down the tubes when trying to repeat that process for the other three arrays, while attempting insert the values into a single line. I know this is wrong, but this is my last attempt before I ran out of patience: '; } echo '>'; ?> In short, I'm looking to extract the first value from each array for the first line, the second value from each array for the second line...for 10 lines. How does one extract one value from multiple arrays and then compile a single line of html based on those value? This is what I get for trying to be efficient. ;-) J >jonathan, > >unless your field names are purposefully named with number endings, >why don't you simplify it and remove the need for $counter and while >loop. it looks like you are trying to create variable names on the >fly by appending a number... if you really want to do it this way >you need to use 'varaible variables' but they are pretty weird so >it's best to keep it simple. try double dollar sign $$term instead >of \$term. but, really you should read up on variable variables to >get it right. > >if you want to make it simple, change the approach and make a field >name array: >just put the field names you want in an array at the top of the page >and iterate over the array to get your field names out into the >table. same thing with any fieldwidths or field values you want. >just make sure the arrays are all the same size. > >so instead of: > >> ... etc... > >use: >$fields_array = array('list', 'of', 'field', 'names','here'); >foreach ($fields_array as $fieldname) { > echo ''; >{ >?> > >HTH, >dan > >On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: > >>Andy, >> >>Thanks for the help. >> >>I understand the approach now, but can't get the code to work. I >>reworked it a couple dozen times and still am getting the literal >>value of "$term1" instead of the value of the variable, previously >>defined on the page. >> >>From the resulting html source code: >> >> >> >> >>Here's my current php code: >> >> >> >> >>>$total = 11; >>$counter = 1; >>while ($counter <= $total) { >> $beginning="\$term"; >> $termcurrent = $beginning.$counter; >> echo ''; >> $counter ++; } >>echo ""; >>?> >> >> >> >>Jonathan >> >> >> >>>Jonathon, >>> >>>Try the following. >>> >>>>>echo ''; >>>$total = 10; >>>$counter = 1; >>>while ($counter <= $total) { >>> echo '>>id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; >>> $ counter ++; } >>>echo ''; >>>?> >>> >>>Changing the value for the while statement will let you increase or decrease >>>the number of cells created. >>> >>>Another option is a 'for' loop >>> >>> >>>$total = 20; >>>echo ''; >>>for($counter=0; $counter < $total; $counter++) { >>> echo '>>id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >>>} >>>echo ''; >>> >>> >>> >>> >>>Andy Gaunt >>>Office: 321.206.3658 >>>Mobile: 407.810.4722 >>>andy@fmpug.com >>>http://www.fmpug.com >>>2006 FileMaker Excellence Award Winner >>>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 Jonathan Schwartz >>>Sent: Saturday, September 09, 2006 11:54 AM >>>To: FX.php Discussion List >>>Subject: [FX.php List] Creating Reusable Code >>> >>>Hi Folks, >>> >>>I'm attempting to get more efficient with scripting. >>> >>>My first step was to remove hard-code field names from my favorite >>>search and display script, creating variables for each field and >>>defining those variables at the top of the document. This works >>>great. Now, I can re-purpose the script for another db and layout by >>>just changing the field variables at the top of the page, instead of >>>ripping apart the entire document. >>> >>>The second area I'm looking at is to reduce the repetition of >>>repetitive code (example below actually has 10+ iterations) and use >>>an iterative loop to accomplish the same, counting from 1 to n lines. >>> >>>Is that possible/reasonable/reccomended/etc? >>> >>>Thanks >>> >>>Jonathan >>> >>> >>> >>> >>> >>> >>>-- >>> >>>Jonathan Schwartz >>>FileMaker 8 Certified Developer >>>Associate Member, FileMaker Solutions Alliance >>>Schwartz & Company >>>jonathan@eschwartz.com >>>http://www.eschwartz.com >>>http://www.exit445.com >>>415-381-1852 >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dan.cynosure at dbmscan.com Sat Sep 9 18:37:19 2006 From: dan.cynosure at dbmscan.com (DC) Date: Sat Sep 9 18:37:42 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: References: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> <275E50AD-26CE-4FDB-B3EE-1233FF2571C4@dbmscan.com> Message-ID: right, great question! that's a classic array usage question. you have to use the numeric keys that come along for free in every simple array (associative arrrays are arrays where the keys are 'named') or you can use external counter variables to keep the multiple arrays in sync on output if keys are not available. $fieldname); echo ''; } echo '>'; ?> cheers, dan On Sep 9, 2006, at 8:02 PM, Jonathan Schwartz wrote: > Dan, > > Thanks for the tip. > > I switched over to creating arrays to hold the 10 values in 2 > categories. > > And while I was able to use your suggested script to echo out the > values in the first array, my success quickly went down the tubes > when trying to repeat that process for the other three arrays, > while attempting insert the values into a single line. > > I know this is wrong, but this is my last attempt before I ran out > of patience: > > > ($fieldnames as $fieldname); > ($fieldwidths as $fieldwidth); > echo ''; > } > echo '>'; > ?> > > > In short, I'm looking to extract the first value from each array > for the first line, the second value from each array for the second > line...for 10 lines. > > How does one extract one value from multiple arrays and then > compile a single line of html based on those value? > > This is what I get for trying to be efficient. ;-) > > J > > >> jonathan, >> >> unless your field names are purposefully named with number >> endings, why don't you simplify it and remove the need for >> $counter and while loop. it looks like you are trying to create >> variable names on the fly by appending a number... if you really >> want to do it this way you need to use 'varaible variables' but >> they are pretty weird so it's best to keep it simple. try double >> dollar sign $$term instead of \$term. but, really you should read >> up on variable variables to get it right. >> >> if you want to make it simple, change the approach and make a >> field name array: >> just put the field names you want in an array at the top of the >> page and iterate over the array to get your field names out into >> the table. same thing with any fieldwidths or field values you >> want. just make sure the arrays are all the same size. >> >> so instead of: >> >>> ... etc... >> >> use: >> > $fields_array = array('list', 'of', 'field', 'names','here'); >> foreach ($fields_array as $fieldname) { >> echo ''; >> { >> ?> >> >> HTH, >> dan >> >> On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: >> >>> Andy, >>> >>> Thanks for the help. >>> >>> I understand the approach now, but can't get the code to work. I >>> reworked it a couple dozen times and still am getting the literal >>> value of "$term1" instead of the value of the variable, >>> previously defined on the page. >>> >>> From the resulting html source code: >>> >>> >>> >>> >>> Here's my current php code: >>> >>> >>> >>> >>> >> $total = 11; >>> $counter = 1; >>> while ($counter <= $total) { >>> $beginning="\$term"; >>> $termcurrent = $beginning.$counter; >>> echo ''; >>> $counter ++; } >>> echo ""; >>> ?> >>> >>> >>> >>> Jonathan >>> >>> >>> >>>> Jonathon, >>>> >>>> Try the following. >>>> >>>> >>> echo ''; >>>> $total = 10; >>>> $counter = 1; >>>> while ($counter <= $total) { >>>> echo '>>> id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; >>>> $ counter ++; } >>>> echo ''; >>>> ?> >>>> >>>> Changing the value for the while statement will let you increase >>>> or decrease >>>> the number of cells created. >>>> >>>> Another option is a 'for' loop >>>> >>>> >>>> $total = 20; >>>> echo ''; >>>> for($counter=0; $counter < $total; $counter++) { >>>> echo '>>> id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >>>> } >>>> echo ''; >>>> >>>> >>>> >>>> >>>> Andy Gaunt >>>> Office: 321.206.3658 >>>> Mobile: 407.810.4722 >>>> andy@fmpug.com >>>> http://www.fmpug.com >>>> 2006 FileMaker Excellence Award Winner >>>> 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 >>>> Jonathan Schwartz >>>> Sent: Saturday, September 09, 2006 11:54 AM >>>> To: FX.php Discussion List >>>> Subject: [FX.php List] Creating Reusable Code >>>> >>>> Hi Folks, >>>> >>>> I'm attempting to get more efficient with scripting. >>>> >>>> My first step was to remove hard-code field names from my favorite >>>> search and display script, creating variables for each field and >>>> defining those variables at the top of the document. This works >>>> great. Now, I can re-purpose the script for another db and >>>> layout by >>>> just changing the field variables at the top of the page, >>>> instead of >>>> ripping apart the entire document. >>>> >>>> The second area I'm looking at is to reduce the repetition of >>>> repetitive code (example below actually has 10+ iterations) and use >>>> an iterative loop to accomplish the same, counting from 1 to n >>>> lines. >>>> >>>> Is that possible/reasonable/reccomended/etc? >>>> >>>> Thanks >>>> >>>> Jonathan >>>> >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Jonathan Schwartz >>>> FileMaker 8 Certified Developer >>>> Associate Member, FileMaker Solutions Alliance >>>> Schwartz & Company >>>> jonathan@eschwartz.com >>>> http://www.eschwartz.com >>>> http://www.exit445.com >>>> 415-381-1852 >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> >>> Jonathan Schwartz >>> FileMaker 8 Certified Developer >>> Associate Member, FileMaker Solutions Alliance >>> Schwartz & Company >>> jonathan@eschwartz.com >>> http://www.eschwartz.com >>> http://www.exit445.com >>> 415-381-1852 >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Sat Sep 9 19:05:48 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sat Sep 9 19:09:17 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: References: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> <275E50AD-26CE-4FDB-B3EE-1233FF2571C4@dbmscan.com> Message-ID: Hmmmm... So I'm asking classic questions now. I like the sound of that. Other have a different name for that. ;-) HOWEVER....I don't see how your example will allow me to pull the values out of several arrays at a time to compose the single (input) field I need. There's no mention of the second and third arrays. Let me think out loud... I have multiple arrays, each with 10 values: $fieldnames = array('A', 'B',...'J'); $fieldwidths = array('5', '10',...'5'); $fieldlabels = array('this', that',... 'the_other'); I need to construct the following 10 input tags in html: ... If I go back to Andy Gaunt's suggestion, but insert your array suggestion... '; $total = 10; $counter = 1; while ($counter <= $total) { echo ''; $ counter ++; } echo ''; ?> Does this work, in principle? I'm sure that the syntax is off. Jonathan At 8:37 PM -0400 9/9/06, DC wrote: >right, great question! > >that's a classic array usage question. you have to use the numeric >keys that come along for free in every simple array (associative >arrrays are arrays where the keys are 'named') or you can use >external counter variables to keep the multiple arrays in sync on >output if keys are not available. > > >($fieldnames as $key=>$fieldname); >echo ''; >} >echo '>'; >?> > > >cheers, >dan > >On Sep 9, 2006, at 8:02 PM, Jonathan Schwartz wrote: > >>Dan, >> >>Thanks for the tip. >> >>I switched over to creating arrays to hold the 10 values in 2 categories. >> >>And while I was able to use your suggested script to echo out the >>values in the first array, my success quickly went down the tubes >>when trying to repeat that process for the other three arrays, >>while attempting insert the values into a single line. >> >>I know this is wrong, but this is my last attempt before I ran out >>of patience: >> >> >>>($fieldnames as $fieldname); >>($fieldwidths as $fieldwidth); >>echo ''; >>} >>echo '>'; >>?> >> >> >>In short, I'm looking to extract the first value from each array >>for the first line, the second value from each array for the second >>line...for 10 lines. >> >>How does one extract one value from multiple arrays and then >>compile a single line of html based on those value? >> >>This is what I get for trying to be efficient. ;-) >> >>J >> >>>jonathan, >>> >>>unless your field names are purposefully named with number >>>endings, why don't you simplify it and remove the need for >>>$counter and while loop. it looks like you are trying to create >>>variable names on the fly by appending a number... if you really >>>want to do it this way you need to use 'varaible variables' but >>>they are pretty weird so it's best to keep it simple. try double >>>dollar sign $$term instead of \$term. but, really you should read >>>up on variable variables to get it right. >>> >>>if you want to make it simple, change the approach and make a >>>field name array: >>>just put the field names you want in an array at the top of the >>>page and iterate over the array to get your field names out into >>>the table. same thing with any fieldwidths or field values you >>>want. just make sure the arrays are all the same size. >>> >>>so instead of: >>> >>>> ... etc... >>> >>>use: >>>>>$fields_array = array('list', 'of', 'field', 'names','here'); >>>foreach ($fields_array as $fieldname) { >>> echo ''; >>>{ >>>?> >>> >>>HTH, >>>dan >>> >>>On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: >>> >>>>Andy, >>>> >>>>Thanks for the help. >>>> >>>>I understand the approach now, but can't get the code to work. I >>>>reworked it a couple dozen times and still am getting the literal >>>>value of "$term1" instead of the value of the variable, >>>>previously defined on the page. >>>> >>>>From the resulting html source code: >>>> >>>> >>>> >>>> >>>>Here's my current php code: >>>> >>>> >>>> >>>> >>>>>>>$total = 11; >>>>$counter = 1; >>>>while ($counter <= $total) { >>>> $beginning="\$term"; >>>> $termcurrent = $beginning.$counter; >>>> echo ''; >>>> $counter ++; } >>>>echo ""; >>>>?> >>>> >>>> >>>> >>>>Jonathan >>>> >>>>>Jonathon, >>>>> >>>>>Try the following. >>>>> >>>>>>>>>echo ''; >>>>>$total = 10; >>>>>$counter = 1; >>>>>while ($counter <= $total) { >>>>> echo '>>>>id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; >>>>> $ counter ++; } >>>>>echo ''; >>>>>?> >>>>> >>>>>Changing the value for the while statement will let you increase >>>>>or decrease >>>>>the number of cells created. >>>>> >>>>>Another option is a 'for' loop >>>>> >>>>> >>>>>$total = 20; >>>>>echo ''; >>>>>for($counter=0; $counter < $total; $counter++) { >>>>> echo '>>>>id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >>>>>} >>>>>echo ''; >>>>> >>>>> >>>>> >>>>> >>>>>Andy Gaunt >>>>>Office: 321.206.3658 >>>>>Mobile: 407.810.4722 >>>>>andy@fmpug.com >>>>>http://www.fmpug.com >>>>>2006 FileMaker Excellence Award Winner >>>>>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 >>>>>Jonathan Schwartz >>>>>Sent: Saturday, September 09, 2006 11:54 AM >>>>>To: FX.php Discussion List >>>>>Subject: [FX.php List] Creating Reusable Code >>>>> >>>>>Hi Folks, >>>>> >>>>>I'm attempting to get more efficient with scripting. >>>>> >>>>>My first step was to remove hard-code field names from my favorite >>>>>search and display script, creating variables for each field and >>>>>defining those variables at the top of the document. This works >>>>>great. Now, I can re-purpose the script for another db and layout by >>>>>just changing the field variables at the top of the page, instead of >>>>>ripping apart the entire document. >>>>> >>>>>The second area I'm looking at is to reduce the repetition of >>>>>repetitive code (example below actually has 10+ iterations) and use >>>>>an iterative loop to accomplish the same, counting from 1 to n lines. >>>>> >>>>>Is that possible/reasonable/reccomended/etc? >>>>> >>>>>Thanks >>>>> >>>>>Jonathan >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>-- >>>>> >>>>>Jonathan Schwartz >>>>>FileMaker 8 Certified Developer >>>>>Associate Member, FileMaker Solutions Alliance >>>>>Schwartz & Company >>>>>jonathan@eschwartz.com >>>>>http://www.eschwartz.com >>>>>http://www.exit445.com >>>>>415-381-1852 >>>>> >>>>>_______________________________________________ >>>>>FX.php_List mailing list >>>>>FX.php_List@mail.iviking.org >>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>>_______________________________________________ >>>>>FX.php_List mailing list >>>>>FX.php_List@mail.iviking.org >>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>>-- >>>> >>>>Jonathan Schwartz >>>>FileMaker 8 Certified Developer >>>>Associate Member, FileMaker Solutions Alliance >>>>Schwartz & Company >>>>jonathan@eschwartz.com >>>>http://www.eschwartz.com >>>>http://www.exit445.com >>>>415-381-1852 >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From andy at fmpug.com Sat Sep 9 19:33:45 2006 From: andy at fmpug.com (Andy Gaunt) Date: Sat Sep 9 19:34:02 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: Message-ID: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Jonathon, Close. Try this instead. $fieldname) { echo ''; } echo ''; ?> As Dan pointed out, simple arrays have number keys, so while using a single foreach loop on one array can yield values from any other arrays (as long as the values are matched correctly). Here the $key is the numeric value of the position in the array, so you don't even need a counter variable. HTH Andy Gaunt Office: 321.206.3658 Mobile: 407.810.4722 andy@fmpug.com http://www.fmpug.com 2006 FileMaker Excellence Award Winner 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 Jonathan Schwartz Sent: Saturday, September 09, 2006 9:06 PM To: FX.php Discussion List Subject: Re: [FX.php List] Creating Reusable Code Hmmmm... So I'm asking classic questions now. I like the sound of that. Other have a different name for that. ;-) HOWEVER....I don't see how your example will allow me to pull the values out of several arrays at a time to compose the single (input) field I need. There's no mention of the second and third arrays. Let me think out loud... I have multiple arrays, each with 10 values: $fieldnames = array('A', 'B',...'J'); $fieldwidths = array('5', '10',...'5'); $fieldlabels = array('this', that',... 'the_other'); I need to construct the following 10 input tags in html: ... If I go back to Andy Gaunt's suggestion, but insert your array suggestion... '; $total = 10; $counter = 1; while ($counter <= $total) { echo ''; $ counter ++; } echo ''; ?> Does this work, in principle? I'm sure that the syntax is off. Jonathan At 8:37 PM -0400 9/9/06, DC wrote: >right, great question! > >that's a classic array usage question. you have to use the numeric >keys that come along for free in every simple array (associative >arrrays are arrays where the keys are 'named') or you can use >external counter variables to keep the multiple arrays in sync on >output if keys are not available. > > >($fieldnames as $key=>$fieldname); >echo ''; >} >echo '>'; >?> > > >cheers, >dan > >On Sep 9, 2006, at 8:02 PM, Jonathan Schwartz wrote: > >>Dan, >> >>Thanks for the tip. >> >>I switched over to creating arrays to hold the 10 values in 2 categories. >> >>And while I was able to use your suggested script to echo out the >>values in the first array, my success quickly went down the tubes >>when trying to repeat that process for the other three arrays, >>while attempting insert the values into a single line. >> >>I know this is wrong, but this is my last attempt before I ran out >>of patience: >> >> >>>($fieldnames as $fieldname); >>($fieldwidths as $fieldwidth); >>echo ''; >>} >>echo '>'; >>?> >> >> >>In short, I'm looking to extract the first value from each array >>for the first line, the second value from each array for the second >>line...for 10 lines. >> >>How does one extract one value from multiple arrays and then >>compile a single line of html based on those value? >> >>This is what I get for trying to be efficient. ;-) >> >>J >> >>>jonathan, >>> >>>unless your field names are purposefully named with number >>>endings, why don't you simplify it and remove the need for >>>$counter and while loop. it looks like you are trying to create >>>variable names on the fly by appending a number... if you really >>>want to do it this way you need to use 'varaible variables' but >>>they are pretty weird so it's best to keep it simple. try double >>>dollar sign $$term instead of \$term. but, really you should read >>>up on variable variables to get it right. >>> >>>if you want to make it simple, change the approach and make a >>>field name array: >>>just put the field names you want in an array at the top of the >>>page and iterate over the array to get your field names out into >>>the table. same thing with any fieldwidths or field values you >>>want. just make sure the arrays are all the same size. >>> >>>so instead of: >>> >>>> ... etc... >>> >>>use: >>>>>$fields_array = array('list', 'of', 'field', 'names','here'); >>>foreach ($fields_array as $fieldname) { >>> echo ''; >>>{ >>>?> >>> >>>HTH, >>>dan >>> >>>On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: >>> >>>>Andy, >>>> >>>>Thanks for the help. >>>> >>>>I understand the approach now, but can't get the code to work. I >>>>reworked it a couple dozen times and still am getting the literal >>>>value of "$term1" instead of the value of the variable, >>>>previously defined on the page. >>>> >>>>From the resulting html source code: >>>> >>>> >>>> >>>> >>>>Here's my current php code: >>>> >>>> >>>> >>>> >>>>>>>$total = 11; >>>>$counter = 1; >>>>while ($counter <= $total) { >>>> $beginning="\$term"; >>>> $termcurrent = $beginning.$counter; >>>> echo ''; >>>> $counter ++; } >>>>echo ""; >>>>?> >>>> >>>> >>>> >>>>Jonathan >>>> >>>>>Jonathon, >>>>> >>>>>Try the following. >>>>> >>>>>>>>>echo ''; >>>>>$total = 10; >>>>>$counter = 1; >>>>>while ($counter <= $total) { >>>>> echo '>>>>id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; >>>>> $ counter ++; } >>>>>echo ''; >>>>>?> >>>>> >>>>>Changing the value for the while statement will let you increase >>>>>or decrease >>>>>the number of cells created. >>>>> >>>>>Another option is a 'for' loop >>>>> >>>>> >>>>>$total = 20; >>>>>echo ''; >>>>>for($counter=0; $counter < $total; $counter++) { >>>>> echo '>>>>id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >>>>>} >>>>>echo ''; >>>>> >>>>> >>>>> >>>>> >>>>>Andy Gaunt >>>>>Office: 321.206.3658 >>>>>Mobile: 407.810.4722 >>>>>andy@fmpug.com >>>>>http://www.fmpug.com >>>>>2006 FileMaker Excellence Award Winner >>>>>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 >>>>>Jonathan Schwartz >>>>>Sent: Saturday, September 09, 2006 11:54 AM >>>>>To: FX.php Discussion List >>>>>Subject: [FX.php List] Creating Reusable Code >>>>> >>>>>Hi Folks, >>>>> >>>>>I'm attempting to get more efficient with scripting. >>>>> >>>>>My first step was to remove hard-code field names from my favorite >>>>>search and display script, creating variables for each field and >>>>>defining those variables at the top of the document. This works >>>>>great. Now, I can re-purpose the script for another db and layout by >>>>>just changing the field variables at the top of the page, instead of >>>>>ripping apart the entire document. >>>>> >>>>>The second area I'm looking at is to reduce the repetition of >>>>>repetitive code (example below actually has 10+ iterations) and use >>>>>an iterative loop to accomplish the same, counting from 1 to n lines. >>>>> >>>>>Is that possible/reasonable/reccomended/etc? >>>>> >>>>>Thanks >>>>> >>>>>Jonathan >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>-- >>>>> >>>>>Jonathan Schwartz >>>>>FileMaker 8 Certified Developer >>>>>Associate Member, FileMaker Solutions Alliance >>>>>Schwartz & Company >>>>>jonathan@eschwartz.com >>>>>http://www.eschwartz.com >>>>>http://www.exit445.com >>>>>415-381-1852 >>>>> >>>>>_______________________________________________ >>>>>FX.php_List mailing list >>>>>FX.php_List@mail.iviking.org >>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>>_______________________________________________ >>>>>FX.php_List mailing list >>>>>FX.php_List@mail.iviking.org >>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>>-- >>>> >>>>Jonathan Schwartz >>>>FileMaker 8 Certified Developer >>>>Associate Member, FileMaker Solutions Alliance >>>>Schwartz & Company >>>>jonathan@eschwartz.com >>>>http://www.eschwartz.com >>>>http://www.exit445.com >>>>415-381-1852 >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Sat Sep 9 19:56:40 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sat Sep 9 19:59:18 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: <000301c6d479$2912d830$0202a8c0@SHUTTLE> References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: Oh! OK. I get it. The foreach (loop?) walks the first array and uses the built in $key. Then, at the same time, you grab the value from the other arrays using the $key from the first array. No need to do the foreach for every array. That makes sense. And it works. By the way, I was able to get the hybrid Andy/Dan script to work just before receiving your last email, using the counter. The counter doesn't hurt, but it isn't needed in this case either. Just had to start the counter at "0", not "1", to accomodate the way the arrays work. ;-) So now, with this enhancement, I've managed to separate the data from the script almost completely. No I can re-purpose the script for new projects and have it working in minutes...not days. That's a good thing. ;-) Thanks very much folks. I assume that this is the natural and desired progression of things in order to do better and more efficient work? Jonathan At 9:33 PM -0400 9/9/06, Andy Gaunt wrote: >Jonathon, > >Close. > >Try this instead. > > $fieldnames = array('A', 'B','J'); > $fieldwidths = array('5', '10','5'); > $fieldlabels = array('this', 'that','the_other'); > >?> > >foreach ($fieldnames as $key=>$fieldname) >{ > echo 'id="'.$fieldlabels[$key].'" >'; >} echo ''; ?> > > > >As Dan pointed out, simple arrays have number keys, so while using a single >foreach loop on one array can yield values from any other arrays (as long as >the values are matched correctly). > >Here the $key is the numeric value of the position in the array, so you >don't even need a counter variable. > >HTH > >Andy Gaunt >Office: 321.206.3658 >Mobile: 407.810.4722 >andy@fmpug.com >http://www.fmpug.com > >2006 FileMaker Excellence Award Winner >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 Jonathan Schwartz >Sent: Saturday, September 09, 2006 9:06 PM >To: FX.php Discussion List >Subject: Re: [FX.php List] Creating Reusable Code > >Hmmmm... > >So I'm asking classic questions now. I like the sound of that. Other >have a different name for that. ;-) > >HOWEVER....I don't see how your example will allow me to pull the >values out of several arrays at a time to compose the single (input) >field I need. There's no mention of the second and third arrays. > >Let me think out loud... > >I have multiple arrays, each with 10 values: > $fieldnames = array('A', 'B',...'J'); > $fieldwidths = array('5', '10',...'5'); > $fieldlabels = array('this', that',... 'the_other'); > >I need to construct the following 10 input tags in html: > > > ... > > > >If I go back to Andy Gaunt's suggestion, but insert your array suggestion... > >echo ''; >$total = 10; >$counter = 1; >while ($counter <= $total) { > echo 'id="'.$fieldlabels[$ counter].'" size="'.$fieldwidths[$ counter].'">'; > $ counter ++; >} >echo ''; >?> > >Does this work, in principle? I'm sure that the syntax is off. > >Jonathan > > > >At 8:37 PM -0400 9/9/06, DC wrote: >>right, great question! >> >>that's a classic array usage question. you have to use the numeric >>keys that come along for free in every simple array (associative >>arrrays are arrays where the keys are 'named') or you can use >>external counter variables to keep the multiple arrays in sync on >>output if keys are not available. >> >> >>>($fieldnames as $key=>$fieldname); >>echo ''; > >} >>echo '>'; >>?> >> >> >>cheers, >>dan >> >>On Sep 9, 2006, at 8:02 PM, Jonathan Schwartz wrote: >> >>>Dan, >>> >>>Thanks for the tip. > >> >>>I switched over to creating arrays to hold the 10 values in 2 categories. >>> >>>And while I was able to use your suggested script to echo out the >>>values in the first array, my success quickly went down the tubes >>>when trying to repeat that process for the other three arrays, >>>while attempting insert the values into a single line. >>> >>>I know this is wrong, but this is my last attempt before I ran out >>>of patience: >>> >>> >>>>>($fieldnames as $fieldname); >>>($fieldwidths as $fieldwidth); >>>echo ''; >>>} >>>echo '>'; >>>?> >>> >>> >>>In short, I'm looking to extract the first value from each array >>>for the first line, the second value from each array for the second >>>line...for 10 lines. >>> >>>How does one extract one value from multiple arrays and then >>>compile a single line of html based on those value? >>> >>>This is what I get for trying to be efficient. ;-) >>> >>>J >>> >>>>jonathan, >>>> >>>>unless your field names are purposefully named with number >>>>endings, why don't you simplify it and remove the need for >>>>$counter and while loop. it looks like you are trying to create >>>>variable names on the fly by appending a number... if you really >>>>want to do it this way you need to use 'varaible variables' but >>>>they are pretty weird so it's best to keep it simple. try double >>>>dollar sign $$term instead of \$term. but, really you should read >>>>up on variable variables to get it right. >>>> >>>>if you want to make it simple, change the approach and make a >>>>field name array: >>>>just put the field names you want in an array at the top of the >>>>page and iterate over the array to get your field names out into >>>>the table. same thing with any fieldwidths or field values you >>>>want. just make sure the arrays are all the same size. >>>> >>>>so instead of: >>>> >>>>> ... etc... >>>> >>>>use: >>>>>>>$fields_array = array('list', 'of', 'field', 'names','here'); >>>>foreach ($fields_array as $fieldname) { >>>> echo ''; >>>>{ >>>>?> >>>> >>>>HTH, >>>>dan >>>> >>>>On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: >>>> >>>>>Andy, >>>>> >>>>>Thanks for the help. >>>>> >>>>>I understand the approach now, but can't get the code to work. I >>>>>reworked it a couple dozen times and still am getting the literal >>>>>value of "$term1" instead of the value of the variable, >>>>>previously defined on the page. >>>>> >>>>>From the resulting html source code: >>>>> >>>>> >>>>> >>>>> >>>>>Here's my current php code: >>>>> >>>>> >>>>> >>>>> >>>>>>>>>$total = 11; >>>>>$counter = 1; >>>>>while ($counter <= $total) { >>>>> $beginning="\$term"; >>>>> $termcurrent = $beginning.$counter; >>>>> echo ''; >>>>> $counter ++; } >>>>>echo ""; >>>>>?> >>>>> >>>>> >>>>> >>>>>Jonathan >>>>> >>>>>>Jonathon, >>>>>> >>>>>>Try the following. >>>>>> >>>>>>>>>>>echo ''; >>>>>>$total = 10; >>>>>>$counter = 1; >>>>>>while ($counter <= $total) { >>>>>> echo '>>>>>id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; >>>>>> $ counter ++; } >>>>>>echo ''; >>>>>>?> >>>>>> >>>>>>Changing the value for the while statement will let you increase >>>>>>or decrease >>>>>>the number of cells created. >>>>>> >>>>>>Another option is a 'for' loop >>>>>> >>>>>> >>>>>>$total = 20; >>>>>>echo ''; >>>>>>for($counter=0; $counter < $total; $counter++) { >>>>>> echo '>>>>>id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >>>>>>} >>>>>>echo ''; >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>Andy Gaunt >>>>>>Office: 321.206.3658 >>>>>>Mobile: 407.810.4722 >>>>>>andy@fmpug.com >>>>>>http://www.fmpug.com >>>>>>2006 FileMaker Excellence Award Winner > >>>>>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 >>>>>>Jonathan Schwartz >>>>>>Sent: Saturday, September 09, 2006 11:54 AM >>>>>>To: FX.php Discussion List >>>>>>Subject: [FX.php List] Creating Reusable Code >>>>>> >>>>>>Hi Folks, >>>>>> >>>>>>I'm attempting to get more efficient with scripting. >>>>>> >>>>>>My first step was to remove hard-code field names from my favorite >>>>>>search and display script, creating variables for each field and >>>>>>defining those variables at the top of the document. This works >>>>>>great. Now, I can re-purpose the script for another db and layout by >>>>>>just changing the field variables at the top of the page, instead of >>>>>>ripping apart the entire document. >>>>>> >>>>>>The second area I'm looking at is to reduce the repetition of >>>>>>repetitive code (example below actually has 10+ iterations) and use >>>>>>an iterative loop to accomplish the same, counting from 1 to n lines. >>>>>> >>>>>>Is that possible/reasonable/reccomended/etc? >>>>>> >>>>>>Thanks >>>>>> >>>>>>Jonathan >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>-- >>>>>> >>>>>>Jonathan Schwartz >>>>>>FileMaker 8 Certified Developer >>>>>>Associate Member, FileMaker Solutions Alliance >>>>>>Schwartz & Company >>>>>>jonathan@eschwartz.com >>>>>>http://www.eschwartz.com >>>>>>http://www.exit445.com >>>>>>415-381-1852 >>>>>> >>>>>>_______________________________________________ >>>>>>FX.php_List mailing list >>>>>>FX.php_List@mail.iviking.org >>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> >>>>>>_______________________________________________ >>>>>>FX.php_List mailing list >>>>>>FX.php_List@mail.iviking.org >>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>>-- >>>>> >>>>>Jonathan Schwartz >>>>>FileMaker 8 Certified Developer >>>>>Associate Member, FileMaker Solutions Alliance >>>>>Schwartz & Company >>>>>jonathan@eschwartz.com >>>>>http://www.eschwartz.com >>>>>http://www.exit445.com >>>>>415-381-1852 >>>>> >>>>>_______________________________________________ >>>>>FX.php_List mailing list >>>>>FX.php_List@mail.iviking.org >>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>>-- >>> >>>Jonathan Schwartz >>>FileMaker 8 Certified Developer >>>Associate Member, FileMaker Solutions Alliance >>>Schwartz & Company >>>jonathan@eschwartz.com >>>http://www.eschwartz.com >>>http://www.exit445.com >>>415-381-1852 >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > > >-- > >Jonathan Schwartz >FileMaker 8 Certified Developer >Associate Member, FileMaker Solutions Alliance >Schwartz & Company >jonathan@eschwartz.com >http://www.eschwartz.com >http://www.exit445.com >415-381-1852 > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Sun Sep 10 01:07:54 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sun Sep 10 01:09:18 2006 Subject: [FX.php List] Creating Reusable Code - Part II In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: This is the continuing mini-challenge of creating re-usable modules of scripting that can be easily re-purposed. Thanks to the Andy and Dan, I was able successfully pry the data and scripting apart, using a series of arrays to store the variables rather than have them appear hard-coded into the script. This works fine. My next step was to remove the arrays from the script altogether and put the arrays in a separate php (arraysdata.php) file. I used an include to have the arrays load when the primary script page loads. This works fine. Then, I created a second copy of the arrays in the same file which define a completely different database, layout and field names. I commented out the first set and used just the second set. This works fine. So now my challenge is to figure out how to set things up to have the right set of arrays load, transforming the primary script from Purpose A to Purpose B. Users arrive to pages by either clicking on a navigation bar which contains a link (searchPage.php), or, they might clink on a page which delivers them to the new page. I know I need to set a variable that defines the current arrays that should be loaded and remain loaded for the current searchPage until the users leave the page. With that variable set, I could use an if/else statement in the arraydata.php page to load the desired set of array data. I'm not sure whether to use a session variable or a regular variable, and more importantly, how to do that from a URL link (searchPage.php?). I did try adding a parameter to the searchPage.php link: searchPage.php?arrayset=A. Then, I added a statement to the beginnig of the target page (searchPage.php) to pick up the variable: $arrayset = $_GET['arrayset']. It did pick up the variable. However, I would lose the variable after the first search was performed. I also tried setting the variable to a session variable, but then it would also be reset after the first search. If I'm on the right track, I guess that I need to work out how to keep that variable set for the duration of the user session on that page, until the next array set is required. If I'm totally wrong, I'd like to know that now. Am I on the right track? jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From ggt667 at gmail.com Sun Sep 10 04:31:48 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 10 04:32:12 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: Hmm my forms have 4 different field arrays or s = submittable p = parsing required k = key a = action ggt667 On 9/10/06, Jonathan Schwartz wrote: > Oh! OK. I get it. > > The foreach (loop?) walks the first array and uses the built in $key. > Then, at the same time, you grab the value from the other arrays > using the $key from the first array. No need to do the foreach for > every array. That makes sense. And it works. > > By the way, I was able to get the hybrid Andy/Dan script to work just > before receiving your last email, using the counter. The counter > doesn't hurt, but it isn't needed in this case either. Just had to > start the counter at "0", not "1", to accomodate the way the arrays > work. ;-) > > So now, with this enhancement, I've managed to separate the data from > the script almost completely. No I can re-purpose the script for new > projects and have it working in minutes...not days. > > That's a good thing. ;-) > > Thanks very much folks. > > I assume that this is the natural and desired progression of things > in order to do better and more efficient work? > > Jonathan > > > > At 9:33 PM -0400 9/9/06, Andy Gaunt wrote: > >Jonathon, > > > >Close. > > > >Try this instead. > > > > > $fieldnames = array('A', 'B','J'); > > $fieldwidths = array('5', '10','5'); > > $fieldlabels = array('this', 'that','the_other'); > > > >?> > > > > >foreach ($fieldnames as $key=>$fieldname) > >{ > > echo ' >id="'.$fieldlabels[$key].'" >'; > >} echo ''; ?> > > > > > > > >As Dan pointed out, simple arrays have number keys, so while using a single > >foreach loop on one array can yield values from any other arrays (as long as > >the values are matched correctly). > > > >Here the $key is the numeric value of the position in the array, so you > >don't even need a counter variable. > > > >HTH > > > >Andy Gaunt > >Office: 321.206.3658 > >Mobile: 407.810.4722 > >andy@fmpug.com > >http://www.fmpug.com > > > >2006 FileMaker Excellence Award Winner > >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 Jonathan Schwartz > >Sent: Saturday, September 09, 2006 9:06 PM > >To: FX.php Discussion List > >Subject: Re: [FX.php List] Creating Reusable Code > > > >Hmmmm... > > > >So I'm asking classic questions now. I like the sound of that. Other > >have a different name for that. ;-) > > > >HOWEVER....I don't see how your example will allow me to pull the > >values out of several arrays at a time to compose the single (input) > >field I need. There's no mention of the second and third arrays. > > > >Let me think out loud... > > > >I have multiple arrays, each with 10 values: > > $fieldnames = array('A', 'B',...'J'); > > $fieldwidths = array('5', '10',...'5'); > > $fieldlabels = array('this', that',... 'the_other'); > > > >I need to construct the following 10 input tags in html: > > > > > > ... > > > > > > > >If I go back to Andy Gaunt's suggestion, but insert your array suggestion... > > > > >echo ''; > >$total = 10; > >$counter = 1; > >while ($counter <= $total) { > > echo ' >id="'.$fieldlabels[$ counter].'" size="'.$fieldwidths[$ counter].'">'; > > $ counter ++; > >} > >echo ''; > >?> > > > >Does this work, in principle? I'm sure that the syntax is off. > > > >Jonathan > > > > > > > >At 8:37 PM -0400 9/9/06, DC wrote: > >>right, great question! > >> > >>that's a classic array usage question. you have to use the numeric > >>keys that come along for free in every simple array (associative > >>arrrays are arrays where the keys are 'named') or you can use > >>external counter variables to keep the multiple arrays in sync on > >>output if keys are not available. > >> > >> > >> >>($fieldnames as $key=>$fieldname); > >>echo ''; > > >} > >>echo '>'; > >>?> > >> > >> > >>cheers, > >>dan > >> > >>On Sep 9, 2006, at 8:02 PM, Jonathan Schwartz wrote: > >> > >>>Dan, > >>> > >>>Thanks for the tip. > > >> > >>>I switched over to creating arrays to hold the 10 values in 2 categories. > >>> > >>>And while I was able to use your suggested script to echo out the > >>>values in the first array, my success quickly went down the tubes > >>>when trying to repeat that process for the other three arrays, > >>>while attempting insert the values into a single line. > >>> > >>>I know this is wrong, but this is my last attempt before I ran out > >>>of patience: > >>> > >>> > >>> >>>($fieldnames as $fieldname); > >>>($fieldwidths as $fieldwidth); > >>>echo ''; > >>>} > >>>echo '>'; > >>>?> > >>> > >>> > >>>In short, I'm looking to extract the first value from each array > >>>for the first line, the second value from each array for the second > >>>line...for 10 lines. > >>> > >>>How does one extract one value from multiple arrays and then > >>>compile a single line of html based on those value? > >>> > >>>This is what I get for trying to be efficient. ;-) > >>> > >>>J > >>> > >>>>jonathan, > >>>> > >>>>unless your field names are purposefully named with number > >>>>endings, why don't you simplify it and remove the need for > >>>>$counter and while loop. it looks like you are trying to create > >>>>variable names on the fly by appending a number... if you really > >>>>want to do it this way you need to use 'varaible variables' but > >>>>they are pretty weird so it's best to keep it simple. try double > >>>>dollar sign $$term instead of \$term. but, really you should read > >>>>up on variable variables to get it right. > >>>> > >>>>if you want to make it simple, change the approach and make a > >>>>field name array: > >>>>just put the field names you want in an array at the top of the > >>>>page and iterate over the array to get your field names out into > >>>>the table. same thing with any fieldwidths or field values you > >>>>want. just make sure the arrays are all the same size. > >>>> > >>>>so instead of: > >>>> > >>>>> ... etc... > >>>> > >>>>use: > >>>> >>>>$fields_array = array('list', 'of', 'field', 'names','here'); > >>>>foreach ($fields_array as $fieldname) { > >>>> echo ''; > >>>>{ > >>>>?> > >>>> > >>>>HTH, > >>>>dan > >>>> > >>>>On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: > >>>> > >>>>>Andy, > >>>>> > >>>>>Thanks for the help. > >>>>> > >>>>>I understand the approach now, but can't get the code to work. I > >>>>>reworked it a couple dozen times and still am getting the literal > >>>>>value of "$term1" instead of the value of the variable, > >>>>>previously defined on the page. > >>>>> > >>>>>From the resulting html source code: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>Here's my current php code: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> >>>>>$total = 11; > >>>>>$counter = 1; > >>>>>while ($counter <= $total) { > >>>>> $beginning="\$term"; > >>>>> $termcurrent = $beginning.$counter; > >>>>> echo ''; > >>>>> $counter ++; } > >>>>>echo ""; > >>>>>?> > >>>>> > >>>>> > >>>>> > >>>>>Jonathan > >>>>> > >>>>>>Jonathon, > >>>>>> > >>>>>>Try the following. > >>>>>> > >>>>>> >>>>>>echo ''; > >>>>>>$total = 10; > >>>>>>$counter = 1; > >>>>>>while ($counter <= $total) { > >>>>>> echo ' >>>>>>id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; > >>>>>> $ counter ++; } > >>>>>>echo ''; > >>>>>>?> > >>>>>> > >>>>>>Changing the value for the while statement will let you increase > >>>>>>or decrease > >>>>>>the number of cells created. > >>>>>> > >>>>>>Another option is a 'for' loop > >>>>>> > >>>>>> > >>>>>>$total = 20; > >>>>>>echo ''; > >>>>>>for($counter=0; $counter < $total; $counter++) { > >>>>>> echo ' >>>>>>id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; > >>>>>>} > >>>>>>echo ''; > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>Andy Gaunt > >>>>>>Office: 321.206.3658 > >>>>>>Mobile: 407.810.4722 > >>>>>>andy@fmpug.com > >>>>>>http://www.fmpug.com > >>>>>>2006 FileMaker Excellence Award Winner > > >>>>>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 > >>>>>>Jonathan Schwartz > >>>>>>Sent: Saturday, September 09, 2006 11:54 AM > >>>>>>To: FX.php Discussion List > >>>>>>Subject: [FX.php List] Creating Reusable Code > >>>>>> > >>>>>>Hi Folks, > >>>>>> > >>>>>>I'm attempting to get more efficient with scripting. > >>>>>> > >>>>>>My first step was to remove hard-code field names from my favorite > >>>>>>search and display script, creating variables for each field and > >>>>>>defining those variables at the top of the document. This works > >>>>>>great. Now, I can re-purpose the script for another db and layout by > >>>>>>just changing the field variables at the top of the page, instead of > >>>>>>ripping apart the entire document. > >>>>>> > >>>>>>The second area I'm looking at is to reduce the repetition of > >>>>>>repetitive code (example below actually has 10+ iterations) and use > >>>>>>an iterative loop to accomplish the same, counting from 1 to n lines. > >>>>>> > >>>>>>Is that possible/reasonable/reccomended/etc? > >>>>>> > >>>>>>Thanks > >>>>>> > >>>>>>Jonathan > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>-- > >>>>>> > >>>>>>Jonathan Schwartz > >>>>>>FileMaker 8 Certified Developer > >>>>>>Associate Member, FileMaker Solutions Alliance > >>>>>>Schwartz & Company > >>>>>>jonathan@eschwartz.com > >>>>>>http://www.eschwartz.com > >>>>>>http://www.exit445.com > >>>>>>415-381-1852 > >>>>>> > >>>>>>_______________________________________________ > >>>>>>FX.php_List mailing list > >>>>>>FX.php_List@mail.iviking.org > >>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list > >>>>>> > >>>>>> > >>>>>>_______________________________________________ > >>>>>>FX.php_List mailing list > >>>>>>FX.php_List@mail.iviking.org > >>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list > >>>>> > >>>>> > >>>>>-- > >>>>> > >>>>>Jonathan Schwartz > >>>>>FileMaker 8 Certified Developer > >>>>>Associate Member, FileMaker Solutions Alliance > >>>>>Schwartz & Company > >>>>>jonathan@eschwartz.com > >>>>>http://www.eschwartz.com > >>>>>http://www.exit445.com > >>>>>415-381-1852 > >>>>> > >>>>>_______________________________________________ > >>>>>FX.php_List mailing list > >>>>>FX.php_List@mail.iviking.org > >>>>>http://www.iviking.org/mailman/listinfo/fx.php_list > >>>> > >>>>_______________________________________________ > >>>>FX.php_List mailing list > >>>>FX.php_List@mail.iviking.org > >>>>http://www.iviking.org/mailman/listinfo/fx.php_list > >>> > >>> > >>>-- > >>> > >>>Jonathan Schwartz > >>>FileMaker 8 Certified Developer > >>>Associate Member, FileMaker Solutions Alliance > >>>Schwartz & Company > >>>jonathan@eschwartz.com > >>>http://www.eschwartz.com > >>>http://www.exit445.com > >>>415-381-1852 > >>> > >>>_______________________________________________ > >>>FX.php_List mailing list > >>>FX.php_List@mail.iviking.org > >>>http://www.iviking.org/mailman/listinfo/fx.php_list > >> > >>_______________________________________________ > >>FX.php_List mailing list > >>FX.php_List@mail.iviking.org > >>http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > >-- > > > >Jonathan Schwartz > >FileMaker 8 Certified Developer > >Associate Member, FileMaker Solutions Alliance > >Schwartz & Company > >jonathan@eschwartz.com > >http://www.eschwartz.com > >http://www.exit445.com > >415-381-1852 > > > >_______________________________________________ > >FX.php_List mailing list > >FX.php_List@mail.iviking.org > >http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > >_______________________________________________ > >FX.php_List mailing list > >FX.php_List@mail.iviking.org > >http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > 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 Sun Sep 10 14:55:19 2006 From: dan.cynosure at dbmscan.com (DC) Date: Mon Sep 11 08:17:20 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: References: <003901c6d42d$ce6bdcb0$0202a8c0@SHUTTLE> <275E50AD-26CE-4FDB-B3EE-1233FF2571C4@dbmscan.com> Message-ID: <18DF54A0-76E0-4D8D-97AD-67FF98EC7373@dbmscan.com> Great to see you got it working. BTW, the example I gave did have the $key=>$fieldnames and $fieldwidth [$key] change. You have to look closely to see it. But, I noticed that my code snippet had a syntax error with the foreach loop so it wouldn't have run out of the box anyhow. dan On Sep 9, 2006, at 9:05 PM, Jonathan Schwartz wrote: > HOWEVER....I don't see how your example will allow me to pull the > values out of several arrays at a time to compose the single > (input) field I need. There's no mention of the second and third > arrays. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060910/60e499e6/attachment-0001.html From dan.cynosure at dbmscan.com Sun Sep 10 15:19:37 2006 From: dan.cynosure at dbmscan.com (DC) Date: Mon Sep 11 08:17:22 2006 Subject: [FX.php List] Creating Reusable Code - Part II In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: <236DB06C-9752-46E6-8F7B-EB138AFF09CF@dbmscan.com> On Sep 10, 2006, at 3:07 AM, Jonathan Schwartz wrote: > If I'm on the right track, I guess that I need to work out how to > keep that variable set for the duration of the user session on that > page, until the next array set is required. It looks to me like you're on the right track. Try testing whether the session variable is set before you set it. That will tell you if it is a new request to the search page or a subsequent modification of search terms. http://www.php.net/isset The PHP manual is great. Two thing I always do when I'm learning about a new function I've never used before: 1) Check the manual for other related functions 2) Read the user comments and see if there are any examples of what I am trying to do with the function. There usually are. Cheers, dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060910/65090fe5/attachment-0001.html From jonathan at eschwartz.com Sun Sep 10 23:57:08 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Mon Sep 11 08:17:23 2006 Subject: [FX.php List] Creating Reusable Code In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: Actually, mine do too. I dumbed it down to simplify the question. But...mine aren't the same as yours. Will have to think a bit about your assortment. J >Hmm my forms have 4 different field arrays > > > > > or > > > >s = submittable >p = parsing required >k = key >a = action > >ggt667 > >On 9/10/06, Jonathan Schwartz wrote: >>Oh! OK. I get it. >> >>The foreach (loop?) walks the first array and uses the built in $key. >>Then, at the same time, you grab the value from the other arrays >>using the $key from the first array. No need to do the foreach for >>every array. That makes sense. And it works. >> >>By the way, I was able to get the hybrid Andy/Dan script to work just >>before receiving your last email, using the counter. The counter >>doesn't hurt, but it isn't needed in this case either. Just had to >>start the counter at "0", not "1", to accomodate the way the arrays >>work. ;-) >> >>So now, with this enhancement, I've managed to separate the data from >>the script almost completely. No I can re-purpose the script for new >>projects and have it working in minutes...not days. >> >>That's a good thing. ;-) >> >>Thanks very much folks. >> >>I assume that this is the natural and desired progression of things >>in order to do better and more efficient work? >> >>Jonathan >> >> >> >>At 9:33 PM -0400 9/9/06, Andy Gaunt wrote: >>>Jonathon, >>> >>>Close. >>> >>>Try this instead. >>> >>>>> $fieldnames = array('A', 'B','J'); >>> $fieldwidths = array('5', '10','5'); >>> $fieldlabels = array('this', 'that','the_other'); >>> >>>?> >>> >>>>>foreach ($fieldnames as $key=>$fieldname) >>>{ >>> echo '>>id="'.$fieldlabels[$key].'" >'; >>>} echo ''; ?> >>> >>> >>> >>>As Dan pointed out, simple arrays have number keys, so while using a single >>>foreach loop on one array can yield values from any other arrays (as long as >>>the values are matched correctly). >>> >>>Here the $key is the numeric value of the position in the array, so you >>>don't even need a counter variable. >>> >>>HTH >>> >>>Andy Gaunt >>>Office: 321.206.3658 >>>Mobile: 407.810.4722 >>>andy@fmpug.com >>>http://www.fmpug.com >>> >>>2006 FileMaker Excellence Award Winner >>>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 Jonathan Schwartz >>>Sent: Saturday, September 09, 2006 9:06 PM >>>To: FX.php Discussion List >>>Subject: Re: [FX.php List] Creating Reusable Code >>> >>>Hmmmm... >>> >>>So I'm asking classic questions now. I like the sound of that. Other >>>have a different name for that. ;-) >>> >>>HOWEVER....I don't see how your example will allow me to pull the >>>values out of several arrays at a time to compose the single (input) >>>field I need. There's no mention of the second and third arrays. >>> >>>Let me think out loud... >>> >>>I have multiple arrays, each with 10 values: >>> $fieldnames = array('A', 'B',...'J'); >>> $fieldwidths = array('5', '10',...'5'); >>> $fieldlabels = array('this', that',... 'the_other'); >>> >>>I need to construct the following 10 input tags in html: >>> >>> >>> ... >>> >>> >>> >>>If I go back to Andy Gaunt's suggestion, but insert your array suggestion... >>> >>>>>echo ''; >>>$total = 10; >>>$counter = 1; >>>while ($counter <= $total) { >>> echo '> >id="'.$fieldlabels[$ counter].'" size="'.$fieldwidths[$ counter].'">'; >>> $ counter ++; >>>} >>>echo ''; >>>?> >>> >>>Does this work, in principle? I'm sure that the syntax is off. >>> >>>Jonathan >>> >>> >>> >>>At 8:37 PM -0400 9/9/06, DC wrote: >>>>right, great question! >>>> >>>>that's a classic array usage question. you have to use the numeric >>>>keys that come along for free in every simple array (associative >>>>arrrays are arrays where the keys are 'named') or you can use >>>>external counter variables to keep the multiple arrays in sync on >>>>output if keys are not available. >>>> >>>> >>>>>>>($fieldnames as $key=>$fieldname); >>>>echo ''; >>> >} >>>>echo '>'; >>>>?> >>>> >>>> >>>>cheers, >>>>dan >>>> >>>>On Sep 9, 2006, at 8:02 PM, Jonathan Schwartz wrote: >>>> >>>>>Dan, >>>>> >>>>>Thanks for the tip. >>> >> >>>>>I switched over to creating arrays to hold the 10 values in 2 categories. >>>>> >>>>>And while I was able to use your suggested script to echo out the >>>>>values in the first array, my success quickly went down the tubes >>>>>when trying to repeat that process for the other three arrays, >>>>>while attempting insert the values into a single line. >>>>> >>>>>I know this is wrong, but this is my last attempt before I ran out >>>>>of patience: >>>>> >>>>> >>>>>>>>>($fieldnames as $fieldname); >>>>>($fieldwidths as $fieldwidth); >>>>>echo ''; >>>>>} >>>>>echo '>'; >>>>>?> >>>>> >>>>> >>>>>In short, I'm looking to extract the first value from each array >>>>>for the first line, the second value from each array for the second >>>>>line...for 10 lines. >>>>> >>>>>How does one extract one value from multiple arrays and then >>>>>compile a single line of html based on those value? >>>>> >>>>>This is what I get for trying to be efficient. ;-) >>>>> >>>>>J >>>>> >>>>>>jonathan, >>>>>> >>>>>>unless your field names are purposefully named with number >>>>>>endings, why don't you simplify it and remove the need for >>>>>>$counter and while loop. it looks like you are trying to create >>>>>>variable names on the fly by appending a number... if you really >>>>>>want to do it this way you need to use 'varaible variables' but >>>>>>they are pretty weird so it's best to keep it simple. try double >>>>>>dollar sign $$term instead of \$term. but, really you should read >>>>>>up on variable variables to get it right. >>>>>> >>>>>>if you want to make it simple, change the approach and make a >>>>>>field name array: >>>>>>just put the field names you want in an array at the top of the >>>>>>page and iterate over the array to get your field names out into >>>>>>the table. same thing with any fieldwidths or field values you >>>>>>want. just make sure the arrays are all the same size. >>>>>> >>>>>>so instead of: >>>>>> >>>>>>> ... etc... >>>>>> >>>>>>use: >>>>>>>>>>>$fields_array = array('list', 'of', 'field', 'names','here'); >>>>>>foreach ($fields_array as $fieldname) { >>>>>> echo ''; >>>>>>{ >>>>>>?> >>>>>> >>>>>>HTH, >>>>>>dan >>>>>> >>>>>>On Sep 9, 2006, at 6:06 PM, Jonathan Schwartz wrote: >>>>>> >>>>>>>Andy, >>>>>>> >>>>>>>Thanks for the help. >>>>>>> >>>>>>>I understand the approach now, but can't get the code to work. I >>>>>>>reworked it a couple dozen times and still am getting the literal >>>>>>>value of "$term1" instead of the value of the variable, >>>>>>>previously defined on the page. >>>>>>> >>>>>>>From the resulting html source code: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>Here's my current php code: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>>>>>$total = 11; >>>>>>>$counter = 1; >>>>>>>while ($counter <= $total) { >>>>>>> $beginning="\$term"; >>>>>>> $termcurrent = $beginning.$counter; >>>>>>> echo ''; >>>>>>> $counter ++; } >>>>>>>echo ""; >>>>>>>?> >>>>>>> >>>>>>> >>>>>>> >>>>>>>Jonathan >>>>>>> >>>>>>>>Jonathon, >>>>>>>> >>>>>>>>Try the following. >>>>>>>> >>>>>>>>>>>>>>>echo ''; >>>>>>>>$total = 10; >>>>>>>>$counter = 1; >> >>>>>>while ($counter <= $total) { >>>>>>>> echo '>>>>>>>id="'.$term.$ counter.'" size="'.$termwidth.$ counter.'">'; >>>>>>>> $ counter ++; } >>>>>>>>echo ''; >>>>>>>>?> >>>>>>>> >>>>>>>>Changing the value for the while statement will let you increase >>>>>>>>or decrease >>>>>>>>the number of cells created. >>>>>>>> >>>>>>>>Another option is a 'for' loop >>>>>>>> >>>>>>>> >>>>>>>>$total = 20; >>>>>>>>echo ''; >>>>>>>>for($counter=0; $counter < $total; $counter++) { >>>>>>>> echo '>>>>>>>id="'.$term.$counter.'" size="'.$termwidth.$counter.'">'; >>>>>>>>} >>>>>>>>echo ''; >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>Andy Gaunt >>>>>>>>Office: 321.206.3658 >>>>>>>>Mobile: 407.810.4722 >>>>>>>>andy@fmpug.com >>>>>>>>http://www.fmpug.com >>>>>>>>2006 FileMaker Excellence Award Winner >>> >>>>>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 >>>>>>>>Jonathan Schwartz >>>>>>>>Sent: Saturday, September 09, 2006 11:54 AM >>>>>>>>To: FX.php Discussion List >>>>>>>>Subject: [FX.php List] Creating Reusable Code >>>>>>>> >>>>>>>>Hi Folks, >>>>>>>> >>>>>>>>I'm attempting to get more efficient with scripting. >>>>>>>> >>>>>>>>My first step was to remove hard-code field names from my favorite >>>>>>>>search and display script, creating variables for each field and >>>>>>>>defining those variables at the top of the document. This works >>>>>>>>great. Now, I can re-purpose the script for another db and layout by >>>>>>>>just changing the field variables at the top of the page, instead of >>>>>>>>ripping apart the entire document. >>>>>>>> >>>>>>>>The second area I'm looking at is to reduce the repetition of >>>>>>>>repetitive code (example below actually has 10+ iterations) and use >>>>>>>>an iterative loop to accomplish the same, counting from 1 to n lines. >>>>>>>> >>>>>>>>Is that possible/reasonable/reccomended/etc? >>>>>>>> >>>>>>>>Thanks >>>>>>>> >>>>>>>>Jonathan >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>-- >>>>>>>> >>>>>>>>Jonathan Schwartz >>>>>>>>FileMaker 8 Certified Developer >>>>>>>>Associate Member, FileMaker Solutions Alliance >>>>>>>>Schwartz & Company >>>>>>>>jonathan@eschwartz.com >>>>>>>>http://www.eschwartz.com >>>>>>>>http://www.exit445.com >>>>>>>>415-381-1852 >>>>>>>> >>>>>>>>_______________________________________________ >>>>>>>>FX.php_List mailing list >>>>>>>>FX.php_List@mail.iviking.org >>>>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> >>>>>>>>_______________________________________________ >>>>>>>>FX.php_List mailing list >>>>>>>>FX.php_List@mail.iviking.org >>>>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> >>>>>>>-- >>>>>>> >>>>>>>Jonathan Schwartz >>>>>>>FileMaker 8 Certified Developer >>>>>>>Associate Member, FileMaker Solutions Alliance >>>>>>>Schwartz & Company >>>>>>>jonathan@eschwartz.com >>>>>>>http://www.eschwartz.com >>>>>>>http://www.exit445.com >>>>>>>415-381-1852 >>>>>>> >>>>>>>_______________________________________________ >>>>>>>FX.php_List mailing list >>>>>>>FX.php_List@mail.iviking.org >>>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>>_______________________________________________ >>>>>>FX.php_List mailing list >>>>>>FX.php_List@mail.iviking.org >>>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>>-- >>>>> >>>>>Jonathan Schwartz >>>>>FileMaker 8 Certified Developer >>>>>Associate Member, FileMaker Solutions Alliance >> >>>Schwartz & Company >>>>>jonathan@eschwartz.com >>>>>http://www.eschwartz.com >>>>>http://www.exit445.com >>>>>415-381-1852 >>>>> >>>>>_______________________________________________ >>>>>FX.php_List mailing list >>>>>FX.php_List@mail.iviking.org >>>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>>-- >>> >>>Jonathan Schwartz >>>FileMaker 8 Certified Developer >>>Associate Member, FileMaker Solutions Alliance >>>Schwartz & Company >>>jonathan@eschwartz.com >>>http://www.eschwartz.com >>>http://www.exit445.com >>>415-381-1852 >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Mon Sep 11 00:00:36 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Mon Sep 11 08:17:25 2006 Subject: [FX.php List] Creating Reusable Code - Part II - Resolved. In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: I was able to work through the problem on the previous post. J -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Mon Sep 11 11:05:43 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Mon Sep 11 11:10:16 2006 Subject: [FX.php List] email() Set up: fx.hp, php.ini or OS X Server? In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: I need to set up mail() to work properly on my server. It works now, but I know that it is not set up properly, and will probably run afoul of spam filters. I'm not sure if this is an fx.php coding issue, a PHP.ini issue or an OS X Server/Apache issue. This is the header of emails as they arrive today: Return-Path: Received: from localhost (66.116.103.150) by exit445.com with ESMTP (Eudora Internet Mail Server X 3.2.4) for ; Sun, 27 Aug 2006 06:43:38 -0700 Received: by localhost (Postfix, from userid 70) id F0670CDA95; Sun, 27 Aug 2006 06:43:37 -0700 (PDT) To: jonathan@exit445.com Subject: Blah Blah Subject From: admin@exit445.com Message-Id: <20060827134337.F0670CDA95@localhost> Date: Sun, 27 Aug 2006 06:43:37 -0700 (PDT) The environment is as follows: OS: OS X Server 10.4.6 MailServer Eudora (EIMS) (Not using OS X mail application) DefaultDomain exit445.com It looks like I have to define: - local host - return path - userid = 70? That's the ID for root on the OX Server, I think. Normally, I could work thru this, but with three different places to make changes, I thought I should ask. I'd like not to upset the production mail server. ;-) Thanks very much. Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060911/775feebb/attachment.html From dan.cynosure at dbmscan.com Mon Sep 11 11:24:37 2006 From: dan.cynosure at dbmscan.com (DC) Date: Mon Sep 11 11:24:50 2006 Subject: [FX.php List] email() Set up: fx.hp, php.ini or OS X Server? In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: I just use SMTP to authenticate outbound emails which puts all the right information in the headers. I've used the PEAR email class for this, but there are many email scripts out there that can show you how to do SMTP sending without the overhead of a big old PEAR lib. http://pear.php.net/package/Mail dan On Sep 11, 2006, at 1:05 PM, Jonathan Schwartz wrote: > I need to set up mail() to work properly on my server. It works > now, but I know that it is not set up properly, and will probably > run afoul of spam filters. > > I'm not sure if this is an fx.php coding issue, a PHP.ini issue or > an OS X Server/Apache issue. > > This is the header of emails as they arrive today: > > Return-Path: > Received: from localhost (66.116.103.150) by exit445.com with ESMTP > (Eudora > Internet Mail Server X 3.2.4) for ; > Sun, 27 Aug 2006 06:43:38 -0700 > Received: by localhost (Postfix, from userid 70) > id F0670CDA95; Sun, 27 Aug 2006 06:43:37 -0700 (PDT) > To: jonathan@exit445.com > Subject: Blah Blah Subject > From: admin@exit445.com > Message-Id: <20060827134337.F0670CDA95@localhost> > Date: Sun, 27 Aug 2006 06:43:37 -0700 (PDT) > > The environment is as follows: > OS: OS X Server 10.4.6 > MailServer Eudora (EIMS) (Not using OS X mail application) > DefaultDomain exit445.com > > It looks like I have to define: > - local host > - return path > - userid = 70? That's the ID for root on the OX Server, I > think. > > Normally, I could work thru this, but with three different places > to make changes, I thought I should ask. I'd like not to upset the > production mail server. ;-) > > Thanks very much. > > Jonathan > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Mon Sep 11 11:42:13 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Mon Sep 11 11:45:15 2006 Subject: [FX.php List] email() Set up: fx.hp, php.ini or OS X Server? In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: I think that that means to use the SMTP option in email(), right? And I can do that by either setting the variable option at the time of send , or modifying the php.ini. Is that right? J At 1:24 PM -0400 9/11/06, DC wrote: >I just use SMTP to authenticate outbound emails which puts all the >right information in the headers. > >I've used the PEAR email class for this, but there are many email >scripts out there that can show you how to do SMTP sending without >the overhead of a big old PEAR lib. > >http://pear.php.net/package/Mail > >dan > >On Sep 11, 2006, at 1:05 PM, Jonathan Schwartz wrote: > >>I need to set up mail() to work properly on my server. It works >>now, but I know that it is not set up properly, and will probably >>run afoul of spam filters. >> >>I'm not sure if this is an fx.php coding issue, a PHP.ini issue or >>an OS X Server/Apache issue. >> >>This is the header of emails as they arrive today: >> >>Return-Path: >>Received: from localhost (66.116.103.150) by exit445.com with ESMTP (Eudora >> Internet Mail Server X 3.2.4) for ; >> Sun, 27 Aug 2006 06:43:38 -0700 >>Received: by localhost (Postfix, from userid 70) >> id F0670CDA95; Sun, 27 Aug 2006 06:43:37 -0700 (PDT) >>To: jonathan@exit445.com >>Subject: Blah Blah Subject >>From: admin@exit445.com >>Message-Id: <20060827134337.F0670CDA95@localhost> >>Date: Sun, 27 Aug 2006 06:43:37 -0700 (PDT) >> >>The environment is as follows: >>OS: OS X Server 10.4.6 >>MailServer Eudora (EIMS) (Not using OS X mail application) >>DefaultDomain exit445.com >> >>It looks like I have to define: >> - local host >> - return path >> - userid = 70? That's the ID for root on the OX Server, I think. >> >>Normally, I could work thru this, but with three different places >>to make changes, I thought I should ask. I'd like not to upset the >>production mail server. ;-) >> >>Thanks very much. >> >>Jonathan >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From dan.cynosure at dbmscan.com Mon Sep 11 12:52:34 2006 From: dan.cynosure at dbmscan.com (DC) Date: Mon Sep 11 12:52:47 2006 Subject: [FX.php List] email() Set up: fx.hp, php.ini or OS X Server? In-Reply-To: References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> Message-ID: <703CAD6A-F264-45CE-9C35-7AB478021802@dbmscan.com> nope, smpt option in mail() is only for windows - see the php manual. i meant using an external script like the one in the PERA libraries to do proper multi-platform SMTP. unless of course you are in windows and that's all you care to get working _ i can't say i've used those features of mail() since I don't have a windows server. dan On Sep 11, 2006, at 1:42 PM, Jonathan Schwartz wrote: > I think that that means to use the SMTP option in email(), right? > And I can do that by either setting the variable option at the time > of send , or modifying the php.ini. > > Is that right? > > J > > > At 1:24 PM -0400 9/11/06, DC wrote: >> I just use SMTP to authenticate outbound emails which puts all the >> right information in the headers. >> >> I've used the PEAR email class for this, but there are many email >> scripts out there that can show you how to do SMTP sending without >> the overhead of a big old PEAR lib. >> >> http://pear.php.net/package/Mail >> >> dan >> >> On Sep 11, 2006, at 1:05 PM, Jonathan Schwartz wrote: >> >>> I need to set up mail() to work properly on my server. It works >>> now, but I know that it is not set up properly, and will probably >>> run afoul of spam filters. >>> >>> I'm not sure if this is an fx.php coding issue, a PHP.ini issue >>> or an OS X Server/Apache issue. >>> >>> This is the header of emails as they arrive today: >>> >>> Return-Path: >>> Received: from localhost (66.116.103.150) by exit445.com with >>> ESMTP (Eudora >>> Internet Mail Server X 3.2.4) for ; >>> Sun, 27 Aug 2006 06:43:38 -0700 >>> Received: by localhost (Postfix, from userid 70) >>> id F0670CDA95; Sun, 27 Aug 2006 06:43:37 -0700 (PDT) >>> To: jonathan@exit445.com >>> Subject: Blah Blah Subject >>> From: admin@exit445.com >>> Message-Id: <20060827134337.F0670CDA95@localhost> >>> Date: Sun, 27 Aug 2006 06:43:37 -0700 (PDT) >>> >>> The environment is as follows: >>> OS: OS X Server 10.4.6 >>> MailServer Eudora (EIMS) (Not using OS X mail application) >>> DefaultDomain exit445.com >>> >>> It looks like I have to define: >>> - local host >>> - return path >>> - userid = 70? That's the ID for root on the OX Server, I >>> think. >>> >>> Normally, I could work thru this, but with three different places >>> to make changes, I thought I should ask. I'd like not to upset >>> the production mail server. ;-) >>> >>> Thanks very much. >>> >>> Jonathan >>> -- >>> >>> Jonathan Schwartz >>> FileMaker 8 Certified Developer >>> Associate Member, FileMaker Solutions Alliance >>> Schwartz & Company >>> jonathan@eschwartz.com >>> http://www.eschwartz.com >>> http://www.exit445.com >>> 415-381-1852 >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From alex at gandrpublishing.com Mon Sep 11 13:24:01 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Mon Sep 11 13:24:21 2006 Subject: [FX.php List] container field In-Reply-To: <703CAD6A-F264-45CE-9C35-7AB478021802@dbmscan.com> Message-ID: <000401c6d5d7$d7af9090$1700000a@gandrpublishing.com> Hi everyone- Could/would anyone do a favor and copy and paste some code that successfully displays an image from a container field? I'm struggling here. This is what I am trying - with no luck SetDBData('containertest.fp7','containertest', 'all'); $lookup->SetDBPassword("XXXXXX",'XXXXXX'); $lookup->AddDBParam('status', "online"); $lookupResult=$lookup->FMFind(); $foundResult=$lookupResult['foundCount']; foreach( $lookupResult['data'] as $key => $searchData ); echo '
'; echo $foundResult; echo '
'; echo $lookupResult['errorCode']; echo '
'; ?> SMTP servers, CCs, BCCs, HTML messages, and word wrap, and more. It > can send email via sendmail, PHP mail(), or with SMTP. Methods are > based on the popular AspEmail active server component." > > Best, > -Joel On Sep 11, 2006, at 11:52 AM, DC wrote: > nope, smpt option in mail() is only for windows - see the php > manual. i meant using an external script like the one in the PERA > libraries to do proper multi-platform SMTP. unless of course you > are in windows and that's all you care to get working _ i can't say > i've used those features of mail() since I don't have a windows > server. > > dan > > On Sep 11, 2006, at 1:42 PM, Jonathan Schwartz wrote: > >> I think that that means to use the SMTP option in email(), right? >> And I can do that by either setting the variable option at the >> time of send , or modifying the php.ini. >> >> Is that right? >> >> J >> >> >> At 1:24 PM -0400 9/11/06, DC wrote: >>> I just use SMTP to authenticate outbound emails which puts all >>> the right information in the headers. >>> >>> I've used the PEAR email class for this, but there are many email >>> scripts out there that can show you how to do SMTP sending >>> without the overhead of a big old PEAR lib. >>> >>> http://pear.php.net/package/Mail >>> >>> dan >>> >>> On Sep 11, 2006, at 1:05 PM, Jonathan Schwartz wrote: >>> >>>> I need to set up mail() to work properly on my server. It works >>>> now, but I know that it is not set up properly, and will >>>> probably run afoul of spam filters. >>>> >>>> I'm not sure if this is an fx.php coding issue, a PHP.ini issue >>>> or an OS X Server/Apache issue. >>>> >>>> This is the header of emails as they arrive today: >>>> >>>> Return-Path: >>>> Received: from localhost (66.116.103.150) by exit445.com with >>>> ESMTP (Eudora >>>> Internet Mail Server X 3.2.4) for ; >>>> Sun, 27 Aug 2006 06:43:38 -0700 >>>> Received: by localhost (Postfix, from userid 70) >>>> id F0670CDA95; Sun, 27 Aug 2006 06:43:37 -0700 (PDT) >>>> To: jonathan@exit445.com >>>> Subject: Blah Blah Subject >>>> From: admin@exit445.com >>>> Message-Id: <20060827134337.F0670CDA95@localhost> >>>> Date: Sun, 27 Aug 2006 06:43:37 -0700 (PDT) >>>> >>>> The environment is as follows: >>>> OS: OS X Server 10.4.6 >>>> MailServer Eudora (EIMS) (Not using OS X mail application) >>>> DefaultDomain exit445.com >>>> >>>> It looks like I have to define: >>>> - local host >>>> - return path >>>> - userid = 70? That's the ID for root on the OX Server, >>>> I think. >>>> >>>> Normally, I could work thru this, but with three different >>>> places to make changes, I thought I should ask. I'd like not to >>>> upset the production mail server. ;-) >>>> >>>> Thanks very much. >>>> >>>> Jonathan >>>> -- >>>> >>>> Jonathan Schwartz >>>> FileMaker 8 Certified Developer >>>> Associate Member, FileMaker Solutions Alliance >>>> Schwartz & Company >>>> jonathan@eschwartz.com >>>> http://www.eschwartz.com >>>> http://www.exit445.com >>>> 415-381-1852 >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> >> Jonathan Schwartz >> FileMaker 8 Certified Developer >> Associate Member, FileMaker Solutions Alliance >> Schwartz & Company >> jonathan@eschwartz.com >> http://www.eschwartz.com >> http://www.exit445.com >> 415-381-1852 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 jonathan at eschwartz.com Mon Sep 11 23:51:49 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Mon Sep 11 23:52:39 2006 Subject: [FX.php List] Yikes! mail() has stopped working In-Reply-To: <3ABB084B-ABBD-443D-BECF-9DA69B494D66@earthlink.net> References: <000301c6d479$2912d830$0202a8c0@SHUTTLE> <703CAD6A-F264-45CE-9C35-7AB478021802@dbmscan.com> <3ABB084B-ABBD-443D-BECF-9DA69B494D66@earthlink.net> Message-ID: Talk about coincidence. Just as I was about to pro-actively beef up the mail() function in my scripts, the function stopped working. I've spent most of the day trying to revive it, to no avail. To test, I just have a one line script When I run the script on the server, it runs without error. Watching the EIMS mail server console, the SMTP connection opens and then immediately closes. No message is received. No errors in the log. When I run the exact same script from my local machine using localhost, the script also runs fine and also delivers the mail as desired. Have to conclude that it is PHP/mail()/SMTP/Sendmail/whatever is broken on the server, and not the email server. I just don't know how to go about finding the problem other than performing the tests I have already done to isolate the problem. And, I'm nit sure f I should be looking under the covers at PHP or OS X Server. I really need to revive the email() function...fast. Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From alex at gandrpublishing.com Tue Sep 12 06:55:04 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Tue Sep 12 06:55:21 2006 Subject: [FX.php List] troubleshooting PHP install In-Reply-To: Message-ID: <000201c6d66a$abf8e210$1700000a@gandrpublishing.com> Hi everyone- We are experiencing some difficulties with PHP on our IIS Windows 2003 server. Some things are working correctly and other things aren't. Our IT person is IIS certified, but I think the specific FX.PHP is really causing some confusion. Everything was working fine, but since the latest re-installs, some things aren't working as they used to. For example, container fields aren't showing up, and for some reason, FX is sending two copies of fields on one solution. The code hasn't changed, but the PHP install has. Do any of you have any recommendations for consultants? I sent a note to The Moyer Group, but we haven't heard back. Does anyone have any recommendations? We are looking for either phone-based consulting or on-site consulting. Alex P. Gates G&R Publishing Co. 507 Industrial Street Waverly, IA 50677 Ph: 319-352-5391 x 319 From dbengston at preservationstudio.com Tue Sep 12 09:38:06 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Tue Sep 12 09:38:21 2006 Subject: [FX.php List] troubleshooting PHP install In-Reply-To: <000201c6d66a$abf8e210$1700000a@gandrpublishing.com> References: <000201c6d66a$abf8e210$1700000a@gandrpublishing.com> Message-ID: Hi Alex, In my opinion, your IT person should be responsible for figuring out what's different about this PHP install compared to the old one so you can troubleshoot. It's not fair to place the blame on FX.PHP if it was working correctly before. This sounds like a cop-out by a person who wants to blame something they don't know about, rather than actually solve the problem. The double-up records, as I recall, is due to CURL being active. The new install of PHP must have CURL turned on. There are probably other settings in php.ini that are not the same as your old PHP install. I don't use container fields to store content, so I can't speak to that specific example, but I bet it's related to settings as well. Try adding phpinfo(); to the top of one of your pages and take a look at the settings. There are probably clues there. Good luck, Dale On Sep 12, 2006, at 7:55 AM, Alex Gates wrote: > Hi everyone- > > We are experiencing some difficulties with PHP on our IIS Windows 2003 > server. Some things are working correctly and other things aren't. > Our IT person is IIS certified, but I think the specific FX.PHP is > really causing some confusion. > > Everything was working fine, but since the latest re-installs, some > things aren't working as they used to. For example, container fields > aren't showing up, and for some reason, FX is sending two copies of > fields on one solution. The code hasn't changed, but the PHP install > has. > > Do any of you have any recommendations for consultants? I sent a note > to The Moyer Group, but we haven't heard back. > > Does anyone have any recommendations? We are looking for either > phone-based consulting or on-site consulting. > > Alex P. Gates > G&R Publishing Co. > 507 Industrial Street > Waverly, IA 50677 > Ph: 319-352-5391 x 319 > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From stephen at fmwebschool.com Tue Sep 12 10:07:54 2006 From: stephen at fmwebschool.com (Stephen Knight) Date: Tue Sep 12 10:08:14 2006 Subject: [FX.php List] Yikes! mail() has stopped working In-Reply-To: Message-ID: <20060912160812.E7EDE35EF02@www.iviking.org> The mail function as well as SMTP connections have been known to drop due to ISP restrictions. A few weeks back I was attempting to use the PEAR SMTP class to deliver the mail since my localhost did not have a mail server - when monitoring my packets it was clear that the SMTP connection was immediately closed. After some research this was due to port 25 being blocked by the ISP - your ISP might have similar restrictions. Also have you tried different email addresses (on different hosts), I suspect some might be blocking SMTP connections from domains that do not have proper mail credentials, since that could be the case with a local server. But all that is under the assumption that the server is hosted on a residential or a small business ISP connection - in a data center, I would be looking at the mail server logs instead. In Kindness Stephen K Knight http://www.fmwebschool.com 800.353.7950 / 386.453.5843 FMWebschool, we bring the web to life FX.PHP PHP XML MySQL CDML ASP CONFIDENTIALITY NOTICE: This Electronic Mail (e-mail) contains confidential and privileged information intended only for the use of the individual or entity to which it is sent. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please immediately notify the sender by reply e-mail or telephone. -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan Schwartz Sent: Tuesday, September 12, 2006 1:52 AM To: FX.php Discussion List Subject: [FX.php List] Yikes! mail() has stopped working Talk about coincidence. Just as I was about to pro-actively beef up the mail() function in my scripts, the function stopped working. I've spent most of the day trying to revive it, to no avail. To test, I just have a one line script When I run the script on the server, it runs without error. Watching the EIMS mail server console, the SMTP connection opens and then immediately closes. No message is received. No errors in the log. When I run the exact same script from my local machine using localhost, the script also runs fine and also delivers the mail as desired. Have to conclude that it is PHP/mail()/SMTP/Sendmail/whatever is broken on the server, and not the email server. I just don't know how to go about finding the problem other than performing the tests I have already done to isolate the problem. And, I'm nit sure f I should be looking under the covers at PHP or OS X Server. I really need to revive the email() function...fast. Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From alex at gandrpublishing.com Tue Sep 12 10:41:38 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Tue Sep 12 10:41:54 2006 Subject: [FX.php List] troubleshooting PHP install In-Reply-To: Message-ID: <000e01c6d68a$528b2740$1700000a@gandrpublishing.com> Dale, Thanks for your response. Isn't CURL required for the PHP API? I'm not using new API, but if it is required, are people running into double-up records when they use both FX.PHP and the PHP API together? Does/Did anyone else have a problem with double-up records? Alex P. Gates -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Tuesday, September 12, 2006 10:38 AM To: FX.php Discussion List Subject: Re: [FX.php List] troubleshooting PHP install Hi Alex, In my opinion, your IT person should be responsible for figuring out what's different about this PHP install compared to the old one so you can troubleshoot. It's not fair to place the blame on FX.PHP if it was working correctly before. This sounds like a cop-out by a person who wants to blame something they don't know about, rather than actually solve the problem. The double-up records, as I recall, is due to CURL being active. The new install of PHP must have CURL turned on. There are probably other settings in php.ini that are not the same as your old PHP install. I don't use container fields to store content, so I can't speak to that specific example, but I bet it's related to settings as well. Try adding phpinfo(); to the top of one of your pages and take a look at the settings. There are probably clues there. Good luck, Dale On Sep 12, 2006, at 7:55 AM, Alex Gates wrote: > Hi everyone- > > We are experiencing some difficulties with PHP on our IIS Windows 2003 > server. Some things are working correctly and other things aren't. > Our IT person is IIS certified, but I think the specific FX.PHP is > really causing some confusion. > > Everything was working fine, but since the latest re-installs, some > things aren't working as they used to. For example, container fields > aren't showing up, and for some reason, FX is sending two copies of > fields on one solution. The code hasn't changed, but the PHP install > has. > > Do any of you have any recommendations for consultants? I sent a note > to The Moyer Group, but we haven't heard back. > > Does anyone have any recommendations? We are looking for either > phone-based consulting or on-site consulting. > > Alex P. Gates > G&R Publishing Co. > 507 Industrial Street > Waverly, IA 50677 > Ph: 319-352-5391 x 319 > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Tue Sep 12 10:48:40 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Tue Sep 12 10:48:51 2006 Subject: [FX.php List] troubleshooting PHP install In-Reply-To: <000e01c6d68a$528b2740$1700000a@gandrpublishing.com> References: <000e01c6d68a$528b2740$1700000a@gandrpublishing.com> Message-ID: <51A2DF6D-8F00-44A0-9B7B-C0B97B0596EF@preservationstudio.com> I'm not using the PHP API either. There is a db parameter in FX that addresses this: $fxData->FMUseCURL ($useCURL = false); You could try adding that to one of your queries that's doubling up. Dale On Sep 12, 2006, at 11:41 AM, Alex Gates wrote: > Dale, > > Thanks for your response. Isn't CURL required for the PHP API? > I'm not > using new API, but if it is required, are people running into > double-up > records when they use both FX.PHP and the PHP API together? > > Does/Did anyone else have a problem with double-up records? > > Alex P. Gates > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale > Bengston > Sent: Tuesday, September 12, 2006 10:38 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] troubleshooting PHP install > > Hi Alex, > > In my opinion, your IT person should be responsible for figuring out > what's different about this PHP install compared to the old one so > you can troubleshoot. It's not fair to place the blame on FX.PHP if > it was working correctly before. This sounds like a cop-out by a > person who wants to blame something they don't know about, rather > than actually solve the problem. > > The double-up records, as I recall, is due to CURL being active. The > new install of PHP must have CURL turned on. There are probably other > settings in php.ini that are not the same as your old PHP install. I > don't use container fields to store content, so I can't speak to that > specific example, but I bet it's related to settings as well. > > Try adding phpinfo(); to the top of one of your pages and take a look > at the settings. There are probably clues there. > > Good luck, > Dale > > > On Sep 12, 2006, at 7:55 AM, Alex Gates wrote: > >> Hi everyone- >> >> We are experiencing some difficulties with PHP on our IIS Windows >> 2003 >> server. Some things are working correctly and other things aren't. >> Our IT person is IIS certified, but I think the specific FX.PHP is >> really causing some confusion. >> >> Everything was working fine, but since the latest re-installs, some >> things aren't working as they used to. For example, container fields >> aren't showing up, and for some reason, FX is sending two copies of >> fields on one solution. The code hasn't changed, but the PHP install >> has. >> >> Do any of you have any recommendations for consultants? I sent a >> note >> to The Moyer Group, but we haven't heard back. >> >> Does anyone have any recommendations? We are looking for either >> phone-based consulting or on-site consulting. >> >> Alex P. Gates >> G&R Publishing Co. >> 507 Industrial Street >> Waverly, IA 50677 >> Ph: 319-352-5391 x 319 >> >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 alex at gandrpublishing.com Tue Sep 12 13:10:07 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Tue Sep 12 13:10:24 2006 Subject: [FX.php List] troubleshooting PHP install In-Reply-To: <51A2DF6D-8F00-44A0-9B7B-C0B97B0596EF@preservationstudio.com> Message-ID: <000001c6d69f$11128b90$1700000a@gandrpublishing.com> Thank you, Dale - - that worked for the doubling up! Alex P. Gates -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Tuesday, September 12, 2006 11:49 AM To: FX.php Discussion List Subject: Re: [FX.php List] troubleshooting PHP install I'm not using the PHP API either. There is a db parameter in FX that addresses this: $fxData->FMUseCURL ($useCURL = false); You could try adding that to one of your queries that's doubling up. Dale On Sep 12, 2006, at 11:41 AM, Alex Gates wrote: > Dale, > > Thanks for your response. Isn't CURL required for the PHP API? > I'm not > using new API, but if it is required, are people running into > double-up > records when they use both FX.PHP and the PHP API together? > > Does/Did anyone else have a problem with double-up records? > > Alex P. Gates > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale > Bengston > Sent: Tuesday, September 12, 2006 10:38 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] troubleshooting PHP install > > Hi Alex, > > In my opinion, your IT person should be responsible for figuring out > what's different about this PHP install compared to the old one so > you can troubleshoot. It's not fair to place the blame on FX.PHP if > it was working correctly before. This sounds like a cop-out by a > person who wants to blame something they don't know about, rather > than actually solve the problem. > > The double-up records, as I recall, is due to CURL being active. The > new install of PHP must have CURL turned on. There are probably other > settings in php.ini that are not the same as your old PHP install. I > don't use container fields to store content, so I can't speak to that > specific example, but I bet it's related to settings as well. > > Try adding phpinfo(); to the top of one of your pages and take a look > at the settings. There are probably clues there. > > Good luck, > Dale > > > On Sep 12, 2006, at 7:55 AM, Alex Gates wrote: > >> Hi everyone- >> >> We are experiencing some difficulties with PHP on our IIS Windows >> 2003 >> server. Some things are working correctly and other things aren't. >> Our IT person is IIS certified, but I think the specific FX.PHP is >> really causing some confusion. >> >> Everything was working fine, but since the latest re-installs, some >> things aren't working as they used to. For example, container fields >> aren't showing up, and for some reason, FX is sending two copies of >> fields on one solution. The code hasn't changed, but the PHP install >> has. >> >> Do any of you have any recommendations for consultants? I sent a >> note >> to The Moyer Group, but we haven't heard back. >> >> Does anyone have any recommendations? We are looking for either >> phone-based consulting or on-site consulting. >> >> Alex P. Gates >> G&R Publishing Co. >> 507 Industrial Street >> Waverly, IA 50677 >> Ph: 319-352-5391 x 319 >> >> >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Tue Sep 12 13:44:54 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Tue Sep 12 13:48:49 2006 Subject: [FX.php List] Yikes! mail() has stopped working In-Reply-To: <20060912160812.E7EDE35EF02@www.iviking.org> References: <20060912160812.E7EDE35EF02@www.iviking.org> Message-ID: Thanks for your suggestion, Stephen. In this case, the server is in a colo datacenter, and just the opposite is true. The test from my home machine (Cable ISP) worked. The emails from the colo center don't work. I need to dig into what the mail() function is doing and the conversation it is having with the next element down the line (SMTP? SendMail? PostFix?). Are there logs that provide this info? Jonathan >The mail function as well as SMTP connections have been known to drop due to >ISP restrictions. A few weeks back I was attempting to use the PEAR SMTP >class to deliver the mail since my localhost did not have a mail server - >when monitoring my packets it was clear that the SMTP connection was >immediately closed. After some research this was due to port 25 being >blocked by the ISP - your ISP might have similar restrictions. Also have you >tried different email addresses (on different hosts), I suspect some might >be blocking SMTP connections from domains that do not have proper mail >credentials, since that could be the case with a local server. > >But all that is under the assumption that the server is hosted on a >residential or a small business ISP connection - in a data center, I would >be looking at the mail server logs instead. > > >In Kindness >Stephen K Knight >http://www.fmwebschool.com >800.353.7950 / 386.453.5843 >FMWebschool, we bring the web to life >FX.PHP PHP XML MySQL CDML ASP > >CONFIDENTIALITY NOTICE: This Electronic Mail (e-mail) contains confidential >and privileged information intended only for the use of the individual or >entity to which it is sent. If the reader of this message is not the >intended recipient, or the employee or agent responsible for delivery to the >intended recipient, you are hereby notified that any dissemination, >distribution, or copying of this communication is STRICTLY PROHIBITED. If >you have received this communication in error, please immediately notify the >sender by reply e-mail or telephone. > >-----Original Message----- >From: fx.php_list-bounces@mail.iviking.org >[mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan Schwartz >Sent: Tuesday, September 12, 2006 1:52 AM >To: FX.php Discussion List >Subject: [FX.php List] Yikes! mail() has stopped working > >Talk about coincidence. Just as I was about to pro-actively beef up the >mail() function in my scripts, the function stopped working. > >I've spent most of the day trying to revive it, to no avail. > >To test, I just have a one line script >admin@mydomain.com); ?> > >When I run the script on the server, it runs without error. Watching the >EIMS mail server console, the SMTP connection opens and then immediately >closes. No message is received. No errors in the log. > >When I run the exact same script from my local machine using localhost, the >script also runs fine and also delivers the mail as desired. > >Have to conclude that it is PHP/mail()/SMTP/Sendmail/whatever is broken on >the server, and not the email server. > >I just don't know how to go about finding the problem other than performing >the tests I have already done to isolate the problem. >And, I'm nit sure f I should be looking under the covers at PHP or OS X >Server. > >I really need to revive the email() function...fast. > >Thanks > >Jonathan > >-- > >Jonathan Schwartz >FileMaker 8 Certified Developer >Associate Member, FileMaker Solutions Alliance Schwartz & Company >jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com >415-381-1852 > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list > > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Tue Sep 12 14:47:14 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Tue Sep 12 14:47:27 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: References: <20060912160812.E7EDE35EF02@www.iviking.org> Message-ID: Hi Folks, Sorry for the persistence. I'm still dark on getting mail() to work. I'm looking for logs that I can revieve for clues. There are no error messages being generated on screen by php. Setting is: error_reporting (E_ALL & ~E_NOTICE); What else can I do/Where else can I look for what the problem is? Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jsfmp at earthlink.net Tue Sep 12 19:15:41 2006 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Sep 12 19:16:01 2006 Subject: [FX.php List] Display text within a static-sized rectangle (for eventual printing)? Message-ID: Hi all OVERVIEW: I'm looking for creative ways to give immediate feedback to Web users when their text (entered into a textarea) won't fit in its alotted space on its printed form -- without users having to wait for the admin to print the form and give it to them -- possibly the next day. SITUATION: I've got a project where users enter text into a textarea on a web page (FX.php). There is a word-count limit on the field which works fine *technically* (i.e. users cannot submit text over the limit). The text in this field is later printed from FileMaker client by an admin. The field prints on a form and has pre-defined dimensions of approx 2.5" x 4". The problem is that users want to be able to enter their text differently, e.g. some as a paragraph, some as a list, some with blank lines, etc, so a word-count doesn't really make that much difference (e.g. 5 words in a list can take up as much physical space as 20 words in a paragraph). And getting all users to only enter text in one way (e.g. paragraphs only, no lists) is not an option at this time. (We'd originally used a character count, but they preferred word-count) One other complication is that some reports are printed in OS X, and some in Windows XP, so even there there is a discrepancy between how much text will fit into this text box -- however I'd be happy to display at least an *approximation* of what the printed form will look like. OPTIONS EXPLORED: I've been playing with creating a PDF (via FPDF) to display just this text field within a bordered rectangle. This seems to work _OK_, but it's certainly not ideal -- opening a new browser window and/or a PDF- reader app window, with a message to close the window to continue editing. I don't like how it interrupts the UI of: (1) select record to edit; (2) edit record; (3) click to submit changes. It would be an additional step (2a) to optionally(?) view an approximation of how the field will print, and then (2b) to close that window and continue editing before submitting (step 3). If I could display this in just a small pop-up window, it would be more acceptable, but that doesn't seem possible since as a PDF it could open up either in the browser or in a PDF-reader app. And I don't want to put the whole form into a PHP-generated PDF, as it's a large, 2-sided report with very tight text-formatting (and I'm lazy). Then I thought of maybe creating an image (GD) with the text inside the sized rectangle -- which probably *could* display in a small pop- up window -- but before I tackle that one, I thought I'd ask for suggestions. Anybody got any for me? (And if I use a PDF or an image, how consistent will these be for users on different browsers, different platforms, etc.?) TIA, -Joel From kfutter at sbc.melb.catholic.edu.au Tue Sep 12 19:28:00 2006 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Tue Sep 12 19:27:29 2006 Subject: [FX.php List] Display text within a static-sized rectangle (for eventual printing)? In-Reply-To: Message-ID: On 13/9/06 11:15 AM, "Joel Shapiro" wrote: > Hi all > > OVERVIEW: > I'm looking for creative ways to give immediate feedback to Web users > when their text (entered into a textarea) won't fit in its alotted > space on its printed form -- without users having to wait for the > admin to print the form and give it to them -- possibly the next day. > > > SITUATION: > I've got a project where users enter text into a textarea on a web > page (FX.php). There is a word-count limit on the field which works > fine *technically* (i.e. users cannot submit text over the limit). > The text in this field is later printed from FileMaker client by an > admin. The field prints on a form and has pre-defined dimensions of > approx 2.5" x 4". The problem is that users want to be able to enter > their text differently, e.g. some as a paragraph, some as a list, > some with blank lines, etc, so a word-count doesn't really make that > much difference (e.g. 5 words in a list can take up as much physical > space as 20 words in a paragraph). And getting all users to only > enter text in one way (e.g. paragraphs only, no lists) is not an > option at this time. (We'd originally used a character count, but > they preferred word-count) > > One other complication is that some reports are printed in OS X, and > some in Windows XP, so even there there is a discrepancy between how > much text will fit into this text box -- however I'd be happy to > display at least an *approximation* of what the printed form will > look like. > > > OPTIONS EXPLORED: > I've been playing with creating a PDF (via FPDF) to display just this > text field within a bordered rectangle. This seems to work _OK_, but > it's certainly not ideal -- opening a new browser window and/or a PDF- > reader app window, with a message to close the window to continue > editing. I don't like how it interrupts the UI of: (1) select record > to edit; (2) edit record; (3) click to submit changes. It would be > an additional step (2a) to optionally(?) view an approximation of how > the field will print, and then (2b) to close that window and continue > editing before submitting (step 3). > > If I could display this in just a small pop-up window, it would be > more acceptable, but that doesn't seem possible since as a PDF it > could open up either in the browser or in a PDF-reader app. And I > don't want to put the whole form into a PHP-generated PDF, as it's a > large, 2-sided report with very tight text-formatting (and I'm lazy). > > Then I thought of maybe creating an image (GD) with the text inside > the sized rectangle -- which probably *could* display in a small pop- > up window -- but before I tackle that one, I thought I'd ask for > suggestions. > > Anybody got any for me? > > (And if I use a PDF or an image, how consistent will these be for > users on different browsers, different platforms, etc.?) I would go with the image, as you then avoid running foul of users' preferences (and platfrom differences) for how PDFs are handled in web pages. Also, you could explore some of the newer JS libraries out there that actually open new content in a dynamically generated layer over the existing page (Lightbox being the most famous example). Most only handle images, but there is one, whose name escapes me at the moment, that can load most any document, including HTML files. This is a much friendlier approach than pop-up windows, and also avoids pop-up blockers too. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ------------------------------------------ This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. From jonathan at eschwartz.com Tue Sep 12 19:28:23 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Tue Sep 12 19:28:45 2006 Subject: [FX.php List] Display text within a static-sized rectangle (for eventual printing)? In-Reply-To: References: Message-ID: Joel, My first thought was to create a calculation that takes into account not only word and character count, but line returns as well. Let's say the limit is 1000 characters over 10 lines, or 100 characters per line. That would be the max. The person could put one character on each of ten lines and fill the space. Charcount is 10 but line count is 10. Line count overides char count. Did I miss something along the way? J At 6:15 PM -0700 9/12/06, Joel Shapiro wrote: >Hi all > >OVERVIEW: >I'm looking for creative ways to give immediate feedback to Web >users when their text (entered into a textarea) won't fit in its >alotted space on its printed form -- without users having to wait >for the admin to print the form and give it to them -- possibly the >next day. > > >SITUATION: >I've got a project where users enter text into a textarea on a web >page (FX.php). There is a word-count limit on the field which works >fine *technically* (i.e. users cannot submit text over the limit). >The text in this field is later printed from FileMaker client by an >admin. The field prints on a form and has pre-defined dimensions of >approx 2.5" x 4". The problem is that users want to be able to enter >their text differently, e.g. some as a paragraph, some as a list, >some with blank lines, etc, so a word-count doesn't really make that >much difference (e.g. 5 words in a list can take up as much physical >space as 20 words in a paragraph). And getting all users to only >enter text in one way (e.g. paragraphs only, no lists) is not an >option at this time. (We'd originally used a character count, but >they preferred word-count) > >One other complication is that some reports are printed in OS X, and >some in Windows XP, so even there there is a discrepancy between how >much text will fit into this text box -- however I'd be happy to >display at least an *approximation* of what the printed form will >look like. > > >OPTIONS EXPLORED: >I've been playing with creating a PDF (via FPDF) to display just >this text field within a bordered rectangle. This seems to work >_OK_, but it's certainly not ideal -- opening a new browser window >and/or a PDF-reader app window, with a message to close the window >to continue editing. I don't like how it interrupts the UI of: (1) >select record to edit; (2) edit record; (3) click to submit changes. >It would be an additional step (2a) to optionally(?) view an >approximation of how the field will print, and then (2b) to close >that window and continue editing before submitting (step 3). > >If I could display this in just a small pop-up window, it would be >more acceptable, but that doesn't seem possible since as a PDF it >could open up either in the browser or in a PDF-reader app. And I >don't want to put the whole form into a PHP-generated PDF, as it's a >large, 2-sided report with very tight text-formatting (and I'm lazy). > >Then I thought of maybe creating an image (GD) with the text inside >the sized rectangle -- which probably *could* display in a small >pop-up window -- but before I tackle that one, I thought I'd ask for >suggestions. > >Anybody got any for me? > >(And if I use a PDF or an image, how consistent will these be for >users on different browsers, different platforms, etc.?) > >TIA, >-Joel >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jsfmp at earthlink.net Tue Sep 12 19:33:27 2006 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Sep 12 19:33:37 2006 Subject: [FX.php List] Display text within a static-sized rectangle (for eventual printing)? In-Reply-To: References: Message-ID: <6B8EB7EE-C5A2-4BC9-8AA6-2A3EA9E2B68C@earthlink.net> Hi Kevin I wish I'd thought of using images before I spent time on FPDF (though of course that may come in handy some other time...) That's a great idea to use Lightbox-type of layering. I like it. Thanks so much, -Joel On Sep 12, 2006, at 6:28 PM, Kevin Futter wrote: > On 13/9/06 11:15 AM, "Joel Shapiro" wrote: > >> Hi all >> >> OVERVIEW: >> I'm looking for creative ways to give immediate feedback to Web users >> when their text (entered into a textarea) won't fit in its alotted >> space on its printed form -- without users having to wait for the >> admin to print the form and give it to them -- possibly the next day. >> >> >> SITUATION: >> I've got a project where users enter text into a textarea on a web >> page (FX.php). There is a word-count limit on the field which works >> fine *technically* (i.e. users cannot submit text over the limit). >> The text in this field is later printed from FileMaker client by an >> admin. The field prints on a form and has pre-defined dimensions of >> approx 2.5" x 4". The problem is that users want to be able to enter >> their text differently, e.g. some as a paragraph, some as a list, >> some with blank lines, etc, so a word-count doesn't really make that >> much difference (e.g. 5 words in a list can take up as much physical >> space as 20 words in a paragraph). And getting all users to only >> enter text in one way (e.g. paragraphs only, no lists) is not an >> option at this time. (We'd originally used a character count, but >> they preferred word-count) >> >> One other complication is that some reports are printed in OS X, and >> some in Windows XP, so even there there is a discrepancy between how >> much text will fit into this text box -- however I'd be happy to >> display at least an *approximation* of what the printed form will >> look like. >> >> >> OPTIONS EXPLORED: >> I've been playing with creating a PDF (via FPDF) to display just this >> text field within a bordered rectangle. This seems to work _OK_, but >> it's certainly not ideal -- opening a new browser window and/or a >> PDF- >> reader app window, with a message to close the window to continue >> editing. I don't like how it interrupts the UI of: (1) select record >> to edit; (2) edit record; (3) click to submit changes. It would be >> an additional step (2a) to optionally(?) view an approximation of how >> the field will print, and then (2b) to close that window and continue >> editing before submitting (step 3). >> >> If I could display this in just a small pop-up window, it would be >> more acceptable, but that doesn't seem possible since as a PDF it >> could open up either in the browser or in a PDF-reader app. And I >> don't want to put the whole form into a PHP-generated PDF, as it's a >> large, 2-sided report with very tight text-formatting (and I'm lazy). >> >> Then I thought of maybe creating an image (GD) with the text inside >> the sized rectangle -- which probably *could* display in a small pop- >> up window -- but before I tackle that one, I thought I'd ask for >> suggestions. >> >> Anybody got any for me? >> >> (And if I use a PDF or an image, how consistent will these be for >> users on different browsers, different platforms, etc.?) > > I would go with the image, as you then avoid running foul of users' > preferences (and platfrom differences) for how PDFs are handled in web > pages. Also, you could explore some of the newer JS libraries out > there that > actually open new content in a dynamically generated layer over the > existing > page (Lightbox being the most famous example). Most only handle > images, but > there is one, whose name escapes me at the moment, that can load > most any > document, including HTML files. This is a much friendlier approach > than > pop-up windows, and also avoids pop-up blockers too. > > -- > Kevin Futter > Webmaster, St. Bernard's College > http://www.sbc.melb.catholic.edu.au/ > > > > ------------------------------------------ > This e-mail and any attachments may be confidential. You must not > disclose or use the information in this e-mail if you are not the > intended recipient. If you have received this e-mail in error, > please notify us immediately and delete the e-mail and all copies. > The College does not guarantee that this e-mail is virus or error > free. The attached files are provided and may only be used on the > basis that the user assumes all responsibility for any loss, damage > or consequence resulting directly or indirectly from the use of the > attached files, whether caused by the negligence of the sender or > not. The content and opinions in this e-mail are not necessarily > those of the College. > > > _______________________________________________ > 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 Sep 12 19:40:53 2006 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Sep 12 19:41:03 2006 Subject: [FX.php List] Display text within a static-sized rectangle (for eventual printing)? In-Reply-To: References: Message-ID: <06348DB8-603D-45B0-8802-F5B37D10E568@earthlink.net> hmm... that's interesting... I'd certainly prefer to do the calculating in PHP instead of in FMP... although without a fixed-width font, using a character count would still be 'fuzzy' hmm... I think my preference would be to try to simulate the printed version as closely as possible (visually -- so users can decide how to make changes to fit), but your suggestion is some thinking outside the rectangle (d'oh! sorry). I will think about it a bit more. Thanks Jonathan! -Joel On Sep 12, 2006, at 6:28 PM, Jonathan Schwartz wrote: > Joel, > > My first thought was to create a calculation that takes into > account not only word and character count, but line returns as well. > > Let's say the limit is 1000 characters over 10 lines, or 100 > characters per line. That would be the max. The person could put > one character on each of ten lines and fill the space. Charcount is > 10 but line count is 10. Line count overides char count. > > Did I miss something along the way? > > J > > > At 6:15 PM -0700 9/12/06, Joel Shapiro wrote: >> Hi all >> >> OVERVIEW: >> I'm looking for creative ways to give immediate feedback to Web >> users when their text (entered into a textarea) won't fit in its >> alotted space on its printed form -- without users having to wait >> for the admin to print the form and give it to them -- possibly >> the next day. >> >> >> SITUATION: >> I've got a project where users enter text into a textarea on a web >> page (FX.php). There is a word-count limit on the field which >> works fine *technically* (i.e. users cannot submit text over the >> limit). The text in this field is later printed from FileMaker >> client by an admin. The field prints on a form and has pre- >> defined dimensions of approx 2.5" x 4". The problem is that users >> want to be able to enter their text differently, e.g. some as a >> paragraph, some as a list, some with blank lines, etc, so a word- >> count doesn't really make that much difference (e.g. 5 words in a >> list can take up as much physical space as 20 words in a >> paragraph). And getting all users to only enter text in one way >> (e.g. paragraphs only, no lists) is not an option at this time. >> (We'd originally used a character count, but they preferred word- >> count) >> >> One other complication is that some reports are printed in OS X, >> and some in Windows XP, so even there there is a discrepancy >> between how much text will fit into this text box -- however I'd >> be happy to display at least an *approximation* of what the >> printed form will look like. >> >> >> OPTIONS EXPLORED: >> I've been playing with creating a PDF (via FPDF) to display just >> this text field within a bordered rectangle. This seems to work >> _OK_, but it's certainly not ideal -- opening a new browser window >> and/or a PDF-reader app window, with a message to close the window >> to continue editing. I don't like how it interrupts the UI of: >> (1) select record to edit; (2) edit record; (3) click to submit >> changes. It would be an additional step (2a) to optionally(?) view >> an approximation of how the field will print, and then (2b) to >> close that window and continue editing before submitting (step 3). >> >> If I could display this in just a small pop-up window, it would be >> more acceptable, but that doesn't seem possible since as a PDF it >> could open up either in the browser or in a PDF-reader app. And I >> don't want to put the whole form into a PHP-generated PDF, as it's >> a large, 2-sided report with very tight text-formatting (and I'm >> lazy). >> >> Then I thought of maybe creating an image (GD) with the text >> inside the sized rectangle -- which probably *could* display in a >> small pop-up window -- but before I tackle that one, I thought I'd >> ask for suggestions. >> >> Anybody got any for me? >> >> (And if I use a PDF or an image, how consistent will these be for >> users on different browsers, different platforms, etc.?) >> >> TIA, >> -Joel >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From andy at fmpug.com Tue Sep 12 19:43:29 2006 From: andy at fmpug.com (Andy Gaunt) Date: Tue Sep 12 19:43:54 2006 Subject: [FX.php List] Display text within a static-sized rectangle (foreventual printing)? In-Reply-To: <6B8EB7EE-C5A2-4BC9-8AA6-2A3EA9E2B68C@earthlink.net> Message-ID: <000c01c6d6d6$0432eeb0$0202a8c0@SHUTTLE> Kevin & Joel, You may be thinking of the Thickbox which allows most any type of content. http://jquery.com/demo/thickbox/ Regards Andy Gaunt Office: 321.206.3658 Mobile: 407.810.4722 andy@fmpug.com http://www.fmpug.com 2006 FileMaker Excellence Award Winner 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 Joel Shapiro Sent: Tuesday, September 12, 2006 9:33 PM To: FX.php Discussion List Subject: Re: [FX.php List] Display text within a static-sized rectangle (foreventual printing)? Hi Kevin I wish I'd thought of using images before I spent time on FPDF (though of course that may come in handy some other time...) That's a great idea to use Lightbox-type of layering. I like it. Thanks so much, -Joel On Sep 12, 2006, at 6:28 PM, Kevin Futter wrote: > On 13/9/06 11:15 AM, "Joel Shapiro" wrote: > >> Hi all >> >> OVERVIEW: >> I'm looking for creative ways to give immediate feedback to Web users >> when their text (entered into a textarea) won't fit in its alotted >> space on its printed form -- without users having to wait for the >> admin to print the form and give it to them -- possibly the next day. >> >> >> SITUATION: >> I've got a project where users enter text into a textarea on a web >> page (FX.php). There is a word-count limit on the field which works >> fine *technically* (i.e. users cannot submit text over the limit). >> The text in this field is later printed from FileMaker client by an >> admin. The field prints on a form and has pre-defined dimensions of >> approx 2.5" x 4". The problem is that users want to be able to enter >> their text differently, e.g. some as a paragraph, some as a list, >> some with blank lines, etc, so a word-count doesn't really make that >> much difference (e.g. 5 words in a list can take up as much physical >> space as 20 words in a paragraph). And getting all users to only >> enter text in one way (e.g. paragraphs only, no lists) is not an >> option at this time. (We'd originally used a character count, but >> they preferred word-count) >> >> One other complication is that some reports are printed in OS X, and >> some in Windows XP, so even there there is a discrepancy between how >> much text will fit into this text box -- however I'd be happy to >> display at least an *approximation* of what the printed form will >> look like. >> >> >> OPTIONS EXPLORED: >> I've been playing with creating a PDF (via FPDF) to display just this >> text field within a bordered rectangle. This seems to work _OK_, but >> it's certainly not ideal -- opening a new browser window and/or a >> PDF- >> reader app window, with a message to close the window to continue >> editing. I don't like how it interrupts the UI of: (1) select record >> to edit; (2) edit record; (3) click to submit changes. It would be >> an additional step (2a) to optionally(?) view an approximation of how >> the field will print, and then (2b) to close that window and continue >> editing before submitting (step 3). >> >> If I could display this in just a small pop-up window, it would be >> more acceptable, but that doesn't seem possible since as a PDF it >> could open up either in the browser or in a PDF-reader app. And I >> don't want to put the whole form into a PHP-generated PDF, as it's a >> large, 2-sided report with very tight text-formatting (and I'm lazy). >> >> Then I thought of maybe creating an image (GD) with the text inside >> the sized rectangle -- which probably *could* display in a small pop- >> up window -- but before I tackle that one, I thought I'd ask for >> suggestions. >> >> Anybody got any for me? >> >> (And if I use a PDF or an image, how consistent will these be for >> users on different browsers, different platforms, etc.?) > > I would go with the image, as you then avoid running foul of users' > preferences (and platfrom differences) for how PDFs are handled in web > pages. Also, you could explore some of the newer JS libraries out > there that > actually open new content in a dynamically generated layer over the > existing > page (Lightbox being the most famous example). Most only handle > images, but > there is one, whose name escapes me at the moment, that can load > most any > document, including HTML files. This is a much friendlier approach > than > pop-up windows, and also avoids pop-up blockers too. > > -- > Kevin Futter > Webmaster, St. Bernard's College > http://www.sbc.melb.catholic.edu.au/ > > > > ------------------------------------------ > This e-mail and any attachments may be confidential. You must not > disclose or use the information in this e-mail if you are not the > intended recipient. If you have received this e-mail in error, > please notify us immediately and delete the e-mail and all copies. > The College does not guarantee that this e-mail is virus or error > free. The attached files are provided and may only be used on the > basis that the user assumes all responsibility for any loss, damage > or consequence resulting directly or indirectly from the use of the > attached files, whether caused by the negligence of the sender or > not. The content and opinions in this e-mail are not necessarily > those of the College. > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 kfutter at sbc.melb.catholic.edu.au Tue Sep 12 20:02:47 2006 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Tue Sep 12 20:02:58 2006 Subject: [FX.php List] Display text within a static-sized rectangle (for eventual printing)? In-Reply-To: <6B8EB7EE-C5A2-4BC9-8AA6-2A3EA9E2B68C@earthlink.net> Message-ID: On 13/9/06 11:33 AM, "Joel Shapiro" wrote: > Hi Kevin > > I wish I'd thought of using images before I spent time on FPDF > (though of course that may come in handy some other time...) > > That's a great idea to use Lightbox-type of layering. I like it. > > Thanks so much, > -Joel Just found a link to one of the libraries that handles more than just images. It's called ThickBox (they're all named after some variation of Lightbox - I'm using Litebox myself on one site), and can be found here: http://codylindley.com/Javascript/257/thickbox-one-box-to-rule-them-all It uses jQuery rather than prototype/scriptaculous, and is rather more lean than the original Lightbox. The linked article also mentions Greybox for loading more than just images, but I have no experience of that one. Anyway, plenty of options these days if that's your preferred approach. I haven't tried any of these techniques yet with FX.php, but I'm about to begin work on an FM-backed image gallery page that will use them, so we can compare notes if you like. (Of course, you have the extra complications of using GD or whatever to generate the images in the first place.) -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ------------------------------------------ This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. From ggt667 at gmail.com Wed Sep 13 05:33:14 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 13 05:33:26 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: References: <20060912160812.E7EDE35EF02@www.iviking.org> Message-ID: This is the Ubuntu( should also work in other unixes ) way: sudo cat /var/log/mail.log ggt667 On 9/12/06, Jonathan Schwartz wrote: > Hi Folks, > > Sorry for the persistence. I'm still dark on getting mail() to work. > I'm looking for logs that I can revieve for clues. There are no > error messages being generated on screen by php. Setting is: > > error_reporting (E_ALL & ~E_NOTICE); > > What else can I do/Where else can I look for what the problem is? > > Thanks > > Jonathan > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jasonlewis at weber.edu Wed Sep 13 00:16:46 2006 From: jasonlewis at weber.edu (Jason LEWIS) Date: Wed Sep 13 07:02:34 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: References: <20060912160812.E7EDE35EF02@www.iviking.org> Message-ID: <45074DEE0200005F000111B2@gwvsmta2.weber.edu> Jonathan, you can try telneting to the mail server from the problem box. Try "telnet mailserver.example.com 25". You should see a 220 mailserver.example.com version line. Just type quit and it should exit for you. Jason >>> Jonathan Schwartz 09/12/2006 2:47 PM >>> Hi Folks, Sorry for the persistence. I'm still dark on getting mail() to work. I'm looking for logs that I can revieve for clues. There are no error messages being generated on screen by php. Setting is: error_reporting (E_ALL & ~E_NOTICE); What else can I do/Where else can I look for what the problem is? Thanks Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Wed Sep 13 08:02:33 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 13 08:04:06 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: <45074DEE0200005F000111B2@gwvsmta2.weber.edu> References: <20060912160812.E7EDE35EF02@www.iviking.org> <45074DEE0200005F000111B2@gwvsmta2.weber.edu> Message-ID: Good suggestion. Thx. Jonathan >Jonathan, you can try telneting to the mail server from the problem box. > Try "telnet mailserver.example.com 25". You should see a 220 >mailserver.example.com version line. Just type quit and it should exit >for you. > >Jason > >>>> Jonathan Schwartz 09/12/2006 2:47 PM >>> >Hi Folks, > >Sorry for the persistence. I'm still dark on getting mail() to work. >I'm looking for logs that I can revieve for clues. There are no >error messages being generated on screen by php. Setting is: > > error_reporting (E_ALL & ~E_NOTICE); > >What else can I do/Where else can I look for what the problem is? > >Thanks > >Jonathan > > >-- > >Jonathan Schwartz >FileMaker 8 Certified Developer >Associate Member, FileMaker Solutions Alliance >Schwartz & Company >jonathan@eschwartz.com >http://www.eschwartz.com >http://www.exit445.com >415-381-1852 > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From ggt667 at gmail.com Wed Sep 13 08:04:58 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 13 08:05:09 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: <45074DEE0200005F000111B2@gwvsmta2.weber.edu> References: <20060912160812.E7EDE35EF02@www.iviking.org> <45074DEE0200005F000111B2@gwvsmta2.weber.edu> Message-ID: And if you are not able to do as jason suggests, you most likely have a problem in your mail() -setup, php.ini perhaps? ggt667 On 9/13/06, Jason LEWIS wrote: > Jonathan, you can try telneting to the mail server from the problem box. > Try "telnet mailserver.example.com 25". You should see a 220 > mailserver.example.com version line. Just type quit and it should exit > for you. > > Jason > > >>> Jonathan Schwartz 09/12/2006 2:47 PM >>> > Hi Folks, > > Sorry for the persistence. I'm still dark on getting mail() to work. > I'm looking for logs that I can revieve for clues. There are no > error messages being generated on screen by php. Setting is: > > error_reporting (E_ALL & ~E_NOTICE); > > What else can I do/Where else can I look for what the problem is? > > Thanks > > Jonathan > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 jonathan at eschwartz.com Wed Sep 13 08:04:14 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 13 08:08:47 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: References: <20060912160812.E7EDE35EF02@www.iviking.org> Message-ID: Today, I found the mother load of log files in the /var/log directory. My days of blind innocence are forever gone. ;-) Thanks J >This is the Ubuntu( should also work in other unixes ) way: > >sudo cat /var/log/mail.log > >ggt667 > >On 9/12/06, Jonathan Schwartz wrote: >>Hi Folks, >> >>Sorry for the persistence. I'm still dark on getting mail() to work. >>I'm looking for logs that I can revieve for clues. There are no >>error messages being generated on screen by php. Setting is: >> >> error_reporting (E_ALL & ~E_NOTICE); >> >>What else can I do/Where else can I look for what the problem is? >> >>Thanks >> >>Jonathan >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Wed Sep 13 08:15:55 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 13 08:18:40 2006 Subject: [FX.php List] Adding a class In-Reply-To: References: <20060912160812.E7EDE35EF02@www.iviking.org> Message-ID: Hi Folks, I'm into my fourth day of trying to resolve the mail() problem. I'm currently pursuing the suggestion to use a new php product/script called phpmail. http://phpmailer.sourceforge.net/ It involves a new class (class.phpmail.php). The install instructions suggests editing the path to include the new class: ini_set("include_path", ".:/path/to/phpmailer/dir"); However, I'm a little weak on the path editing thing. I don't have a clue what to enter on the right side of the statement above. Can I simply place the file in the same directory as the rest of the php files and expect it to work? (BTW...it doesn't work, but I'm not sure if it is for this reason or another reason). Error: Message could not be sent. Mailer Error: Language string failed to load: provide_address Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060913/654a1f26/attachment.html From jonathan at eschwartz.com Wed Sep 13 08:29:08 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 13 08:33:43 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: References: <20060912160812.E7EDE35EF02@www.iviking.org> <45074DEE0200005F000111B2@gwvsmta2.weber.edu> Message-ID: Actually, it worked fine. Using Timbuktu to the Server, I used Terminal to Telnet an SMTP session and sent myself an email. No problem. This seems to be boiling down to how mail() is talking to "the next guy". And that is part of the confusion: Is it sendmail (I never installed sendmail). Or is it Postfix, which I understand is an "alias" for the same thing? Will look into mail -setup . Is there a way to simply reinstall some small part of the code? It worked fine "out-of-the-box". J At 4:04 PM +0200 9/13/06, Gjermund Gusland Thorsen wrote: >And if you are not able to do as jason suggests, >you most likely have a problem in your mail() -setup, php.ini perhaps? > >ggt667 > >On 9/13/06, Jason LEWIS wrote: >>Jonathan, you can try telneting to the mail server from the problem box. >> Try "telnet mailserver.example.com 25". You should see a 220 >>mailserver.example.com version line. Just type quit and it should exit >>for you. >> >>Jason >> >>>>> Jonathan Schwartz 09/12/2006 2:47 PM >>> >>Hi Folks, >> >>Sorry for the persistence. I'm still dark on getting mail() to work. >>I'm looking for logs that I can revieve for clues. There are no >>error messages being generated on screen by php. Setting is: >> >> error_reporting (E_ALL & ~E_NOTICE); >> >>What else can I do/Where else can I look for what the problem is? >> >>Thanks >> >>Jonathan >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From mlindal at pfc.forestry.ca Wed Sep 13 10:01:44 2006 From: mlindal at pfc.forestry.ca (Lindal, Mark) Date: Wed Sep 13 09:59:12 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 20 In-Reply-To: <20060913130239.B904D35FB77@www.iviking.org> Message-ID: I am trying to get a form to search the FM database and having trouble remember what to do about apostrophe's. Whenever we search on a word like: l'?tude I get no results using the PHP form. On the list.php page I see the form is adding '\' so when I print_r($_REQUEST) I see: l\'?tude ok fine - so I then use stripslashes to get it back to l'?tude and put to a FMFind() on the new data and.... no results However when searching for the same string in filemaker we get the results. What do I need to do? I have a feeling it is something to do with Filemaker 6 and the encoding (UTF-8) vs Latin, but what can I do? Thoughts please... ------------------------------ Mark Lindal Publications Technician / Technicien, publications Canadian Forest Service / Service canadien des for?ts Natural Resources Canada / Ressources naturelles Canada Government of Canada / Gouvernement du Canada 506 West Burnside Road / 506, chemin Burnside ouest Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 mlindal@pfc.forestry.ca 250-363-0603 From ggt667 at gmail.com Wed Sep 13 11:06:25 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 13 11:06:38 2006 Subject: [FX.php List] fx.php and PHP Logging In-Reply-To: References: <20060912160812.E7EDE35EF02@www.iviking.org> <45074DEE0200005F000111B2@gwvsmta2.weber.edu> Message-ID: send whale and postfix is not the same thing. ggt667 On 9/13/06, Jonathan Schwartz wrote: > Actually, it worked fine. Using Timbuktu to the Server, I used > Terminal to Telnet an SMTP session and sent myself an email. No > problem. > > This seems to be boiling down to how mail() is talking to "the next > guy". And that is part of the confusion: Is it sendmail (I never > installed sendmail). Or is it Postfix, which I understand is an > "alias" for the same thing? > > Will look into mail -setup . > > Is there a way to simply reinstall some small part of the code? It > worked fine "out-of-the-box". > > J > > > > > > At 4:04 PM +0200 9/13/06, Gjermund Gusland Thorsen wrote: > >And if you are not able to do as jason suggests, > >you most likely have a problem in your mail() -setup, php.ini perhaps? > > > >ggt667 > > > >On 9/13/06, Jason LEWIS wrote: > >>Jonathan, you can try telneting to the mail server from the problem box. > >> Try "telnet mailserver.example.com 25". You should see a 220 > >>mailserver.example.com version line. Just type quit and it should exit > >>for you. > >> > >>Jason > >> > >>>>> Jonathan Schwartz 09/12/2006 2:47 PM >>> > >>Hi Folks, > >> > >>Sorry for the persistence. I'm still dark on getting mail() to work. > >>I'm looking for logs that I can revieve for clues. There are no > >>error messages being generated on screen by php. Setting is: > >> > >> error_reporting (E_ALL & ~E_NOTICE); > >> > >>What else can I do/Where else can I look for what the problem is? > >> > >>Thanks > >> > >>Jonathan > >> > >> > >>-- > >> > >>Jonathan Schwartz > >>FileMaker 8 Certified Developer > >>Associate Member, FileMaker Solutions Alliance > >>Schwartz & Company > >>jonathan@eschwartz.com > >>http://www.eschwartz.com > >>http://www.exit445.com > >>415-381-1852 > >> > >>_______________________________________________ > >>FX.php_List mailing list > >>FX.php_List@mail.iviking.org > >>http://www.iviking.org/mailman/listinfo/fx.php_list > >>_______________________________________________ > >>FX.php_List mailing list > >>FX.php_List@mail.iviking.org > >>http://www.iviking.org/mailman/listinfo/fx.php_list > >> > >_______________________________________________ > >FX.php_List mailing list > >FX.php_List@mail.iviking.org > >http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jsfmp at earthlink.net Wed Sep 13 11:41:24 2006 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Sep 13 11:41:39 2006 Subject: [FX.php List] Display text within a static-sized rectangle (foreventual printing)? In-Reply-To: <000c01c6d6d6$0432eeb0$0202a8c0@SHUTTLE> References: <000c01c6d6d6$0432eeb0$0202a8c0@SHUTTLE> Message-ID: <7E6B55A1-785C-416F-A259-67000356983D@earthlink.net> Thanks Andy and Kevin for the tip on ThickBox. I'll be checking it out. Are there any other suggestions out there on how I might solve this problem -- or does a GD/image seem like the best solution? -Joel On Sep 12, 2006, at 6:43 PM, Andy Gaunt wrote: > Kevin & Joel, > > You may be thinking of the Thickbox which allows most any type of > content. > > http://jquery.com/demo/thickbox/ > > Regards > > Andy Gaunt > > >> On 13/9/06 11:15 AM, "Joel Shapiro" wrote: >> >>> Hi all >>> >>> OVERVIEW: >>> I'm looking for creative ways to give immediate feedback to Web >>> users >>> when their text (entered into a textarea) won't fit in its alotted >>> space on its printed form -- without users having to wait for the >>> admin to print the form and give it to them -- possibly the next >>> day. >>> >>> >>> SITUATION: >>> I've got a project where users enter text into a textarea on a web >>> page (FX.php). There is a word-count limit on the field which works >>> fine *technically* (i.e. users cannot submit text over the limit). >>> The text in this field is later printed from FileMaker client by an >>> admin. The field prints on a form and has pre-defined dimensions of >>> approx 2.5" x 4". The problem is that users want to be able to enter >>> their text differently, e.g. some as a paragraph, some as a list, >>> some with blank lines, etc, so a word-count doesn't really make that >>> much difference (e.g. 5 words in a list can take up as much physical >>> space as 20 words in a paragraph). And getting all users to only >>> enter text in one way (e.g. paragraphs only, no lists) is not an >>> option at this time. (We'd originally used a character count, but >>> they preferred word-count) >>> >>> One other complication is that some reports are printed in OS X, and >>> some in Windows XP, so even there there is a discrepancy between how >>> much text will fit into this text box -- however I'd be happy to >>> display at least an *approximation* of what the printed form will >>> look like. >>> >>> >>> OPTIONS EXPLORED: >>> I've been playing with creating a PDF (via FPDF) to display just >>> this >>> text field within a bordered rectangle. This seems to work _OK_, >>> but >>> it's certainly not ideal -- opening a new browser window and/or a >>> PDF- >>> reader app window, with a message to close the window to continue >>> editing. I don't like how it interrupts the UI of: (1) select >>> record >>> to edit; (2) edit record; (3) click to submit changes. It would be >>> an additional step (2a) to optionally(?) view an approximation of >>> how >>> the field will print, and then (2b) to close that window and >>> continue >>> editing before submitting (step 3). >>> >>> If I could display this in just a small pop-up window, it would be >>> more acceptable, but that doesn't seem possible since as a PDF it >>> could open up either in the browser or in a PDF-reader app. And I >>> don't want to put the whole form into a PHP-generated PDF, as it's a >>> large, 2-sided report with very tight text-formatting (and I'm >>> lazy). >>> >>> Then I thought of maybe creating an image (GD) with the text inside >>> the sized rectangle -- which probably *could* display in a small >>> pop- >>> up window -- but before I tackle that one, I thought I'd ask for >>> suggestions. >>> >>> Anybody got any for me? >>> >>> (And if I use a PDF or an image, how consistent will these be for >>> users on different browsers, different platforms, etc.?) >> >> I would go with the image, as you then avoid running foul of users' >> preferences (and platfrom differences) for how PDFs are handled in >> web >> pages. Also, you could explore some of the newer JS libraries out >> there that >> actually open new content in a dynamically generated layer over the >> existing >> page (Lightbox being the most famous example). Most only handle >> images, but >> there is one, whose name escapes me at the moment, that can load >> most any >> document, including HTML files. This is a much friendlier approach >> than >> pop-up windows, and also avoids pop-up blockers too. >> >> -- >> Kevin Futter >> Webmaster, St. Bernard's College >> http://www.sbc.melb.catholic.edu.au/ >> >> >> >> ------------------------------------------ >> This e-mail and any attachments may be confidential. You must not >> disclose or use the information in this e-mail if you are not the >> intended recipient. If you have received this e-mail in error, >> please notify us immediately and delete the e-mail and all copies. >> The College does not guarantee that this e-mail is virus or error >> free. The attached files are provided and may only be used on the >> basis that the user assumes all responsibility for any loss, damage >> or consequence resulting directly or indirectly from the use of the >> attached files, whether caused by the negligence of the sender or >> not. The content and opinions in this e-mail are not necessarily >> those of the College. >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Wed Sep 13 13:17:33 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Wed Sep 13 13:17:57 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 20 In-Reply-To: References: Message-ID: <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> Hi Mark, FileMaker 6 doesn't know about UTF-8. I believe the problem is not the apostrophe, but the ? character. The correct encodings for your pages are: FMSA 7/8 FM5-6U US FM5-6U EU Hope this helps. Dale On Sep 13, 2006, at 11:01 AM, Lindal, Mark wrote: > I am trying to get a form to search the FM database and having trouble > remember what to do about apostrophe's. > > Whenever we search on a word like: l'?tude I get no results using > the PHP > form. > > On the list.php page I see the form is adding '\' so when I > print_r($_REQUEST) I see: l\'?tude > > ok fine - so I then use stripslashes to get it back to l'?tude and > put to a > FMFind() on the new data and.... > > no results > > However when searching for the same string in filemaker we get the > results. > > What do I need to do? I have a feeling it is something to do with > Filemaker > 6 and the encoding (UTF-8) vs Latin, but what can I do? > > Thoughts please... > > ------------------------------ > Mark Lindal > Publications Technician / Technicien, publications > Canadian Forest Service / Service canadien des for?ts > Natural Resources Canada / Ressources naturelles Canada > Government of Canada / Gouvernement du Canada > 506 West Burnside Road / 506, chemin Burnside ouest > Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 > > mlindal@pfc.forestry.ca > 250-363-0603 > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Wed Sep 13 22:10:50 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 13 22:14:45 2006 Subject: [FX.php List] Mail from PHP Success! In-Reply-To: <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> References: <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> Message-ID: After 5 days of ups and downs, and jumping between 4 different relevant mail lists in search of answers, I finally resolved my mail() problem. In short, I was able to confirm that web generated email *can* be transferred via smtp to a working mail server (EIMS) located on the same machine The solution was phpmailer, available from sourceforge.net. Thanks to all who helped out. ;-) Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From jonathan at eschwartz.com Wed Sep 13 22:15:58 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Wed Sep 13 22:19:06 2006 Subject: [FX.php List] Mail from PHP to EIMS - -Success! Message-ID: After 5 days of ups and downs, and jumping between 4 different relevant mail lists in search of answers, I finally resolved my php mail() problem. In short, I was able to confirm that web generated email *can* be transferred via smtp to a working mail server (EIMS) located on the same machine The solution was phpmailer, available from sourceforge.net. Thanks to all who helped out. ;-) Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From sgracey at dohio.org Thu Sep 14 14:06:08 2006 From: sgracey at dohio.org (R. Stephen Gracey) Date: Thu Sep 14 14:17:38 2006 Subject: [FX.php List] Can't make FX work: Don't connect somehow! Message-ID: <006b01c6d839$37d96f50$6701010a@tc.org> Hello, Everyone- First timer, here. I've been working at this all day, and I'm having no luck. Here's the set up: 1. Server: FMPro5.5, "10.1.1.156:8080" 2. When I issue a direct request to the web companion (e.g., http://10.1.1.156:8080/fmpro?-format=-fmp_xml &-dbnames), I get the expected XML format back. 3. When I put that in a php file, and call it from the web server, it works fine, as well. 4. When I try to use FX, I get nothing. With the demo files, I always get "no records." If I use "fmpro5/6" as the data source type, I get a blank page, unless I write it as "fmpro5\/6". For example, here is a php file to accomplish the same thing as the direct request: FMDBNames(); echo "
";                
                        print_r($result);
                        echo "
"; ?> And here's what I get back: Array ( [data] => Array ( ) [linkNext] => [linkPrevious] => /FX/show_w_fx.php?skip=0& [foundCount] => -1 [fields] => Array ( ) [URL] => [query] => [errorCode] => No Action Taken [valueLists] => Array ( ) ) I don't know what to try next.Is it a firewall issue? Stephen R. Stephen Gracey Bishop's Assistant for Information Strategy Deputy L4 Episcopal Diocese of Ohio sgracey@dohio.org http://www.dohio.org Trinity Commons 2230 Euclid Avenue Cleveland, OH 44115 (216) 774-0454 (direct) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060914/78cc1189/attachment-0001.html From mlindal at pfc.forestry.ca Thu Sep 14 14:28:36 2006 From: mlindal at pfc.forestry.ca (Lindal, Mark) Date: Thu Sep 14 14:25:31 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 22 In-Reply-To: <20060914201741.C7427360DEC@www.iviking.org> Message-ID: Dale, Yes, it appears that ISO-8559-1 is the way to go. Also if magicquotes are turned on I needed to stripslashes before do my search as FX was adding the slash to the apostrophe when sending it to the result page. Mark > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 13 Sep 2006 14:17:33 -0500 > From: Dale Bengston > Subject: Re: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 20 > To: "FX.php Discussion List" > Message-ID: > <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> > Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed > > Hi Mark, > > FileMaker 6 doesn't know about UTF-8. I believe the problem is not > the apostrophe, but the ? character. > > The correct encodings for your pages are: > > FMSA 7/8 > > > FM5-6U US > > > FM5-6U EU > > > > Hope this helps. > Dale From ggt667 at gmail.com Thu Sep 14 14:44:07 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 14 14:44:22 2006 Subject: [FX.php List] Can't make FX work: Don't connect somehow! In-Reply-To: <006b01c6d839$37d96f50$6701010a@tc.org> References: <006b01c6d839$37d96f50$6701010a@tc.org> Message-ID: Please output the HTTP-query and use the query as a parameter in curl, see which result you get ggt667 On 9/14/06, R. Stephen Gracey wrote: > > > > > Hello, Everyone? > > First timer, here. I've been working at this all day, and I'm having no > luck. > > Here's the set up: > > > > 1. Server: FMPro5.5, "10.1.1.156:8080" > > 2. When I issue a direct request to the web companion (e.g., > http://10.1.1.156:8080/fmpro?-format=-fmp_xml&-dbnames), I > get the expected XML format back. > > 3. When I put that in a php file, and call it from the web server, it works > fine, as well. > > 4. When I try to use FX, I get nothing. With the demo files, I always get > "no records." If I use "fmpro5/6" as the data source type, I get a blank > page, unless I write it as "fmpro5\/6". > > > > For example, here is a php file to accomplish the same thing as the direct > request: > > > > > include ("FX.php"); > > > > $request = new FX("10.1.1.156", 8080, 'fmpro5\/6'); > // I have to put the escape slash in to get the page to run and not be blank > > $result = $request->FMDBNames(); > > > > echo "
";
>
>                         print_r($result);
>
>                         echo "
"; > > > > ?> > > > > And here's what I get back: > > Array > ( > [data] => Array > ( > ) > > [linkNext] => > [linkPrevious] => /FX/show_w_fx.php?skip=0& > [foundCount] => -1 > [fields] => Array > ( > ) > > [URL] => > [query] => > [errorCode] => No Action Taken > [valueLists] => Array > ( > ) > > ) > > > > > > > I don't know what to try next?Is it a firewall issue? > > > > Stephen > > > > R. Stephen Gracey > Bishop's Assistant for Information Strategy > Deputy L4 > > Episcopal Diocese of Ohio > > sgracey@dohio.org > > http://www.dohio.org > > Trinity Commons > 2230 Euclid Avenue > Cleveland, OH 44115 > > (216) 774-0454 (direct) > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > From ggt667 at gmail.com Thu Sep 14 15:34:09 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 14 15:34:23 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 20 In-Reply-To: <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> References: <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> Message-ID: FM 5-6 can only output UTF-8 ggt667 On 9/13/06, Dale Bengston wrote: > Hi Mark, > > FileMaker 6 doesn't know about UTF-8. I believe the problem is not > the apostrophe, but the ? character. > > The correct encodings for your pages are: > > FMSA 7/8 > > > FM5-6U US > > > FM5-6U EU > > > > Hope this helps. > Dale > > On Sep 13, 2006, at 11:01 AM, Lindal, Mark wrote: > > > I am trying to get a form to search the FM database and having trouble > > remember what to do about apostrophe's. > > > > Whenever we search on a word like: l'?tude I get no results using > > the PHP > > form. > > > > On the list.php page I see the form is adding '\' so when I > > print_r($_REQUEST) I see: l\'?tude > > > > ok fine - so I then use stripslashes to get it back to l'?tude and > > put to a > > FMFind() on the new data and.... > > > > no results > > > > However when searching for the same string in filemaker we get the > > results. > > > > What do I need to do? I have a feeling it is something to do with > > Filemaker > > 6 and the encoding (UTF-8) vs Latin, but what can I do? > > > > Thoughts please... > > > > ------------------------------ > > Mark Lindal > > Publications Technician / Technicien, publications > > Canadian Forest Service / Service canadien des for?ts > > Natural Resources Canada / Ressources naturelles Canada > > Government of Canada / Gouvernement du Canada > > 506 West Burnside Road / 506, chemin Burnside ouest > > Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 > > > > mlindal@pfc.forestry.ca > > 250-363-0603 > > > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dbengston at preservationstudio.com Thu Sep 14 20:37:23 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Sep 14 20:37:49 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 20 In-Reply-To: References: <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> Message-ID: <5FC88A9D-D4C8-45DF-B5EE-4E27FF0D0E56@preservationstudio.com> Really? UTF-8 creates problems in FMSA5/6 that go away when I use ISO-8859-1. The reverse is also true: UTF-8 works with FMSA7/8, but ISO-8859-1 does not. Dale On Sep 14, 2006, at 4:34 PM, Gjermund Gusland Thorsen wrote: > FM 5-6 can only output UTF-8 > > ggt667 > > On 9/13/06, Dale Bengston wrote: >> Hi Mark, >> >> FileMaker 6 doesn't know about UTF-8. I believe the problem is not >> the apostrophe, but the ? character. >> >> The correct encodings for your pages are: >> >> FMSA 7/8 >> >> >> FM5-6U US >> >> >> FM5-6U EU >> >> >> >> Hope this helps. >> Dale >> >> On Sep 13, 2006, at 11:01 AM, Lindal, Mark wrote: >> >> > I am trying to get a form to search the FM database and having >> trouble >> > remember what to do about apostrophe's. >> > >> > Whenever we search on a word like: l'?tude I get no results using >> > the PHP >> > form. >> > >> > On the list.php page I see the form is adding '\' so when I >> > print_r($_REQUEST) I see: l\'?tude >> > >> > ok fine - so I then use stripslashes to get it back to l'?tude and >> > put to a >> > FMFind() on the new data and.... >> > >> > no results >> > >> > However when searching for the same string in filemaker we get the >> > results. >> > >> > What do I need to do? I have a feeling it is something to do with >> > Filemaker >> > 6 and the encoding (UTF-8) vs Latin, but what can I do? >> > >> > Thoughts please... >> > >> > ------------------------------ >> > Mark Lindal >> > Publications Technician / Technicien, publications >> > Canadian Forest Service / Service canadien des for?ts >> > Natural Resources Canada / Ressources naturelles Canada >> > Government of Canada / Gouvernement du Canada >> > 506 West Burnside Road / 506, chemin Burnside ouest >> > Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 >> > >> > mlindal@pfc.forestry.ca >> > 250-363-0603 >> > >> > >> > >> > _______________________________________________ >> > FX.php_List mailing list >> > FX.php_List@mail.iviking.org >> > http://www.iviking.org/mailman/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 kfutter at sbc.melb.catholic.edu.au Thu Sep 14 21:13:27 2006 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Thu Sep 14 21:14:51 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 20 In-Reply-To: <5FC88A9D-D4C8-45DF-B5EE-4E27FF0D0E56@preservationstudio.com> Message-ID: On 15/9/06 12:37 PM, "Dale Bengston" wrote: > Really? UTF-8 creates problems in FMSA5/6 that go away when I use > ISO-8859-1. The reverse is also true: UTF-8 works with FMSA7/8, but > ISO-8859-1 does not. > > Dale While I can't vouch for the veracity of the first part above, I can say that I use ISO-8859-1 everyday with FMSA8. Having said that, I really *should* be using UTF-8, but we still have a mixed FMU6/FMSA8 environment at the moment. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ------------------------------------------ This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. From sgracey at dohio.org Fri Sep 15 07:14:55 2006 From: sgracey at dohio.org (R. Stephen Gracey) Date: Fri Sep 15 07:15:30 2006 Subject: [FX.php List] Can't make FX work: Don't connect somehow! In-Reply-To: Message-ID: <001e01c6d8c8$efa6c260$6701010a@tc.org> Sorry--I don't know exactly what this means. Could someone help me translate it into steps? Stephen -----Original Message----- From: Gjermund Gusland Thorsen [mailto:ggt667@gmail.com] Sent: Thursday, September 14, 2006 4:44 PM To: sgracey@dohio.org; FX.php Discussion List Subject: Re: [FX.php List] Can't make FX work: Don't connect somehow! Please output the HTTP-query and use the query as a parameter in curl, see which result you get ggt667 On 9/14/06, R. Stephen Gracey wrote: > > > > > Hello, Everyone- > > First timer, here. I've been working at this all day, and I'm having no > luck. > > Here's the set up: > > > > 1. Server: FMPro5.5, "10.1.1.156:8080" > > 2. When I issue a direct request to the web companion (e.g., > http://10.1.1.156:8080/fmpro?-format=-fmp_xml&-dbnames), I > get the expected XML format back. > > 3. When I put that in a php file, and call it from the web server, it works > fine, as well. > > 4. When I try to use FX, I get nothing. With the demo files, I always get > "no records." If I use "fmpro5/6" as the data source type, I get a blank > page, unless I write it as "fmpro5\/6". > > > > For example, here is a php file to accomplish the same thing as the direct > request: > > > > > include ("FX.php"); > > > > $request = new FX("10.1.1.156", 8080, 'fmpro5\/6'); > // I have to put the escape slash in to get the page to run and not be blank > > $result = $request->FMDBNames(); > > > > echo "
";
>
>                         print_r($result);
>
>                         echo "
"; > > > > ?> > > > > And here's what I get back: > > Array > ( > [data] => Array > ( > ) > > [linkNext] => > [linkPrevious] => /FX/show_w_fx.php?skip=0& > [foundCount] => -1 > [fields] => Array > ( > ) > > [URL] => > [query] => > [errorCode] => No Action Taken > [valueLists] => Array > ( > ) > > ) > > > > > > > I don't know what to try next.Is it a firewall issue? > > > > Stephen > > > > R. Stephen Gracey > Bishop's Assistant for Information Strategy > Deputy L4 > > Episcopal Diocese of Ohio > > sgracey@dohio.org > > http://www.dohio.org > > Trinity Commons > 2230 Euclid Avenue > Cleveland, OH 44115 > > (216) 774-0454 (direct) > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > From dness at bondedbuilders.com Fri Sep 15 09:22:21 2006 From: dness at bondedbuilders.com (David Ness) Date: Fri Sep 15 09:19:03 2006 Subject: [FX.php List] PHP Array question In-Reply-To: <598014C6-7DD4-4689-9E11-6965586E1CD9@preservationstudio.com> Message-ID: <5CF517C96A6D704984FB81D6D61383A20103FA13@exchange.bondedbuilders.com> I need a little help to understand arrays. Here's the scenario: I'm reading record data from a csv file to populate a FileMaker table. That all works fine. For each record read, I want to see if a field value in the record read already exists in my target database for that customer, in which case I'm skipping that record and moving onto the next. My current solution performs a fx.PHP query against the FileMaker table for each csv record as it's read. This works, but results in hundreds of fx.PHP queries, once for each record in the csv file. So instead, I though I could read in all of the existing FM field values into an array with a single fx.PHP query, then use that PHP array in the comparison, using the php in_array statement. But I'm a little fuzzy on this, as you'll see from the following code fragment: // Read in all values contained in the referenceNumber field from FM // Layout 'referenceNumberLayout' contains 2 fields: // 'customer_number' & 'referenceNumber' $Query = new FX($serverIP,$webCompanionPort); $Query->SetDBData($databasename,'referenceNumberLayout', 'all'); $Query->SetDBPassword($password,$username); $Query->AddDBParam('customer_number', $customerNumber, "eq" ); $referenceNumber_array = $Query->FMFind(); while (($importdata = fgetcsv($handle, 0, ",")) != FALSE) { // Check to see if Builder Ref#/Job# is unique for this builder. // This is the mechanism for handling (excluding) duplicate submissions. // $importdata[0] contains the reference number if( in_array( $importdata[0], $referenceNumber_array['referenceNumber'] )) { $validationMsg = 'Skipped'; } } I'm sure my problem is in the 'if( in_array(...' statement, but I'm not clear how I reference the array of reference numbers. Help is greatly appreciated. -- David Ness, Database Systems Programmer Bonded Builders Warranty Group 1500 Kings Highway Port Charlotte, FL 33980 800.749.0381 x3123 (National Toll Free) 941.255.3274 x3123 (Local) From dness at bondedbuilders.com Fri Sep 15 09:30:47 2006 From: dness at bondedbuilders.com (David Ness) Date: Fri Sep 15 09:27:23 2006 Subject: [FX.php List] in_array code fragment Message-ID: <5CF517C96A6D704984FB81D6D61383A20103FA14@exchange.bondedbuilders.com> Here's that code fragment again, with the formatting fixed (hopefully) for clarity. // Read in all values contained in the referenceNumber field from FM // Layout 'referenceNumberLayout' contains 2 fields: // 'customer_number' & 'referenceNumber' $Query = new FX($serverIP,$webCompanionPort); $Query->SetDBData($databasename,'referenceNumberLayout', 'all'); $Query->SetDBPassword($password,$username); $Query->AddDBParam('customer_number', $customerNumber, "eq" ); $referenceNumber_array = $Query->FMFind(); while (($importdata = fgetcsv($handle, 0, ",")) != FALSE) { // Check to see if Builder Ref#/Job# is unique for this builder. // This is the mechanism for handling (excluding) duplicate submissions. // $importdata[0] contains the reference number if( in_array( $importdata[0], $referenceNumber_array['referenceNumber'] )) { $validationMsg = 'Skipped'; } } -- David Ness, Database Systems Programmer From dan.cynosure at dbmscan.com Fri Sep 15 09:46:51 2006 From: dan.cynosure at dbmscan.com (DC) Date: Fri Sep 15 09:47:10 2006 Subject: [FX.php List] in_array code fragment In-Reply-To: <5CF517C96A6D704984FB81D6D61383A20103FA14@exchange.bondedbuilders.com> References: <5CF517C96A6D704984FB81D6D61383A20103FA14@exchange.bondedbuilders.com> Message-ID: <87CBFDF6-6052-45F5-B027-8067D185FAEF@dbmscan.com> Hi David, This question means that you haven't yet come to terms with the way that FX.php returns the data. It is a nested, associative array. You need to become familiar with it to progress. You're quite right. You are accessing the referenceNumber_array wrong. In fact, you have some extra work to do before you can get to the data that you need for this comparison to work properly. This line: > $referenceNumber_array = $Query->FMFind(); is going to return multiple records separated into multiple nested arrays. To get one record for comparison is easy and very similar to what you've already done. > $referenceNumber_array['data'][0]['referenceNumber'][0] This describes the 'location' of a single piece of data in the FX.php array. Reading from right-to-left... It says give me the first array item [0] returned for the filemaker field 'referenceNumber' for the first record returned [0] at the array location 'data'. phew. To get all these bits of data from multiple returned records is what you want to do. You need to get the data bits (referenceNumbers) into an array that you can use with the in_array function. I could write it out for you but then you wouldn't have that keen sense of accomplishment when you've finished... ;-) HOWEVER, If you have control over the FMP database then you can do something potentially easier : make a self join on customernumber and use it to build a calculation field that contains all the reference numbers. (in FMP6 i've used troitext plugin to do this, not sure if this is now possible natively with FMP7 or FMP8) put that field on your layout and use that field instead to do a simple strpos() check. this will allow you to do one find and one duplicate check. note that this assumes that all your referenceNumbers are unique. doing it this way means you don't have to fuss around with un-nesting FX.php data array. either way you choose, let us know. dan On Sep 15, 2006, at 11:30 AM, David Ness wrote: > Here's that code fragment again, with the formatting fixed (hopefully) > for clarity. > > > // Read in all values contained in the referenceNumber field from FM > // Layout 'referenceNumberLayout' contains 2 fields: > // 'customer_number' & 'referenceNumber' > $Query = new FX($serverIP,$webCompanionPort); > $Query->SetDBData($databasename,'referenceNumberLayout', 'all'); > $Query->SetDBPassword($password,$username); > $Query->AddDBParam('customer_number', $customerNumber, "eq" ); > $referenceNumber_array = $Query->FMFind(); > > > while (($importdata = fgetcsv($handle, 0, ",")) != FALSE) { > // Check to see if Builder Ref#/Job# is unique for this builder. > // This is the mechanism for handling (excluding) duplicate > submissions. > // $importdata[0] contains the reference number > if( in_array( $importdata[0], > $referenceNumber_array['referenceNumber'] )) { > $validationMsg = 'Skipped'; > } > } > > > -- > David Ness, > Database Systems Programmer > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From stephen at fmwebschool.com Fri Sep 15 10:01:43 2006 From: stephen at fmwebschool.com (Stephen Knight) Date: Fri Sep 15 10:00:08 2006 Subject: [FX.php List] [OT]FX.php Consultants Needed In-Reply-To: <87CBFDF6-6052-45F5-B027-8067D185FAEF@dbmscan.com> Message-ID: <20060915160006.D91723616D5@www.iviking.org> Hi Everyone, We are looking for a few FX.php developers to work with us on a few projects. If you are interested please navigate to this link. http://www.fmwebschool.com/resources/employment.pdf Thank you so much, and I apologize for the intrusion. In Kindness Stephen K Knight http://www.fmwebschool.com 800.353.7950 / 386.453.5843 FMWebschool, we bring the web to life FX.PHP PHP XML MySQL CDML ASP From dness at bondedbuilders.com Fri Sep 15 12:33:40 2006 From: dness at bondedbuilders.com (David Ness) Date: Fri Sep 15 12:30:17 2006 Subject: [FX.php List] in_array code fragment Message-ID: <5CF517C96A6D704984FB81D6D61383A20103FA15@exchange.bondedbuilders.com> Dan, Thanks for the response, and the 'push' ;-) The following code works, though I would think there might be a single PHP function for either accessing the $referenceNumber_array['data'][0]['referenceNumber'] array directly, or by assigning the values in this nested array to another (non-nested) array variable without using a 'foreach', perhaps using the PHP function 'array-values()'. But I guess a single foreach does the trick adequately. Maybe it's the right way. You're right. I don't have as complete a grasp on arrays, especially nested arrays and their manipulation as I need to have, but I will. Here's what I ended up with, and it appears to work fine: // Read in all values contained in the // referenceNumber field from FM // Layout 'referenceNumberLayout' contains 2 fields: // 'customer_number' & 'referenceNumber' $Query = new FX($serverIP,$webCompanionPort); $Query->SetDBData($databasename,'referenceNumberLayout', 'all'); $Query->SetDBPassword($password,$username); $Query->AddDBParam('customer_number', $customerNumber, "eq" ); $QueryResult = $Query->FMFind(); foreach ($QueryResult['data'] as $key => $QueryArray ) { $referenceNumber_array[] = $QueryArray['reference_number'][0]; } while (($importdata = fgetcsv($handle, 0, ",")) != FALSE) { // Check to see if Ref# is unique for this customer. // This is the mechanism for excluding duplicate submissions. // $importdata[0] contains the reference number if( in_array( $importdata[0], $referenceNumber_array['referenceNumber'] )) { $validationMsg = 'Skipped'; } } -- David Ness From mlindal at pfc.forestry.ca Fri Sep 15 12:41:21 2006 From: mlindal at pfc.forestry.ca (Lindal, Mark) Date: Fri Sep 15 12:42:19 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 23 In-Reply-To: <20060915152727.D884F36165A@www.iviking.org> Message-ID: This is an advanced topic and I need some help to sort our character encoding for fm5/6 data. This is centered around iso-8559-1 vs utf-8 To send data successfully to an FM5/6 database requires iso-8559-1 encoding. Example: when creating a new record [FMNew() ] Qu?bec is entered into the filemaker database as Qu@A#5bec if the encoding is UTF-8. When the encoding is iso-8559-1 Qu?bec is entered as Qu?bec. Now the question: If a person with a browser set to default coding UTF-8 override my page settings (ISO-8559-1) and still enter garbage characters into the database? I tested with Safari set to UTF-8 and it did override my page settings. So now to the guts: ? = %E9 under iso-8559-1 and %C3%A9 under UTF-8 In other words: How can I fix the URL string FX.php creates to be ISO characters in these cases. An example URL string http://FX:password@host:591/FMPro?-db=database.fp5&-lay=web&-format=-fmp_xml &province=Qu%E9bec&-edit In FX.php there are xml_parser and ExecuteQuery () and Characterencoding that may need to be tweaked - but I need to know which functions might need to be tweaked so this clears the data. This may be a minor bug in FX.php for case='fmpro5/6' that needs to be looked at. > > While I can't vouch for the veracity of the first part above, I can say > that > I use ISO-8859-1 everyday with FMSA8. Having said that, I really > *should* be > using UTF-8, but we still have a mixed FMU6/FMSA8 environment at the > moment. ------------------------------ Mark Lindal Publications Technician / Technicien, publications Canadian Forest Service / Service canadien des for?ts Natural Resources Canada / Ressources naturelles Canada Government of Canada / Gouvernement du Canada 506 West Burnside Road / 506, chemin Burnside ouest Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 mlindal@pfc.forestry.ca 250-363-0603 From dness at bondedbuilders.com Fri Sep 15 12:52:21 2006 From: dness at bondedbuilders.com (David Ness) Date: Fri Sep 15 12:48:57 2006 Subject: [FX.php List] in_array code fragment In-Reply-To: <5CF517C96A6D704984FB81D6D61383A20103FA15@exchange.bondedbuilders.com> Message-ID: <5CF517C96A6D704984FB81D6D61383A20103FA16@exchange.bondedbuilders.com> Dan, and all, Of course, I see my final solution in my previous posting was sent with a typo. So for the sake of being correct: if( in_array( $importdata[0], $referenceNumber_array['referenceNumber'] )) { $validationMsg = 'Skipped'; } Should read: if( in_array( $importdata[0], $referenceNumber_array )) { $validationMsg = 'Skipped'; } -- David Ness _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From wcakey at hotmail.com Fri Sep 15 13:00:53 2006 From: wcakey at hotmail.com (William Akey) Date: Fri Sep 15 12:56:03 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 23 References: Message-ID: Hi Mark, Don't know if this will help, but in addition to the utf8_encode() function in PHP, there is also a utf8_decode function. Now, if you had a way to determine that the posted info was utf-8 encoded, you could apply the decode function and be on your way. Hope this helps William ----- Original Message ----- From: "Lindal, Mark" To: Sent: Friday, September 15, 2006 11:41 AM Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 23 This is an advanced topic and I need some help to sort our character encoding for fm5/6 data. This is centered around iso-8559-1 vs utf-8 To send data successfully to an FM5/6 database requires iso-8559-1 encoding. Example: when creating a new record [FMNew() ] Qu?bec is entered into the filemaker database as Qu@A#5bec if the encoding is UTF-8. When the encoding is iso-8559-1 Qu?bec is entered as Qu?bec. Now the question: If a person with a browser set to default coding UTF-8 override my page settings (ISO-8559-1) and still enter garbage characters into the database? I tested with Safari set to UTF-8 and it did override my page settings. So now to the guts: ? = %E9 under iso-8559-1 and %C3%A9 under UTF-8 In other words: How can I fix the URL string FX.php creates to be ISO characters in these cases. An example URL string http://FX:password@host:591/FMPro?-db=database.fp5&-lay=web&-format=-fmp_xml &province=Qu%E9bec&-edit In FX.php there are xml_parser and ExecuteQuery () and Characterencoding that may need to be tweaked - but I need to know which functions might need to be tweaked so this clears the data. This may be a minor bug in FX.php for case='fmpro5/6' that needs to be looked at. > > While I can't vouch for the veracity of the first part above, I can say > that > I use ISO-8859-1 everyday with FMSA8. Having said that, I really > *should* be > using UTF-8, but we still have a mixed FMU6/FMSA8 environment at the > moment. ------------------------------ Mark Lindal Publications Technician / Technicien, publications Canadian Forest Service / Service canadien des for?ts Natural Resources Canada / Ressources naturelles Canada Government of Canada / Gouvernement du Canada 506 West Burnside Road / 506, chemin Burnside ouest Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 mlindal@pfc.forestry.ca 250-363-0603 _______________________________________________ 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 Sep 15 13:12:29 2006 From: dan.cynosure at dbmscan.com (DC) Date: Fri Sep 15 13:12:54 2006 Subject: [FX.php List] in_array code fragment In-Reply-To: <5CF517C96A6D704984FB81D6D61383A20103FA15@exchange.bondedbuilders.com> References: <5CF517C96A6D704984FB81D6D61383A20103FA15@exchange.bondedbuilders.com> Message-ID: <4E8ABB16-77A3-4C17-A6B9-0E2C224AE0AE@dbmscan.com> Hooray! A+ Great work. dan On Sep 15, 2006, at 2:33 PM, David Ness wrote: > Dan, > > Thanks for the response, and the 'push' ;-) From ggt667 at gmail.com Sat Sep 16 02:07:07 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Sep 16 02:07:25 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 20 In-Reply-To: References: <5FC88A9D-D4C8-45DF-B5EE-4E27FF0D0E56@preservationstudio.com> Message-ID: As long as you do not use characters outside the ASCII space of 0x20 to 0x7f I believe it is character encoding does not really matter. Perhaps all the way to 0x9f works, but I'm not sure ggt667 On 9/15/06, Kevin Futter wrote: > On 15/9/06 12:37 PM, "Dale Bengston" > wrote: > > > Really? UTF-8 creates problems in FMSA5/6 that go away when I use > > ISO-8859-1. The reverse is also true: UTF-8 works with FMSA7/8, but > > ISO-8859-1 does not. > > > > Dale > > While I can't vouch for the veracity of the first part above, I can say that > I use ISO-8859-1 everyday with FMSA8. Having said that, I really *should* be > using UTF-8, but we still have a mixed FMU6/FMSA8 environment at the moment. > > -- > Kevin Futter > Webmaster, St. Bernard's College > http://www.sbc.melb.catholic.edu.au/ > > > > ------------------------------------------ > This e-mail and any attachments may be confidential. You must not disclose or use the information in this e-mail if you are not the intended recipient. If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies. The College does not guarantee that this e-mail is virus or error free. The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not. The content and opinions in this e-mail are not necessarily those of the College. > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Sat Sep 16 02:09:10 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Sep 16 02:09:24 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall Message-ID: Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, I'm looking forward to this, will you be there? http://www.devconscandinavia.se/Forelasare/Forelasare.html Gjermund Gusland Thorsen From jonathan at eschwartz.com Sat Sep 16 08:51:04 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sat Sep 16 09:12:36 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall In-Reply-To: References: Message-ID: Congrats! Checked out the site. There must be something wrong. I see all these funny characters: Gjermund har over 7 ?rs erfaring med FileMaker-utvikling. Han er medforfatter av FX.php. De siste prosjektene har v?rt ? integrere FileMaker mot andre systemer, for det meste Open Source relaterte l?sninger; Python, php, XML, MySQL, PostrgreSQL, men ogs? M$ SQL. Med hovedvekt p? relasjonsdesign og dokumentflyt. ;-) J At 10:09 AM +0200 9/16/06, Gjermund Gusland Thorsen wrote: >Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, >I'm looking forward to this, will you be there? > >http://www.devconscandinavia.se/Forelasare/Forelasare.html > >Gjermund Gusland Thorsen >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060916/18414fda/attachment-0001.html From ggt667 at gmail.com Sun Sep 17 11:46:03 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 17 11:46:24 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall In-Reply-To: References: Message-ID: These scandinavian characters: ?, ?, ?, ?, ?, ?, ?, ?, ? and ? ?!? ggt667 On 9/16/06, Jonathan Schwartz wrote: > > > Congrats! Checked out the site. There must be something wrong. I see all > these funny characters: > > > Gjermund har over 7 ?rs erfaring med FileMaker-utvikling. Han er > medforfatter av FX.php. De siste prosjektene har v?rt ? integrere FileMaker > mot andre systemer, for det meste Open Source relaterte l?sninger; Python, > php, XML, MySQL, PostrgreSQL, men ogs? M$ SQL. Med hovedvekt p? > relasjonsdesign og dokumentflyt. > > > ;-) > > > J > > > > > > At 10:09 AM +0200 9/16/06, Gjermund Gusland Thorsen wrote: > Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, > I'm looking forward to this, will you be there? > > > http://www.devconscandinavia.se/Forelasare/Forelasare.html > > Gjermund Gusland Thorsen > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > -- > > > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > From jonathan at eschwartz.com Sun Sep 17 12:00:17 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Sun Sep 17 12:03:54 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall In-Reply-To: References: Message-ID: Yes. I was just trying to be funny. ;-) Guess I'll shut up now... J At 7:46 PM +0200 9/17/06, Gjermund Gusland Thorsen wrote: >These scandinavian characters: ?, ?, ?, ?, ?, ?, ?, ?, ? and ? > >?!? > >ggt667 > >On 9/16/06, Jonathan Schwartz wrote: >> >> >>Congrats! Checked out the site. There must be something wrong. I see all >>these funny characters: >> >> >>Gjermund har over 7 ?rs erfaring med FileMaker-utvikling. Han er >>medforfatter av FX.php. De siste prosjektene har v?rt ? integrere FileMaker >>mot andre systemer, for det meste Open Source relaterte l?sninger; Python, >>php, XML, MySQL, PostrgreSQL, men ogs? M$ SQL. Med hovedvekt p? >>relasjonsdesign og dokumentflyt. >> >> >>;-) >> >> >>J >> >> >> >> >> >>At 10:09 AM +0200 9/16/06, Gjermund Gusland Thorsen wrote: >>Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, >> I'm looking forward to this, will you be there? >> >> >>http://www.devconscandinavia.se/Forelasare/Forelasare.html >> >> Gjermund Gusland Thorsen >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> -- >> >> >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From ggt667 at gmail.com Sun Sep 17 12:24:17 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 17 12:24:37 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall In-Reply-To: References: Message-ID: Those and some more characters are the main reason why we love UTF-8 over here. ggt667 On 9/17/06, Jonathan Schwartz wrote: > Yes. I was just trying to be funny. ;-) > > Guess I'll shut up now... > > J > > At 7:46 PM +0200 9/17/06, Gjermund Gusland Thorsen wrote: > >These scandinavian characters: ?, ?, ?, ?, ?, ?, ?, ?, ? and ? > > > >?!? > > > >ggt667 > > > >On 9/16/06, Jonathan Schwartz wrote: > >> > >> > >>Congrats! Checked out the site. There must be something wrong. I see all > >>these funny characters: > >> > >> > >>Gjermund har over 7 ?rs erfaring med FileMaker-utvikling. Han er > >>medforfatter av FX.php. De siste prosjektene har v?rt ? integrere FileMaker > >>mot andre systemer, for det meste Open Source relaterte l?sninger; Python, > >>php, XML, MySQL, PostrgreSQL, men ogs? M$ SQL. Med hovedvekt p? > >>relasjonsdesign og dokumentflyt. > >> > >> > >>;-) > >> > >> > >>J > >> > >> > >> > >> > >> > >>At 10:09 AM +0200 9/16/06, Gjermund Gusland Thorsen wrote: > >>Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, > >> I'm looking forward to this, will you be there? > >> > >> > >>http://www.devconscandinavia.se/Forelasare/Forelasare.html > >> > >> Gjermund Gusland Thorsen > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > >> > >> > >> > >> -- > >> > >> > >> > >>Jonathan Schwartz > >>FileMaker 8 Certified Developer > >>Associate Member, FileMaker Solutions Alliance > >>Schwartz & Company > >>jonathan@eschwartz.com > >>http://www.eschwartz.com > >>http://www.exit445.com > >>415-381-1852 > >> > >> > >>_______________________________________________ > >>FX.php_List mailing list > >>FX.php_List@mail.iviking.org > >>http://www.iviking.org/mailman/listinfo/fx.php_list > >> > >> > >_______________________________________________ > >FX.php_List mailing list > >FX.php_List@mail.iviking.org > >http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From cr at fmarchitect.com Mon Sep 18 07:34:47 2006 From: cr at fmarchitect.com (Caleb Ruth) Date: Tue Sep 19 11:17:42 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall In-Reply-To: Message-ID: <20060918133447.91394.qmail@web305.biz.mail.mud.yahoo.com> What is the common language of Scandinavia? --- Gjermund Gusland Thorsen wrote: > Those and some more characters are the main reason why we love UTF-8 > over here. > > ggt667 > > On 9/17/06, Jonathan Schwartz wrote: > > Yes. I was just trying to be funny. ;-) > > > > Guess I'll shut up now... > > > > J > > > > At 7:46 PM +0200 9/17/06, Gjermund Gusland Thorsen wrote: > > >These scandinavian characters: ?, ?, ?, ?, ?, ?, ?, ?, ? and ? > > > > > >?!? > > > > > >ggt667 > > > > > >On 9/16/06, Jonathan Schwartz wrote: > > >> > > >> > > >>Congrats! Checked out the site. There must be something wrong. > I see all > > >>these funny characters: > > >> > > >> > > >>Gjermund har over 7 ?rs erfaring med FileMaker-utvikling. Han er > > >>medforfatter av FX.php. De siste prosjektene har v?rt ? integrere > FileMaker > > >>mot andre systemer, for det meste Open Source relaterte > l?sninger; Python, > > >>php, XML, MySQL, PostrgreSQL, men ogs? M$ SQL. Med hovedvekt p? > > >>relasjonsdesign og dokumentflyt. > > >> > > >> > > >>;-) > > >> > > >> > > >>J > > >> > > >> > > >> > > >> > > >> > > >>At 10:09 AM +0200 9/16/06, Gjermund Gusland Thorsen wrote: > > >>Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, > > >> I'm looking forward to this, will you be there? > > >> > > >> > > >>http://www.devconscandinavia.se/Forelasare/Forelasare.html > > >> > > >> Gjermund Gusland Thorsen > > >> _______________________________________________ > > >> FX.php_List mailing list > > >> FX.php_List@mail.iviking.org > > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > >> > > >> > > >> > > >> -- > > >> > > >> > > >> > > >>Jonathan Schwartz > > >>FileMaker 8 Certified Developer > > >>Associate Member, FileMaker Solutions Alliance > > >>Schwartz & Company > > >>jonathan@eschwartz.com > > >>http://www.eschwartz.com > > >>http://www.exit445.com > > >>415-381-1852 > > >> > > >> > > >>_______________________________________________ > > >>FX.php_List mailing list > > >>FX.php_List@mail.iviking.org > > >>http://www.iviking.org/mailman/listinfo/fx.php_list > > >> > > >> > > >_______________________________________________ > > >FX.php_List mailing list > > >FX.php_List@mail.iviking.org > > >http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > -- > > > > Jonathan Schwartz > > FileMaker 8 Certified Developer > > Associate Member, FileMaker Solutions Alliance > > Schwartz & Company > > jonathan@eschwartz.com > > http://www.eschwartz.com > > http://www.exit445.com > > 415-381-1852 > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/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 mlindal at pfc.forestry.ca Mon Sep 18 09:30:01 2006 From: mlindal at pfc.forestry.ca (Lindal, Mark) Date: Tue Sep 19 11:17:47 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 24 In-Reply-To: <20060916151240.B17933625FE@www.iviking.org> Message-ID: I think I fixed the coding issue. My Apache version 2.2 has set UTF-8 as the default character set so eventhough my pages has specified ISO-8559-1, apache was overruling this and changing the pages to UTF-8. But 2 points - good idea about the UTF-8 decode that may work if I can figure out how to test for it. - as well I think that in the FX.php library there may be a way of handling the "case fmpro5/6" situation right there and send the coding with iso-8559-1 since we know this is required for fmpro 6. And sometime within the next 2 years we may be able to convert to version 8 and solve the problem. Until then, I will have to work with the hand I am dealt. > ------------------------------ > > Message: 6 > Date: Fri, 15 Sep 2006 12:00:53 -0700 > From: "William Akey" > Subject: Re: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 23 > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Hi Mark, > > Don't know if this will help, but in addition to the utf8_encode() > function > in PHP, there is also a utf8_decode function. Now, if you had a way to > determine that the posted info was utf-8 encoded, you could apply the > decode > function and be on your way. > > Hope this helps > > William > > > ----- Original Message ----- > From: "Lindal, Mark" > To: > Sent: Friday, September 15, 2006 11:41 AM > Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 23 > > > This is an advanced topic and I need some help to sort our character > encoding for fm5/6 data. > > This is centered around iso-8559-1 vs utf-8 > > To send data successfully to an FM5/6 database requires iso-8559-1 > encoding. > > Example: when creating a new record [FMNew() ] Qu?bec is entered into > the > filemaker database as Qu@A#5bec if the encoding is UTF-8. When the > encoding > is iso-8559-1 Qu?bec is entered as Qu?bec. > > Now the question: > > If a person with a browser set to default coding UTF-8 override my page > settings (ISO-8559-1) and still enter garbage characters into the > database? > > I tested with Safari set to UTF-8 and it did override my page settings. > > So now to the guts: ? = %E9 under iso-8559-1 and %C3%A9 under UTF-8 > > In other words: How can I fix the URL string FX.php creates to be ISO > characters in these cases. > > An example URL string > > http://FX:password@host:591/FMPro?-db=database.fp5&-lay=web&-format=-fmp > _xml > &province=Qu%E9bec&-edit > > In FX.php there are xml_parser and ExecuteQuery () and Characterencoding > that may need to be tweaked - but I need to know which functions might > need > to be tweaked so this clears the data. > > This may be a minor bug in FX.php for case='fmpro5/6' that needs to be > looked at. > >> >> While I can't vouch for the veracity of the first part above, I can > say >> that >> I use ISO-8859-1 everyday with FMSA8. Having said that, I really >> *should* be >> using UTF-8, but we still have a mixed FMU6/FMSA8 environment at the >> moment. > ------------------------------ > > Message: 8 > Date: Sat, 16 Sep 2006 10:07:07 +0200 > From: "Gjermund Gusland Thorsen" > Subject: Re: Re: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue > 20 > To: "FX.php Discussion List" > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > As long as you do not use characters outside the ASCII space of 0x20 > to 0x7f I believe it is character encoding does not really matter. > > Perhaps all the way to 0x9f works, but I'm not sure > > ggt667 > ------------------------------ Mark Lindal Publications Technician / Technicien, publications Canadian Forest Service / Service canadien des for?ts Natural Resources Canada / Ressources naturelles Canada Government of Canada / Gouvernement du Canada 506 West Burnside Road / 506, chemin Burnside ouest Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 mlindal@pfc.forestry.ca 250-363-0603 From dbengston at preservationstudio.com Mon Sep 18 09:45:48 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Tue Sep 19 11:17:49 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall In-Reply-To: References: Message-ID: <2CC8B96A-DCA2-46A9-A745-8FAE63C8A482@preservationstudio.com> My dim recollection of Swedish (studied in college) was enough to get the gist of Gjermund's bio. Lycka till, Gjermund! Back to our usual programming. Dale Bengston* *Originally Bengtsson. Changed by my Swedish-immigrant great- grandfather from something Americans couldn't pronounce into something else Americans couldn't pronounce. On Sep 17, 2006, at 1:24 PM, Gjermund Gusland Thorsen wrote: > Those and some more characters are the main reason why we love > UTF-8 over here. > > ggt667 > > On 9/17/06, Jonathan Schwartz wrote: >> Yes. I was just trying to be funny. ;-) >> >> Guess I'll shut up now... >> >> J >> >> At 7:46 PM +0200 9/17/06, Gjermund Gusland Thorsen wrote: >> >These scandinavian characters: ?, ?, ?, ?, ?, ?, ?, ?, ? and ? >> > >> >?!? >> > >> >ggt667 >> > >> >On 9/16/06, Jonathan Schwartz wrote: >> >> >> >> >> >>Congrats! Checked out the site. There must be something >> wrong. I see all >> >>these funny characters: >> >> >> >> >> >>Gjermund har over 7 ?rs erfaring med FileMaker-utvikling. Han er >> >>medforfatter av FX.php. De siste prosjektene har v?rt ? >> integrere FileMaker >> >>mot andre systemer, for det meste Open Source relaterte >> l?sninger; Python, >> >>php, XML, MySQL, PostrgreSQL, men ogs? M$ SQL. Med hovedvekt p? >> >>relasjonsdesign og dokumentflyt. >> >> >> >> >> >>;-) >> >> >> >> >> >>J >> >> >> >> >> >> >> >> >> >> >> >>At 10:09 AM +0200 9/16/06, Gjermund Gusland Thorsen wrote: >> >>Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, >> >> I'm looking forward to this, will you be there? >> >> >> >> >> >>http://www.devconscandinavia.se/Forelasare/Forelasare.html >> >> >> >> Gjermund Gusland Thorsen >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> >> >> >> >> -- >> >> >> >> >> >> >> >>Jonathan Schwartz >> >>FileMaker 8 Certified Developer >> >>Associate Member, FileMaker Solutions Alliance >> >>Schwartz & Company >> >>jonathan@eschwartz.com >> >>http://www.eschwartz.com >> >>http://www.exit445.com >> >>415-381-1852 >> >> >> >> >> >>_______________________________________________ >> >>FX.php_List mailing list >> >>FX.php_List@mail.iviking.org >> >>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> >> >_______________________________________________ >> >FX.php_List mailing list >> >FX.php_List@mail.iviking.org >> >http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> >> Jonathan Schwartz >> FileMaker 8 Certified Developer >> Associate Member, FileMaker Solutions Alliance >> Schwartz & Company >> jonathan@eschwartz.com >> http://www.eschwartz.com >> http://www.exit445.com >> 415-381-1852 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 stephen at fmwebschool.com Mon Sep 18 13:02:09 2006 From: stephen at fmwebschool.com (Stephen Knight) Date: Tue Sep 19 11:17:51 2006 Subject: [FX.php List] [OT]Need a programmer with Lasso and PHP knowledge In-Reply-To: Message-ID: <20060918190017.8A74E363B45@www.iviking.org> I have been contacted by a gentleman that needs 20-30 hours of development work done converting a site from Lasso to PHP. Please, email me back channel if you are interested, and I will put you in touch with Ken. In Kindness Stephen K Knight http://www.fmwebschool.com 800.353.7950 / 386.453.5843 FMWebschool, we bring the web to life FX.PHP PHP XML MySQL CDML ASP From alex at gandrpublishing.com Mon Sep 18 13:03:53 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Tue Sep 19 11:17:53 2006 Subject: [FX.php List] "previous" and "next" links for large array In-Reply-To: Message-ID: <000c01c6db55$303e4c10$1700000a@gandrpublishing.com> Hi everyone- Jonathan has graciously helped me with this question earlier today- and I appreciate all the help he has given me. I'm still quite confused here, so I thought I would turn to all of you for help. I understand this is not so much a specific fx.php question, but (I could be wrong) I think it involves enough fx that it would just confuse people on regular php forums. I have a page that displays a container image, a chunk of css, email, web address, and some pricing info. I have some php code that puts my returned records into a table. Here is a link: http://www.gandrpub.com/cookbooks_for_sale/cookbooks_for_sale.php As you can see, if you hold your mouse over the image, a tooltip of a larger version will pop up. However, with IE, these tooltips wont pop up until all the images have loaded. I think there are about 93 of them on this page. (as a side note, this uses a solution that will automatically place these cookbooks online once they ship- and it will keep them up for 90 days) I got to thinking that many people are still using dialup, and having 93+ cookbooks on one page is a little much. In fact, I'd like to display 9 per page and have "next" and "previous" links. Does anyone have any thoughts or recommendations on the best way to break this up? This is what I am using as my query: SetDBData('CookbookSale.fp7','ToWeb', 'all'); $lookup->SetDBPassword('admin','admin'); $lookup->AddDBParam('Status', 'Online'); $lookup->AddSortParam('DateOrderShipped', 'descend'); $lookupResult=$lookup->FMFind(); $foundResult=$lookupResult['foundCount']; //echo $foundResult; //echo '
'; //echo $lookupResult['errorCode']; ?> And this is how I am displaying it in the table: $searchData ){ $booktitle = $searchData['returnreplacesettitle'][0]; $fixedtitle = str_replace("'", "\'", $booktitle); ?> \n"; } ?>
' . $searchData['CSSWebViewforCSS'][0] . '
'; if($searchData['setEmail'][0] != "") { echo '
' .'Email:
' . $searchData['setEmail'][0] . '
'; } if($searchData['setWebAddress'][0] != "") { echo '
' .'Web: ' . $searchData['setWebAddress'][0] . '
'; } if($searchData['PriceInfo'][0] != "") { echo '
' . $searchData['PriceInfo'][0] . '
';} ?>
\n"; } ?> I've spent some time searching and reading about arrays, but I'm not even to the point where I even have an idea of how to start. Please- can anyone provide some insight? Thanks- Alex P. Gates From alex at gandrpublishing.com Tue Sep 19 11:22:09 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Tue Sep 19 11:22:25 2006 Subject: [FX.php List] "previous" and "next" links for large array In-Reply-To: <000c01c6db55$303e4c10$1700000a@gandrpublishing.com> Message-ID: <000f01c6dc10$24b4bd50$1700000a@gandrpublishing.com> The 1st email didn't make the trip right away - - - I seem to have thrown together something that is working... but if anyone still wants to give advice, I'd love to hear it... Alex P. Gates -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Alex Gates Sent: Monday, September 18, 2006 2:04 PM To: 'FX.php Discussion List' Subject: [FX.php List] "previous" and "next" links for large array Hi everyone- Jonathan has graciously helped me with this question earlier today- and I appreciate all the help he has given me. I'm still quite confused here, so I thought I would turn to all of you for help. I understand this is not so much a specific fx.php question, but (I could be wrong) I think it involves enough fx that it would just confuse people on regular php forums. I have a page that displays a container image, a chunk of css, email, web address, and some pricing info. I have some php code that puts my returned records into a table. Here is a link: http://www.gandrpub.com/cookbooks_for_sale/cookbooks_for_sale.php As you can see, if you hold your mouse over the image, a tooltip of a larger version will pop up. However, with IE, these tooltips wont pop up until all the images have loaded. I think there are about 93 of them on this page. (as a side note, this uses a solution that will automatically place these cookbooks online once they ship- and it will keep them up for 90 days) I got to thinking that many people are still using dialup, and having 93+ cookbooks on one page is a little much. In fact, I'd like to display 9 per page and have "next" and "previous" links. Does anyone have any thoughts or recommendations on the best way to break this up? This is what I am using as my query: SetDBData('CookbookSale.fp7','ToWeb', 'all'); $lookup->SetDBPassword('admin','admin'); $lookup->AddDBParam('Status', 'Online'); $lookup->AddSortParam('DateOrderShipped', 'descend'); $lookupResult=$lookup->FMFind(); $foundResult=$lookupResult['foundCount']; //echo $foundResult; //echo '
'; //echo $lookupResult['errorCode']; ?> And this is how I am displaying it in the table: $searchData ){ $booktitle = $searchData['returnreplacesettitle'][0]; $fixedtitle = str_replace("'", "\'", $booktitle); ?> \n"; } ?>
' . $searchData['CSSWebViewforCSS'][0] . '
'; if($searchData['setEmail'][0] != "") { echo '
' .'Email:
' . $searchData['setEmail'][0] . '
'; } if($searchData['setWebAddress'][0] != "") { echo '
' .'Web: ' . $searchData['setWebAddress'][0] . '
'; } if($searchData['PriceInfo'][0] != "") { echo '
' . $searchData['PriceInfo'][0] . '
';} ?>
\n"; } ?> I've spent some time searching and reading about arrays, but I'm not even to the point where I even have an idea of how to start. Please- can anyone provide some insight? Thanks- Alex P. Gates _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From Kim.Hawksworth at osumc.edu Tue Sep 19 11:51:20 2006 From: Kim.Hawksworth at osumc.edu (Kim Hawksworth) Date: Tue Sep 19 11:51:30 2006 Subject: [FX.php List] Comparing Value from Portal Field to Field Value Message-ID: This one has got me stumped. I have two related tables. One contains formula records for intravenous nutrition and the other contains comments about formula changes. There?s the potential to have multiple related records in each table, but not necessarily an exact match. In other words, there could be 6 records in the formula table and only 2 related records in the comments table. What I?m trying to do is compare the creation date field from the records in formula table with the creation date field from the records in the comments table. If they match, display an asterisks on row of the corresponding formula in the results page so the user knows there?s a comment associated with that record. I can get this to work with the first record in the comments table but not any others. Two things I?ve tried without success is a second instance on the formula results page that queries for related records in the comments table and a portal on the layout of formulas table. The portal displays values from each related record just fine, but I can?t get it to compare more than the first record. Here?s a snippet of the code I?ve tried using the portal: $tpnData_search = new FX($serverIP, $webCompanionPort, $dataSourceType); $tpnData_search ->SetDBData("nss.fp7", "tpn", $GroupSize); $tpnData_search -> AddDBParam("visit_num", "$visit_num"); $tpnData_search -> AddSortParam("date_rev", "descend"); $tpnData_search -> AddSortParam("time", "descend"); $tpnData_search -> FMSkipRecords($skipSize); admTpn_results = $tpnData_search -> FMFind(); foreach ($admTpn_results['data'] as $key => $returnedData) { if ($returnedData['date'][0] == $returnedData['tpn_comments::date'][0]) { ?>  *    Any thoughts or suggestions on how to compare more than one record will be greatly appreciated. Thanks for your time. --Kim -- Kim David Hawksworth, R.Ph., Web Manager The OSUMC Dept. of Pharmacy 410 W. 10Th Ave, Room 368 Doan Ph# (614) 293-3765 Pager# (614) 730-8143 Email: kim.hawksworth@osumc.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060919/179fd99c/attachment.html From fx at 9degrees.com Tue Sep 19 11:58:08 2006 From: fx at 9degrees.com (Michael Layne) Date: Tue Sep 19 11:58:19 2006 Subject: [FX.php List] "previous" and "next" links for large array In-Reply-To: <000f01c6dc10$24b4bd50$1700000a@gandrpublishing.com> References: <000f01c6dc10$24b4bd50$1700000a@gandrpublishing.com> Message-ID: <269F175F-3E8F-4EA2-AB1C-FE1D86737FBD@9degrees.com> Alex, It's been a while since I'v looked at this, but it definitely works: first the FX query with specifying a particular found count to be returned: $returnCount = 20; $q = new FX($ip, $port); if (!isset($_GET['skip'])) { $skipSize = 0; } else { $skipSize = $_GET['skip']; } $q->SetDBData($fmdb,$lay . 'glossary',$returnCount); $q->SetDBPassword($fmpw[0],$fmpw[1]); $q->FMSkipRecords($skipSize); $r = $q->FMFind(); $d = current($r['data']); $n = $r['foundCount']; then code to paginate a the top to navigate through the pages/records: $pages = ceil(($r['foundCount'] / $returnCount)); if (strlen($r['linkPrevious']) < 1) { $firstPage = '1'; } else { $firstPage = $skipSize + 1; } if (strlen($r['linkNext']) < 1) { $lastPage = $r['foundCount']; } else { $lastPage = $returnCount + $skipSize; } then outputting the links for pagination: if ($r['foundCount'] <= 0 ) { echo "There are no glossary terms that match your search.\n"; } else { echo "There are currently " . $r ['foundCount'] . " glossary terms (" . $pages . " page(s))\n
\n"; echo "\n"; if (strlen($r['linkPrevious']) < 1) { echo "\n"; } else { echo "\n"; } if (strlen($r['linkNext']) < 1) { echo "\n"; } else { echo "\n"; } echo "
 \n‹ previous page 
\n"; } then finally a 'foreach' loop to cycle through your data in a table: if ($r['foundCount'] >= 1 ) { $counter = 1; echo "\n"; echo "\n"; // begin row 1 echo ""; echo ""; echo ""; echo ""; // end row 1 foreach ($r['data'] as $l) { if ($counter % 2 == 0) { echo "\n"; } else { echo "\n"; // begin row 2 } echo "\n"; // 1 echo "\n"; echo "\n"; echo ""; ++$counter; // The '++' operator increments the argument it accompanies. } echo "
 TermSource
" . $counter . "" . $l['Term'][0] . "" . $l['Source'][0] . "
\n"; } HTH, Michael On Sep 19, 2006, at 1:22 PM, Alex Gates wrote: > The 1st email didn't make the trip right away - - - I seem to have > thrown together something that is working... but if anyone still wants > to give advice, I'd love to hear it... > > Alex P. Gates > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Alex Gates > Sent: Monday, September 18, 2006 2:04 PM > To: 'FX.php Discussion List' > Subject: [FX.php List] "previous" and "next" links for large array > > Hi everyone- > > Jonathan has graciously helped me with this question earlier today- > and > I appreciate all the help he has given me. I'm still quite confused > here, so I thought I would turn to all of you for help. > I understand this is not so much a specific fx.php question, but (I > could be wrong) I think it involves enough fx that it would just > confuse > people on regular php forums. > > I have a page that displays a container image, a chunk of css, email, > web address, and some pricing info. > I have some php code that puts my returned records into a table. > Here is a link: > > http://www.gandrpub.com/cookbooks_for_sale/cookbooks_for_sale.php > > As you can see, if you hold your mouse over the image, a tooltip of a > larger version will pop up. > > However, with IE, these tooltips wont pop up until all the images have > loaded. I think there are about 93 of them on this page. > > (as a side note, this uses a solution that will automatically place > these cookbooks online once they ship- and it will keep them up for 90 > days) > > I got to thinking that many people are still using dialup, and having > 93+ cookbooks on one page is a little much. In fact, I'd like to > display 9 per page and have "next" and "previous" links. > > Does anyone have any thoughts or recommendations on the best way to > break this up? > > This is what I am using as my query: > > > > > $lookup=new FX($serverIP,$webCompanionPort,'FMPro7'); > $lookup->SetDBData('CookbookSale.fp7','ToWeb', 'all'); > $lookup->SetDBPassword('admin','admin'); > $lookup->AddDBParam('Status', 'Online'); > $lookup->AddSortParam('DateOrderShipped', 'descend'); > $lookupResult=$lookup->FMFind(); > $foundResult=$lookupResult['foundCount']; > > //echo $foundResult; > //echo '
'; > //echo $lookupResult['errorCode']; > > ?> > > > And this is how I am displaying it in the table: > > $http = "http://"; > $i = 0; > > foreach( $lookupResult['data'] as $key => $searchData ){ > $booktitle = $searchData['returnreplacesettitle'][0]; > $fixedtitle = str_replace("'", "\'", $booktitle); > ?> > if ($i == 0) { > print "\n"; > } > ?> > >
border="1" > onMouseOver="this.T_DELAY=300;this.T_WIDTH=200;this.T_LEFT > =true;this.T_TITLE=' $fixedtitle;?>';this.T_BORDERCOLOR='#6a7d40';return escape(' src=\'FX/image_proxy.php?FXimage= vignereEncryptURL($searchData['Cover'][0]); ?>\' > height=\'350\'>')"/>
> echo '
' . $searchData['CSSWebViewforCSS'][0] . > '
'; > if($searchData['setEmail'][0] != "") > { echo '
' .'Email:
$searchData['setEmail'][0] . '>' . $searchData['setEmail'][0] . > '
'; } > if($searchData['setWebAddress'][0] != "") > { echo '
' .'Web: ' . $searchData['setWebAddress'] > [0] > . '
'; } > if($searchData['PriceInfo'][0] != "") > { echo '
' . $searchData['PriceInfo'][0] . > '
';} > ?>
> > $i = ($i + 1) % 3; > if ($i == 0) { > print "\n"; > } > ?> > } > ?> > > > I've spent some time searching and reading about arrays, but I'm not > even to the point where I even have an idea of how to start. > > Please- can anyone provide some insight? > > Thanks- > > > Alex P. Gates > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Michael Layne | 9 degrees development | www.9degrees.com | 404.226.7835 | Skype: LayneBay -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060919/baa5d977/attachment-0001.html From dan.cynosure at dbmscan.com Tue Sep 19 13:51:04 2006 From: dan.cynosure at dbmscan.com (DC) Date: Tue Sep 19 13:51:21 2006 Subject: [FX.php List] Comparing Value from Portal Field to Field Value In-Reply-To: References: Message-ID: Hi Kim, Two ideas: if you can modify FMP database... 1) make a relationship that keys on the date fields you are trying to compare, then use that relationship in a new portal and you will always only have matching records so no PHP matching necessary. if you want to do it in PHP for some reason... 2) every FX 'data' result returns an array for every field on the layout. for consistency, even simple, non-related and non-repeating fields return an array - as you know - with just one value at key 0. related fields that would show up in a portal in FMP layout with multiple records return an array (with multiple values if there are multiple related records) through FX. so in order to deal with them in PHP matching tasks you have to deal with the entire array either using in_array() or a comparison in a foreach(). HTH, dan On Sep 19, 2006, at 1:51 PM, Kim Hawksworth wrote: > This one has got me stumped. > > I have two related tables. One contains formula records for > intravenous nutrition and the other contains comments about formula > changes. There?s the potential to have multiple related records in > each table, but not necessarily an exact match. In other words, > there could be 6 records in the formula table and only 2 related > records in the comments table. What I?m trying to do is compare > the creation date field from the records in formula table with the > creation date field from the records in the comments table. If > they match, display an asterisks on row of the corresponding > formula in the results page so the user knows there?s a comment > associated with that record. I can get this to work with the first > record in the comments table but not any others. Two things I?ve > tried without success is a second instance on the formula results > page that queries for related records in the comments table and a > portal on the layout of formulas table. The portal displays values > from each related record just fine, but I can?t get it to compare > more than the first record. Here?s a snippet of the code I?ve > tried using the portal: > > $tpnData_search = new FX($serverIP, $webCompanionPort, > $dataSourceType); > $tpnData_search ->SetDBData("nss.fp7", "tpn", $GroupSize); > $tpnData_search -> AddDBParam("visit_num", "$visit_num"); > $tpnData_search -> AddSortParam("date_rev", "descend"); > $tpnData_search -> AddSortParam("time", "descend"); > $tpnData_search -> FMSkipRecords($skipSize); > admTpn_results = $tpnData_search -> FMFind(); > > > > foreach ($admTpn_results['data'] as $key => $returnedData) { > > if ($returnedData['date'][0] == $returnedData['tpn_comments::date'] > [0]) { > > ?> > href="javascript:popUpWin2('/nss/tpnComments/ > tpnCommentResultsIndv.php?visit_num= ['visit_num'][0]; ?>&date= >')"> *  > > } else { > ?> >   > > } > } > ?> > > > Any thoughts or suggestions on how to compare more than one record > will be greatly appreciated. > > Thanks for your time. > > --Kim > > -- > Kim David Hawksworth, R.Ph., Web Manager > The OSUMC Dept. of Pharmacy > 410 W. 10Th Ave, Room 368 Doan > Ph# (614) 293-3765 > Pager# (614) 730-8143 > Email: kim.hawksworth@osumc.edu > _______________________________________________ > 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/20060919/c99d08dd/attachment.html From ggt667 at gmail.com Tue Sep 19 15:44:07 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Sep 19 15:44:17 2006 Subject: [FX.php List] FileMaker DevCon Scandinavia 2006 Fall In-Reply-To: <20060918133447.91394.qmail@web305.biz.mail.mud.yahoo.com> References: <20060918133447.91394.qmail@web305.biz.mail.mud.yahoo.com> Message-ID: The common languages are Danish, Norwegian and Swedish. However these languages are so similar that they are more or less 3 different accents of the same language, similar to British, American and Australian ggt667 On 9/18/06, Caleb Ruth wrote: > What is the common language of Scandinavia? > > --- Gjermund Gusland Thorsen wrote: > > > Those and some more characters are the main reason why we love UTF-8 > > over here. > > > > ggt667 > > > > On 9/17/06, Jonathan Schwartz wrote: > > > Yes. I was just trying to be funny. ;-) > > > > > > Guess I'll shut up now... > > > > > > J > > > > > > At 7:46 PM +0200 9/17/06, Gjermund Gusland Thorsen wrote: > > > >These scandinavian characters: ?, ?, ?, ?, ?, ?, ?, ?, ? and ? > > > > > > > >?!? > > > > > > > >ggt667 > > > > > > > >On 9/16/06, Jonathan Schwartz wrote: > > > >> > > > >> > > > >>Congrats! Checked out the site. There must be something wrong. > > I see all > > > >>these funny characters: > > > >> > > > >> > > > >>Gjermund har over 7 ?rs erfaring med FileMaker-utvikling. Han er > > > >>medforfatter av FX.php. De siste prosjektene har v?rt ? integrere > > FileMaker > > > >>mot andre systemer, for det meste Open Source relaterte > > l?sninger; Python, > > > >>php, XML, MySQL, PostrgreSQL, men ogs? M$ SQL. Med hovedvekt p? > > > >>relasjonsdesign og dokumentflyt. > > > >> > > > >> > > > >>;-) > > > >> > > > >> > > > >>J > > > >> > > > >> > > > >> > > > >> > > > >> > > > >>At 10:09 AM +0200 9/16/06, Gjermund Gusland Thorsen wrote: > > > >>Ooops, I'm on the speaker list for Dev Con Scandinavia this fall, > > > >> I'm looking forward to this, will you be there? > > > >> > > > >> > > > >>http://www.devconscandinavia.se/Forelasare/Forelasare.html > > > >> > > > >> Gjermund Gusland Thorsen > > > >> _______________________________________________ > > > >> FX.php_List mailing list > > > >> FX.php_List@mail.iviking.org > > > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > >> > > > >> > > > >> > > > >> -- > > > >> > > > >> > > > >> > > > >>Jonathan Schwartz > > > >>FileMaker 8 Certified Developer > > > >>Associate Member, FileMaker Solutions Alliance > > > >>Schwartz & Company > > > >>jonathan@eschwartz.com > > > >>http://www.eschwartz.com > > > >>http://www.exit445.com > > > >>415-381-1852 > > > >> > > > >> > > > >>_______________________________________________ > > > >>FX.php_List mailing list > > > >>FX.php_List@mail.iviking.org > > > >>http://www.iviking.org/mailman/listinfo/fx.php_list > > > >> > > > >> > > > >_______________________________________________ > > > >FX.php_List mailing list > > > >FX.php_List@mail.iviking.org > > > >http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > > > -- > > > > > > Jonathan Schwartz > > > FileMaker 8 Certified Developer > > > Associate Member, FileMaker Solutions Alliance > > > Schwartz & Company > > > jonathan@eschwartz.com > > > http://www.eschwartz.com > > > http://www.exit445.com > > > 415-381-1852 > > > > > > _______________________________________________ > > > FX.php_List mailing list > > > FX.php_List@mail.iviking.org > > > http://www.iviking.org/mailman/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 ronnie at alphabethouse.com Tue Sep 19 16:14:49 2006 From: ronnie at alphabethouse.com (Ronnie Serr) Date: Tue Sep 19 16:15:01 2006 Subject: [FX.php List] [OT]Need a programmer with Lasso and PHP knowledge In-Reply-To: <20060918190017.8A74E363B45@www.iviking.org> References: <20060918190017.8A74E363B45@www.iviking.org> Message-ID: Stephen, I saw your message on the fx.php list. I have over 10 years experience with Lasso and over 3 in PHP, and would love to quote the conversion job. Thanks, Ronnie Serr Alphabet House 1725 S. Genesee Avenue Los Angeles, CA 90019 323 939 1669 phone 323 939 2648 fax ronnie@alphabethouse.com On Sep 18, 2006, at 12:02 PM, Stephen Knight wrote: > I have been contacted by a gentleman that needs 20-30 hours of > development > work done converting a site from Lasso to PHP. Please, email me back > channel if you are interested, and I will put you in touch with Ken. > > > In Kindness > Stephen K Knight > http://www.fmwebschool.com > 800.353.7950 / 386.453.5843 > FMWebschool, we bring the web to life > FX.PHP PHP XML MySQL CDML ASP > > > _______________________________________________ > 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/20060919/1d38774b/attachment.html From bob at patin.com Wed Sep 20 08:25:02 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 08:25:21 2006 Subject: [FX.php List] Anyone using XSLT anymore? Message-ID: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> I have a client who's been trying to do the impossible in FileMaker, storing HUGE HTML files in a FileMaker table and then trying to get them to display rapidly on the web. We reached a brick wall with speed (there would be about a half-million records in the database), so they moved on to another consultant who has been talking to them about using XSLT. My question is this: doesn't XSLT use the same WPE that FX.php does? Doesn't the data still have to be translated to XML? Would there be any speed improvement by using XSLT over PHP? And finally, do you guys know of anyone even using XSLT anymore? Thanks for any opinions, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 From dbengston at preservationstudio.com Wed Sep 20 08:50:19 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Wed Sep 20 08:50:32 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> Message-ID: Hi Bob, Yes, the XSLT supported by FileMaker uses XML from the Web Publishing Engine, just like FX. Personally, I never used the XSLT stuff with FileMaker because I made the PHP switch before v7 came out. Dale On Sep 20, 2006, at 9:25 AM, Bob Patin wrote: > I have a client who's been trying to do the impossible in > FileMaker, storing HUGE HTML files in a FileMaker table and then > trying to get them to display rapidly on the web. We reached a > brick wall with speed (there would be about a half-million records > in the database), so they moved on to another consultant who has > been talking to them about using XSLT. > > My question is this: doesn't XSLT use the same WPE that FX.php > does? Doesn't the data still have to be translated to XML? Would > there be any speed improvement by using XSLT over PHP? And finally, > do you guys know of anyone even using XSLT anymore? > > Thanks for any opinions, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dan.cynosure at dbmscan.com Wed Sep 20 08:53:22 2006 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 20 08:53:38 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> Message-ID: <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> Hi Bob, Did you ever get the caching solution down? Also, did you try a redesign of the HTML deployment system with the HTML files stored in the filesystem and the FMP database holding the paths? I would think an include() php call would be faster than trying to dump HTML files out of FMP. I looked at XSLT when I first went to the web with FMP and it looked so kooky that I scrambled for other options. Luckily I found FX.php just in time. Thanks, Chris. I believe that the XSLT engine deals with the raw XML out of FMP WPE. In FX.php there is a translation stage where XML is changed from XML to PHP arrays. That adds some overhead. But, XSLT has another problem that FX does not: the relative numbers of people who can design, maintain and fix an XSLT system is very small. Furthermore, going with XSLT will not help your old client with their main problem which is an architectural problem: they want to host and serve HTML files from inside an FMP database instead of in the filesystem where they belong. In fact, the best system would be to host the HTML files in the database AND on the filesystem. That way they can use FMP search features to search and then use the filesystem paths to serve HTML. just some random thoughts, dan On Sep 20, 2006, at 10:25 AM, Bob Patin wrote: > I have a client who's been trying to do the impossible in > FileMaker, storing HUGE HTML files in a FileMaker table and then > trying to get them to display rapidly on the web. We reached a > brick wall with speed (there would be about a half-million records > in the database), so they moved on to another consultant who has > been talking to them about using XSLT. > > My question is this: doesn't XSLT use the same WPE that FX.php > does? Doesn't the data still have to be translated to XML? Would > there be any speed improvement by using XSLT over PHP? And finally, > do you guys know of anyone even using XSLT anymore? > > Thanks for any opinions, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Wed Sep 20 08:54:10 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 08:54:18 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> Message-ID: That's what I thought too, Dale; they had this guy who was trying to tell them that doing the project in XSLT (as opposed to PHP) was going to produce faster results. I wanted to make sure that I was right when I told them that XSLT still had to convert to XML, just like PHP does... On Sep 20, 2006, at 9:50 AM, Dale Bengston wrote: > Hi Bob, > > Yes, the XSLT supported by FileMaker uses XML from the Web > Publishing Engine, just like FX. Personally, I never used the XSLT > stuff with FileMaker because I made the PHP switch before v7 came out. > > Dale > > On Sep 20, 2006, at 9:25 AM, Bob Patin wrote: > >> I have a client who's been trying to do the impossible in >> FileMaker, storing HUGE HTML files in a FileMaker table and then >> trying to get them to display rapidly on the web. We reached a >> brick wall with speed (there would be about a half-million records >> in the database), so they moved on to another consultant who has >> been talking to them about using XSLT. >> >> My question is this: doesn't XSLT use the same WPE that FX.php >> does? Doesn't the data still have to be translated to XML? Would >> there be any speed improvement by using XSLT over PHP? And >> finally, do you guys know of anyone even using XSLT anymore? >> >> Thanks for any opinions, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Wed Sep 20 09:00:10 2006 From: chris at iViking.org (Chris Hansen) Date: Wed Sep 20 09:00:18 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> Message-ID: Bob, Yes, you're exactly right. In fact, the 'X' in FX.php stands for XML. The bottleneck your client is up against is much more likely to be the WPE rather than PHP. PHP is wicked fast =) The MySQL caching class (support for which is built into FX.php) would help performance, but I don't know that what they're trying to do is really what FileMaker had in mind for the WPE... For a speed test, try this: perform the same query that you're attempting via FX.php directly in FileMaker; how long does it take? Also, what configuration is your client using on the FM side (1, 2, or 3 machine configuration)? Best, --Chris Hansen FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Sep 20, 2006, at 8:25 AM, Bob Patin wrote: > I have a client who's been trying to do the impossible in > FileMaker, storing HUGE HTML files in a FileMaker table and then > trying to get them to display rapidly on the web. We reached a > brick wall with speed (there would be about a half-million records > in the database), so they moved on to another consultant who has > been talking to them about using XSLT. > > My question is this: doesn't XSLT use the same WPE that FX.php > does? Doesn't the data still have to be translated to XML? Would > there be any speed improvement by using XSLT over PHP? And finally, > do you guys know of anyone even using XSLT anymore? > > Thanks for any opinions, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Wed Sep 20 09:03:08 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 09:03:16 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> Message-ID: Hi Dan, I was trying to remember who it was who wrote me about that caching plugin--it was you! Thanks for writing this morning; I just got off the phone with my client. > > Did you ever get the caching solution down? No, I never did, and was going to look for the email where you mentioned a caching "spider" that would cache during off-peak hours. Does it have the capacity to run queries on its own? Specifically, is it smart enough to go to an input page, select from a pulldown, and run a query? > Also, did you try a redesign of the HTML deployment system with the > HTML files stored in the filesystem and the FMP database holding > the paths? I would think an include() php call would be faster than > trying to dump HTML files out of FMP. Well, that's what we have now. Several years back I wrote a program for them in Visual Basic, which takes this mountain of Word documents that they have, converts them to HTML, and then breaks them into separate pages, complete with Javascript pulldowns for searching. As the company has grown, their site has gotten up to approx. a half- million of these small HTML pages. Six months ago they approached me about moving this all into a database, which I've suggested to them all along. The problem is that the source data is in these Word documents and can't be stored in a typical database in little pieces; for several reasons, they have to work from these long documents, and the easiest method is to convert the Word docs to HTML and then deal with that. The problem with referencing the documents in FileMaker is that they still have to deal with uploading these thousands of documents every year; this is autmotive data, and so they have updates quarterly I believe, and there are tons of these documents that their admin guy has to upload and keep straight. I wrote a solution in PHP and it works great, but there's one query that has to return about 18 of these HTML pages, and by the time it's parsed, it takes around 7-10 seconds for the page to be displayed. I'm testing with a very fast G5 running FMSA, and never could get the speed any better. Here's a question: the test web server's running on a lowly G4 1.25; would a faster web server make a big difference, since it's running WPE? > > I looked at XSLT when I first went to the web with FMP and it > looked so kooky that I scrambled for other options. Luckily I found > FX.php just in time. Thanks, Chris. > > I believe that the XSLT engine deals with the raw XML out of FMP > WPE. In FX.php there is a translation stage where XML is changed > from XML to PHP arrays. That adds some overhead. But, XSLT has > another problem that FX does not: the relative numbers of people > who can design, maintain and fix an XSLT system is very small. That's exactly what I cautioned them about this morning; I told him that they'd have a nightmare problem trying to keep the system updated over time, since no consultants that I know are using XSLT with FileMaker. Could you tell me again about that caching system you mentioned? Could it work at night and cache queries? Thousands of them? That would be the solution if it would do that... he said hopefully, trying to keep his client... :) Thanks! Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 From dbengston at preservationstudio.com Wed Sep 20 09:05:35 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Wed Sep 20 09:05:46 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> Message-ID: Kooky. Good description. I am very happy I'd already cast my lot with PHP. Dale On Sep 20, 2006, at 9:53 AM, DC wrote: > Hi Bob, > > Did you ever get the caching solution down? Also, did you try a > redesign of the HTML deployment system with the HTML files stored > in the filesystem and the FMP database holding the paths? I would > think an include() php call would be faster than trying to dump > HTML files out of FMP. > > I looked at XSLT when I first went to the web with FMP and it > looked so kooky that I scrambled for other options. Luckily I found > FX.php just in time. Thanks, Chris. > > I believe that the XSLT engine deals with the raw XML out of FMP > WPE. In FX.php there is a translation stage where XML is changed > from XML to PHP arrays. That adds some overhead. But, XSLT has > another problem that FX does not: the relative numbers of people > who can design, maintain and fix an XSLT system is very small. > > Furthermore, going with XSLT will not help your old client with > their main problem which is an architectural problem: they want to > host and serve HTML files from inside an FMP database instead of in > the filesystem where they belong. In fact, the best system would be > to host the HTML files in the database AND on the filesystem. That > way they can use FMP search features to search and then use the > filesystem paths to serve HTML. > > just some random thoughts, > dan > > On Sep 20, 2006, at 10:25 AM, Bob Patin wrote: > >> I have a client who's been trying to do the impossible in >> FileMaker, storing HUGE HTML files in a FileMaker table and then >> trying to get them to display rapidly on the web. We reached a >> brick wall with speed (there would be about a half-million records >> in the database), so they moved on to another consultant who has >> been talking to them about using XSLT. >> >> My question is this: doesn't XSLT use the same WPE that FX.php >> does? Doesn't the data still have to be translated to XML? Would >> there be any speed improvement by using XSLT over PHP? And >> finally, do you guys know of anyone even using XSLT anymore? >> >> Thanks for any opinions, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Wed Sep 20 09:13:40 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 09:13:53 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> Message-ID: <8797A098-43E3-4141-85EF-358FF87C7702@patin.com> Hi Chris, Thanks for your reply. When I do the query in FM it's really fast--far less than a second. > Yes, you're exactly right. In fact, the 'X' in FX.php stands for > XML. The bottleneck your client is up against is much more likely > to be the WPE rather than PHP. PHP is wicked fast =) The MySQL > caching class (support for which is built into FX.php) would help > performance, but I don't know that what they're trying to do is > really what FileMaker had in mind for the WPE... For a speed test, > try this: perform the same query that you're attempting via FX.php > directly in FileMaker; how long does it take? > > Also, what configuration is your client using on the FM side (1, 2, > or 3 machine configuration)? For my testing I've been using this: FMSA on a Mac G5 2.0Ghz dual-processor Mac OS X Server (Tiger) running on a Mac Mini 1.25, which is also running the WPE. Here's my question: since the WPE is on this lowly Mac Mini, would moving it to the G5 make things faster? If so, how much faster? I know that it's supposed to be best-practice to put the WPE on the machine with the web server, but in this instance, is this slowing me down? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/6f44fddf/attachment.html From dan.cynosure at dbmscan.com Wed Sep 20 09:42:29 2006 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 20 09:42:38 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> Message-ID: <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> Bob, My earlier suggestion *was* to just set up some kind of caching system. But since you say you have to maintain the user interface in FMP you *really should look into* my suggestion to store HTML in FMP (for searching) and a copy of every HTML file in the filesystem (for serving with a php include(). Search using FX.php then serve the file using a path stored with the HTML data. The trick here is to keep the HTML in the database records and the HTML files in sync. i believe there is a plugin that can write files for you from field data. a simple script every quarter would keep the HTML in sync. But, if you already have an HTML caching system in place... you can try the following. note, i recommend using the above solution rather than trying to build an HTML output cache and scripting a query sending spider using curl! Scripting a query spider to build a cache is not a quick weekend project. It might be fun and interesting, but the above architectural solution is better. forging ahead... i originally suggested using wget (a GUI variant of it exists) but, it doesn't smoothly handle form requests. If you know all of the possible permutations of queries ahead of time you can just write a PHP script that uses foreach() and loops through and calls curl with every permutation. I usually use system_exec() to call curl - see the php manual and terminal 'man curl' for details on every aspect of it. curl can send form elements via POST using the -d switch. To send form input via POST I've demonstrated the correct syntax by using your login page for squirrel mail: curl "http://webmail.longtermsolutions.com:16080/webmail/src/ redirect.php" -d login_username=danFromFXlist -d secretkey=supersecretpassword -d js_autodetect_results=0 -d just_logged_in=1 in php it would look something like this: $returned_page = system_exec('curl "http:// webmail.longtermsolutions.com:16080/webmail/src/redirect.php" -d login_username=danFromFXlist -d secretkey=supersecretpassword -d js_autodetect_results=0 -d just_logged_in=1'); if you change these to the correct squirrel mail login and password you should get a confirmation login page from your site. HTH, dan On Sep 20, 2006, at 11:03 AM, Bob Patin wrote: > No, I never did, and was going to look for the email where you > mentioned a caching "spider" that would cache during off-peak > hours. Does it have the capacity to run queries on its own? > Specifically, is it smart enough to go to an input page, select > from a pulldown, and run a query? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/2d022185/attachment-0001.html From bob at patin.com Wed Sep 20 09:59:20 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 09:59:33 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> Message-ID: <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> Dan, I think you've made the perfect suggestion! I'll populate the database with their HTML, then (as you suggested) write a script to output the HTML into files that the database then references, just like I would do if I were displaying photos. I would think Troi File would probably output the text files; if anyone knows of a better choice for this, please let me know... So the database would have to actually write the files and then send them over to a different machine, unless I put all of this (FMSA, OS X Server) on the same machine. I've never run FMSA alongside OS X Server before; would this be a crazy way to do it? Thanks for your help (and all you guys)! I think I see daylight! Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 20, 2006, at 10:42 AM, DC wrote: > Bob, > > My earlier suggestion *was* to just set up some kind of caching > system. > > But since you say you have to maintain the user interface in FMP > you *really should look into* my suggestion to store HTML in FMP > (for searching) and a copy of every HTML file in the filesystem > (for serving with a php include(). Search using FX.php then serve > the file using a path stored with the HTML data. The trick here is > to keep the HTML in the database records and the HTML files in > sync. i believe there is a plugin that can write files for you from > field data. a simple script every quarter would keep the HTML in sync. > > But, if you already have an HTML caching system in place... you can > try the following. note, i recommend using the above solution > rather than trying to build an HTML output cache and scripting a > query sending spider using curl! Scripting a query spider to build > a cache is not a quick weekend project. It might be fun and > interesting, but the above architectural solution is better. > > forging ahead... i originally suggested using wget (a GUI variant > of it exists) but, it doesn't smoothly handle form requests. > If you know all of the possible permutations of queries ahead of > time you can just write a PHP script that uses foreach() and loops > through and calls curl with every permutation. > > I usually use system_exec() to call curl - see the php manual and > terminal 'man curl' for details on every aspect of it. curl can > send form elements via POST using the -d switch. > > To send form input via POST I've demonstrated the correct syntax by > using your login page for squirrel mail: > > curl "http://webmail.longtermsolutions.com:16080/webmail/src/ > redirect.php" -d login_username=danFromFXlist -d > secretkey=supersecretpassword -d js_autodetect_results=0 -d > just_logged_in=1 > > in php it would look something like this: > $returned_page = system_exec('curl "http:// > webmail.longtermsolutions.com:16080/webmail/src/redirect.php" -d > login_username=danFromFXlist -d secretkey=supersecretpassword -d > js_autodetect_results=0 -d just_logged_in=1'); > > > if you change these to the correct squirrel mail login and password > you should get a confirmation login page from your site. > > HTH, > dan > > On Sep 20, 2006, at 11:03 AM, Bob Patin wrote: > >> No, I never did, and was going to look for the email where you >> mentioned a caching "spider" that would cache during off-peak >> hours. Does it have the capacity to run queries on its own? >> Specifically, is it smart enough to go to an input page, select >> from a pulldown, and run a query? > > _______________________________________________ > 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/20060920/06f771b6/attachment.html From dan.cynosure at dbmscan.com Wed Sep 20 10:04:15 2006 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 20 10:04:28 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> Message-ID: <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> I just remembered that in order for this architectural change to work you must be using a version of the WPE that lets you return the data from a layout that is different from your search layout. otherwise there is no way to stop the HTML field that you want to search from spewing itself into the XML result. so, this scheme wouldn't work in FMP6. dan On Sep 20, 2006, at 11:59 AM, Bob Patin wrote: > Dan, > > I think you've made the perfect suggestion! > > I'll populate the database with their HTML, then (as you suggested) > write a script to output the HTML into files that the database then > references, just like I would do if I were displaying photos. I > would think Troi File would probably output the text files; if > anyone knows of a better choice for this, please let me know... > > So the database would have to actually write the files and then > send them over to a different machine, unless I put all of this > (FMSA, OS X Server) on the same machine. I've never run FMSA > alongside OS X Server before; would this be a crazy way to do it? > > Thanks for your help (and all you guys)! I think I see daylight! > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > On Sep 20, 2006, at 10:42 AM, DC wrote: > >> Bob, >> >> My earlier suggestion *was* to just set up some kind of caching >> system. >> >> But since you say you have to maintain the user interface in FMP >> you *really should look into* my suggestion to store HTML in FMP >> (for searching) and a copy of every HTML file in the filesystem >> (for serving with a php include(). Search using FX.php then serve >> the file using a path stored with the HTML data. The trick here is >> to keep the HTML in the database records and the HTML files in >> sync. i believe there is a plugin that can write files for you >> from field data. a simple script every quarter would keep the HTML >> in sync. >> >> But, if you already have an HTML caching system in place... you >> can try the following. note, i recommend using the above solution >> rather than trying to build an HTML output cache and scripting a >> query sending spider using curl! Scripting a query spider to build >> a cache is not a quick weekend project. It might be fun and >> interesting, but the above architectural solution is better. >> >> forging ahead... i originally suggested using wget (a GUI variant >> of it exists) but, it doesn't smoothly handle form requests. >> If you know all of the possible permutations of queries ahead of >> time you can just write a PHP script that uses foreach() and loops >> through and calls curl with every permutation. >> >> I usually use system_exec() to call curl - see the php manual and >> terminal 'man curl' for details on every aspect of it. curl can >> send form elements via POST using the -d switch. >> >> To send form input via POST I've demonstrated the correct syntax >> by using your login page for squirrel mail: >> >> curl "http://webmail.longtermsolutions.com:16080/webmail/src/ >> redirect.php" -d login_username=danFromFXlist -d >> secretkey=supersecretpassword -d js_autodetect_results=0 -d >> just_logged_in=1 >> >> in php it would look something like this: >> $returned_page = system_exec('curl "http:// >> webmail.longtermsolutions.com:16080/webmail/src/redirect.php" -d >> login_username=danFromFXlist -d secretkey=supersecretpassword -d >> js_autodetect_results=0 -d just_logged_in=1'); >> >> >> if you change these to the correct squirrel mail login and >> password you should get a confirmation login page from your site. >> >> HTH, >> dan >> >> On Sep 20, 2006, at 11:03 AM, Bob Patin wrote: >> >>> No, I never did, and was going to look for the email where you >>> mentioned a caching "spider" that would cache during off-peak >>> hours. Does it have the capacity to run queries on its own? >>> Specifically, is it smart enough to go to an input page, select >>> from a pulldown, and run a query? >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/c1b7fcc4/attachment.html From bob at patin.com Wed Sep 20 10:09:53 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 10:10:06 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> Message-ID: <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> I'm using 8.5... but what I'm thinking is that I'll just add a field to the layout that has the URL to the HTML file... shouldn't add any overhead, I woudln't think, since all I'm returning from FileMaker is the URL. I may still return some of the HTML from the database; these reports are made up of about 20 chunks of HTML, and when I return the chunks the speed is just fine. The problem arises when I have to return all 20 "chunks" in one long report; I may just output the long report to static HTML and leave the little chunks embedded in the database... At any rate, it's great to see a solution. I'd completely overlooked the possibility of using a hybrid of static HTML and database... I use it all the time for photos and such, but hadn't thought about it in this context... Best, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 20, 2006, at 11:04 AM, DC wrote: > I just remembered that in order for this architectural change to > work you must be using a version of the WPE that lets you return > the data from a layout that is different from your search layout. > otherwise there is no way to stop the HTML field that you want to > search from spewing itself into the XML result. so, this scheme > wouldn't work in FMP6. > > dan > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/c4efa3ff/attachment-0001.html From ggt667 at gmail.com Wed Sep 20 11:40:39 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 20 11:40:52 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> Message-ID: Hmm sounds like your client only needs one field pr layout. See if that improves speed, to me the solution sounds silly... There are template engines like smarty, or you could just make a couple of php/html templates yourself... ggt667 On 9/20/06, Bob Patin wrote: > > I'm using 8.5... but what I'm thinking is that I'll just add a field to the > layout that has the URL to the HTML file... shouldn't add any overhead, I > woudln't think, since all I'm returning from FileMaker is the URL. > > I may still return some of the HTML from the database; these reports are > made up of about 20 chunks of HTML, and when I return the chunks the speed > is just fine. The problem arises when I have to return all 20 "chunks" in > one long report; I may just output the long report to static HTML and leave > the little chunks embedded in the database... > > At any rate, it's great to see a solution. I'd completely overlooked the > possibility of using a hybrid of static HTML and database... I use it all > the time for photos and such, but hadn't thought about it in this > context... > > Best, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > > > On Sep 20, 2006, at 11:04 AM, DC wrote: > I just remembered that in order for this architectural change to work you > must be using a version of the WPE that lets you return the data from a > layout that is different from your search layout. otherwise there is no way > to stop the HTML field that you want to search from spewing itself into the > XML result. so, this scheme wouldn't work in FMP6. > > dan > > > _______________________________________________ > 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 Wed Sep 20 11:45:31 2006 From: tsepper at dctandt.com (Tom Sepper) Date: Wed Sep 20 11:46:01 2006 Subject: [FX.php List] Best Practice Message-ID: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> Not to hijack this, but ggt got me thinking. Since any field to be used with FX.php has to be on the layout specified in the FX instance, that begs the question.. Does placing all fields a table on the layout slow down the FX.php >> WPE/XML >> FM query? --- Tom Sepper Director of Information Technology Director's Choice Tour & Travel P 806.762.6354 F 806.763.7637 tsepper@dctandt.com www.directorschoicetourandtravel.com -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen Sent: Wednesday, September 20, 2006 12:41 PM To: FX.php Discussion List Subject: Re: Re: [FX.php List] Anyone using XSLT anymore? Hmm sounds like your client only needs one field pr layout. See if that improves speed, to me the solution sounds silly... There are template engines like smarty, or you could just make a couple of php/html templates yourself... ggt667 On 9/20/06, Bob Patin wrote: > > I'm using 8.5... but what I'm thinking is that I'll just add a field to the > layout that has the URL to the HTML file... shouldn't add any overhead, I > woudln't think, since all I'm returning from FileMaker is the URL. > > I may still return some of the HTML from the database; these reports are > made up of about 20 chunks of HTML, and when I return the chunks the speed > is just fine. The problem arises when I have to return all 20 "chunks" in > one long report; I may just output the long report to static HTML and leave > the little chunks embedded in the database... > > At any rate, it's great to see a solution. I'd completely overlooked the > possibility of using a hybrid of static HTML and database... I use it all > the time for photos and such, but hadn't thought about it in this > context... > > Best, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > > > On Sep 20, 2006, at 11:04 AM, DC wrote: > I just remembered that in order for this architectural change to work you > must be using a version of the WPE that lets you return the data from a > layout that is different from your search layout. otherwise there is no way > to stop the HTML field that you want to search from spewing itself into the > XML result. so, this scheme wouldn't work in FMP6. > > dan > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 alex at gandrpublishing.com Wed Sep 20 11:50:15 2006 From: alex at gandrpublishing.com (Alex Gates) Date: Wed Sep 20 11:50:32 2006 Subject: [FX.php List] Best Practice In-Reply-To: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> Message-ID: <001b01c6dcdd$3bf3bbb0$1700000a@gandrpublishing.com> Yes, I think it does - as a returned query puts everything from the layout in the resulting array. Please correct me if I'm wrong... Alex P. Gates -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tom Sepper Sent: Wednesday, September 20, 2006 12:46 PM To: FX.php Discussion List Subject: [FX.php List] Best Practice Not to hijack this, but ggt got me thinking. Since any field to be used with FX.php has to be on the layout specified in the FX instance, that begs the question.. Does placing all fields a table on the layout slow down the FX.php >> WPE/XML >> FM query? --- Tom Sepper Director of Information Technology Director's Choice Tour & Travel P 806.762.6354 F 806.763.7637 tsepper@dctandt.com www.directorschoicetourandtravel.com -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen Sent: Wednesday, September 20, 2006 12:41 PM To: FX.php Discussion List Subject: Re: Re: [FX.php List] Anyone using XSLT anymore? Hmm sounds like your client only needs one field pr layout. See if that improves speed, to me the solution sounds silly... There are template engines like smarty, or you could just make a couple of php/html templates yourself... ggt667 On 9/20/06, Bob Patin wrote: > > I'm using 8.5... but what I'm thinking is that I'll just add a field to the > layout that has the URL to the HTML file... shouldn't add any overhead, I > woudln't think, since all I'm returning from FileMaker is the URL. > > I may still return some of the HTML from the database; these reports are > made up of about 20 chunks of HTML, and when I return the chunks the speed > is just fine. The problem arises when I have to return all 20 "chunks" in > one long report; I may just output the long report to static HTML and leave > the little chunks embedded in the database... > > At any rate, it's great to see a solution. I'd completely overlooked the > possibility of using a hybrid of static HTML and database... I use it all > the time for photos and such, but hadn't thought about it in this > context... > > Best, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > > > On Sep 20, 2006, at 11:04 AM, DC wrote: > I just remembered that in order for this architectural change to work you > must be using a version of the WPE that lets you return the data from a > layout that is different from your search layout. otherwise there is no way > to stop the HTML field that you want to search from spewing itself into the > XML result. so, this scheme wouldn't work in FMP6. > > dan > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Wed Sep 20 11:51:08 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 11:51:17 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> Message-ID: <9DE2926C-D3F3-4ED5-9F99-00EE2E16FC85@patin.com> > Hmm sounds like your client only needs one field pr layout. No, that won't work. The data needs to be separated by 18-20 different topics, which are sometimes pulled up separately. The 18-20 topics also need to be displayed at once as well. > > See if that improves speed, to me the solution sounds silly... I tried that; the problem is that when I tried to pull up all 20 pieces of the report, the speed was too slow. The HTML sometimes stretches into 3-5 pages of HTML, containing several tables and a couple of photos. I tried everything; I separated the different topics into separate layouts, which I use when they do a query for a single topic within the whole report. This works great; the speed problem occurs when they do a full report, and unfortunately this is the most-used report on their site. I don't find the solution silly at all. It's the same way that I always deal with photos in FileMaker; I store the photos externally and reference them with a calculated URL field. The problem in this case isn't the number of HTML files, it's the problem of maintaining a set of a half-million HTML files, all of which have to updated several times each year. In this case, my client will never see the HTML files; he'll run a single script on the database that'll import his data from his local copy, then run the script that'll generate the static HTML files. Speed will be excellent, I'll be able to cache his site, it'll all be a thing of beauty. The whole problem is that the data comes from Word documents, and there's no way around this. We long ago realized that the easiest thing was to convert the Word docs to HTML (which Word does itself), run these thru a parser that I wrote in Visual Basic, and then serve them up. I'll re-write the VB parser so that it now will generate a tab-delimited file, which we'll pull into FileMaker; then FileMaker will make the HTML files while it generates a URL for each file so that it can include them in PHP pages. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/3b193b89/attachment.html From bob at patin.com Wed Sep 20 11:52:06 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 11:52:16 2006 Subject: [FX.php List] Best Practice In-Reply-To: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> Message-ID: <526C7A54-4B52-4162-BF79-83B5CBABDFB2@patin.com> That's not the problem; the problem is returning that much HTML thru XML. I've already spread the 18-20 fields among as many layouts. On Sep 20, 2006, at 12:45 PM, Tom Sepper wrote: > Not to hijack this, but ggt got me thinking. > > Since any field to be used with FX.php has to be on the layout > specified > in the FX instance, that begs the question.. Does placing all > fields a > table on the layout slow down the FX.php >> WPE/XML >> FM query? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/9c2bef44/attachment.html From ggt667 at gmail.com Wed Sep 20 11:52:53 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 20 11:53:02 2006 Subject: [FX.php List] Best Practice In-Reply-To: <001b01c6dcdd$3bf3bbb0$1700000a@gandrpublishing.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> <001b01c6dcdd$3bf3bbb0$1700000a@gandrpublishing.com> Message-ID: Affirmative On 9/20/06, Alex Gates wrote: > Yes, I think it does - as a returned query puts everything from the > layout in the resulting array. > > Please correct me if I'm wrong... > > Alex P. Gates > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tom Sepper > Sent: Wednesday, September 20, 2006 12:46 PM > To: FX.php Discussion List > Subject: [FX.php List] Best Practice > > Not to hijack this, but ggt got me thinking. > > Since any field to be used with FX.php has to be on the layout specified > in the FX instance, that begs the question.. Does placing all fields a > table on the layout slow down the FX.php >> WPE/XML >> FM query? > > --- > Tom Sepper > Director of Information Technology > Director's Choice Tour & Travel > > P 806.762.6354 > F 806.763.7637 > > tsepper@dctandt.com > www.directorschoicetourandtravel.com > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund > Gusland Thorsen > Sent: Wednesday, September 20, 2006 12:41 PM > To: FX.php Discussion List > Subject: Re: Re: [FX.php List] Anyone using XSLT anymore? > > Hmm sounds like your client only needs one field pr layout. > > See if that improves speed, to me the solution sounds silly... > > There are template engines like smarty, or you could just make a > couple of php/html templates yourself... > > ggt667 > > On 9/20/06, Bob Patin wrote: > > > > I'm using 8.5... but what I'm thinking is that I'll just add a field > to the > > layout that has the URL to the HTML file... shouldn't add any > overhead, I > > woudln't think, since all I'm returning from FileMaker is the URL. > > > > I may still return some of the HTML from the database; these reports > are > > made up of about 20 chunks of HTML, and when I return the chunks the > speed > > is just fine. The problem arises when I have to return all 20 "chunks" > in > > one long report; I may just output the long report to static HTML and > leave > > the little chunks embedded in the database... > > > > At any rate, it's great to see a solution. I'd completely overlooked > the > > possibility of using a hybrid of static HTML and database... I use it > all > > the time for photos and such, but hadn't thought about it in this > > context... > > > > Best, > > > > Bob Patin > > Longterm Solutions > > bob@longtermsolutions.com > > 615-333-6858 > > http://www.longtermsolutions.com > > > > CONTACT US VIA INSTANT MESSAGING: > > AIM or iChat: longterm1954 > > Yahoo: longterm_solutions > > MSN: tech@longtermsolutions.com > > ICQ: 159333060 > > > > > > > > > > On Sep 20, 2006, at 11:04 AM, DC wrote: > > I just remembered that in order for this architectural change to work > you > > must be using a version of the WPE that lets you return the data from > a > > layout that is different from your search layout. otherwise there is > no way > > to stop the HTML field that you want to search from spewing itself > into the > > XML result. so, this scheme wouldn't work in FMP6. > > > > dan > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dan.cynosure at dbmscan.com Wed Sep 20 11:53:48 2006 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 20 11:54:13 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> Message-ID: <79989BC7-7E47-44BD-8354-7C8B7B4F506E@dbmscan.com> Hi Gjermund, I'm wondering what a template engine has to do with this at all? Why suggest using a templating system? I'm all for smarty and I use it myself for its template system AND its caching mechanisms. But, the problem Bob describes is not one that would be helped by using a template system alone - a basic template system (without caching) is simply a way for developers to keep php code and HTML as separate as possible. The problem has to do with the speed of FMP when faced with spitting out large strings from the database. Since by all accounts you are an experienced PHP and FX developer, i would love to hear more detail about why do you say the proposed HTML file hybrid solution sounds "silly"? Is there some fatal flaw being overlooked? dan On Sep 20, 2006, at 1:40 PM, Gjermund Gusland Thorsen wrote: > Hmm sounds like your client only needs one field pr layout. > > See if that improves speed, to me the solution sounds silly... > > There are template engines like smarty, or you could just make a > couple of php/html templates yourself... > > ggt667 > > On 9/20/06, Bob Patin wrote: >> >> I'm using 8.5... but what I'm thinking is that I'll just add a >> field to the >> layout that has the URL to the HTML file... shouldn't add any >> overhead, I >> woudln't think, since all I'm returning from FileMaker is the URL. >> >> I may still return some of the HTML from the database; these >> reports are >> made up of about 20 chunks of HTML, and when I return the chunks >> the speed >> is just fine. The problem arises when I have to return all 20 >> "chunks" in >> one long report; I may just output the long report to static HTML >> and leave >> the little chunks embedded in the database... >> >> At any rate, it's great to see a solution. I'd completely >> overlooked the >> possibility of using a hybrid of static HTML and database... I use >> it all >> the time for photos and such, but hadn't thought about it in this >> context... >> >> Best, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> >> >> >> On Sep 20, 2006, at 11:04 AM, DC wrote: >> I just remembered that in order for this architectural change to >> work you >> must be using a version of the WPE that lets you return the data >> from a >> layout that is different from your search layout. otherwise there >> is no way >> to stop the HTML field that you want to search from spewing itself >> into the >> XML result. so, this scheme wouldn't work in FMP6. >> >> dan >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Wed Sep 20 11:59:33 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 20 11:59:41 2006 Subject: [FX.php List] Best Practice In-Reply-To: References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> <001b01c6dcdd$3bf3bbb0$1700000a@gandrpublishing.com> Message-ID: How much HTML is there? more than 65535 characters? ggt667 On 9/20/06, Gjermund Gusland Thorsen wrote: > Affirmative > > On 9/20/06, Alex Gates wrote: > > Yes, I think it does - as a returned query puts everything from the > > layout in the resulting array. > > > > Please correct me if I'm wrong... > > > > Alex P. Gates > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org > > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tom Sepper > > Sent: Wednesday, September 20, 2006 12:46 PM > > To: FX.php Discussion List > > Subject: [FX.php List] Best Practice > > > > Not to hijack this, but ggt got me thinking. > > > > Since any field to be used with FX.php has to be on the layout specified > > in the FX instance, that begs the question.. Does placing all fields a > > table on the layout slow down the FX.php >> WPE/XML >> FM query? > > > > --- > > Tom Sepper > > Director of Information Technology > > Director's Choice Tour & Travel > > > > P 806.762.6354 > > F 806.763.7637 > > > > tsepper@dctandt.com > > www.directorschoicetourandtravel.com > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org > > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund > > Gusland Thorsen > > Sent: Wednesday, September 20, 2006 12:41 PM > > To: FX.php Discussion List > > Subject: Re: Re: [FX.php List] Anyone using XSLT anymore? > > > > Hmm sounds like your client only needs one field pr layout. > > > > See if that improves speed, to me the solution sounds silly... > > > > There are template engines like smarty, or you could just make a > > couple of php/html templates yourself... > > > > ggt667 > > > > On 9/20/06, Bob Patin wrote: > > > > > > I'm using 8.5... but what I'm thinking is that I'll just add a field > > to the > > > layout that has the URL to the HTML file... shouldn't add any > > overhead, I > > > woudln't think, since all I'm returning from FileMaker is the URL. > > > > > > I may still return some of the HTML from the database; these reports > > are > > > made up of about 20 chunks of HTML, and when I return the chunks the > > speed > > > is just fine. The problem arises when I have to return all 20 "chunks" > > in > > > one long report; I may just output the long report to static HTML and > > leave > > > the little chunks embedded in the database... > > > > > > At any rate, it's great to see a solution. I'd completely overlooked > > the > > > possibility of using a hybrid of static HTML and database... I use it > > all > > > the time for photos and such, but hadn't thought about it in this > > > context... > > > > > > Best, > > > > > > Bob Patin > > > Longterm Solutions > > > bob@longtermsolutions.com > > > 615-333-6858 > > > http://www.longtermsolutions.com > > > > > > CONTACT US VIA INSTANT MESSAGING: > > > AIM or iChat: longterm1954 > > > Yahoo: longterm_solutions > > > MSN: tech@longtermsolutions.com > > > ICQ: 159333060 > > > > > > > > > > > > > > > On Sep 20, 2006, at 11:04 AM, DC wrote: > > > I just remembered that in order for this architectural change to work > > you > > > must be using a version of the WPE that lets you return the data from > > a > > > layout that is different from your search layout. otherwise there is > > no way > > > to stop the HTML field that you want to search from spewing itself > > into the > > > XML result. so, this scheme wouldn't work in FMP6. > > > > > > dan > > > > > > > > > _______________________________________________ > > > FX.php_List mailing list > > > FX.php_List@mail.iviking.org > > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > From ggt667 at gmail.com Wed Sep 20 12:01:58 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 20 12:02:07 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <79989BC7-7E47-44BD-8354-7C8B7B4F506E@dbmscan.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> <79989BC7-7E47-44BD-8354-7C8B7B4F506E@dbmscan.com> Message-ID: The speed of FMSA is almost only relying on the speed of the disks, the setup I use is an xserve with 3x 15000RPM disks in an internal RAID, this system is somewhat OK in speed. ggt On 9/20/06, DC wrote: > Hi Gjermund, > > I'm wondering what a template engine has to do with this at all? Why > suggest using a templating system? > > I'm all for smarty and I use it myself for its template system AND > its caching mechanisms. But, the problem Bob describes is not one > that would be helped by using a template system alone - a basic > template system (without caching) is simply a way for developers to > keep php code and HTML as separate as possible. > > The problem has to do with the speed of FMP when faced with spitting > out large strings from the database. > > Since by all accounts you are an experienced PHP and FX developer, i > would love to hear more detail about why do you say the proposed HTML > file hybrid solution sounds "silly"? Is there some fatal flaw being > overlooked? > > dan > > On Sep 20, 2006, at 1:40 PM, Gjermund Gusland Thorsen wrote: > > > Hmm sounds like your client only needs one field pr layout. > > > > See if that improves speed, to me the solution sounds silly... > > > > There are template engines like smarty, or you could just make a > > couple of php/html templates yourself... > > > > ggt667 > > > > On 9/20/06, Bob Patin wrote: > >> > >> I'm using 8.5... but what I'm thinking is that I'll just add a > >> field to the > >> layout that has the URL to the HTML file... shouldn't add any > >> overhead, I > >> woudln't think, since all I'm returning from FileMaker is the URL. > >> > >> I may still return some of the HTML from the database; these > >> reports are > >> made up of about 20 chunks of HTML, and when I return the chunks > >> the speed > >> is just fine. The problem arises when I have to return all 20 > >> "chunks" in > >> one long report; I may just output the long report to static HTML > >> and leave > >> the little chunks embedded in the database... > >> > >> At any rate, it's great to see a solution. I'd completely > >> overlooked the > >> possibility of using a hybrid of static HTML and database... I use > >> it all > >> the time for photos and such, but hadn't thought about it in this > >> context... > >> > >> Best, > >> > >> Bob Patin > >> Longterm Solutions > >> bob@longtermsolutions.com > >> 615-333-6858 > >> http://www.longtermsolutions.com > >> > >> CONTACT US VIA INSTANT MESSAGING: > >> AIM or iChat: longterm1954 > >> Yahoo: longterm_solutions > >> MSN: tech@longtermsolutions.com > >> ICQ: 159333060 > >> > >> > >> > >> > >> On Sep 20, 2006, at 11:04 AM, DC wrote: > >> I just remembered that in order for this architectural change to > >> work you > >> must be using a version of the WPE that lets you return the data > >> from a > >> layout that is different from your search layout. otherwise there > >> is no way > >> to stop the HTML field that you want to search from spewing itself > >> into the > >> XML result. so, this scheme wouldn't work in FMP6. > >> > >> dan > >> > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > >> > >> > >> > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Wed Sep 20 12:02:22 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 12:02:36 2006 Subject: [FX.php List] Best Practice In-Reply-To: References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> <001b01c6dcdd$3bf3bbb0$1700000a@gandrpublishing.com> Message-ID: Much more. The full reports are a lot more than that. On Sep 20, 2006, at 12:59 PM, Gjermund Gusland Thorsen wrote: > How much HTML is there? more than 65535 characters? > > ggt667 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/017b1a66/attachment.html From afallon at carolina.rr.com Wed Sep 20 12:03:38 2006 From: afallon at carolina.rr.com (Dr. Andrew J. Fallon) Date: Wed Sep 20 12:03:48 2006 Subject: [FX.php List] RE: Best Practice In-Reply-To: <20060920175306.E27CF365B0E@www.iviking.org> Message-ID: <003c01c6dcdf$196b06a0$6900a8c0@gamerig> Most certainly. I've experienced this many times. Message: 2 Date: Wed, 20 Sep 2006 12:45:31 -0500 From: "Tom Sepper" Subject: [FX.php List] Best Practice To: "FX.php Discussion List" Message-ID: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> Content-Type: text/plain; charset="us-ascii" Not to hijack this, but ggt got me thinking. Since any field to be used with FX.php has to be on the layout specified in the FX instance, that begs the question.. Does placing all fields a table on the layout slow down the FX.php >> WPE/XML >> FM query? --- Tom Sepper Director of Information Technology Director's Choice Tour & Travel P 806.762.6354 F 806.763.7637 tsepper@dctandt.com www.directorschoicetourandtravel.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: 9/19/2006 From mlindal at pfc.forestry.ca Wed Sep 20 12:05:13 2006 From: mlindal at pfc.forestry.ca (Lindal, Mark) Date: Wed Sep 20 12:05:30 2006 Subject: [FX.php List] Re: FX.php_List Digest, Vol 26, Issue 30 In-Reply-To: <20060920175306.C83C3365B0C@www.iviking.org> Message-ID: Add this to the FAQ: Q: How many fields per layout? A: Only the ones used in your search and create separate layouts if necessary for different searches. This will speed up the searches. ------------------------------ Mark Lindal Publications Technician / Technicien, publications Canadian Forest Service / Service canadien des for?ts Natural Resources Canada / Ressources naturelles Canada Government of Canada / Gouvernement du Canada 506 West Burnside Road / 506, chemin Burnside ouest Victoria, BC V8Z 1M5 / Victoria (C.-B.) V8Z 1M5 mlindal@pfc.forestry.ca 250-363-0603 From bob at patin.com Wed Sep 20 12:05:39 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 12:05:49 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <79989BC7-7E47-44BD-8354-7C8B7B4F506E@dbmscan.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> <79989BC7-7E47-44BD-8354-7C8B7B4F506E@dbmscan.com> Message-ID: Dan, My sentiments exactly; why is it a silly solution?, and what does any sort of template have to do with anything? This can't be done with templates. The HTML that I'm displaying MUST be displayed from the original Word documents; I can't recreate it from within FileMaker (I've already been all over that with the client, and I've been working with this company for years). > > I'm wondering what a template engine has to do with this at all? > Why suggest using a templating system? > > I'm all for smarty and I use it myself for its template system AND > its caching mechanisms. But, the problem Bob describes is not one > that would be helped by using a template system alone - a basic > template system (without caching) is simply a way for developers to > keep php code and HTML as separate as possible. And there's no way to use templates with this. Originally, I suggested using templates and creating the pages on the fly, but it's not doable. The reports are generated from a FileMaker solution he wrote years ago, and after the report's generated, he has to double- check syntax in every report before he's finished with it (I didn't write that part of it). Then, these Word reports, which are 20+ pages, are converted to Word, and we've been parsing them into HTML and have this huge static HTML site that we're trying to change. > > The problem has to do with the speed of FMP when faced with > spitting out large strings from the database. > > Since by all accounts you are an experienced PHP and FX developer, > i would love to hear more detail about why do you say the proposed > HTML file hybrid solution sounds "silly"? Is there some fatal flaw > being overlooked? Me too; it's generally accepted (at least, in my understanding) that storing photos externally is the way to deal with photos and FileMaker. Why is this any different when these HTML files get really huge? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/8bada927/attachment-0001.html From ggt667 at gmail.com Wed Sep 20 12:06:15 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 20 12:06:41 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: <9DE2926C-D3F3-4ED5-9F99-00EE2E16FC85@patin.com> References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> <9DE2926C-D3F3-4ED5-9F99-00EE2E16FC85@patin.com> Message-ID: I believe the biggest proble is that your are using Word as a generator for HTML... Please try to download NVU( free WYSIWYG HTML editor ) and make the same page in Word and NVU check the difference in size. ggt On 9/20/06, Bob Patin wrote: > > > > > > Hmm sounds like your client only needs one field pr layout. > > No, that won't work. The data needs to be separated by 18-20 different > topics, which are sometimes pulled up separately. The 18-20 topics also need > to be displayed at once as well. > > > > > > > See if that improves speed, to me the solution sounds silly... > > I tried that; the problem is that when I tried to pull up all 20 pieces of > the report, the speed was too slow. The HTML sometimes stretches into 3-5 > pages of HTML, containing several tables and a couple of photos. > > I tried everything; I separated the different topics into separate layouts, > which I use when they do a query for a single topic within the whole report. > This works great; the speed problem occurs when they do a full report, and > unfortunately this is the most-used report on their site. > > I don't find the solution silly at all. It's the same way that I always deal > with photos in FileMaker; I store the photos externally and reference them > with a calculated URL field. The problem in this case isn't the number of > HTML files, it's the problem of maintaining a set of a half-million HTML > files, all of which have to updated several times each year. In this case, > my client will never see the HTML files; he'll run a single script on the > database that'll import his data from his local copy, then run the script > that'll generate the static HTML files. Speed will be excellent, I'll be > able to cache his site, it'll all be a thing of beauty. > > The whole problem is that the data comes from Word documents, and there's no > way around this. We long ago realized that the easiest thing was to convert > the Word docs to HTML (which Word does itself), run these thru a parser that > I wrote in Visual Basic, and then serve them up. I'll re-write the VB parser > so that it now will generate a tab-delimited file, which we'll pull into > FileMaker; then FileMaker will make the HTML files while it generates a URL > for each file so that it can include them in PHP pages. > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > From ggt667 at gmail.com Wed Sep 20 12:08:07 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 20 12:08:16 2006 Subject: [FX.php List] RE: Best Practice In-Reply-To: <003c01c6dcdf$196b06a0$6900a8c0@gamerig> References: <20060920175306.E27CF365B0E@www.iviking.org> <003c01c6dcdf$196b06a0$6900a8c0@gamerig> Message-ID: Two things that speeds up FMSA FMSA machine with RAID based on 15000RPM spin disks. !!! Very important!!! !!! Apache server not running on the same node as FMSA !!! !!! Very important!!! ggt On 9/20/06, Dr. Andrew J. Fallon wrote: > Most certainly. I've experienced this many times. > > Message: 2 > Date: Wed, 20 Sep 2006 12:45:31 -0500 > From: "Tom Sepper" > Subject: [FX.php List] Best Practice > To: "FX.php Discussion List" > Message-ID: > <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> > Content-Type: text/plain; charset="us-ascii" > > Not to hijack this, but ggt got me thinking. > > Since any field to be used with FX.php has to be on the layout specified > in the FX instance, that begs the question.. Does placing all fields a > table on the layout slow down the FX.php >> WPE/XML >> FM query? > > --- > Tom Sepper > Director of Information Technology > Director's Choice Tour & Travel > > P 806.762.6354 > F 806.763.7637 > > tsepper@dctandt.com > www.directorschoicetourandtravel.com > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: 9/19/2006 > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Wed Sep 20 12:07:43 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 12:08:35 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> <79989BC7-7E47-44BD-8354-7C8B7B4F506E@dbmscan.com> Message-ID: <8639E0C2-8741-45B0-A498-5BADC722861A@patin.com> Well, that's partly true, but the problem here isn't in FileMaker's response to a query, but rather with the WPE's ability to send this HTML back to the web sever; the bottleneck with FX.php is with the WPE's translation of PHP to XML so that FileMaker can deal with it. Chris, please correct me if I'm wrong, but this is what I've been led to understand from the last DevCon. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 20, 2006, at 1:01 PM, Gjermund Gusland Thorsen wrote: > The speed of FMSA is almost only relying on the speed of the disks, > the setup I use is an xserve with 3x 15000RPM disks in an internal > RAID, > this system is somewhat OK in speed. > > ggt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/4b60bb56/attachment.html From bob at patin.com Wed Sep 20 12:10:00 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 12:10:09 2006 Subject: [FX.php List] Anyone using XSLT anymore? In-Reply-To: References: <5235FC27-5A6E-43BC-B17C-D441647A2BBA@patin.com> <92A405D6-CFEE-45D0-B927-E775231C102F@dbmscan.com> <72DABD5A-05A6-43C6-ACD3-97AE4D262512@dbmscan.com> <2C41A846-4880-431F-B6F0-547E92339D6B@patin.com> <9102AEBF-BA18-4C3C-AA42-ADCB3FD54D59@dbmscan.com> <987F9530-3B00-433A-9CA9-BBBBC93E4619@patin.com> <9DE2926C-D3F3-4ED5-9F99-00EE2E16FC85@patin.com> Message-ID: You may be right on that point; we haven't tried any other converter. Word puts a ton of garbage in the converted HTML. However, the problem there is that the parser that I wrote was written to deal with these Word-generated HTML files; if I switch converters, the parser will probably cease to function properly... Where would I find NVU? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 20, 2006, at 1:06 PM, Gjermund Gusland Thorsen wrote: > I believe the biggest proble is that your are using Word as a > generator for HTML... Please try to download NVU( free WYSIWYG HTML > editor ) and make the same page in Word and NVU check the difference > in size. > > ggt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/49537026/attachment.html From bob at patin.com Wed Sep 20 12:11:59 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 12:12:12 2006 Subject: [FX.php List] RE: Best Practice In-Reply-To: References: <20060920175306.E27CF365B0E@www.iviking.org> <003c01c6dcdf$196b06a0$6900a8c0@gamerig> Message-ID: <95B68943-A248-42EF-B9F9-50C90FC1AC79@patin.com> I don't think the speed issue has anything to do with the machine it's running on. The G5 uses 2 SATA drives, whcih are lightning-fast; in addition, at this point, there are only about 20 records in the database, and it's the only database running on the machine (which has nothing else running on it). The web server is on a separate machine. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 20, 2006, at 1:08 PM, Gjermund Gusland Thorsen wrote: > Two things that speeds up FMSA > > FMSA machine with RAID based on 15000RPM spin disks. > > !!! Very important!!! > > !!! Apache server not running on the same node as FMSA !!! > > !!! Very important!!! > > ggt > > On 9/20/06, Dr. Andrew J. Fallon wrote: >> Most certainly. I've experienced this many times. >> >> Message: 2 >> Date: Wed, 20 Sep 2006 12:45:31 -0500 >> From: "Tom Sepper" >> Subject: [FX.php List] Best Practice >> To: "FX.php Discussion List" >> Message-ID: >> <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> >> Content-Type: text/plain; charset="us-ascii" >> >> Not to hijack this, but ggt got me thinking. >> >> Since any field to be used with FX.php has to be on the layout >> specified >> in the FX instance, that begs the question.. Does placing all >> fields a >> table on the layout slow down the FX.php >> WPE/XML >> FM query? >> >> --- >> Tom Sepper >> Director of Information Technology >> Director's Choice Tour & Travel >> >> P 806.762.6354 >> F 806.763.7637 >> >> tsepper@dctandt.com >> www.directorschoicetourandtravel.com >> >> -- >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: >> 9/19/2006 >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 tsepper at dctandt.com Wed Sep 20 12:12:31 2006 From: tsepper at dctandt.com (Tom Sepper) Date: Wed Sep 20 12:12:50 2006 Subject: [FX.php List] Anyone using XSLT anymore? Message-ID: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CA@EXCHANGE.dcvalue.com> www.nvu.com/index.php --- Tom Sepper Director of Information Technology Director's Choice Tour & Travel P 806.762.6354 F 806.763.7637 tsepper@dctandt.com www.directorschoicetourandtravel.com ________________________________ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Wednesday, September 20, 2006 1:10 PM To: FX.php Discussion List Subject: Re: [FX.php List] Anyone using XSLT anymore? You may be right on that point; we haven't tried any other converter. Word puts a ton of garbage in the converted HTML. However, the problem there is that the parser that I wrote was written to deal with these Word-generated HTML files; if I switch converters, the parser will probably cease to function properly... Where would I find NVU? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 20, 2006, at 1:06 PM, Gjermund Gusland Thorsen wrote: I believe the biggest proble is that your are using Word as a generator for HTML... Please try to download NVU( free WYSIWYG HTML editor ) and make the same page in Word and NVU check the difference in size. ggt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/a15024fd/attachment-0001.html From ggt667 at gmail.com Wed Sep 20 12:30:01 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 20 12:30:09 2006 Subject: [FX.php List] RE: Best Practice In-Reply-To: <95B68943-A248-42EF-B9F9-50C90FC1AC79@patin.com> References: <20060920175306.E27CF365B0E@www.iviking.org> <003c01c6dcdf$196b06a0$6900a8c0@gamerig> <95B68943-A248-42EF-B9F9-50C90FC1AC79@patin.com> Message-ID: SATA disks ?!? Does not tell the speed of the media, are the two disks RAIDed? There are both slow and fast SATA disks. ggt667 On 9/20/06, Bob Patin wrote: > I don't think the speed issue has anything to do with the machine > it's running on. The G5 uses 2 SATA drives, whcih are lightning-fast; > in addition, at this point, there are only about 20 records in the > database, and it's the only database running on the machine (which > has nothing else running on it). The web server is on a separate > machine. > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > On Sep 20, 2006, at 1:08 PM, Gjermund Gusland Thorsen wrote: > > > Two things that speeds up FMSA > > > > FMSA machine with RAID based on 15000RPM spin disks. > > > > !!! Very important!!! > > > > !!! Apache server not running on the same node as FMSA !!! > > > > !!! Very important!!! > > > > ggt > > > > On 9/20/06, Dr. Andrew J. Fallon wrote: > >> Most certainly. I've experienced this many times. > >> > >> Message: 2 > >> Date: Wed, 20 Sep 2006 12:45:31 -0500 > >> From: "Tom Sepper" > >> Subject: [FX.php List] Best Practice > >> To: "FX.php Discussion List" > >> Message-ID: > >> <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> > >> Content-Type: text/plain; charset="us-ascii" > >> > >> Not to hijack this, but ggt got me thinking. > >> > >> Since any field to be used with FX.php has to be on the layout > >> specified > >> in the FX instance, that begs the question.. Does placing all > >> fields a > >> table on the layout slow down the FX.php >> WPE/XML >> FM query? > >> > >> --- > >> Tom Sepper > >> Director of Information Technology > >> Director's Choice Tour & Travel > >> > >> P 806.762.6354 > >> F 806.763.7637 > >> > >> tsepper@dctandt.com > >> www.directorschoicetourandtravel.com > >> > >> -- > >> No virus found in this outgoing message. > >> Checked by AVG Free Edition. > >> Version: 7.1.405 / Virus Database: 268.12.5/451 - Release Date: > >> 9/19/2006 > >> > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/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 fx at 9degrees.com Wed Sep 20 12:32:53 2006 From: fx at 9degrees.com (Michael Layne) Date: Wed Sep 20 12:33:13 2006 Subject: [FX.php List] Best Practice In-Reply-To: References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> <001b01c6dcdd$3bf3bbb0$1700000a@gandrpublishing.com> Message-ID: <2E34BE57-C1C9-4926-AAF2-4E390EAE3C87@9degrees.com> It definitely effects things. Not just the quantity of fields on a layout, but at times, more importantly, calculated fields. I have done many tests - some on some sizable databases, and if you set text fields to a calculated result (for testing purposes...), and place just the 'text' fields on your specified layout, it will be faster. Can be much faster. I always have one layout for fetching results(list) (name, email, phone), then another for details (...those... + address, birthday, notes, etc., etc.) HTH, Michael On Sep 20, 2006, at 2:02 PM, Bob Patin wrote: > Much more. The full reports are a lot more than that. > > > On Sep 20, 2006, at 12:59 PM, Gjermund Gusland Thorsen wrote: > >> How much HTML is there? more than 65535 characters? >> >> ggt667 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Michael Layne | 9 degrees development | www.9degrees.com | 404.226.7835 | Skype: LayneBay -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/9b4db177/attachment.html From bob at patin.com Wed Sep 20 12:48:07 2006 From: bob at patin.com (Bob Patin) Date: Wed Sep 20 12:48:20 2006 Subject: [FX.php List] RE: Best Practice In-Reply-To: References: <20060920175306.E27CF365B0E@www.iviking.org> <003c01c6dcdf$196b06a0$6900a8c0@gamerig> <95B68943-A248-42EF-B9F9-50C90FC1AC79@patin.com> Message-ID: No, but this is just a test machine, and with a database with 20 records in it, the hard drive speed is irrelevant for my tests, in my opnion. I've been hosting FileMaker-enabled websites for almost 7 years, and what I'm seeing has nothing to do with disk speed. This is a function of the amount of text I'm trying to return. For what it's worth, the machine I'm testing on is used for digital audio and was put together by a tech who puts in SATA drives as specified by the company that makes the digital recording software that I use (I'm also a studio musician). So I suspect it's the fastest SATA drive he could find... We've managed to beat this topic to death... thanks everyone... On Sep 20, 2006, at 1:30 PM, Gjermund Gusland Thorsen wrote: > SATA disks ?!? Does not tell the speed of the media, are the two > disks RAIDed? > There are both slow and fast SATA disks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/96f28a2a/attachment.html From jsfmp at earthlink.net Wed Sep 20 12:53:44 2006 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Sep 20 12:53:57 2006 Subject: [FX.php List] Best Practice In-Reply-To: <2E34BE57-C1C9-4926-AAF2-4E390EAE3C87@9degrees.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14C8@EXCHANGE.dcvalue.com> <001b01c6dcdd$3bf3bbb0$1700000a@gandrpublishing.com> <2E34BE57-C1C9-4926-AAF2-4E390EAE3C87@9degrees.com> Message-ID: <0229FC53-31D0-4FA6-B5BF-F2403495FE34@earthlink.net> Out of curiosity, do non-field objects on a web layout (rectangles, field-labels, colors...) affect speed in any way? -Joel On Sep 20, 2006, at 11:32 AM, Michael Layne wrote: > It definitely effects things. Not just the quantity of fields on a > layout, but at times, more importantly, calculated fields. I have > done many tests - some on some sizable databases, and if you set > text fields to a calculated result (for testing purposes...), and > place just the 'text' fields on your specified layout, it will be > faster. Can be much faster. > > I always have one layout for fetching results(list) (name, email, > phone), then another for details (...those... + address, birthday, > notes, etc., etc.) > > HTH, > > Michael > > On Sep 20, 2006, at 2:02 PM, Bob Patin wrote: > >> Much more. The full reports are a lot more than that. >> >> >> On Sep 20, 2006, at 12:59 PM, Gjermund Gusland Thorsen wrote: >> >>> How much HTML is there? more than 65535 characters? >>> >>> ggt667 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > Michael Layne | 9 degrees development | www.9degrees.com | > 404.226.7835 | Skype: LayneBay > > > _______________________________________________ > 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 Wed Sep 20 13:23:04 2006 From: tsepper at dctandt.com (Tom Sepper) Date: Wed Sep 20 13:23:25 2006 Subject: [FX.php List] Best Practice Message-ID: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> I just spent the time removing unused fields from all of my layouts. I must say that the speed is far better! Is this documented somewhere and I was just a goof and missed it? --- Tom Sepper Director of Information Technology Director's Choice Tour & Travel P 806.762.6354 F 806.763.7637 tsepper@dctandt.com www.directorschoicetourandtravel.com -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen Sent: Wednesday, September 20, 2006 12:53 PM To: FX.php Discussion List Subject: Re: RE: [FX.php List] Best Practice Affirmative On 9/20/06, Alex Gates wrote: > Yes, I think it does - as a returned query puts everything from the > layout in the resulting array. > > Please correct me if I'm wrong... > > Alex P. Gates > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tom Sepper > Sent: Wednesday, September 20, 2006 12:46 PM > To: FX.php Discussion List > Subject: [FX.php List] Best Practice > > Not to hijack this, but ggt got me thinking. > > Since any field to be used with FX.php has to be on the layout specified > in the FX instance, that begs the question.. Does placing all fields a > table on the layout slow down the FX.php >> WPE/XML >> FM query? > > --- > Tom Sepper > Director of Information Technology > Director's Choice Tour & Travel > > P 806.762.6354 > F 806.763.7637 > > tsepper@dctandt.com > www.directorschoicetourandtravel.com > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund > Gusland Thorsen > Sent: Wednesday, September 20, 2006 12:41 PM > To: FX.php Discussion List > Subject: Re: Re: [FX.php List] Anyone using XSLT anymore? > > Hmm sounds like your client only needs one field pr layout. > > See if that improves speed, to me the solution sounds silly... > > There are template engines like smarty, or you could just make a > couple of php/html templates yourself... > > ggt667 > > On 9/20/06, Bob Patin wrote: > > > > I'm using 8.5... but what I'm thinking is that I'll just add a field > to the > > layout that has the URL to the HTML file... shouldn't add any > overhead, I > > woudln't think, since all I'm returning from FileMaker is the URL. > > > > I may still return some of the HTML from the database; these reports > are > > made up of about 20 chunks of HTML, and when I return the chunks the > speed > > is just fine. The problem arises when I have to return all 20 "chunks" > in > > one long report; I may just output the long report to static HTML and > leave > > the little chunks embedded in the database... > > > > At any rate, it's great to see a solution. I'd completely overlooked > the > > possibility of using a hybrid of static HTML and database... I use it > all > > the time for photos and such, but hadn't thought about it in this > > context... > > > > Best, > > > > Bob Patin > > Longterm Solutions > > bob@longtermsolutions.com > > 615-333-6858 > > http://www.longtermsolutions.com > > > > CONTACT US VIA INSTANT MESSAGING: > > AIM or iChat: longterm1954 > > Yahoo: longterm_solutions > > MSN: tech@longtermsolutions.com > > ICQ: 159333060 > > > > > > > > > > On Sep 20, 2006, at 11:04 AM, DC wrote: > > I just remembered that in order for this architectural change to work > you > > must be using a version of the WPE that lets you return the data from > a > > layout that is different from your search layout. otherwise there is > no way > > to stop the HTML field that you want to search from spewing itself > into the > > XML result. so, this scheme wouldn't work in FMP6. > > > > dan > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Wed Sep 20 13:45:34 2006 From: chris at iViking.org (Chris Hansen) Date: Wed Sep 20 13:45:42 2006 Subject: [FX.php List] One more request for archive help Message-ID: <40F569E8-5F91-4D2F-BC6E-C1FA8F539DE8@iViking.org> Hello! Some time ago I requested feedback from people who had encountered problems with the FX.php distribution archive. Specifically, at one point I recall that some people had problems with the databases. I have been unable to duplicate this on Mac OS X, Win2K, or WinXP. Thus far, I haven't heard from anyone. If anyone has encountered such problems with the DBs in the current archive, please let me know. Feel free to respond on the list. Thanks! --Chris Hansen FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org From nickfowlie at hotmail.com Wed Sep 20 18:24:51 2006 From: nickfowlie at hotmail.com (nicholas fowlie) Date: Wed Sep 20 18:25:06 2006 Subject: [FX.php List] Best Practice References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> Message-ID: You should particularly try to steer clear of calculation fields on the layout you are accessing FM with, if that possible of course, as they have to be evaluated when you retrieve data from the layout, and thus can add a lot of time to any FIND/ FINALL request. ----- Original Message ----- From: Tom Sepper To: FX.php Discussion List Sent: Wednesday, September 20, 2006 3:23 PM Subject: RE: RE: [FX.php List] Best Practice I just spent the time removing unused fields from all of my layouts. I must say that the speed is far better! Is this documented somewhere and I was just a goof and missed it? --- Tom Sepper Director of Information Technology Director's Choice Tour & Travel P 806.762.6354 F 806.763.7637 tsepper@dctandt.com www.directorschoicetourandtravel.com -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund Gusland Thorsen Sent: Wednesday, September 20, 2006 12:53 PM To: FX.php Discussion List Subject: Re: RE: [FX.php List] Best Practice Affirmative On 9/20/06, Alex Gates > wrote: > Yes, I think it does - as a returned query puts everything from the > layout in the resulting array. > > Please correct me if I'm wrong... > > Alex P. Gates > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tom Sepper > Sent: Wednesday, September 20, 2006 12:46 PM > To: FX.php Discussion List > Subject: [FX.php List] Best Practice > > Not to hijack this, but ggt got me thinking. > > Since any field to be used with FX.php has to be on the layout specified > in the FX instance, that begs the question.. Does placing all fields a > table on the layout slow down the FX.php >> WPE/XML >> FM query? > > --- > Tom Sepper > Director of Information Technology > Director's Choice Tour & Travel > > P 806.762.6354 > F 806.763.7637 > > tsepper@dctandt.com > www.directorschoicetourandtravel.com > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Gjermund > Gusland Thorsen > Sent: Wednesday, September 20, 2006 12:41 PM > To: FX.php Discussion List > Subject: Re: Re: [FX.php List] Anyone using XSLT anymore? > > Hmm sounds like your client only needs one field pr layout. > > See if that improves speed, to me the solution sounds silly... > > There are template engines like smarty, or you could just make a > couple of php/html templates yourself... > > ggt667 > > On 9/20/06, Bob Patin > wrote: > > > > I'm using 8.5... but what I'm thinking is that I'll just add a field > to the > > layout that has the URL to the HTML file... shouldn't add any > overhead, I > > woudln't think, since all I'm returning from FileMaker is the URL. > > > > I may still return some of the HTML from the database; these reports > are > > made up of about 20 chunks of HTML, and when I return the chunks the > speed > > is just fine. The problem arises when I have to return all 20 "chunks" > in > > one long report; I may just output the long report to static HTML and > leave > > the little chunks embedded in the database... > > > > At any rate, it's great to see a solution. I'd completely overlooked > the > > possibility of using a hybrid of static HTML and database... I use it > all > > the time for photos and such, but hadn't thought about it in this > > context... > > > > Best, > > > > Bob Patin > > Longterm Solutions > > bob@longtermsolutions.com > > 615-333-6858 > > http://www.longtermsolutions.com > > > > CONTACT US VIA INSTANT MESSAGING: > > AIM or iChat: longterm1954 > > Yahoo: longterm_solutions > > MSN: tech@longtermsolutions.com > > ICQ: 159333060 > > > > > > > > > > On Sep 20, 2006, at 11:04 AM, DC wrote: > > I just remembered that in order for this architectural change to work > you > > must be using a version of the WPE that lets you return the data from > a > > layout that is different from your search layout. otherwise there is > no way > > to stop the HTML field that you want to search from spewing itself > into the > > XML result. so, this scheme wouldn't work in FMP6. > > > > dan > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060920/3932d9aa/attachment-0001.html From dan.cynosure at dbmscan.com Wed Sep 20 18:33:07 2006 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 20 18:33:26 2006 Subject: [FX.php List] Best Practice In-Reply-To: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> Message-ID: <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> Here's something from the archive about optimization: ------------------------------------------------------------------------ --- in addition... 1) there was a report of container fields causing slowdowns. so, probably don't use container fields, just reference external files with stored paths. 2) learn to use and maintain lookup fields. you have to script them so they stay in synch, but your speed will improve immensely. 3) don't run FMP scripts via web calls. 4) here's one that'll give your processor some more time back: hide filemaker in the finder using command-h. having it sit as an unhidden app seems to make it suck more CPU. i run this as a cron job every 5 minutes to do this because it gives a few percentage points (but this script does it only if the screensaver is on): osascript -e 'tell application "System Events" to set process_flag to (exists process "ScreenSaverEngine")' -e 'if process_flag then tell application "System Events" to set visible of process "Filemaker Pro" to false' 5) finally, make sure your find requests are really finding the smallest data subset they can. HTH, dc Michael Layne had written: > Scott, > > I posted this within the last couple of weeks, but it is universal to FX (I think...) > > When building solutions via XML (FX.php) for the web, I always take the following steps: > > - create a separate layout for anything that is called via XML. > - only place pertinent, necessary fields in the layout. related fields are fine, but use only what you need... you want it practically naked, it's so spartan. > (* remember, if you have related fields that are not always a 'valid' relationship, place them in portals) > - summary fields slow things down, as well as anything that slows down FMP. It's hard if you have a primarily FMP client based solution, but I usually try to do all logic, calculations, etc within PHP. When it comes to the web, it helps to think of FMP as a place to store data whenever you can. I start that way, then add the necessary FMP functionality. > > I have had considerable success sticking to these guidelines. > > HTH, > > Michael > > On Oct 7, 2005, at 9:00 AM, Scott Baetz wrote: > >> All, >> >> >> >> I am the webmaster/dba for http://www.bays.org . We are a non-profit organization within the Boston Massachusetts area providing scores and standings information to young boys and girls and their parents. Ok, enough background. >> >> >> >> We migrated from a ColdFusion MS Access solution to FM7 and FX.php earlier this year. The product is much more to our liking, since we can use the FileMaker database internally (the administrative staff are MAC users and very proficient with MAC and FileMaker) and we provide a nice interface to our end users through the web. However, now that we are within full season and we have over 5,000 hits to the site per day, and are constantly generating server timeouts. We are using a G5 dual processor with 1gig Memory running OSX server? >> >> >> >> Given that our database includes a limited number of tables, and in total we have less than 20,000 records, I suspect that we are in need of some optimization. Herein lies our struggle. While we can easily create more layouts, and change FX.php queries, I would like some general ?Optimization Techniques? or guidelines to follow. As an example is it better to push FX.PHP query data into arrays and loop through the PHP array, or when is it as easily acceptable to use the foreach loop through the query results from the FX.php query. >> >> >> >> My hope from this message is that someone might provide the ?Five Golden Rules? to FX.php programming or something similar?. >> >> >> >> Best regards, >> >> >> >> >> >> Scott Baetz >> >> sbaetz@soscs.net >> >> (603) 490-9988 >> >> http://www.soscs.net On Sep 20, 2006, at 3:23 PM, Tom Sepper wrote: > I just spent the time removing unused fields from all of my layouts. I > must say that the speed is far better! > > Is this documented somewhere and I was just a goof and missed it? > > > --- > Tom Sepper > Director of Information Technology > Director's Choice Tour & Travel > > P 806.762.6354 > F 806.763.7637 > > tsepper@dctandt.com > www.directorschoicetourandtravel.com From jonathan at eschwartz.com Fri Sep 22 19:55:52 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Fri Sep 22 19:56:26 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> Message-ID: Up until now, all my fx.php solutions have been built around an isolated FMP database to serve the web. When there is a primary db back at the client, I use various routines to update and synch the two, as needed. Obviously, none of the solutions required live up-to-the-second data availability on the web. I'm wondering how many folks are using the same db for both internal and web publishing? If so, how is it working out? If not, why not? A little bit more detail...if the client isn't sophisticated, doesn't have an IT staff or a fast WAN connection, this would suggest to me *not* to keep the web db at the client office. Rather, keep the web db at a reliable web host. One more detail. I promise. ;-)....If the solution is in FMP 6, that would pretty much rule putting the entire solution in a remote hosting location, because FMP is so poor in a WAn environment. Thoughts? Jonathan -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From bob at patin.com Fri Sep 22 19:58:17 2006 From: bob at patin.com (Bob Patin) Date: Fri Sep 22 19:58:37 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> Message-ID: <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> Jonathan, I do it all the time with almost every client who has a web database... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 22, 2006, at 8:55 PM, Jonathan Schwartz wrote: > Up until now, all my fx.php solutions have been built around an > isolated FMP database to serve the web. When there is a primary db > back at the client, I use various routines to update and synch the > two, as needed. Obviously, none of the solutions required live up- > to-the-second data availability on the web. > > I'm wondering how many folks are using the same db for both > internal and web publishing? If so, how is it working out? If > not, why not? > > A little bit more detail...if the client isn't sophisticated, > doesn't have an IT staff or a fast WAN connection, this would > suggest to me *not* to keep the web db at the client office. > Rather, keep the web db at a reliable web host. > > One more detail. I promise. ;-)....If the solution is in FMP 6, > that would pretty much rule putting the entire solution in a remote > hosting location, because FMP is so poor in a WAn environment. > > Thoughts? > > Jonathan > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Fri Sep 22 20:43:42 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Fri Sep 22 20:46:49 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> Message-ID: Err....do which? Use a single DB or two separate DB's? J At 8:58 PM -0500 9/22/06, Bob Patin wrote: >Jonathan, > >I do it all the time with almost every client who has a web database... > >Bob Patin >Longterm Solutions >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > >On Sep 22, 2006, at 8:55 PM, Jonathan Schwartz wrote: > >>Up until now, all my fx.php solutions have been built around an >>isolated FMP database to serve the web. When there is a primary db >>back at the client, I use various routines to update and synch the >>two, as needed. Obviously, none of the solutions required live >>up-to-the-second data availability on the web. >> >>I'm wondering how many folks are using the same db for both >>internal and web publishing? If so, how is it working out? If >>not, why not? >> >>A little bit more detail...if the client isn't sophisticated, >>doesn't have an IT staff or a fast WAN connection, this would >>suggest to me *not* to keep the web db at the client office. >>Rather, keep the web db at a reliable web host. >> >>One more detail. I promise. ;-)....If the solution is in FMP 6, >>that would pretty much rule putting the entire solution in a remote >>hosting location, because FMP is so poor in a WAn environment. >> >>Thoughts? >> >>Jonathan >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From bob at patin.com Fri Sep 22 21:27:39 2006 From: bob at patin.com (Bob Patin) Date: Fri Sep 22 21:27:58 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> Message-ID: <3281F477-010D-47E1-BFE0-B71014B7EFB1@patin.com> ... a single database... :) I have quite a few clients who have shopping carts, and they use the same cart database for tracking customers, mailing lists, etc. I also have other clients who use their membership databases in their office, and also on their websites... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 22, 2006, at 9:43 PM, Jonathan Schwartz wrote: > Err....do which? Use a single DB or two separate DB's? > > J > > > At 8:58 PM -0500 9/22/06, Bob Patin wrote: >> Jonathan, >> >> I do it all the time with almost every client who has a web >> database... >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> >> On Sep 22, 2006, at 8:55 PM, Jonathan Schwartz wrote: >> >>> Up until now, all my fx.php solutions have been built around an >>> isolated FMP database to serve the web. When there is a primary >>> db back at the client, I use various routines to update and synch >>> the two, as needed. Obviously, none of the solutions required >>> live up-to-the-second data availability on the web. >>> >>> I'm wondering how many folks are using the same db for both >>> internal and web publishing? If so, how is it working out? If >>> not, why not? >>> >>> A little bit more detail...if the client isn't sophisticated, >>> doesn't have an IT staff or a fast WAN connection, this would >>> suggest to me *not* to keep the web db at the client office. >>> Rather, keep the web db at a reliable web host. >>> >>> One more detail. I promise. ;-)....If the solution is in FMP 6, >>> that would pretty much rule putting the entire solution in a >>> remote hosting location, because FMP is so poor in a WAn >>> environment. >>> >>> Thoughts? >>> >>> Jonathan >>> -- >>> >>> Jonathan Schwartz >>> FileMaker 8 Certified Developer >>> Associate Member, FileMaker Solutions Alliance >>> Schwartz & Company >>> jonathan@eschwartz.com >>> http://www.eschwartz.com >>> http://www.exit445.com >>> 415-381-1852 >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jonathan at eschwartz.com Fri Sep 22 21:51:24 2006 From: jonathan at eschwartz.com (Jonathan Schwartz) Date: Fri Sep 22 21:51:56 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: <3281F477-010D-47E1-BFE0-B71014B7EFB1@patin.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> <3281F477-010D-47E1-BFE0-B71014B7EFB1@patin.com> Message-ID: Thanks for your input. Now back to the details of this one particular client.. If the solution stays in FMP 6 and stays in the client's office: - local FMP users would be served by Server 5.5 on server 1. - web users would be served by 6.0 Unlimited on a server 2. - OS X Server also on server 2 for web serving - Reliable WAN would need to be added. - Remote access (Timbuktu/ARD) would substitute onsite IT staff Do I have it right? My head is into FMP 8.5 right now, and it's hard to go back that far without my head hurting. ;-) Thanks, Jonathan At 10:27 PM -0500 9/22/06, Bob Patin wrote: >... a single database... :) > >I have quite a few clients who have shopping carts, and they use the >same cart database for tracking customers, mailing lists, etc. I >also have other clients who use their membership databases in their >office, and also on their websites... > >Bob Patin >Longterm Solutions >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > >On Sep 22, 2006, at 9:43 PM, Jonathan Schwartz wrote: > >>Err....do which? Use a single DB or two separate DB's? >> >>J >> >> >>At 8:58 PM -0500 9/22/06, Bob Patin wrote: >>>Jonathan, >>> >>>I do it all the time with almost every client who has a web database... >>> >>>Bob Patin >>>Longterm Solutions >>>bob@longtermsolutions.com >>>615-333-6858 >>>http://www.longtermsolutions.com >>> >>> CONTACT US VIA INSTANT MESSAGING: >>> AIM or iChat: longterm1954 >>> Yahoo: longterm_solutions >>> MSN: tech@longtermsolutions.com >>> ICQ: 159333060 >>> >>> >>>On Sep 22, 2006, at 8:55 PM, Jonathan Schwartz wrote: >>> >>>>Up until now, all my fx.php solutions have been built around an >>>>isolated FMP database to serve the web. When there is a primary >>>>db back at the client, I use various routines to update and synch >>>>the two, as needed. Obviously, none of the solutions required >>>>live up-to-the-second data availability on the web. >>>> >>>>I'm wondering how many folks are using the same db for both >>>>internal and web publishing? If so, how is it working out? If >>>>not, why not? >>>> >>>>A little bit more detail...if the client isn't sophisticated, >>>>doesn't have an IT staff or a fast WAN connection, this would >>>>suggest to me *not* to keep the web db at the client office. >>>>Rather, keep the web db at a reliable web host. >>>> >>>>One more detail. I promise. ;-)....If the solution is in FMP 6, >>>>that would pretty much rule putting the entire solution in a >>>>remote hosting location, because FMP is so poor in a WAn >>>>environment. >>>> >>>>Thoughts? >>>> >>>>Jonathan >>>>-- >>>> >>>>Jonathan Schwartz >>>>FileMaker 8 Certified Developer >>>>Associate Member, FileMaker Solutions Alliance >>>>Schwartz & Company >>>>jonathan@eschwartz.com >>>>http://www.eschwartz.com >>>>http://www.exit445.com >>>>415-381-1852 >>>> >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >> >>Jonathan Schwartz >>FileMaker 8 Certified Developer >>Associate Member, FileMaker Solutions Alliance >>Schwartz & Company >>jonathan@eschwartz.com >>http://www.eschwartz.com >>http://www.exit445.com >>415-381-1852 >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz FileMaker 8 Certified Developer Associate Member, FileMaker Solutions Alliance Schwartz & Company jonathan@eschwartz.com http://www.eschwartz.com http://www.exit445.com 415-381-1852 From bob at patin.com Sat Sep 23 08:54:07 2006 From: bob at patin.com (Bob Patin) Date: Sat Sep 23 08:54:32 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> <3281F477-010D-47E1-BFE0-B71014B7EFB1@patin.com> Message-ID: Well, that would work, although it would be best not to run FMU and OS X Server on the same machine. Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 > Thanks for your input. > > Now back to the details of this one particular client.. > > If the solution stays in FMP 6 and stays in the client's office: > - local FMP users would be served by Server 5.5 on server 1. > - web users would be served by 6.0 Unlimited on a server 2. > - OS X Server also on server 2 for web serving > - Reliable WAN would need to be added. > - Remote access (Timbuktu/ARD) would substitute onsite IT staff > > Do I have it right? My head is into FMP 8.5 right now, and it's > hard to go back that far without my head hurting. ;-) > > Thanks, > > > Jonathan > > > At 10:27 PM -0500 9/22/06, Bob Patin wrote: >> ... a single database... :) >> >> I have quite a few clients who have shopping carts, and they use >> the same cart database for tracking customers, mailing lists, etc. >> I also have other clients who use their membership databases in >> their office, and also on their websites... >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> >> On Sep 22, 2006, at 9:43 PM, Jonathan Schwartz wrote: >> >>> Err....do which? Use a single DB or two separate DB's? >>> >>> J >>> >>> >>> At 8:58 PM -0500 9/22/06, Bob Patin wrote: >>>> Jonathan, >>>> >>>> I do it all the time with almost every client who has a web >>>> database... >>>> >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> >>>> CONTACT US VIA INSTANT MESSAGING: >>>> AIM or iChat: longterm1954 >>>> Yahoo: longterm_solutions >>>> MSN: tech@longtermsolutions.com >>>> ICQ: 159333060 >>>> >>>> >>>> On Sep 22, 2006, at 8:55 PM, Jonathan Schwartz wrote: >>>> >>>>> Up until now, all my fx.php solutions have been built around an >>>>> isolated FMP database to serve the web. When there is a >>>>> primary db back at the client, I use various routines to update >>>>> and synch the two, as needed. Obviously, none of the solutions >>>>> required live up-to-the-second data availability on the web. >>>>> >>>>> I'm wondering how many folks are using the same db for both >>>>> internal and web publishing? If so, how is it working out? If >>>>> not, why not? >>>>> >>>>> A little bit more detail...if the client isn't sophisticated, >>>>> doesn't have an IT staff or a fast WAN connection, this would >>>>> suggest to me *not* to keep the web db at the client office. >>>>> Rather, keep the web db at a reliable web host. >>>>> >>>>> One more detail. I promise. ;-)....If the solution is in FMP >>>>> 6, that would pretty much rule putting the entire solution in a >>>>> remote hosting location, because FMP is so poor in a WAn >>>>> environment. >>>>> >>>>> Thoughts? >>>>> >>>>> Jonathan >>>>> -- >>>>> >>>>> Jonathan Schwartz >>>>> FileMaker 8 Certified Developer >>>>> Associate Member, FileMaker Solutions Alliance >>>>> Schwartz & Company >>>>> jonathan@eschwartz.com >>>>> http://www.eschwartz.com >>>>> http://www.exit445.com >>>>> 415-381-1852 >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> >>> Jonathan Schwartz >>> FileMaker 8 Certified Developer >>> Associate Member, FileMaker Solutions Alliance >>> Schwartz & Company >>> jonathan@eschwartz.com >>> http://www.eschwartz.com >>> http://www.exit445.com >>> 415-381-1852 >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > FileMaker 8 Certified Developer > Associate Member, FileMaker Solutions Alliance > Schwartz & Company > jonathan@eschwartz.com > http://www.eschwartz.com > http://www.exit445.com > 415-381-1852 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Sat Sep 23 13:42:51 2006 From: dbengston at preservationstudio.com (Dale Bengston) Date: Sat Sep 23 13:43:17 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> <3281F477-010D-47E1-BFE0-B71014B7EFB1@patin.com> Message-ID: <01BD6057-DECD-4F29-BB0D-629BDA5A67D0@preservationstudio.com> Bob, do you mean it's best to run FMU on a different box than your actual web server? Cuz FMU works equally well with OS X or OS X Server. The biggest upside to using OS X Server are the nice GUI tools for managing Apache. The biggest downside to using OS X Server is battling my clients' compulsion to turn on other OS X Server services like AFP and FTP, since they perceive them as being "wasted" if just FMU is running. If you want to dedicate a Mac to FMU - or FMSA for that matter, its purpose is far more likely to remain dedicated to FileMaker if it's just running OS X, and not OS X Server. Dale On Sep 23, 2006, at 9:54 AM, Bob Patin wrote: > Well, that would work, although it would be best not to run FMU and > OS X Server on the same machine. > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > > > >> Thanks for your input. >> >> Now back to the details of this one particular client.. >> >> If the solution stays in FMP 6 and stays in the client's office: >> - local FMP users would be served by Server 5.5 on server 1. >> - web users would be served by 6.0 Unlimited on a server 2. >> - OS X Server also on server 2 for web serving >> - Reliable WAN would need to be added. >> - Remote access (Timbuktu/ARD) would substitute onsite IT staff >> >> Do I have it right? My head is into FMP 8.5 right now, and it's >> hard to go back that far without my head hurting. ;-) >> >> Thanks, >> >> >> Jonathan >> >> >> At 10:27 PM -0500 9/22/06, Bob Patin wrote: >>> ... a single database... :) >>> >>> I have quite a few clients who have shopping carts, and they use >>> the same cart database for tracking customers, mailing lists, >>> etc. I also have other clients who use their membership databases >>> in their office, and also on their websites... >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> >>> CONTACT US VIA INSTANT MESSAGING: >>> AIM or iChat: longterm1954 >>> Yahoo: longterm_solutions >>> MSN: tech@longtermsolutions.com >>> ICQ: 159333060 >>> >>> >>> On Sep 22, 2006, at 9:43 PM, Jonathan Schwartz wrote: >>> >>>> Err....do which? Use a single DB or two separate DB's? >>>> >>>> J >>>> >>>> >>>> At 8:58 PM -0500 9/22/06, Bob Patin wrote: >>>>> Jonathan, >>>>> >>>>> I do it all the time with almost every client who has a web >>>>> database... >>>>> >>>>> Bob Patin >>>>> Longterm Solutions >>>>> bob@longtermsolutions.com >>>>> 615-333-6858 >>>>> http://www.longtermsolutions.com >>>>> >>>>> CONTACT US VIA INSTANT MESSAGING: >>>>> AIM or iChat: longterm1954 >>>>> Yahoo: longterm_solutions >>>>> MSN: tech@longtermsolutions.com >>>>> ICQ: 159333060 >>>>> >>>>> >>>>> On Sep 22, 2006, at 8:55 PM, Jonathan Schwartz wrote: >>>>> >>>>>> Up until now, all my fx.php solutions have been built around >>>>>> an isolated FMP database to serve the web. When there is a >>>>>> primary db back at the client, I use various routines to >>>>>> update and synch the two, as needed. Obviously, none of the >>>>>> solutions required live up-to-the-second data availability on >>>>>> the web. >>>>>> >>>>>> I'm wondering how many folks are using the same db for both >>>>>> internal and web publishing? If so, how is it working out? >>>>>> If not, why not? >>>>>> >>>>>> A little bit more detail...if the client isn't sophisticated, >>>>>> doesn't have an IT staff or a fast WAN connection, this would >>>>>> suggest to me *not* to keep the web db at the client office. >>>>>> Rather, keep the web db at a reliable web host. >>>>>> >>>>>> One more detail. I promise. ;-)....If the solution is in FMP >>>>>> 6, that would pretty much rule putting the entire solution in >>>>>> a remote hosting location, because FMP is so poor in a WAn >>>>>> environment. >>>>>> >>>>>> Thoughts? >>>>>> >>>>>> Jonathan >>>>>> -- >>>>>> >>>>>> Jonathan Schwartz >>>>>> FileMaker 8 Certified Developer >>>>>> Associate Member, FileMaker Solutions Alliance >>>>>> Schwartz & Company >>>>>> jonathan@eschwartz.com >>>>>> http://www.eschwartz.com >>>>>> http://www.exit445.com >>>>>> 415-381-1852 >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> -- >>>> >>>> Jonathan Schwartz >>>> FileMaker 8 Certified Developer >>>> Associate Member, FileMaker Solutions Alliance >>>> Schwartz & Company >>>> jonathan@eschwartz.com >>>> http://www.eschwartz.com >>>> http://www.exit445.com >>>> 415-381-1852 >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> >> Jonathan Schwartz >> FileMaker 8 Certified Developer >> Associate Member, FileMaker Solutions Alliance >> Schwartz & Company >> jonathan@eschwartz.com >> http://www.eschwartz.com >> http://www.exit445.com >> 415-381-1852 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Sat Sep 23 15:24:18 2006 From: bob at patin.com (Bob Patin) Date: Sat Sep 23 15:25:46 2006 Subject: [FX.php List] Two DB's or One? In-Reply-To: <01BD6057-DECD-4F29-BB0D-629BDA5A67D0@preservationstudio.com> References: <7892D7C1A3D1AE4F947DE4123A84D5F41E14CD@EXCHANGE.dcvalue.com> <9F49C6DD-0022-46E9-9A8A-7A80737CE511@dbmscan.com> <8ECC7095-A666-461D-8968-00423F8AFA37@patin.com> <3281F477-010D-47E1-BFE0-B71014B7EFB1@patin.com> <01BD6057-DECD-4F29-BB0D-629BDA5A67D0@preservationstudio.com> Message-ID: Hi, Yes, I actually was referring to using a separate machine to run FM Unlimited. When I started hosting FM databases for the web, OS X Server didn't exist yet, and at the time WebSTAR was the best choice for a web server on OS 9 (at least, in my opinion). Under OS 9, it's best that FMU is in the foreground, so I always dedicated machines (I still use 14 of them) to FMU. The only other app that I run on an FMU machine is an FTP server. These days, with OS X Server, I still use separate web servers; I have 4 machines running OS X Server, 3 of which address FM databases (both version 6 with CDML and version 7/8 with PHP). With the advent of inexpensive little machines like the Mac Mini, one could put FMU on a Mac Mini and it would probably work just fine in that capacity (I haven't tried it, but have used much slower machines as FMU machines in the past and they actually performed fairly well for low- to-medium-traffic sites). I use RAICs for all of my CDML sites, so one FMU machine isn't trying to handle all the FMU queries on its own. It also gives me redundancy in case a machine crashed, which wasn't unheard of with CDML. The downside of this arrangement is that, with CDML, one has to upload HTML and image files to all of the machines--web server plus each of the FMU machines in the RAIC. Some of my sites run on a 3- machine RAIC, which means that every update has to be made to 4 machines. I was thrilled when I moved to PHP and only had to upload to a single machine! However, I still have 150 or so databases running with CDML, most of which will probably never be moved up to PHP and FM 8.5 (clients wouldn't know the difference!). In my company I don't use any machine for more than one function; I have separate machines running mail, DNS, mailing list, and PageSentry, which monitors all my servers. It requires a lot of machines (28 at last count) but has proven to be the best way to handle lots of sites and databases. Best, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 On Sep 23, 2006, at 2:42 PM, Dale Bengston wrote: > Bob, do you mean it's best to run FMU on a different box than your > actual web server? Cuz FMU works equally well with OS X or OS X > Server. The biggest upside to using OS X Server are the nice GUI > tools for managing Apache. The biggest downside to using OS X > Server is battling my clients' compulsion to turn on other OS X > Server services like AFP and FTP, since they perceive them as being > "wasted" if just FMU is running. If you want to dedicate a Mac to > FMU - or FMSA for that matter, its purpose is far more likely to > remain dedicated to FileMaker if it's just running OS X, and not OS > X Server. > > Dale > > On Sep 23, 2006, at 9:54 AM, Bob Patin wrote: > >> Well, that would work, although it would be best not to run FMU >> and OS X Server on the same machine. >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> >> >> >>> Thanks for your input. >>> >>> Now back to the details of this one particular client.. >>> >>> If the solution stays in FMP 6 and stays in the client's office: >>> - local FMP users would be served by Server 5.5 on server 1. >>> - web users would be served by 6.0 Unlimited on a server 2. >>> - OS X Server also on server 2 for web serving >>> - Reliable WAN would need to be added. >>> - Remote access (Timbuktu/ARD) would substitute onsite IT staff >>> >>> Do I have it right? My head is into FMP 8.5 right now, and it's >>> hard to go back that far without my head hurting. ;-) >>> >>> Thanks, >>> >>> >>> Jonathan >>> >>> >>> At 10:27 PM -0500 9/22/06, Bob Patin wrote: >>>> ... a single database... :) >>>> >>>> I have quite a few clients who have shopping carts, and they use >>>> the same cart database for tracking customers, mailing lists, >>>> etc. I also have other clients who use their membership >>>> databases in their office, and also on their websites... >>>> >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> >>>> CONTACT US VIA INSTANT MESSAGING: >>>> AIM or iChat: longterm1954 >>>> Yahoo: longterm_solutions >>>> MSN: tech@longtermsolutions.com >>>> ICQ: 159333060 >>>> >>>> >>>> On Sep 22, 2006, at 9:43 PM, Jonathan Schwartz wrote: >>>> >>>>> Err....do which? Use a single DB or two separate DB's? >>>>> >>>>> J >>>>> >>>>> >>>>> At 8:58 PM -0500 9/22/06, Bob Patin wrote: >>>>>> Jonathan, >>>>>> >>>>>> I do it all the time with almost every client who has a web >>>>>> database... >>>>>> >>>>>> Bob Patin >>>>>> Longterm Solutions >>>>>> bob@longtermsolutions.com >>>>>> 615-333-6858 >>>>>> http://www.longtermsolutions.com >>>>>> >>>>>> CONTACT US VIA INSTANT MESSAGING: >>>>>> AIM or iChat: longterm1954 >>>>>> Yahoo: longterm_solutions >>>>>> MSN: tech@longtermsolutions.com >>>>>> ICQ: 159333060 >>>>>> >>>>>> >>>>>> On Sep 22, 2006, at 8:55 PM, Jonathan Schwartz wrote: >>>>>> >>>>>>> Up until now, all my fx.php solutions have been built around >>>>>>> an isolated FMP database to serve the web. When there is a >>>>>>> primary db back at the client, I use various routines to >>>>>>> update and synch the two, as needed. Obviously, none of the >>>>>>> solutions required live up-to-the-second data availability on >>>>>>> the web. >>>>>>> >>>>>>> I'm wondering how many folks are using the same db for both >>>>>>> internal and web publishing? If so, how is it working out? >>>>>>> If not, why not? >>>>>>> >>>>>>> A little bit more detail...if the client isn't sophisticated, >>>>>>> doesn't have an IT staff or a fast WAN connection, this would >>>>>>> suggest to me *not* to keep the web db at the client office. >>>>>>> Rather, keep the web db at a reliable web host. >>>>>>> >>>>>>> One more detail. I promise. ;-)....If the solution is in FMP >>>>>>> 6, that would pretty much rule putting the entire solution in >>>>>>> a remote hosting location, because FMP is so poor in a WAn >>>>>>> environment. >>>>>>> >>>>>>> Thoughts? >>>>>>> >>>>>>> Jonathan >>>>>>> -- >>>>>>> >>>>>>> Jonathan Schwartz >>>>>>> FileMaker 8 Certified Developer >>>>>>> Associate Member, FileMaker Solutions Alliance >>>>>>> Schwartz & Company >>>>>>> jonathan@eschwartz.com >>>>>>> http://www.eschwartz.com >>>>>>> http://www.exit445.com >>>>>>> 415-381-1852 >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> -- >>>>> >>>>> Jonathan Schwartz >>>>> FileMaker 8 Certified Developer >>>>> Associate Member, FileMaker Solutions Alliance >>>>> Schwartz & Company >>>>> jonathan@eschwartz.com >>>>> http://www.eschwartz.com >>>>> http://www.exit445.com >>>>> 415-381-1852 >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> >>> Jonathan Schwartz >>> FileMaker 8 Certified Developer >>> Associate Member, FileMaker Solutions Alliance >>> Schwartz & Company >>> jonathan@eschwartz.com >>> http://www.eschwartz.com >>> http://www.exit445.com >>> 415-381-1852 >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 FHASELTINE at aol.com Sat Sep 23 19:50:01 2006 From: FHASELTINE at aol.com (FHASELTINE@aol.com) Date: Sat Sep 23 19:50:26 2006 Subject: [FX.php List] Check Box Question Message-ID: I have a field in my Data Base called 'grant' My edit webpage can change data in this field When I add things to the field 'grant' from a check box, like the different entries RSDP; WRHR; BIRWCH; NIH; It works well. However, when I go to edit a file there is a glitch. I need to check the check box each time. Say I have RSDP and WRHR already checked off and now I just want to add NIH and keep the RSDP or WRHR, can I do it? At the moment I have to check the RSDP box and the WRHR box each time I edit the page or the selection goes away in the field 'grant' How do I just add to the field without rechecking the boxes? Florence? Haseltine AIM: Fhaseltine fhaseltine@aol.com 240-476-7837 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060923/08056ae2/attachment.html From ggt667 at gmail.com Sun Sep 24 11:50:20 2006 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 24 11:50:43 2006 Subject: [FX.php List] Check Box Question In-Reply-To: References: Message-ID: Something like this? if( $r[$currRecId]['fieldname'][0] == $vlValue ) { $tmpVLValue[] = '