From csinfo at criticalsolution.com Mon Sep 1 09:52:27 2008 From: csinfo at criticalsolution.com (John Funk) Date: Mon Sep 1 11:10:53 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes Message-ID: I have HTML form that list the results of an FM query in a check box format. I would like to then send that list (all (records with user changes) back to the same FM layout (table) with FMEdit(). Can anybody give an example for capturing, sending and getting arrays of data between php files, then parsing to edit the records? I understand the FMEdit() part. My form part to show to check list: $RecID=$record['RecordID'][0]; $Category=$record['Category'][0]; $YrSelected=$record[' YrSelected'][0]; echo ""; echo "".$Category."
"; else echo " unchecked>".$Category."
"; This seems so simple but the more I work on it the more I get screwed up. Thanks John Funk From bob at patin.com Mon Sep 1 11:24:41 2008 From: bob at patin.com (Bob Patin) Date: Mon Sep 1 11:24:47 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: References: Message-ID: Hi John, I thought we talked about this the other day... I have my own method, which works great; I'm sure there are other methods, but this one is fairly easy: On your form: If you are creating a dynamic set of checkboxes, you'll need to make sure each checkbox's name is unique. I do this with a counter: $counter = 0; Then, in a FOREACH loop, generate your checkbox HTML code, and make the name end with the counter variable: name="myCheckbox_" I use an underscore just to make it easy for me to read... Then, after this FOREACH loop, put an invisible field that contains the value of $counter; you'll use this on the processing page. --------------- ON THE PROCESSING PAGE: //retrieve the value of your COUNTER variable $counter = $_POST['counter']; Retrieve the checkbox values by using a WHILE loop: $x = 0; while ($x < $counter){ $myCheckboxList = $_POST['myCheckbox_'.$x].'
'; $x++; } Then, in your EDIT query, write the value of $myCheckboxList to your checkbox field. I'm doing this all from memory, but that's essentially how I do it. You don't really need to use an array, since you're grabbing the checkbox values and assembling them into a list that you'll write to the field. Hope this makes sense; I'm too lazy to dig up one of my pages and copy out the code... -- Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 1, 2008, at 10:52 AM, John Funk wrote: > I have HTML form that list the results of an FM query in a check box > format. > I would like to then send that list (all (records with user changes) > back to > the same FM layout (table) with FMEdit(). > Can anybody give an example for capturing, sending and getting > arrays of > data between php files, then parsing to edit the records? I > understand the > FMEdit() part. > > My form part to show to check list: > $RecID=$record['RecordID'][0]; > $Category=$record['Category'][0]; > $YrSelected=$record[' YrSelected'][0]; > > echo ""; > echo " > echo " checked>".$Category."
"; > else > echo " unchecked>".$Category."
"; > > > This seems so simple but the more I work on it the more I get > screwed up. > Thanks > John Funk > > > _______________________________________________ > 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 Mon Sep 1 12:11:18 2008 From: chris at iViking.org (Chris Hansen) Date: Mon Sep 1 12:11:21 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: References: Message-ID: <4308D9EE-F8DB-4CC0-A1DE-8BACF2621936@iViking.org> John, Bob is right about checkbox naming (if you're not careful, you'll end up with only that last value in the list), but there's a very elegant way to handle this: name your checkbox element with empty square brackets. What this does, is cause PHP to automagically assemble all checkbox values for a given set into an array. Neat, eh? Just be sure to check that values were submitted before stepping through that PHP array with foreach() or you'll get an error. HTH --Chris Hansen FileMaker 7/8/9 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Sep 1, 2008, at 11:24 AM, Bob Patin wrote: > Hi John, > > I thought we talked about this the other day... > > I have my own method, which works great; I'm sure there are other > methods, but this one is fairly easy: > > On your form: > > If you are creating a dynamic set of checkboxes, you'll need to make > sure each checkbox's name is unique. I do this with a counter: > > $counter = 0; > > Then, in a FOREACH loop, generate your checkbox HTML code, and make > the name end with the counter variable: > > name="myCheckbox_" > > I use an underscore just to make it easy for me to read... > > Then, after this FOREACH loop, put an invisible field that contains > the value of $counter; you'll use this on the processing page. > --------------- > ON THE PROCESSING PAGE: > > //retrieve the value of your COUNTER variable > $counter = $_POST['counter']; > > Retrieve the checkbox values by using a WHILE loop: > > $x = 0; > while ($x < $counter){ > $myCheckboxList = $_POST['myCheckbox_'.$x].'
'; > $x++; > } > > Then, in your EDIT query, write the value of $myCheckboxList to your > checkbox field. > > I'm doing this all from memory, but that's essentially how I do it. > You don't really need to use an array, since you're grabbing the > checkbox values and assembling them into a list that you'll write to > the field. > > Hope this makes sense; I'm too lazy to dig up one of my pages and > copy out the code... > > > -- > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > On Sep 1, 2008, at 10:52 AM, John Funk wrote: > >> I have HTML form that list the results of an FM query in a check >> box format. >> I would like to then send that list (all (records with user >> changes) back to >> the same FM layout (table) with FMEdit(). >> Can anybody give an example for capturing, sending and getting >> arrays of >> data between php files, then parsing to edit the records? I >> understand the >> FMEdit() part. >> >> My form part to show to check list: >> $RecID=$record['RecordID'][0]; >> $Category=$record['Category'][0]; >> $YrSelected=$record[' YrSelected'][0]; >> >> echo ""; >> echo "> >> echo " checked>".$Category."
"; >> else >> echo " unchecked>".$Category."
"; >> >> >> This seems so simple but the more I work on it the more I get >> screwed up. >> Thanks >> John Funk >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Mon Sep 1 12:28:45 2008 From: bob at patin.com (Bob Patin) Date: Mon Sep 1 12:28:51 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: <4308D9EE-F8DB-4CC0-A1DE-8BACF2621936@iViking.org> References: <4308D9EE-F8DB-4CC0-A1DE-8BACF2621936@iViking.org> Message-ID: <3045BC28-5F5A-4799-9E5F-1804D25E922C@patin.com> See, I *knew* you were a smart guy! BP On Sep 1, 2008, at 1:11 PM, Chris Hansen wrote: > John, > > Bob is right about checkbox naming (if you're not careful, you'll > end up with only that last value in the list), but there's a very > elegant way to handle this: name your checkbox element with empty > square brackets. > > > > What this does, is cause PHP to automagically assemble all checkbox > values for a given set into an array. Neat, eh? Just be sure to > check that values were submitted before stepping through that PHP > array with foreach() or you'll get an error. > > HTH > > --Chris Hansen > FileMaker 7/8/9 Certified Developer > Creator of FX.php > "The best way from FileMaker to the Web." > www.iViking.org > > On Sep 1, 2008, at 11:24 AM, Bob Patin wrote: > >> Hi John, >> >> I thought we talked about this the other day... >> >> I have my own method, which works great; I'm sure there are other >> methods, but this one is fairly easy: >> >> On your form: >> >> If you are creating a dynamic set of checkboxes, you'll need to >> make sure each checkbox's name is unique. I do this with a counter: >> >> $counter = 0; >> >> Then, in a FOREACH loop, generate your checkbox HTML code, and make >> the name end with the counter variable: >> >> name="myCheckbox_" >> >> I use an underscore just to make it easy for me to read... >> >> Then, after this FOREACH loop, put an invisible field that contains >> the value of $counter; you'll use this on the processing page. >> --------------- >> ON THE PROCESSING PAGE: >> >> //retrieve the value of your COUNTER variable >> $counter = $_POST['counter']; >> >> Retrieve the checkbox values by using a WHILE loop: >> >> $x = 0; >> while ($x < $counter){ >> $myCheckboxList = $_POST['myCheckbox_'.$x].'
'; >> $x++; >> } >> >> Then, in your EDIT query, write the value of $myCheckboxList to >> your checkbox field. >> >> I'm doing this all from memory, but that's essentially how I do it. >> You don't really need to use an array, since you're grabbing the >> checkbox values and assembling them into a list that you'll write >> to the field. >> >> Hope this makes sense; I'm too lazy to dig up one of my pages and >> copy out the code... >> >> >> -- >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> >> On Sep 1, 2008, at 10:52 AM, John Funk wrote: >> >>> I have HTML form that list the results of an FM query in a check >>> box format. >>> I would like to then send that list (all (records with user >>> changes) back to >>> the same FM layout (table) with FMEdit(). >>> Can anybody give an example for capturing, sending and getting >>> arrays of >>> data between php files, then parsing to edit the records? I >>> understand the >>> FMEdit() part. >>> >>> My form part to show to check list: >>> $RecID=$record['RecordID'][0]; >>> $Category=$record['Category'][0]; >>> $YrSelected=$record[' YrSelected'][0]; >>> >>> echo ""; >>> echo ">> >>> echo " checked>".$Category."
"; >>> else >>> echo " unchecked>".$Category."
"; >>> >>> >>> This seems so simple but the more I work on it the more I get >>> screwed up. >>> Thanks >>> John Funk >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 Mon Sep 1 13:59:45 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Sep 1 13:59:48 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: <4308D9EE-F8DB-4CC0-A1DE-8BACF2621936@iViking.org> References: <4308D9EE-F8DB-4CC0-A1DE-8BACF2621936@iViking.org> Message-ID: That approach name="myArray[]" in combination with recid can make you achieve some serious stuff. ggt 2008/9/1 Chris Hansen : > John, > > Bob is right about checkbox naming (if you're not careful, you'll end up > with only that last value in the list), but there's a very elegant way to > handle this: name your checkbox element with empty square brackets. > > > > What this does, is cause PHP to automagically assemble all checkbox values > for a given set into an array. Neat, eh? Just be sure to check that values > were submitted before stepping through that PHP array with foreach() or > you'll get an error. > > HTH > > --Chris Hansen > FileMaker 7/8/9 Certified Developer > Creator of FX.php > "The best way from FileMaker to the Web." > www.iViking.org > > On Sep 1, 2008, at 11:24 AM, Bob Patin wrote: > >> Hi John, >> >> I thought we talked about this the other day... >> >> I have my own method, which works great; I'm sure there are other methods, >> but this one is fairly easy: >> >> On your form: >> >> If you are creating a dynamic set of checkboxes, you'll need to make sure >> each checkbox's name is unique. I do this with a counter: >> >> $counter = 0; >> >> Then, in a FOREACH loop, generate your checkbox HTML code, and make the >> name end with the counter variable: >> >> name="myCheckbox_" >> >> I use an underscore just to make it easy for me to read... >> >> Then, after this FOREACH loop, put an invisible field that contains the >> value of $counter; you'll use this on the processing page. >> --------------- >> ON THE PROCESSING PAGE: >> >> //retrieve the value of your COUNTER variable >> $counter = $_POST['counter']; >> >> Retrieve the checkbox values by using a WHILE loop: >> >> $x = 0; >> while ($x < $counter){ >> $myCheckboxList = $_POST['myCheckbox_'.$x].'
'; >> $x++; >> } >> >> Then, in your EDIT query, write the value of $myCheckboxList to your >> checkbox field. >> >> I'm doing this all from memory, but that's essentially how I do it. You >> don't really need to use an array, since you're grabbing the checkbox values >> and assembling them into a list that you'll write to the field. >> >> Hope this makes sense; I'm too lazy to dig up one of my pages and copy out >> the code... >> >> >> -- >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >> >> >> On Sep 1, 2008, at 10:52 AM, John Funk wrote: >> >>> I have HTML form that list the results of an FM query in a check box >>> format. >>> I would like to then send that list (all (records with user changes) back >>> to >>> the same FM layout (table) with FMEdit(). >>> Can anybody give an example for capturing, sending and getting arrays of >>> data between php files, then parsing to edit the records? I understand >>> the >>> FMEdit() part. >>> >>> My form part to show to check list: >>> $RecID=$record['RecordID'][0]; >>> $Category=$record['Category'][0]; >>> $YrSelected=$record[' YrSelected'][0]; >>> >>> echo ""; >>> echo ">> >>> echo " checked>".$Category."
"; >>> else >>> echo " unchecked>".$Category."
"; >>> >>> >>> This seems so simple but the more I work on it the more I get screwed up. >>> Thanks >>> John Funk >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 tim at nicheit.com.au Mon Sep 1 17:11:12 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Mon Sep 1 17:11:19 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: References: Message-ID: On 02/09/2008, at 1:52 AM, John Funk wrote: > I have HTML form that list the results of an FM query in a check box > format. > I would like to then send that list (all (records with user changes) > back to > the same FM layout (table) with FMEdit(). > Can anybody give an example for capturing, sending and getting > arrays of > data between php files, then parsing to edit the records? I > understand the > FMEdit() part. A simpl;ified version of one of my forms - note that this one is actually a FMNew, but the principle for capturing checkboxes and deciding which code to perform is much the same. There is no error checking on this one, although there are some variables to use for that if you wish. And given that I've pretty much taught myself, there is almost certainly room for improvement i nthe elegance of the code ;-) Cheers Webko setDBPassword($dbPass,$dbUser); $addProgressNotes -> setDBData($dbName,'Detail'); $addProgressNotes -> AddDBParam('ProcCode', $procCode); $addProgressNotes -> AddDBParam('StartTime', $startTime); $addProgressNotes -> AddDBParam('EndTime', $endTime); $addProgressNotes -> AddDBParam('GoalsInclude', $goalsInclude); $addProgressNotesData = $addProgressNotes->FMNew(); // echo "Contact Error: ".$addProgressNotesData['errorCode']."
"; } //Find value lists $vlists=new FX($dbHost,$port,$dbType,$conType); $vlists -> setDBPassword($dbPass,$dbUser); $vlists -> SetDBData($dbName,'Detail', 'all'); $vlistsResult=$vlists->FMView(); // echo "Error".$vlistsResult['errorCode']; ?> NSMH Progress Notes
ProcCode
StartTime
EndTime
GoalNumbers
$value){ ?>    
    
From csinfo at comcast.net Tue Sep 2 09:23:25 2008 From: csinfo at comcast.net (John Funk) Date: Tue Sep 2 09:23:50 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: Message-ID: <20080902152345.BD334B1C9D@mail.iviking.org> Chris your suggestion works great for sending the data to POST but how do I extract the data? Once I have the data in a variable (not an array) I know what to do. My field to send data: echo ""; My code to get the array: $RecIDs = array($_REQUEST["RecID"]); How do I extract the data with foreach()? John -----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: Monday, September 01, 2008 3:00 PM To: FX.php Discussion List Subject: Re: [FX.php List] Suggestions on editing a list of check boxes That approach name="myArray[]" in combination with recid can make you achieve some serious stuff. ggt 2008/9/1 Chris Hansen : > John, > > Bob is right about checkbox naming (if you're not careful, you'll end up > with only that last value in the list), but there's a very elegant way to > handle this: name your checkbox element with empty square brackets. > > > > What this does, is cause PHP to automagically assemble all checkbox values > for a given set into an array. Neat, eh? Just be sure to check that values > were submitted before stepping through that PHP array with foreach() or > you'll get an error. > > HTH > > --Chris Hansen > FileMaker 7/8/9 Certified Developer > Creator of FX.php > "The best way from FileMaker to the Web." > www.iViking.org > > On Sep 1, 2008, at 11:24 AM, Bob Patin wrote: > >> Hi John, >> >> I thought we talked about this the other day... >> >> I have my own method, which works great; I'm sure there are other methods, >> but this one is fairly easy: >> >> On your form: >> >> If you are creating a dynamic set of checkboxes, you'll need to make sure >> each checkbox's name is unique. I do this with a counter: >> >> $counter = 0; >> >> Then, in a FOREACH loop, generate your checkbox HTML code, and make the >> name end with the counter variable: >> >> name="myCheckbox_" >> >> I use an underscore just to make it easy for me to read... >> >> Then, after this FOREACH loop, put an invisible field that contains the >> value of $counter; you'll use this on the processing page. >> --------------- >> ON THE PROCESSING PAGE: >> >> //retrieve the value of your COUNTER variable >> $counter = $_POST['counter']; >> >> Retrieve the checkbox values by using a WHILE loop: >> >> $x = 0; >> while ($x < $counter){ >> $myCheckboxList = $_POST['myCheckbox_'.$x].'
'; >> $x++; >> } >> >> Then, in your EDIT query, write the value of $myCheckboxList to your >> checkbox field. >> >> I'm doing this all from memory, but that's essentially how I do it. You >> don't really need to use an array, since you're grabbing the checkbox values >> and assembling them into a list that you'll write to the field. >> >> Hope this makes sense; I'm too lazy to dig up one of my pages and copy out >> the code... >> >> >> -- >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP . Full email services . Free DNS hosting . Colocation . Consulting >> >> >> On Sep 1, 2008, at 10:52 AM, John Funk wrote: >> >>> I have HTML form that list the results of an FM query in a check box >>> format. >>> I would like to then send that list (all (records with user changes) back >>> to >>> the same FM layout (table) with FMEdit(). >>> Can anybody give an example for capturing, sending and getting arrays of >>> data between php files, then parsing to edit the records? I understand >>> the >>> FMEdit() part. >>> >>> My form part to show to check list: >>> $RecID=$record['RecordID'][0]; >>> $Category=$record['Category'][0]; >>> $YrSelected=$record[' YrSelected'][0]; >>> >>> echo ""; >>> echo ">> >>> echo " checked>".$Category."
"; >>> else >>> echo " unchecked>".$Category."
"; >>> >>> >>> This seems so simple but the more I work on it the more I get screwed up. >>> Thanks >>> John Funk >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Tue Sep 2 09:56:22 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Sep 2 09:56:24 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: <20080902152345.BD334B1C9D@mail.iviking.org> References: <20080902152345.BD334B1C9D@mail.iviking.org> Message-ID: Suggestion --- echo ''; --- ggt667 2008/9/2 John Funk : > Chris your suggestion works great for sending the data to POST but how do I > extract the data? Once I have the data in a variable (not an array) I know > what to do. > My field to send data: > echo ""; > > My code to get the array: > $RecIDs = array($_REQUEST["RecID"]); > > How do I extract the data with foreach()? > John > > > > > -----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: Monday, September 01, 2008 3:00 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] Suggestions on editing a list of check boxes > > That approach name="myArray[]" in combination with recid can make you > achieve some serious stuff. > > ggt > > 2008/9/1 Chris Hansen : >> John, >> >> Bob is right about checkbox naming (if you're not careful, you'll end up >> with only that last value in the list), but there's a very elegant way to >> handle this: name your checkbox element with empty square brackets. >> >> >> >> What this does, is cause PHP to automagically assemble all checkbox values >> for a given set into an array. Neat, eh? Just be sure to check that > values >> were submitted before stepping through that PHP array with foreach() or >> you'll get an error. >> >> HTH >> >> --Chris Hansen >> FileMaker 7/8/9 Certified Developer >> Creator of FX.php >> "The best way from FileMaker to the Web." >> www.iViking.org >> >> On Sep 1, 2008, at 11:24 AM, Bob Patin wrote: >> >>> Hi John, >>> >>> I thought we talked about this the other day... >>> >>> I have my own method, which works great; I'm sure there are other > methods, >>> but this one is fairly easy: >>> >>> On your form: >>> >>> If you are creating a dynamic set of checkboxes, you'll need to make sure >>> each checkbox's name is unique. I do this with a counter: >>> >>> $counter = 0; >>> >>> Then, in a FOREACH loop, generate your checkbox HTML code, and make the >>> name end with the counter variable: >>> >>> name="myCheckbox_" >>> >>> I use an underscore just to make it easy for me to read... >>> >>> Then, after this FOREACH loop, put an invisible field that contains the >>> value of $counter; you'll use this on the processing page. >>> --------------- >>> ON THE PROCESSING PAGE: >>> >>> //retrieve the value of your COUNTER variable >>> $counter = $_POST['counter']; >>> >>> Retrieve the checkbox values by using a WHILE loop: >>> >>> $x = 0; >>> while ($x < $counter){ >>> $myCheckboxList = $_POST['myCheckbox_'.$x].'
'; >>> $x++; >>> } >>> >>> Then, in your EDIT query, write the value of $myCheckboxList to your >>> checkbox field. >>> >>> I'm doing this all from memory, but that's essentially how I do it. You >>> don't really need to use an array, since you're grabbing the checkbox > values >>> and assembling them into a list that you'll write to the field. >>> >>> Hope this makes sense; I'm too lazy to dig up one of my pages and copy > out >>> the code... >>> >>> >>> -- >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> AIM: longterm1954 >>> FileMaker 9 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP . Full email services . Free DNS hosting . Colocation . Consulting >>> >>> >>> On Sep 1, 2008, at 10:52 AM, John Funk wrote: >>> >>>> I have HTML form that list the results of an FM query in a check box >>>> format. >>>> I would like to then send that list (all (records with user changes) > back >>>> to >>>> the same FM layout (table) with FMEdit(). >>>> Can anybody give an example for capturing, sending and getting arrays of >>>> data between php files, then parsing to edit the records? I understand >>>> the >>>> FMEdit() part. >>>> >>>> My form part to show to check list: >>>> $RecID=$record['RecordID'][0]; >>>> $Category=$record['Category'][0]; >>>> $YrSelected=$record[' YrSelected'][0]; >>>> >>>> echo ""; >>>> echo ">>> >>>> echo " checked>".$Category."
"; >>>> else >>>> echo " unchecked>".$Category."
"; >>>> >>>> >>>> This seems so simple but the more I work on it the more I get screwed > up. >>>> Thanks >>>> John Funk >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/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 Tue Sep 2 09:58:42 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Sep 2 09:58:44 2008 Subject: [FX.php List] Suggestions on editing a list of check boxes In-Reply-To: References: <20080902152345.BD334B1C9D@mail.iviking.org> Message-ID: foreach( $_REQUEST["RecID"] as $tmpRecID ) { // What to do for each $tmpRecID } ggt667 2008/9/2 Gjermund Gusland Thorsen : > Suggestion > --- > echo ''; > --- > > ggt667 > > 2008/9/2 John Funk : >> Chris your suggestion works great for sending the data to POST but how do I >> extract the data? Once I have the data in a variable (not an array) I know >> what to do. >> My field to send data: >> echo ""; >> >> My code to get the array: >> $RecIDs = array($_REQUEST["RecID"]); >> >> How do I extract the data with foreach()? >> John >> >> >> >> >> -----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: Monday, September 01, 2008 3:00 PM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Suggestions on editing a list of check boxes >> >> That approach name="myArray[]" in combination with recid can make you >> achieve some serious stuff. >> >> ggt >> >> 2008/9/1 Chris Hansen : >>> John, >>> >>> Bob is right about checkbox naming (if you're not careful, you'll end up >>> with only that last value in the list), but there's a very elegant way to >>> handle this: name your checkbox element with empty square brackets. >>> >>> >>> >>> What this does, is cause PHP to automagically assemble all checkbox values >>> for a given set into an array. Neat, eh? Just be sure to check that >> values >>> were submitted before stepping through that PHP array with foreach() or >>> you'll get an error. >>> >>> HTH >>> >>> --Chris Hansen >>> FileMaker 7/8/9 Certified Developer >>> Creator of FX.php >>> "The best way from FileMaker to the Web." >>> www.iViking.org >>> >>> On Sep 1, 2008, at 11:24 AM, Bob Patin wrote: >>> >>>> Hi John, >>>> >>>> I thought we talked about this the other day... >>>> >>>> I have my own method, which works great; I'm sure there are other >> methods, >>>> but this one is fairly easy: >>>> >>>> On your form: >>>> >>>> If you are creating a dynamic set of checkboxes, you'll need to make sure >>>> each checkbox's name is unique. I do this with a counter: >>>> >>>> $counter = 0; >>>> >>>> Then, in a FOREACH loop, generate your checkbox HTML code, and make the >>>> name end with the counter variable: >>>> >>>> name="myCheckbox_" >>>> >>>> I use an underscore just to make it easy for me to read... >>>> >>>> Then, after this FOREACH loop, put an invisible field that contains the >>>> value of $counter; you'll use this on the processing page. >>>> --------------- >>>> ON THE PROCESSING PAGE: >>>> >>>> //retrieve the value of your COUNTER variable >>>> $counter = $_POST['counter']; >>>> >>>> Retrieve the checkbox values by using a WHILE loop: >>>> >>>> $x = 0; >>>> while ($x < $counter){ >>>> $myCheckboxList = $_POST['myCheckbox_'.$x].'
'; >>>> $x++; >>>> } >>>> >>>> Then, in your EDIT query, write the value of $myCheckboxList to your >>>> checkbox field. >>>> >>>> I'm doing this all from memory, but that's essentially how I do it. You >>>> don't really need to use an array, since you're grabbing the checkbox >> values >>>> and assembling them into a list that you'll write to the field. >>>> >>>> Hope this makes sense; I'm too lazy to dig up one of my pages and copy >> out >>>> the code... >>>> >>>> >>>> -- >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> iChat: bobpatin >>>> AIM: longterm1954 >>>> FileMaker 9 Certified Developer >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> -------------------------- >>>> FileMaker hosting and consulting for all versions of FileMaker >>>> PHP . Full email services . Free DNS hosting . Colocation . Consulting >>>> >>>> >>>> On Sep 1, 2008, at 10:52 AM, John Funk wrote: >>>> >>>>> I have HTML form that list the results of an FM query in a check box >>>>> format. >>>>> I would like to then send that list (all (records with user changes) >> back >>>>> to >>>>> the same FM layout (table) with FMEdit(). >>>>> Can anybody give an example for capturing, sending and getting arrays of >>>>> data between php files, then parsing to edit the records? I understand >>>>> the >>>>> FMEdit() part. >>>>> >>>>> My form part to show to check list: >>>>> $RecID=$record['RecordID'][0]; >>>>> $Category=$record['Category'][0]; >>>>> $YrSelected=$record[' YrSelected'][0]; >>>>> >>>>> echo ""; >>>>> echo ">>>> >>>>> echo " checked>".$Category."
"; >>>>> else >>>>> echo " unchecked>".$Category."
"; >>>>> >>>>> >>>>> This seems so simple but the more I work on it the more I get screwed >> up. >>>>> Thanks >>>>> John Funk >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/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 joshshrier at gmail.com Wed Sep 3 10:19:04 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 3 10:19:25 2008 Subject: [FX.php List] IWP and logins Message-ID: <001001c90de0$c91ebcc0$0200000a@JoshShrier> I am trying to go from my html page to my IWP solution. There needs to be a login routine to find the person. Is there anyway either through IWP or PHP that I can do the login and get to the contact in the IWP solution. I already did this in IWP, but the password can't be done (as far as I know) looking like a password with the bullets look. Can someone give me some advice? Thanks, Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080903/34fb93ea/attachment.html From joshshrier at gmail.com Wed Sep 3 10:39:21 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 3 10:39:37 2008 Subject: [FX.php List] Skip IWP login Message-ID: <002201c90de3$9ed0ef80$0200000a@JoshShrier> Is there any way to skip the login on IWP and have it login in as the guest by default without removing all the other accounts, which is the only way I have so far. -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080903/a93acdf5/attachment-0001.html From dan.cynosure at dbmscan.com Wed Sep 3 10:46:19 2008 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 3 10:46:23 2008 Subject: [FX.php List] Skip IWP login In-Reply-To: <002201c90de3$9ed0ef80$0200000a@JoshShrier> References: <002201c90de3$9ed0ef80$0200000a@JoshShrier> Message-ID: <48BEBF5B.2010106@dbmscan.com> do it in PHP with fx.php - the whole thing; drop IWP or just quietly accept its limitations. IWP is just too tightly coupled to FMP to start picking it apart. my 2. dan Josh Shrier wrote: > Is there any way to skip the login on IWP and have it login in as the > guest by default without removing all the other accounts, which is the > only way I have so far. > > > > -Josh Shrier > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 3 10:49:03 2008 From: bob at patin.com (Bob Patin) Date: Wed Sep 3 10:49:09 2008 Subject: [FX.php List] Skip IWP login In-Reply-To: <48BEBF5B.2010106@dbmscan.com> References: <002201c90de3$9ed0ef80$0200000a@JoshShrier> <48BEBF5B.2010106@dbmscan.com> Message-ID: Dan, That's what I suggested too... IWP is flawed on so many levels. -- Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 3, 2008, at 11:46 AM, DC wrote: > do it in PHP with fx.php - the whole thing; drop IWP or just quietly > accept its limitations. IWP is just too tightly coupled to FMP to > start picking it apart. my 2. > > dan > > Josh Shrier wrote: >> Is there any way to skip the login on IWP and have it login in as >> the guest by default without removing all the other accounts, which >> is the only way I have so far. >> -Josh Shrier >> ------------------------------------------------------------------------ >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 jmaymailing at pointinspace.com Wed Sep 3 11:23:47 2008 From: jmaymailing at pointinspace.com (John May) Date: Wed Sep 3 11:23:49 2008 Subject: [FX.php List] Skip IWP login In-Reply-To: <002201c90de3$9ed0ef80$0200000a@JoshShrier> References: <002201c90de3$9ed0ef80$0200000a@JoshShrier> Message-ID: <48BEC823.5020706@pointinspace.com> Josh Shrier wrote: > Is there any way to skip the login on IWP and have it login in as the > guest by default without removing all the other accounts, which is the > only way I have so far. > > > > -Josh Shrier > See: http://edoshin.skeletonkey.com/2006/12/how_to_bypass_t.html - John -- ------------------------------------------------------------------- John May : President http://www.pointinspace.com/ Point In Space Internet Solutions jmay@pointinspace.com Professional FileMaker Pro, MySQL, PHP & Lasso Hosting * FileMaker Pro 9 Hosting Now Available * From jschwartz at exit445.com Wed Sep 3 13:16:24 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Sep 3 13:16:35 2008 Subject: [FX.php List] PHP Error Reporting...One more time Message-ID: Hi folks, Occasionally, php syntax errors can result after performing on-the-fly script edits for clients, and there just isn't time to perform testing. Call me human. ;-) However, it is often the client that informs me of the error. Hmmm... To resolve, I'd like to receive email notification for php errors on any page ( not FMP errors) and have a shot at finding the error first. What mechanism can do that? Thx J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jsfmp at earthlink.net Wed Sep 3 13:19:55 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Sep 3 13:20:02 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? Message-ID: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Hi all I just received the following question from the IT person at a client of mine and I'm not sure what they're asking for. Can anybody offer me a clue on how to best respond? They wrote: "Given the number of web site compromises that have occurred, I am wondering about Filemaker server security. Is there a security notification service for Filemaker about vulnerabilities? I worry about possible compromises to the web based FileMaker site on our server." They are running FMSA9 & FX.php on Windows Server 2003 (one-machine config). The site has a valid SSL cert., the machine is behind a firewall (such that you need VPN access to open the DB remotely), & FMS has Secure Connections (SSL) enabled between FMS & the WPE. They've been up and running for over two years. I upgraded them to FMS9 over the summer, and they made sure their OS was fully up-to- date beforehand. What kind of " security notification service" might they be looking for? TIA, -Joel From bob at patin.com Wed Sep 3 13:39:17 2008 From: bob at patin.com (Bob Patin) Date: Wed Sep 3 13:39:22 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: Message-ID: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> I have a script for sending emails on FM errors, but I too would love to know about any PHP errors. However, once a page is properly written, it's not going to randomly generate PHP errors, so I'm wondering what the usefulness of this would be other than in the initial programming stage... From the peanut gallery, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: > Hi folks, > > Occasionally, php syntax errors can result after performing on-the- > fly script edits for clients, and there just isn't time to perform > testing. Call me human. ;-) > > However, it is often the client that informs me of the error. Hmmm... > > To resolve, I'd like to receive email notification for php errors > on any page ( not FMP errors) and have a shot at finding the error > first. > > What mechanism can do that? > > > Thx > > J > > > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Wed Sep 3 13:39:55 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 3 13:39:58 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: Message-ID: This is how I do it, for example.php I do cp example.php example-2008-09-02.php vim example.php ggt 2008/9/3 Jonathan Schwartz : > Hi folks, > > Occasionally, php syntax errors can result after performing on-the-fly > script edits for clients, and there just isn't time to perform testing. Call > me human. ;-) > > However, it is often the client that informs me of the error. Hmmm... > > To resolve, I'd like to receive email notification for php errors on any > page ( not FMP errors) and have a shot at finding the error first. > > What mechanism can do that? > > > Thx > > J > > > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jschwartz at exit445.com Wed Sep 3 13:48:50 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Sep 3 13:51:30 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: Like I said, the application here is making quick edits on working scripts. One out-of-place character takes down the entire solution, until discovered and repaired. Happens more often than I'd like to admit. Will look into ggt's response.... J At 2:39 PM -0500 9/3/08, Bob Patin wrote: >I have a script for sending emails on FM errors, but I too would >love to know about any PHP errors. However, once a page is properly >written, it's not going to randomly generate PHP errors, so I'm >wondering what the usefulness of this would be other than in the >initial programming stage... > >From the peanut gallery, > >Bob Patin >Longterm Solutions >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com >iChat: bobpatin >AIM: longterm1954 >FileMaker 9 Certified Developer >Member of FileMaker Business Alliance and FileMaker TechNet >-------------------------- >FileMaker hosting and consulting for all versions of FileMaker >PHP * Full email services * Free DNS hosting * Colocation * Consulting > >On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: > >>Hi folks, >> >>Occasionally, php syntax errors can result after performing >>on-the-fly script edits for clients, and there just isn't time to >>perform testing. Call me human. ;-) >> >>However, it is often the client that informs me of the error. Hmmm... >> >>To resolve, I'd like to receive email notification for php errors >>on any page ( not FMP errors) and have a shot at finding the error first. >> >>What mechanism can do that? >> >> >>Thx >> >>J >> >> >> >> >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From ggt667 at gmail.com Wed Sep 3 13:53:54 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 3 13:54:02 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: Yes, the way I described for you will give you a manual versioning thing going This example is a bit more universal as you will not have to think while you backup your previous working version --- cp test.php test-$(date +%Y-%m-%d-%H-%M-%S).php vim test.php --- ggt 2008/9/3 Jonathan Schwartz : > Like I said, the application here is making quick edits on working scripts. > One out-of-place character takes down the entire solution, until discovered > and repaired. > > Happens more often than I'd like to admit. > > Will look into ggt's response.... > > > J > > > > > At 2:39 PM -0500 9/3/08, Bob Patin wrote: >> >> I have a script for sending emails on FM errors, but I too would love to >> know about any PHP errors. However, once a page is properly written, it's >> not going to randomly generate PHP errors, so I'm wondering what the >> usefulness of this would be other than in the initial programming stage... >> >> From the peanut gallery, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP * Full email services * Free DNS hosting * Colocation * Consulting >> >> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >> >>> Hi folks, >>> >>> Occasionally, php syntax errors can result after performing on-the-fly >>> script edits for clients, and there just isn't time to perform testing. Call >>> me human. ;-) >>> >>> However, it is often the client that informs me of the error. Hmmm... >>> >>> To resolve, I'd like to receive email notification for php errors on any >>> page ( not FMP errors) and have a shot at finding the error first. >>> >>> What mechanism can do that? >>> >>> >>> Thx >>> >>> J >>> >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > 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 3 13:54:40 2008 From: bob at patin.com (Bob Patin) Date: Wed Sep 3 13:54:46 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: <13619405-2FD6-4614-B8FF-E28F63C4689C@patin.com> I wish I knew what GGT meant by his response... cryptic as usual... :) When I make a change, I test it and find the errors right then, or I don't move on to another task. I'm not sure how this could be improved on, unless someone has a tool that will immediately find and point out syntax errors--which would be a godsend to me. BP Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 3, 2008, at 2:48 PM, Jonathan Schwartz wrote: > Like I said, the application here is making quick edits on working > scripts. One out-of-place character takes down the entire solution, > until discovered and repaired. > > Happens more often than I'd like to admit. > > Will look into ggt's response.... > > > J > > > > > At 2:39 PM -0500 9/3/08, Bob Patin wrote: >> I have a script for sending emails on FM errors, but I too would >> love to know about any PHP errors. However, once a page is properly >> written, it's not going to randomly generate PHP errors, so I'm >> wondering what the usefulness of this would be other than in the >> initial programming stage... >> >> From the peanut gallery, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP * Full email services * Free DNS hosting * Colocation * >> Consulting >> >> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >> >>> Hi folks, >>> >>> Occasionally, php syntax errors can result after performing on-the- >>> fly script edits for clients, and there just isn't time to perform >>> testing. Call me human. ;-) >>> >>> However, it is often the client that informs me of the error. >>> Hmmm... >>> >>> To resolve, I'd like to receive email notification for php errors >>> on any page ( not FMP errors) and have a shot at finding the error >>> first. >>> >>> What mechanism can do that? >>> >>> >>> Thx >>> >>> J >>> >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > 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 3 13:54:54 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 3 13:55:07 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: And it gives you a free time tracking environment to a certain extent. ggt 2008/9/3 Gjermund Gusland Thorsen : > Yes, the way I described for you will give you a manual versioning thing going > > This example is a bit more universal as you will not have to think > while you backup your previous working version > --- > cp test.php test-$(date +%Y-%m-%d-%H-%M-%S).php > vim test.php > --- > ggt > > 2008/9/3 Jonathan Schwartz : >> Like I said, the application here is making quick edits on working scripts. >> One out-of-place character takes down the entire solution, until discovered >> and repaired. >> >> Happens more often than I'd like to admit. >> >> Will look into ggt's response.... >> >> >> J >> >> >> >> >> At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>> >>> I have a script for sending emails on FM errors, but I too would love to >>> know about any PHP errors. However, once a page is properly written, it's >>> not going to randomly generate PHP errors, so I'm wondering what the >>> usefulness of this would be other than in the initial programming stage... >>> >>> From the peanut gallery, >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> AIM: longterm1954 >>> FileMaker 9 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP * Full email services * Free DNS hosting * Colocation * Consulting >>> >>> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>> >>>> Hi folks, >>>> >>>> Occasionally, php syntax errors can result after performing on-the-fly >>>> script edits for clients, and there just isn't time to perform testing. Call >>>> me human. ;-) >>>> >>>> However, it is often the client that informs me of the error. Hmmm... >>>> >>>> To resolve, I'd like to receive email notification for php errors on any >>>> page ( not FMP errors) and have a shot at finding the error first. >>>> >>>> What mechanism can do that? >>>> >>>> >>>> Thx >>>> >>>> J >>>> >>>> >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> 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 3 13:55:55 2008 From: bob at patin.com (Bob Patin) Date: Wed Sep 3 13:56:05 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: That looks like command-line stuff, or is that PHP? On Sep 3, 2008, at 2:53 PM, Gjermund Gusland Thorsen wrote: > Yes, the way I described for you will give you a manual versioning > thing going > > This example is a bit more universal as you will not have to think > while you backup your previous working version > --- > cp test.php test-$(date +%Y-%m-%d-%H-%M-%S).php > vim test.php > --- > ggt > > 2008/9/3 Jonathan Schwartz : >> Like I said, the application here is making quick edits on working >> scripts. >> One out-of-place character takes down the entire solution, until >> discovered >> and repaired. >> >> Happens more often than I'd like to admit. >> >> Will look into ggt's response.... >> >> >> J >> >> >> >> >> At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>> >>> I have a script for sending emails on FM errors, but I too would >>> love to >>> know about any PHP errors. However, once a page is properly >>> written, it's >>> not going to randomly generate PHP errors, so I'm wondering what the >>> usefulness of this would be other than in the initial programming >>> stage... >>> >>> From the peanut gallery, >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> AIM: longterm1954 >>> FileMaker 9 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP * Full email services * Free DNS hosting * Colocation * >>> Consulting >>> >>> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>> >>>> Hi folks, >>>> >>>> Occasionally, php syntax errors can result after performing on- >>>> the-fly >>>> script edits for clients, and there just isn't time to perform >>>> testing. Call >>>> me human. ;-) >>>> >>>> However, it is often the client that informs me of the error. >>>> Hmmm... >>>> >>>> To resolve, I'd like to receive email notification for php >>>> errors on any >>>> page ( not FMP errors) and have a shot at finding the error first. >>>> >>>> What mechanism can do that? >>>> >>>> >>>> Thx >>>> >>>> J >>>> >>>> >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jschwartz at exit445.com Wed Sep 3 13:54:00 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Sep 3 13:56:33 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: Message-ID: ggt, Not sure how this applies. It looks like a command line process to copy a file and then open it in an editor? How does that detect an error in the currently running script and email the adminsitrator? Jonathan At 9:39 PM +0200 9/3/08, Gjermund Gusland Thorsen wrote: >This is how I do it, for example.php I do > >cp example.php example-2008-09-02.php >vim example.php > >ggt > >2008/9/3 Jonathan Schwartz : >> Hi folks, >> >> Occasionally, php syntax errors can result after performing on-the-fly >> script edits for clients, and there just isn't time to perform testing. Call >> me human. ;-) >> >> However, it is often the client that informs me of the error. Hmmm... >> >> To resolve, I'd like to receive email notification for php errors on any >> page ( not FMP errors) and have a shot at finding the error first. >> >> What mechanism can do that? >> >> >> Thx >> >> J >> >> >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dan.cynosure at dbmscan.com Wed Sep 3 14:01:21 2008 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 3 14:01:24 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: Message-ID: <48BEED11.3040807@dbmscan.com> does this help? http://www.php.net/php_check_syntax PHP5 only. Jonathan Schwartz wrote: > ggt, > > Not sure how this applies. > > It looks like a command line process to copy a file and then open it in > an editor? > > How does that detect an error in the currently running script and email > the adminsitrator? > > Jonathan > > At 9:39 PM +0200 9/3/08, Gjermund Gusland Thorsen wrote: >> This is how I do it, for example.php I do >> >> cp example.php example-2008-09-02.php >> vim example.php >> >> ggt >> >> 2008/9/3 Jonathan Schwartz : >>> Hi folks, >>> >>> Occasionally, php syntax errors can result after performing on-the-fly >>> script edits for clients, and there just isn't time to perform >>> testing. Call >>> me human. ;-) >>> >>> However, it is often the client that informs me of the error. Hmmm... >>> >>> To resolve, I'd like to receive email notification for php errors >>> on any >>> page ( not FMP errors) and have a shot at finding the error first. >>> >>> What mechanism can do that? >>> >>> >>> Thx >>> >>> J >>> >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > From leo at finalresort.org Wed Sep 3 14:06:51 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Sep 3 14:06:14 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: <48BEED11.3040807@dbmscan.com> References: <48BEED11.3040807@dbmscan.com> Message-ID: <01242410-DB96-4DC8-A225-159B27507EFA@finalresort.org> This function is deprecated after 5.0.4 :I 3 sep 2008 kl. 22.01 skrev DC: > does this help? > > http://www.php.net/php_check_syntax > > PHP5 only. > > Jonathan Schwartz wrote: >> ggt, >> Not sure how this applies. >> It looks like a command line process to copy a file and then open >> it in an editor? >> How does that detect an error in the currently running script and >> email the adminsitrator? >> Jonathan >> At 9:39 PM +0200 9/3/08, Gjermund Gusland Thorsen wrote: >>> This is how I do it, for example.php I do >>> >>> cp example.php example-2008-09-02.php >>> vim example.php >>> >>> ggt >>> >>> 2008/9/3 Jonathan Schwartz : >>>> Hi folks, >>>> >>>> Occasionally, php syntax errors can result after performing on- >>>> the-fly >>>> script edits for clients, and there just isn't time to perform >>>> testing. Call >>>> me human. ;-) >>>> >>>> However, it is often the client that informs me of the error. >>>> Hmmm... >>>> >>>> To resolve, I'd like to receive email notification for php >>>> errors on any >>>> page ( not FMP errors) and have a shot at finding the error first. >>>> >>>> What mechanism can do that? >>>> >>>> >>>> Thx >>>> >>>> J >>>> >>>> >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From leo at finalresort.org Wed Sep 3 14:08:05 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Sep 3 14:07:26 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: Interesting/good question :-) I think it's fair to say that there are two major types of errors in PHP; The ones that raise warnings, notices and so on, but still let your application keep running even though the expected results of whatever it's doing may not be very,, expected. Then there are the kind of errors that stop the application from running, such as syntax errrors. These latter ones will hopefully not occur too often unless you're really doing it wrong or don't check your edits at all. However, for the first type of errors, you could define your own error handler in PHP, that will be called whenever an error that you've configured it to handle occurs. For example, if there is an error that you deem not to be that serious, you could have the handler e-mail you the error notifications, and for serious errors you could handle it in a more graceful way than you would without global error handler. See http://se.php.net/manual/en/function.set- error-handler.php. For the second type of errors there's not that much to do from inside PHP since your application may not start at all in such cases. These will have to be taken care of using your skillz ;-) 3 sep 2008 kl. 21.48 skrev Jonathan Schwartz: > Like I said, the application here is making quick edits on working > scripts. One out-of-place character takes down the entire solution, > until discovered and repaired. > > Happens more often than I'd like to admit. > > Will look into ggt's response.... > > > J > > > > > At 2:39 PM -0500 9/3/08, Bob Patin wrote: >> I have a script for sending emails on FM errors, but I too would >> love to know about any PHP errors. However, once a page is >> properly written, it's not going to randomly generate PHP errors, >> so I'm wondering what the usefulness of this would be other than >> in the initial programming stage... >> >> From the peanut gallery, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP * Full email services * Free DNS hosting * Colocation * >> Consulting >> >> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >> >>> Hi folks, >>> >>> Occasionally, php syntax errors can result after performing on- >>> the-fly script edits for clients, and there just isn't time to >>> perform testing. Call me human. ;-) >>> >>> However, it is often the client that informs me of the error. >>> Hmmm... >>> >>> To resolve, I'd like to receive email notification for php >>> errors on any page ( not FMP errors) and have a shot at finding >>> the error first. >>> >>> What mechanism can do that? >>> >>> >>> Thx >>> >>> J >>> >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > 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 3 14:16:15 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 3 14:16:17 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: Message-ID: Yes, it's command line. On a mac maybe change the vim line like this: --- cp test.php test-$(date +%Y-%m-%d-%H-%M-%S).php /Applications/Smultron.app/Contents/MacOS/Smultron test.php --- if it works you are done now... --- else --- you have to copy the most recent test-<>.php to test.php --- It gives you the option to turn back to a working copy in the terms of seconds, it's usually faster to do the changes again from a working copy than to turn yourself into Indiana Jones and g? excavating a power plant of potential failures. ggt 2008/9/3 Jonathan Schwartz : > ggt, > > Not sure how this applies. > > It looks like a command line process to copy a file and then open it in an > editor? > > How does that detect an error in the currently running script and email the > adminsitrator? > > Jonathan > > At 9:39 PM +0200 9/3/08, Gjermund Gusland Thorsen wrote: >> >> This is how I do it, for example.php I do >> >> cp example.php example-2008-09-02.php >> vim example.php >> >> ggt >> >> 2008/9/3 Jonathan Schwartz : >>> >>> Hi folks, >>> >>> Occasionally, php syntax errors can result after performing on-the-fly >>> script edits for clients, and there just isn't time to perform testing. >>> Call >>> me human. ;-) >>> >>> However, it is often the client that informs me of the error. Hmmm... >>> >>> To resolve, I'd like to receive email notification for php errors on >>> any >>> page ( not FMP errors) and have a shot at finding the error first. >>> >>> What mechanism can do that? >>> >>> >>> Thx >>> >>> J >>> >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > 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 3 14:17:49 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 3 14:17:51 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: Message-ID: if you have smultron installed that is: http://smultron.sf.net/ I am sure there would be a similar path for BBEdit or coda... ggt 2008/9/3 Gjermund Gusland Thorsen : > Yes, it's command line. > > On a mac maybe change the vim line like this: > --- > cp test.php test-$(date +%Y-%m-%d-%H-%M-%S).php > /Applications/Smultron.app/Contents/MacOS/Smultron test.php > --- > if it works you are done now... > --- else --- > you have to copy the most recent test-< some recent working copy>>.php to test.php > --- > It gives you the option to turn back to a working copy in the terms of seconds, > it's usually faster to do the changes again from a working copy than > to turn yourself into Indiana Jones and g? excavating a power plant of > potential failures. > > ggt > > 2008/9/3 Jonathan Schwartz : >> ggt, >> >> Not sure how this applies. >> >> It looks like a command line process to copy a file and then open it in an >> editor? >> >> How does that detect an error in the currently running script and email the >> adminsitrator? >> >> Jonathan >> >> At 9:39 PM +0200 9/3/08, Gjermund Gusland Thorsen wrote: >>> >>> This is how I do it, for example.php I do >>> >>> cp example.php example-2008-09-02.php >>> vim example.php >>> >>> ggt >>> >>> 2008/9/3 Jonathan Schwartz : >>>> >>>> Hi folks, >>>> >>>> Occasionally, php syntax errors can result after performing on-the-fly >>>> script edits for clients, and there just isn't time to perform testing. >>>> Call >>>> me human. ;-) >>>> >>>> However, it is often the client that informs me of the error. Hmmm... >>>> >>>> To resolve, I'd like to receive email notification for php errors on >>>> any >>>> page ( not FMP errors) and have a shot at finding the error first. >>>> >>>> What mechanism can do that? >>>> >>>> >>>> Thx >>>> >>>> J >>>> >>>> >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > From jschwartz at exit445.com Wed Sep 3 14:36:41 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Sep 3 14:41:33 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: Well said, Leo. I am just now realizing that there are two levels of PHP errors...in addition to all the other levels of errors that we need to deal with. Unfortunately in my case, it is the show-stopping errors (syntax) that I am looking at. In this case, PHP has been stopped in its tracks and is unable to alert anyone/anything. However, the web server's heart is still beating and it knows that PHP barfed. There is even an entry in the web server log. I just need that to turn into an email. Should I be looking at a notification tool for OS X Server/Apache? And...ggt...I honestly have NO IDEA what you are talking about. Sorry Jonathan At 10:08 PM +0200 9/3/08, Leo R. Lundgren wrote: >Interesting/good question :-) > >I think it's fair to say that there are two major types of errors in >PHP; The ones that raise warnings, notices and so on, but still let >your application keep running even though the expected results of >whatever it's doing may not be very,, expected. Then there are the >kind of errors that stop the application from running, such as >syntax errrors. These latter ones will hopefully not occur too often >unless you're really doing it wrong or don't check your edits at all. > >However, for the first type of errors, you could define your own >error handler in PHP, that will be called whenever an error that >you've configured it to handle occurs. For example, if there is an >error that you deem not to be that serious, you could have the >handler e-mail you the error notifications, and for serious errors >you could handle it in a more graceful way than you would without >global error handler. See >http://se.php.net/manual/en/function.set-error-handler.php. > >For the second type of errors there's not that much to do from >inside PHP since your application may not start at all in such >cases. These will have to be taken care of using your skillz ;-) > > >3 sep 2008 kl. 21.48 skrev Jonathan Schwartz: > >>Like I said, the application here is making quick edits on working >>scripts. One out-of-place character takes down the entire solution, >>until discovered and repaired. >> >>Happens more often than I'd like to admit. >> >>Will look into ggt's response.... >> >> >>J >> >> >> >> >>At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>>I have a script for sending emails on FM errors, but I too would >>>love to know about any PHP errors. However, once a page is >>>properly written, it's not going to randomly generate PHP errors, >>>so I'm wondering what the usefulness of this would be other than >>>in the initial programming stage... >>> >>>From the peanut gallery, >>> >>>Bob Patin >>>Longterm Solutions >>>bob@longtermsolutions.com >>>615-333-6858 >>>http://www.longtermsolutions.com >>>iChat: bobpatin >>>AIM: longterm1954 >>>FileMaker 9 Certified Developer >>>Member of FileMaker Business Alliance and FileMaker TechNet >>>-------------------------- >>>FileMaker hosting and consulting for all versions of FileMaker >>>PHP * Full email services * Free DNS hosting * Colocation * Consulting >>> >>>On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>> >>>>Hi folks, >>>> >>>>Occasionally, php syntax errors can result after performing >>>>on-the-fly script edits for clients, and there just isn't time to >>>>perform testing. Call me human. ;-) >>>> >>>>However, it is often the client that informs me of the error. >>>>Hmmm... >>>> >>>>To resolve, I'd like to receive email notification for php errors >>>>on any page ( not FMP errors) and have a shot at finding the >>>>error first. >>>> >>>>What mechanism can do that? >>>> >>>> >>>>Thx >>>> >>>>J >>>> >>>> >>>> >>>> >>>>-- >>>>Jonathan Schwartz >>>>Exit 445 Group >>>>jonathan@exit445.com >>>>http://www.exit445.com >>>>415-370-5011 >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > > >-| > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From steve at bluecrocodile.co.nz Wed Sep 3 15:05:10 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Sep 3 15:06:10 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: <002001c90e08$c11d2610$155c2f0a@bluecrocodile.co.nz> Hi Jonathan, I think you'll find that's not actually the case... any sort of error, including seemingly fatal (script) errors can be trapped by a custom error handler (as Leo describes) and then process additional PHP code which will send you an email with details of the error which occurred. There's a good introduction to php error handlers at http://articles.techrepublic.com.com/5100-10878_11-6113787.html Alternatively let me know and I can send you an example that I've developed which can, if FM is still responding log errors, as well as sending email etc... Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan Schwartz Sent: Wednesday, 3 September 2008 9:37 p.m. To: FX.php Discussion List Subject: Re: [FX.php List] PHP Error Reporting...One more time Well said, Leo. I am just now realizing that there are two levels of PHP errors...in addition to all the other levels of errors that we need to deal with. Unfortunately in my case, it is the show-stopping errors (syntax) that I am looking at. In this case, PHP has been stopped in its tracks and is unable to alert anyone/anything. However, the web server's heart is still beating and it knows that PHP barfed. There is even an entry in the web server log. I just need that to turn into an email. Should I be looking at a notification tool for OS X Server/Apache? And...ggt...I honestly have NO IDEA what you are talking about. Sorry Jonathan At 10:08 PM +0200 9/3/08, Leo R. Lundgren wrote: >Interesting/good question :-) > >I think it's fair to say that there are two major types of errors in >PHP; The ones that raise warnings, notices and so on, but still let >your application keep running even though the expected results of >whatever it's doing may not be very,, expected. Then there are the >kind of errors that stop the application from running, such as >syntax errrors. These latter ones will hopefully not occur too often >unless you're really doing it wrong or don't check your edits at all. > >However, for the first type of errors, you could define your own >error handler in PHP, that will be called whenever an error that >you've configured it to handle occurs. For example, if there is an >error that you deem not to be that serious, you could have the >handler e-mail you the error notifications, and for serious errors >you could handle it in a more graceful way than you would without >global error handler. See >http://se.php.net/manual/en/function.set-error-handler.php. > >For the second type of errors there's not that much to do from >inside PHP since your application may not start at all in such >cases. These will have to be taken care of using your skillz ;-) > > >3 sep 2008 kl. 21.48 skrev Jonathan Schwartz: > >>Like I said, the application here is making quick edits on working >>scripts. One out-of-place character takes down the entire solution, >>until discovered and repaired. >> >>Happens more often than I'd like to admit. >> >>Will look into ggt's response.... >> >> >>J >> >> >> >> >>At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>>I have a script for sending emails on FM errors, but I too would >>>love to know about any PHP errors. However, once a page is >>>properly written, it's not going to randomly generate PHP errors, >>>so I'm wondering what the usefulness of this would be other than >>>in the initial programming stage... >>> >>>From the peanut gallery, >>> >>>Bob Patin >>>Longterm Solutions >>>bob@longtermsolutions.com >>>615-333-6858 >>>http://www.longtermsolutions.com >>>iChat: bobpatin >>>AIM: longterm1954 >>>FileMaker 9 Certified Developer >>>Member of FileMaker Business Alliance and FileMaker TechNet >>>-------------------------- >>>FileMaker hosting and consulting for all versions of FileMaker >>>PHP * Full email services * Free DNS hosting * Colocation * Consulting >>> >>>On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>> >>>>Hi folks, >>>> >>>>Occasionally, php syntax errors can result after performing >>>>on-the-fly script edits for clients, and there just isn't time to >>>>perform testing. Call me human. ;-) >>>> >>>>However, it is often the client that informs me of the error. >>>>Hmmm... >>>> >>>>To resolve, I'd like to receive email notification for php errors >>>>on any page ( not FMP errors) and have a shot at finding the >>>>error first. >>>> >>>>What mechanism can do that? >>>> >>>> >>>>Thx >>>> >>>>J >>>> >>>> >>>> >>>> >>>>-- >>>>Jonathan Schwartz >>>>Exit 445 Group >>>>jonathan@exit445.com >>>>http://www.exit445.com >>>>415-370-5011 >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > > >-| > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.6.15/1648 - Release Date: 2/09/2008 5:29 p.m. No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.6.15/1648 - Release Date: 2/09/2008 5:29 p.m. From ggt667 at gmail.com Wed Sep 3 15:24:58 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 3 15:25:01 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: Well helps me avoid spending time on searching for errors. ggt 2008/9/3 Jonathan Schwartz : > Well said, Leo. > > I am just now realizing that there are two levels of PHP errors...in > addition to all the other levels of errors that we need to deal with. > Unfortunately in my case, it is the show-stopping errors (syntax) that I am > looking at. In this case, PHP has been stopped in its tracks and is unable > to alert anyone/anything. > > However, the web server's heart is still beating and it knows that PHP > barfed. There is even an entry in the web server log. I just need that to > turn into an email. > > Should I be looking at a notification tool for OS X Server/Apache? > > And...ggt...I honestly have NO IDEA what you are talking about. Sorry > > Jonathan > > > At 10:08 PM +0200 9/3/08, Leo R. Lundgren wrote: >> >> Interesting/good question :-) >> >> I think it's fair to say that there are two major types of errors in PHP; >> The ones that raise warnings, notices and so on, but still let your >> application keep running even though the expected results of whatever it's >> doing may not be very,, expected. Then there are the kind of errors that >> stop the application from running, such as syntax errrors. These latter ones >> will hopefully not occur too often unless you're really doing it wrong or >> don't check your edits at all. >> >> However, for the first type of errors, you could define your own error >> handler in PHP, that will be called whenever an error that you've configured >> it to handle occurs. For example, if there is an error that you deem not to >> be that serious, you could have the handler e-mail you the error >> notifications, and for serious errors you could handle it in a more graceful >> way than you would without global error handler. See >> http://se.php.net/manual/en/function.set-error-handler.php. >> >> For the second type of errors there's not that much to do from inside PHP >> since your application may not start at all in such cases. These will have >> to be taken care of using your skillz ;-) >> >> >> 3 sep 2008 kl. 21.48 skrev Jonathan Schwartz: >> >>> Like I said, the application here is making quick edits on working >>> scripts. One out-of-place character takes down the entire solution, until >>> discovered and repaired. >>> >>> Happens more often than I'd like to admit. >>> >>> Will look into ggt's response.... >>> >>> >>> J >>> >>> >>> >>> >>> At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>>> >>>> I have a script for sending emails on FM errors, but I too would love to >>>> know about any PHP errors. However, once a page is properly written, it's >>>> not going to randomly generate PHP errors, so I'm wondering what the >>>> usefulness of this would be other than in the initial programming stage... >>>> >>>> From the peanut gallery, >>>> >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> iChat: bobpatin >>>> AIM: longterm1954 >>>> FileMaker 9 Certified Developer >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> -------------------------- >>>> FileMaker hosting and consulting for all versions of FileMaker >>>> PHP * Full email services * Free DNS hosting * Colocation * Consulting >>>> >>>> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>>> >>>>> Hi folks, >>>>> >>>>> Occasionally, php syntax errors can result after performing on-the-fly >>>>> script edits for clients, and there just isn't time to perform testing. Call >>>>> me human. ;-) >>>>> >>>>> However, it is often the client that informs me of the error. Hmmm... >>>>> >>>>> To resolve, I'd like to receive email notification for php errors on >>>>> any page ( not FMP errors) and have a shot at finding the error first. >>>>> >>>>> What mechanism can do that? >>>>> >>>>> >>>>> Thx >>>>> >>>>> J >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Jonathan Schwartz >>>>> Exit 445 Group >>>>> jonathan@exit445.com >>>>> http://www.exit445.com >>>>> 415-370-5011 >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -| >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From leo at finalresort.org Wed Sep 3 15:34:14 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Sep 3 15:33:36 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> Message-ID: <353487B2-00A5-4982-A6B3-35DA713627BE@finalresort.org> I don't know if you know about it already, but there is a utility called 'diff' which will give you an overview of differences between files. It's available on most unix/linux systems as well as OS X. Try for example this (command line): diff -u file-before-some-change.php file-after-some-change.php 3 sep 2008 kl. 23.24 skrev Gjermund Gusland Thorsen: > Well helps me avoid spending time on searching for errors. > > ggt > > 2008/9/3 Jonathan Schwartz : >> Well said, Leo. >> >> I am just now realizing that there are two levels of PHP errors...in >> addition to all the other levels of errors that we need to deal with. >> Unfortunately in my case, it is the show-stopping errors (syntax) >> that I am >> looking at. In this case, PHP has been stopped in its tracks and >> is unable >> to alert anyone/anything. >> >> However, the web server's heart is still beating and it knows that >> PHP >> barfed. There is even an entry in the web server log. I just >> need that to >> turn into an email. >> >> Should I be looking at a notification tool for OS X Server/Apache? >> >> And...ggt...I honestly have NO IDEA what you are talking about. >> Sorry >> >> Jonathan >> >> >> At 10:08 PM +0200 9/3/08, Leo R. Lundgren wrote: >>> >>> Interesting/good question :-) >>> >>> I think it's fair to say that there are two major types of errors >>> in PHP; >>> The ones that raise warnings, notices and so on, but still let your >>> application keep running even though the expected results of >>> whatever it's >>> doing may not be very,, expected. Then there are the kind of >>> errors that >>> stop the application from running, such as syntax errrors. These >>> latter ones >>> will hopefully not occur too often unless you're really doing it >>> wrong or >>> don't check your edits at all. >>> >>> However, for the first type of errors, you could define your own >>> error >>> handler in PHP, that will be called whenever an error that you've >>> configured >>> it to handle occurs. For example, if there is an error that you >>> deem not to >>> be that serious, you could have the handler e-mail you the error >>> notifications, and for serious errors you could handle it in a >>> more graceful >>> way than you would without global error handler. See >>> http://se.php.net/manual/en/function.set-error-handler.php. >>> >>> For the second type of errors there's not that much to do from >>> inside PHP >>> since your application may not start at all in such cases. These >>> will have >>> to be taken care of using your skillz ;-) >>> >>> >>> 3 sep 2008 kl. 21.48 skrev Jonathan Schwartz: >>> >>>> Like I said, the application here is making quick edits on working >>>> scripts. One out-of-place character takes down the entire >>>> solution, until >>>> discovered and repaired. >>>> >>>> Happens more often than I'd like to admit. >>>> >>>> Will look into ggt's response.... >>>> >>>> >>>> J >>>> >>>> >>>> >>>> >>>> At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>>>> >>>>> I have a script for sending emails on FM errors, but I too >>>>> would love to >>>>> know about any PHP errors. However, once a page is properly >>>>> written, it's >>>>> not going to randomly generate PHP errors, so I'm wondering >>>>> what the >>>>> usefulness of this would be other than in the initial >>>>> programming stage... >>>>> >>>>> From the peanut gallery, >>>>> >>>>> Bob Patin >>>>> Longterm Solutions >>>>> bob@longtermsolutions.com >>>>> 615-333-6858 >>>>> http://www.longtermsolutions.com >>>>> iChat: bobpatin >>>>> AIM: longterm1954 >>>>> FileMaker 9 Certified Developer >>>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>>> -------------------------- >>>>> FileMaker hosting and consulting for all versions of FileMaker >>>>> PHP * Full email services * Free DNS hosting * Colocation * >>>>> Consulting >>>>> >>>>> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>>>> >>>>>> Hi folks, >>>>>> >>>>>> Occasionally, php syntax errors can result after performing on- >>>>>> the-fly >>>>>> script edits for clients, and there just isn't time to perform >>>>>> testing. Call >>>>>> me human. ;-) >>>>>> >>>>>> However, it is often the client that informs me of the error. >>>>>> Hmmm... >>>>>> >>>>>> To resolve, I'd like to receive email notification for php >>>>>> errors on >>>>>> any page ( not FMP errors) and have a shot at finding the >>>>>> error first. >>>>>> >>>>>> What mechanism can do that? >>>>>> >>>>>> >>>>>> Thx >>>>>> >>>>>> J >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Jonathan Schwartz >>>>>> Exit 445 Group >>>>>> jonathan@exit445.com >>>>>> http://www.exit445.com >>>>>> 415-370-5011 >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -| >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 3 15:51:52 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 3 15:51:55 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: <353487B2-00A5-4982-A6B3-35DA713627BE@finalresort.org> References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> <353487B2-00A5-4982-A6B3-35DA713627BE@finalresort.org> Message-ID: Yes, that is a very nice option to use :-) Might actually pinpoint the error on certain occasions. ggt 2008/9/3 Leo R. Lundgren : > I don't know if you know about it already, but there is a utility called > 'diff' which will give you an overview of differences between files. It's > available on most unix/linux systems as well as OS X. Try for example this > (command line): diff -u file-before-some-change.php > file-after-some-change.php > > > 3 sep 2008 kl. 23.24 skrev Gjermund Gusland Thorsen: > >> Well helps me avoid spending time on searching for errors. >> >> ggt >> >> 2008/9/3 Jonathan Schwartz : >>> >>> Well said, Leo. >>> >>> I am just now realizing that there are two levels of PHP errors...in >>> addition to all the other levels of errors that we need to deal with. >>> Unfortunately in my case, it is the show-stopping errors (syntax) that I >>> am >>> looking at. In this case, PHP has been stopped in its tracks and is >>> unable >>> to alert anyone/anything. >>> >>> However, the web server's heart is still beating and it knows that PHP >>> barfed. There is even an entry in the web server log. I just need that >>> to >>> turn into an email. >>> >>> Should I be looking at a notification tool for OS X Server/Apache? >>> >>> And...ggt...I honestly have NO IDEA what you are talking about. Sorry >>> >>> Jonathan >>> >>> >>> At 10:08 PM +0200 9/3/08, Leo R. Lundgren wrote: >>>> >>>> Interesting/good question :-) >>>> >>>> I think it's fair to say that there are two major types of errors in >>>> PHP; >>>> The ones that raise warnings, notices and so on, but still let your >>>> application keep running even though the expected results of whatever >>>> it's >>>> doing may not be very,, expected. Then there are the kind of errors that >>>> stop the application from running, such as syntax errrors. These latter >>>> ones >>>> will hopefully not occur too often unless you're really doing it wrong >>>> or >>>> don't check your edits at all. >>>> >>>> However, for the first type of errors, you could define your own error >>>> handler in PHP, that will be called whenever an error that you've >>>> configured >>>> it to handle occurs. For example, if there is an error that you deem not >>>> to >>>> be that serious, you could have the handler e-mail you the error >>>> notifications, and for serious errors you could handle it in a more >>>> graceful >>>> way than you would without global error handler. See >>>> http://se.php.net/manual/en/function.set-error-handler.php. >>>> >>>> For the second type of errors there's not that much to do from inside >>>> PHP >>>> since your application may not start at all in such cases. These will >>>> have >>>> to be taken care of using your skillz ;-) >>>> >>>> >>>> 3 sep 2008 kl. 21.48 skrev Jonathan Schwartz: >>>> >>>>> Like I said, the application here is making quick edits on working >>>>> scripts. One out-of-place character takes down the entire solution, >>>>> until >>>>> discovered and repaired. >>>>> >>>>> Happens more often than I'd like to admit. >>>>> >>>>> Will look into ggt's response.... >>>>> >>>>> >>>>> J >>>>> >>>>> >>>>> >>>>> >>>>> At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>>>>> >>>>>> I have a script for sending emails on FM errors, but I too would love >>>>>> to >>>>>> know about any PHP errors. However, once a page is properly written, >>>>>> it's >>>>>> not going to randomly generate PHP errors, so I'm wondering what the >>>>>> usefulness of this would be other than in the initial programming >>>>>> stage... >>>>>> >>>>>> From the peanut gallery, >>>>>> >>>>>> Bob Patin >>>>>> Longterm Solutions >>>>>> bob@longtermsolutions.com >>>>>> 615-333-6858 >>>>>> http://www.longtermsolutions.com >>>>>> iChat: bobpatin >>>>>> AIM: longterm1954 >>>>>> FileMaker 9 Certified Developer >>>>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>>>> -------------------------- >>>>>> FileMaker hosting and consulting for all versions of FileMaker >>>>>> PHP * Full email services * Free DNS hosting * Colocation * Consulting >>>>>> >>>>>> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>>>>> >>>>>>> Hi folks, >>>>>>> >>>>>>> Occasionally, php syntax errors can result after performing >>>>>>> on-the-fly >>>>>>> script edits for clients, and there just isn't time to perform >>>>>>> testing. Call >>>>>>> me human. ;-) >>>>>>> >>>>>>> However, it is often the client that informs me of the error. >>>>>>> Hmmm... >>>>>>> >>>>>>> To resolve, I'd like to receive email notification for php errors on >>>>>>> any page ( not FMP errors) and have a shot at finding the error >>>>>>> first. >>>>>>> >>>>>>> What mechanism can do that? >>>>>>> >>>>>>> >>>>>>> Thx >>>>>>> >>>>>>> J >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Jonathan Schwartz >>>>>>> Exit 445 Group >>>>>>> jonathan@exit445.com >>>>>>> http://www.exit445.com >>>>>>> 415-370-5011 >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> -- >>>>> Jonathan Schwartz >>>>> Exit 445 Group >>>>> jonathan@exit445.com >>>>> http://www.exit445.com >>>>> 415-370-5011 >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> -| >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -| > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From adenman at tmea.org Wed Sep 3 16:07:50 2008 From: adenman at tmea.org (Andrew Denman) Date: Wed Sep 3 16:06:54 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: <01242410-DB96-4DC8-A225-159B27507EFA@finalresort.org> References: <48BEED11.3040807@dbmscan.com> <01242410-DB96-4DC8-A225-159B27507EFA@finalresort.org> Message-ID: <00d801c90e11$81a70790$84f516b0$@org> Though this function is depreciated, if you have PHP installed locally you can run the command line version to check syntax before uploading to the server. This link details how to set something up in BBEdit, but the php command line info is the same no matter your platform: http://daringfireball.net/2003/12/php_syntax_checking_in_bbedit Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Leo R. Lundgren Sent: Wednesday, September 03, 2008 3:07 PM To: FX.php Discussion List Subject: Re: [FX.php List] PHP Error Reporting...One more time This function is deprecated after 5.0.4 :I 3 sep 2008 kl. 22.01 skrev DC: > does this help? > > http://www.php.net/php_check_syntax > > PHP5 only. > > Jonathan Schwartz wrote: >> ggt, >> Not sure how this applies. >> It looks like a command line process to copy a file and then open >> it in an editor? >> How does that detect an error in the currently running script and >> email the adminsitrator? >> Jonathan >> At 9:39 PM +0200 9/3/08, Gjermund Gusland Thorsen wrote: >>> This is how I do it, for example.php I do >>> >>> cp example.php example-2008-09-02.php >>> vim example.php >>> >>> ggt >>> >>> 2008/9/3 Jonathan Schwartz : >>>> Hi folks, >>>> >>>> Occasionally, php syntax errors can result after performing on- >>>> the-fly >>>> script edits for clients, and there just isn't time to perform >>>> testing. Call >>>> me human. ;-) >>>> >>>> However, it is often the client that informs me of the error. >>>> Hmmm... >>>> >>>> To resolve, I'd like to receive email notification for php >>>> errors on any >>>> page ( not FMP errors) and have a shot at finding the error first. >>>> >>>> What mechanism can do that? >>>> >>>> >>>> Thx >>>> >>>> J >>>> >>>> >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From leo at finalresort.org Wed Sep 3 16:23:35 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Sep 3 16:22:58 2008 Subject: [FX.php List] PHP Error Reporting...One more time In-Reply-To: <002001c90e08$c11d2610$155c2f0a@bluecrocodile.co.nz> References: <6594513B-F334-461A-A7DE-9ED1BD3B4118@patin.com> <002001c90e08$c11d2610$155c2f0a@bluecrocodile.co.nz> Message-ID: <30E3D951-C8CD-4EDA-8BA7-A7F387452832@finalresort.org> Steve, That's looks like a good guide. Please note that the real fatal errors (that happens during parsing of the PHP source code, for example) cannot be trapped/handled by a custom error handler. Not sure if that's what you meant, just clarifying. So yes, Jonathan, you still need something else than a custom error handler, if you need something that will alert you of the fatal errors (before the client does :>) I'd Google or search SourceForge/Freshmeat for some script/app that will do it for you. It's fairly easy to script using the shell, but someone must have done that already, I'd guess. 3 sep 2008 kl. 23.05 skrev Steve Winter: > Hi Jonathan, > > I think you'll find that's not actually the case... any sort of error, > including seemingly fatal (script) errors can be trapped by a > custom error > handler (as Leo describes) and then process additional PHP code > which will > send you an email with details of the error which occurred. > > There's a good introduction to php error handlers at > http://articles.techrepublic.com.com/5100-10878_11-6113787.html > > Alternatively let me know and I can send you an example that I've > developed > which can, if FM is still responding log errors, as well as sending > email > etc... > > Cheers > Steve > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Jonathan > Schwartz > Sent: Wednesday, 3 September 2008 9:37 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] PHP Error Reporting...One more time > > Well said, Leo. > > I am just now realizing that there are two levels of PHP errors...in > addition to all the other levels of errors that we need to deal with. > Unfortunately in my case, it is the show-stopping errors (syntax) > that I am looking at. In this case, PHP has been stopped in its > tracks and is unable to alert anyone/anything. > > However, the web server's heart is still beating and it knows that > PHP barfed. There is even an entry in the web server log. I just > need that to turn into an email. > > Should I be looking at a notification tool for OS X Server/Apache? > > And...ggt...I honestly have NO IDEA what you are talking about. Sorry > > Jonathan > > > At 10:08 PM +0200 9/3/08, Leo R. Lundgren wrote: >> Interesting/good question :-) >> >> I think it's fair to say that there are two major types of errors in >> PHP; The ones that raise warnings, notices and so on, but still let >> your application keep running even though the expected results of >> whatever it's doing may not be very,, expected. Then there are the >> kind of errors that stop the application from running, such as >> syntax errrors. These latter ones will hopefully not occur too often >> unless you're really doing it wrong or don't check your edits at all. >> >> However, for the first type of errors, you could define your own >> error handler in PHP, that will be called whenever an error that >> you've configured it to handle occurs. For example, if there is an >> error that you deem not to be that serious, you could have the >> handler e-mail you the error notifications, and for serious errors >> you could handle it in a more graceful way than you would without >> global error handler. See >> http://se.php.net/manual/en/function.set-error-handler.php. >> >> For the second type of errors there's not that much to do from >> inside PHP since your application may not start at all in such >> cases. These will have to be taken care of using your skillz ;-) >> >> >> 3 sep 2008 kl. 21.48 skrev Jonathan Schwartz: >> >>> Like I said, the application here is making quick edits on working >>> scripts. One out-of-place character takes down the entire solution, >>> until discovered and repaired. >>> >>> Happens more often than I'd like to admit. >>> >>> Will look into ggt's response.... >>> >>> >>> J >>> >>> >>> >>> >>> At 2:39 PM -0500 9/3/08, Bob Patin wrote: >>>> I have a script for sending emails on FM errors, but I too would >>>> love to know about any PHP errors. However, once a page is >>>> properly written, it's not going to randomly generate PHP errors, >>>> so I'm wondering what the usefulness of this would be other than >>>> in the initial programming stage... >>>> >>>> From the peanut gallery, >>>> >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> iChat: bobpatin >>>> AIM: longterm1954 >>>> FileMaker 9 Certified Developer >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> -------------------------- >>>> FileMaker hosting and consulting for all versions of FileMaker >>>> PHP * Full email services * Free DNS hosting * Colocation * >>>> Consulting >>>> >>>> On Sep 3, 2008, at 2:16 PM, Jonathan Schwartz wrote: >>>> >>>>> Hi folks, >>>>> >>>>> Occasionally, php syntax errors can result after performing >>>>> on-the-fly script edits for clients, and there just isn't time to >>>>> perform testing. Call me human. ;-) >>>>> >>>>> However, it is often the client that informs me of the error. >>>>> Hmmm... >>>>> >>>>> To resolve, I'd like to receive email notification for php errors >>>>> on any page ( not FMP errors) and have a shot at finding the >>>>> error first. >>>>> >>>>> What mechanism can do that? >>>>> >>>>> >>>>> Thx >>>>> >>>>> J >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Jonathan Schwartz >>>>> Exit 445 Group >>>>> jonathan@exit445.com >>>>> http://www.exit445.com >>>>> 415-370-5011 >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -| >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 270.6.15/1648 - Release Date: > 2/09/2008 > 5:29 p.m. > > > No virus found in this outgoing message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 270.6.15/1648 - Release Date: > 2/09/2008 > 5:29 p.m. > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From joshshrier at gmail.com Wed Sep 3 19:23:54 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 3 19:24:12 2008 Subject: [FX.php List] Strange eror Message-ID: <001a01c90e2c$e6724c50$0200000a@JoshShrier> This is the code I have for my page: The Developer Connection I am getting these erros returned, and I don't understand why. The file is there and that is the proper directory. Please help me. Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 1 Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 13 Parse error: parse error in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 14 -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/bc879be8/attachment-0001.html From alex at gandrpublishing.com Wed Sep 3 19:29:12 2008 From: alex at gandrpublishing.com (Alex Gates) Date: Wed Sep 3 19:29:19 2008 Subject: [FX.php List] Strange eror In-Reply-To: <001a01c90e2c$e6724c50$0200000a@JoshShrier> References: <001a01c90e2c$e6724c50$0200000a@JoshShrier> Message-ID: <48BF39E8.2050901@gandrpublishing.com> Hi Josh - I haven't seen that error before, so I only have a guess- make sure the encoding of your page is UTF-8. Josh Shrier wrote: > This is the code I have for my page: > > > > > > > > > > > > > > > > > > > > The Developer Connection > > > > > > > > > > > > > > > > > include_once('includes/header.php'); > > ?> > > > > > > > > > > > > > > I am getting these erros returned, and I don?t understand why. The file > is there and that is the proper directory. Please help me. > > > *Warning*: Unexpected character in input: ' in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *1* > > *Warning*: Unexpected character in input: ' in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *13* > > *Parse error*: parse error in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *14* > > * * > > *-Josh Shrier* > > > ------------------------------------------------------------------------ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From joshshrier at gmail.com Wed Sep 3 19:38:15 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 3 19:38:31 2008 Subject: [FX.php List] Strange eror In-Reply-To: <48BF39E8.2050901@gandrpublishing.com> References: <001a01c90e2c$e6724c50$0200000a@JoshShrier> <48BF39E8.2050901@gandrpublishing.com> Message-ID: <001f01c90e2e$e74eb7b0$0200000a@JoshShrier> What is UTF-8? -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Alex Gates Sent: Thursday, September 04, 2008 4:29 AM To: FX.php Discussion List Subject: Re: [FX.php List] Strange eror Hi Josh - I haven't seen that error before, so I only have a guess- make sure the encoding of your page is UTF-8. Josh Shrier wrote: > This is the code I have for my page: > > > > > > > > > > > > > > > > > > > > The Developer Connection > > > > > > > > > > > > > > > > > include_once('includes/header.php'); > > ?> > > > > > > > > > > > > > > I am getting these erros returned, and I don't understand why. The file > is there and that is the proper directory. Please help me. > > > *Warning*: Unexpected character in input: ' in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *1* > > *Warning*: Unexpected character in input: ' in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *13* > > *Parse error*: parse error in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *14* > > * * > > *-Josh Shrier* > > > ------------------------------------------------------------------------ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 joshshrier at gmail.com Wed Sep 3 19:41:10 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 3 19:41:26 2008 Subject: [FX.php List] Strange eror In-Reply-To: <48BF39E8.2050901@gandrpublishing.com> References: <001a01c90e2c$e6724c50$0200000a@JoshShrier> <48BF39E8.2050901@gandrpublishing.com> Message-ID: <002001c90e2f$4fcac3b0$0200000a@JoshShrier> Also, the strange thing is that this exact code worked on my local machine, but on the web server it didn't, so I'm very confused. -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Alex Gates Sent: Thursday, September 04, 2008 4:29 AM To: FX.php Discussion List Subject: Re: [FX.php List] Strange eror Hi Josh - I haven't seen that error before, so I only have a guess- make sure the encoding of your page is UTF-8. Josh Shrier wrote: > This is the code I have for my page: > > > > > > > > > > > > > > > > > > > > The Developer Connection > > > > > > > > > > > > > > > > > include_once('includes/header.php'); > > ?> > > > > > > > > > > > > > > I am getting these erros returned, and I don't understand why. The file > is there and that is the proper directory. Please help me. > > > *Warning*: Unexpected character in input: ' in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *1* > > *Warning*: Unexpected character in input: ' in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *13* > > *Parse error*: parse error in > */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *14* > > * * > > *-Josh Shrier* > > > ------------------------------------------------------------------------ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 tim at nicheit.com.au Wed Sep 3 19:44:13 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Wed Sep 3 19:44:36 2008 Subject: [FX.php List] Strange eror In-Reply-To: <001f01c90e2e$e74eb7b0$0200000a@JoshShrier> References: <001a01c90e2c$e6724c50$0200000a@JoshShrier> <48BF39E8.2050901@gandrpublishing.com> <001f01c90e2e$e74eb7b0$0200000a@JoshShrier> Message-ID: <9D45876A-46C4-45CB-9EC3-1918177A9933@nicheit.com.au> On 04/09/2008, at 11:38 AM, Josh Shrier wrote: > What is UTF-8? A text encoding format. However, as I pointed out on FMForums, these error messages are actually referencing the FX.php file, not the code below. Make sure it has been transferred up correctly to your web server Cheers Webko > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Alex Gates > Sent: Thursday, September 04, 2008 4:29 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Strange eror > > Hi Josh - > I haven't seen that error before, so I only have a guess- make sure > the > encoding of your page is UTF-8. > > > Josh Shrier wrote: >> This is the code I have for my page: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> The Developer Connection >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> include_once('includes/header.php'); >> >> ?> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I am getting these erros returned, and I don't understand why. The >> file >> is there and that is the proper directory. Please help me. >> >> >> *Warning*: Unexpected character in input: ' in >> */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *1* >> >> *Warning*: Unexpected character in input: ' in >> */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *13* >> >> *Parse error*: parse error in >> */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *14* >> >> * * >> >> *-Josh Shrier* >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Tim 'Webko' Booth :: Niche IT Pty Ltd, Sydney, Australia [e] tim@nicheit.com.au :: [m] 0418 993 306 From joshshrier at gmail.com Wed Sep 3 19:50:20 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 3 19:50:37 2008 Subject: [FX.php List] Strange eror In-Reply-To: <9D45876A-46C4-45CB-9EC3-1918177A9933@nicheit.com.au> References: <001a01c90e2c$e6724c50$0200000a@JoshShrier><48BF39E8.2050901@gandrpublishing.com><001f01c90e2e$e74eb7b0$0200000a@JoshShrier> <9D45876A-46C4-45CB-9EC3-1918177A9933@nicheit.com.au> Message-ID: <002101c90e30$986673c0$0200000a@JoshShrier> How do you verify that? Is there more that can be done then seeing that it's there? -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tim 'Webko' Booth Sent: Thursday, September 04, 2008 4:44 AM To: FX.php Discussion List Subject: Re: [FX.php List] Strange eror On 04/09/2008, at 11:38 AM, Josh Shrier wrote: > What is UTF-8? A text encoding format. However, as I pointed out on FMForums, these error messages are actually referencing the FX.php file, not the code below. Make sure it has been transferred up correctly to your web server Cheers Webko > > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Alex Gates > Sent: Thursday, September 04, 2008 4:29 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Strange eror > > Hi Josh - > I haven't seen that error before, so I only have a guess- make sure > the > encoding of your page is UTF-8. > > > Josh Shrier wrote: >> This is the code I have for my page: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> The Developer Connection >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> include_once('includes/header.php'); >> >> ?> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I am getting these erros returned, and I don't understand why. The >> file >> is there and that is the proper directory. Please help me. >> >> >> *Warning*: Unexpected character in input: ' in >> */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *1* >> >> *Warning*: Unexpected character in input: ' in >> */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *13* >> >> *Parse error*: parse error in >> */Library/WebServer/Documents/joshshrier/FX/FX.php* on line *14* >> >> * * >> >> *-Josh Shrier* >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Tim 'Webko' Booth :: Niche IT Pty Ltd, Sydney, Australia [e] tim@nicheit.com.au :: [m] 0418 993 306 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From vicepresident at comcast.net Wed Sep 3 20:59:36 2008 From: vicepresident at comcast.net (Jon & Jane Montgomery) Date: Wed Sep 3 20:59:41 2008 Subject: [FX.php List] Strange eror In-Reply-To: <002101c90e30$986673c0$0200000a@JoshShrier> Message-ID: Josh, As Webko stated "Make sure it has been transferred up correctly in your web server." I would take that to mean just upload it again just incase something didn?t make the full trip. It cannot hurt to upload again can it? Jon Montgomery On 9/3/08 8:50 PM, "Josh Shrier" wrote: > How do you verify that? Is there more that can be done then seeing that it's > there? > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tim 'Webko' Booth > Sent: Thursday, September 04, 2008 4:44 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Strange eror > > > On 04/09/2008, at 11:38 AM, Josh Shrier wrote: > >> What is UTF-8? > > A text encoding format. > > However, as I pointed out on FMForums, these error messages are > actually referencing the FX.php file, not the code below. Make sure it > has been transferred up correctly to your web server > > Cheers > > Webko From glenn at possiblesolutions.com.au Wed Sep 3 21:12:59 2008 From: glenn at possiblesolutions.com.au (Glenn Singleton) Date: Wed Sep 3 21:13:04 2008 Subject: [FX.php List] Strange eror In-Reply-To: <001a01c90e2c$e6724c50$0200000a@JoshShrier> Message-ID: <20080904031300.XJLS29987.nskntotgx03p.mx.bigpond.com@centoris> Josh, I have seen this when translating from a Mac to a Windows server or visa versa. Look at, on the server, the fx.php, it may not have transferred to the web server correctly. Just an idea... Regards Glenn Singleton possible SOLUTIONS (Aust) _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Josh Shrier Sent: Thursday, 4 September 2008 11:24 AM To: fx.php_list@mail.iviking.org Subject: [FX.php List] Strange eror This is the code I have for my page: The Developer Connection I am getting these erros returned, and I don't understand why. The file is there and that is the proper directory. Please help me. Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 1 Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 13 Parse error: parse error in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 14 -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/622b08fa/attachment-0001.html From joshshrier at gmail.com Wed Sep 3 21:22:22 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 3 21:22:38 2008 Subject: [FX.php List] Strange eror In-Reply-To: <20080904031300.XJLS29987.nskntotgx03p.mx.bigpond.com@centoris> References: <001a01c90e2c$e6724c50$0200000a@JoshShrier> <20080904031300.XJLS29987.nskntotgx03p.mx.bigpond.com@centoris> Message-ID: <002b01c90e3d$72dfe700$0200000a@JoshShrier> This is going from a windows machine on my side to a mac on the server side. How do check if it copied correctly? _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Glenn Singleton Sent: Thursday, September 04, 2008 6:13 AM To: 'FX.php Discussion List' Subject: RE: [FX.php List] Strange eror Josh, I have seen this when translating from a Mac to a Windows server or visa versa. Look at, on the server, the fx.php, it may not have transferred to the web server correctly. Just an idea... Regards Glenn Singleton possible SOLUTIONS (Aust) _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Josh Shrier Sent: Thursday, 4 September 2008 11:24 AM To: fx.php_list@mail.iviking.org Subject: [FX.php List] Strange eror This is the code I have for my page: The Developer Connection I am getting these erros returned, and I don't understand why. The file is there and that is the proper directory. Please help me. Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 1 Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 13 Parse error: parse error in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 14 -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/b16d79bf/attachment.html From glenn at possiblesolutions.com.au Wed Sep 3 21:27:37 2008 From: glenn at possiblesolutions.com.au (Glenn Singleton) Date: Wed Sep 3 21:27:42 2008 Subject: [FX.php List] Strange eror In-Reply-To: <002b01c90e3d$72dfe700$0200000a@JoshShrier> Message-ID: <20080904032738.BKYQ1967.nskntotgx01p.mx.bigpond.com@centoris> Josh, I assume you ftp the files to the Mac server. You now need to remote into the server with TB2 (or similar) and open fx.php in a text editor. The other way is to look at the file size with your ftp program and maybe even just reload the FX folder again. Hope this helps. Regards Glenn Singleton possible SOLUTIONS (Aust) _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Josh Shrier Sent: Thursday, 4 September 2008 1:22 PM To: 'FX.php Discussion List' Subject: RE: [FX.php List] Strange eror This is going from a windows machine on my side to a mac on the server side. How do check if it copied correctly? _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Glenn Singleton Sent: Thursday, September 04, 2008 6:13 AM To: 'FX.php Discussion List' Subject: RE: [FX.php List] Strange eror Josh, I have seen this when translating from a Mac to a Windows server or visa versa. Look at, on the server, the fx.php, it may not have transferred to the web server correctly. Just an idea... Regards Glenn Singleton possible SOLUTIONS (Aust) _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Josh Shrier Sent: Thursday, 4 September 2008 11:24 AM To: fx.php_list@mail.iviking.org Subject: [FX.php List] Strange eror This is the code I have for my page: The Developer Connection I am getting these erros returned, and I don't understand why. The file is there and that is the proper directory. Please help me. Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 1 Warning: Unexpected character in input: ' in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 13 Parse error: parse error in /Library/WebServer/Documents/joshshrier/FX/FX.php on line 14 -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/efb587cf/attachment-0001.html From headhoncho at customikesolutions.com Wed Sep 3 21:49:15 2008 From: headhoncho at customikesolutions.com (Head Honcho) Date: Wed Sep 3 21:49:22 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: <6C2F7152-BCEF-4005-9809-AA3E5077079F@customikesolutions.com> Hi Joel On 04/09/2008, at 5:19 AM, Joel Shapiro wrote: > Hi all > > I just received the following question from the IT person at a > client of mine and I'm not sure what they're asking for. Can > anybody offer me a clue on how to best respond? > > They wrote: > "Given the number of web site compromises that have occurred, I am > wondering about Filemaker server security. Is there a security > notification service for Filemaker about vulnerabilities? I worry > about possible compromises to the web based FileMaker site on our > server." I'd be asking the question "what web site compromises are you seeing?". Whether you have FileMaker as your backend or something else, (eg mySQL) "shouldn't" make any difference. > > They are running FMSA9 & FX.php on Windows Server 2003 (one-machine > config). The site has a valid SSL cert., the machine is behind a > firewall (such that you need VPN access to open the DB remotely), & > FMS has Secure Connections (SSL) enabled between FMS & the WPE. All of this will mean that any data transmitted will be encrypted... and that non outside people can't access the DB directly without VPN access. Which leads me back to the "what web site compromises are you seeing?" > > > They've been up and running for over two years. I upgraded them to > FMS9 over the summer, and they made sure their OS was fully up-to- > date beforehand. > > What kind of " security notification service" might they be looking > for? I think the above may help in pointing you in the right direction... until you know what you're looking for, it's hard to find it! Regards Michael Ward -- Head Honcho CustoMike Solutions Member, FileMaker Business Alliance Member, FileMaker Technical Network FileMaker 7 Certified Developer FileMaker 8 Certified Developer FileMaker 9 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From erik at cayre.dk Thu Sep 4 00:31:45 2008 From: erik at cayre.dk (=?ISO-8859-1?Q?Erik_Andreas_Cayr=E9?=) Date: Thu Sep 4 00:31:51 2008 Subject: [FX.php List] IWP and logins In-Reply-To: <001001c90de0$c91ebcc0$0200000a@JoshShrier> References: <001001c90de0$c91ebcc0$0200000a@JoshShrier> Message-ID: <85C7C7A0-089A-49D0-B634-BF943C47C602@cayre.dk> Den 03/09/2008 kl. 18.19 skrev Josh Shrier: > I am trying to go from my html page to my IWP solution. There needs > to be a login routine to find the person. Is there anyway either > through IWP or PHP that I can do the login and get to the contact in > the IWP solution. I already did this in IWP, but the password can?t > be done (as far as I know) looking like a password with the bullets > look. Can someone give me some advice? When I did a login layout in IWP, I also could not immediately get the password field to use bullets. After some searching, I gave up and set the Font color to the same as the background. Not very elegant, but functional. --- Erik Andreas Cayr? Spangsbjerg M?llevej 169 DK-6705 Esbjerg ? Home Tel: +45 75150512 Mobile: +45 40161183 ?Interest can produce learning on a scale compared to fear as a nuclear explosion to a firecracker.? --Stanley Kubrick ?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: 1924 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/fb01a098/smime.bin From ggt667 at gmail.com Thu Sep 4 01:01:29 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 4 01:01:31 2008 Subject: [FX.php List] IWP and logins In-Reply-To: <85C7C7A0-089A-49D0-B634-BF943C47C602@cayre.dk> References: <001001c90de0$c91ebcc0$0200000a@JoshShrier> <85C7C7A0-089A-49D0-B634-BF943C47C602@cayre.dk> Message-ID: IWP is a mess, did you ever try installing FM without IWP? It installs faster( about 2 000 files opposed to about 20 000 ) and runs nicer in the long run. However I would find it interesting to know which terms or sessions are used to determine each user session. ggt 2008/9/4 Erik Andreas Cayr? : > > Den 03/09/2008 kl. 18.19 skrev Josh Shrier: > >> I am trying to go from my html page to my IWP solution. There needs to be >> a login routine to find the person. Is there anyway either through IWP or >> PHP that I can do the login and get to the contact in the IWP solution. I >> already did this in IWP, but the password can't be done (as far as I know) >> looking like a password with the bullets look. Can someone give me some >> advice? > > When I did a login layout in IWP, I also could not immediately get the > password field to use bullets. > After some searching, I gave up and set the Font color to the same as the > background. Not very elegant, but functional. > > > --- > Erik Andreas Cayr? > Spangsbjerg M?llevej 169 > DK-6705 Esbjerg ? > > Home Tel: +45 75150512 > Mobile: +45 40161183 > > ?Interest can produce learning on a scale compared to fear as a nuclear > explosion to a firecracker.? > --Stanley Kubrick > > ?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 ggt667 at gmail.com Thu Sep 4 01:02:41 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 4 01:02:45 2008 Subject: [FX.php List] IWP and logins In-Reply-To: References: <001001c90de0$c91ebcc0$0200000a@JoshShrier> <85C7C7A0-089A-49D0-B634-BF943C47C602@cayre.dk> Message-ID: After all, all the crashes I have had in FileMaker has been java related. ggt 2008/9/4 Gjermund Gusland Thorsen : > IWP is a mess, did you ever try installing FM without IWP? > > It installs faster( about 2 000 files opposed to about 20 000 ) and > runs nicer in the long run. > > However I would find it interesting to know which terms or sessions > are used to determine each user session. > > ggt > > 2008/9/4 Erik Andreas Cayr? : >> >> Den 03/09/2008 kl. 18.19 skrev Josh Shrier: >> >>> I am trying to go from my html page to my IWP solution. There needs to be >>> a login routine to find the person. Is there anyway either through IWP or >>> PHP that I can do the login and get to the contact in the IWP solution. I >>> already did this in IWP, but the password can't be done (as far as I know) >>> looking like a password with the bullets look. Can someone give me some >>> advice? >> >> When I did a login layout in IWP, I also could not immediately get the >> password field to use bullets. >> After some searching, I gave up and set the Font color to the same as the >> background. Not very elegant, but functional. >> >> >> --- >> Erik Andreas Cayr? >> Spangsbjerg M?llevej 169 >> DK-6705 Esbjerg ? >> >> Home Tel: +45 75150512 >> Mobile: +45 40161183 >> >> ?Interest can produce learning on a scale compared to fear as a nuclear >> explosion to a firecracker.? >> --Stanley Kubrick >> >> ?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 leo at finalresort.org Thu Sep 4 01:15:38 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Sep 4 01:14:58 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: I would interpret that question as if they are asking if there is any service where you can be sure to either find or automatically recieve from, security notifications about vulnerabilities in Filemaker, when they are discovered and disclosed. Many vendors have this, for example freebsd.org has a mailing list that sends out notifications of vulnerabilities, what products they affect, impacts, possible workarounds, and solutions/patches. There are also other vulnerability sites which publish vulnerabilities for various products. I do not know if Filemaker has anything like this, I'm sure someone else does though. My impression is that it's quite quiet regarding vulnerabilities for Filemaker. In any case, in your scenario, as you say, the PHP frontend (your code) and the Windows Server itself are probably the primary targets. 3 sep 2008 kl. 21.19 skrev Joel Shapiro: > Hi all > > I just received the following question from the IT person at a > client of mine and I'm not sure what they're asking for. Can > anybody offer me a clue on how to best respond? > > They wrote: > "Given the number of web site compromises that have occurred, I am > wondering about Filemaker server security. Is there a security > notification service for Filemaker about vulnerabilities? I worry > about possible compromises to the web based FileMaker site on our > server." > > They are running FMSA9 & FX.php on Windows Server 2003 (one-machine > config). The site has a valid SSL cert., the machine is behind a > firewall (such that you need VPN access to open the DB remotely), & > FMS has Secure Connections (SSL) enabled between FMS & the WPE. > > They've been up and running for over two years. I upgraded them to > FMS9 over the summer, and they made sure their OS was fully up-to- > date beforehand. > > What kind of " security notification service" might they be looking > for? > > TIA, > -Joel > > > _______________________________________________ > 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 4 01:35:54 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 4 01:35:56 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: Most of FileMaker's vulnerabilities are local. ggt 2008/9/4 Leo R. Lundgren : > I would interpret that question as if they are asking if there is any > service where you can be sure to either find or automatically recieve from, > security notifications about vulnerabilities in Filemaker, when they are > discovered and disclosed. Many vendors have this, for example freebsd.org > has a mailing list that sends out notifications of vulnerabilities, what > products they affect, impacts, possible workarounds, and solutions/patches. > There are also other vulnerability sites which publish vulnerabilities for > various products. > > I do not know if Filemaker has anything like this, I'm sure someone else > does though. My impression is that it's quite quiet regarding > vulnerabilities for Filemaker. > > In any case, in your scenario, as you say, the PHP frontend (your code) and > the Windows Server itself are probably the primary targets. > > > 3 sep 2008 kl. 21.19 skrev Joel Shapiro: > >> Hi all >> >> I just received the following question from the IT person at a client of >> mine and I'm not sure what they're asking for. Can anybody offer me a clue >> on how to best respond? >> >> They wrote: >> "Given the number of web site compromises that have occurred, I am >> wondering about Filemaker server security. Is there a security notification >> service for Filemaker about vulnerabilities? I worry about possible >> compromises to the web based FileMaker site on our server." >> >> They are running FMSA9 & FX.php on Windows Server 2003 (one-machine >> config). The site has a valid SSL cert., the machine is behind a firewall >> (such that you need VPN access to open the DB remotely), & FMS has Secure >> Connections (SSL) enabled between FMS & the WPE. >> >> They've been up and running for over two years. I upgraded them to FMS9 >> over the summer, and they made sure their OS was fully up-to-date >> beforehand. >> >> What kind of " security notification service" might they be looking for? >> >> TIA, >> -Joel >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -| > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From leo at finalresort.org Thu Sep 4 01:45:42 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Sep 4 01:45:01 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> Do you know what the best source for knowing about any Filemaker vulnerabilities, local or nonm-local, is? 4 sep 2008 kl. 09.35 skrev Gjermund Gusland Thorsen: > Most of FileMaker's vulnerabilities are local. > > ggt > > 2008/9/4 Leo R. Lundgren : >> I would interpret that question as if they are asking if there is any >> service where you can be sure to either find or automatically >> recieve from, >> security notifications about vulnerabilities in Filemaker, when >> they are >> discovered and disclosed. Many vendors have this, for example >> freebsd.org >> has a mailing list that sends out notifications of >> vulnerabilities, what >> products they affect, impacts, possible workarounds, and solutions/ >> patches. >> There are also other vulnerability sites which publish >> vulnerabilities for >> various products. >> >> I do not know if Filemaker has anything like this, I'm sure >> someone else >> does though. My impression is that it's quite quiet regarding >> vulnerabilities for Filemaker. >> >> In any case, in your scenario, as you say, the PHP frontend (your >> code) and >> the Windows Server itself are probably the primary targets. >> >> >> 3 sep 2008 kl. 21.19 skrev Joel Shapiro: >> >>> Hi all >>> >>> I just received the following question from the IT person at a >>> client of >>> mine and I'm not sure what they're asking for. Can anybody offer >>> me a clue >>> on how to best respond? >>> >>> They wrote: >>> "Given the number of web site compromises that have occurred, I am >>> wondering about Filemaker server security. Is there a security >>> notification >>> service for Filemaker about vulnerabilities? I worry about possible >>> compromises to the web based FileMaker site on our server." >>> >>> They are running FMSA9 & FX.php on Windows Server 2003 (one-machine >>> config). The site has a valid SSL cert., the machine is behind a >>> firewall >>> (such that you need VPN access to open the DB remotely), & FMS >>> has Secure >>> Connections (SSL) enabled between FMS & the WPE. >>> >>> They've been up and running for over two years. I upgraded them >>> to FMS9 >>> over the summer, and they made sure their OS was fully up-to-date >>> beforehand. >>> >>> What kind of " security notification service" might they be >>> looking for? >>> >>> TIA, >>> -Joel >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -| >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > 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 4 01:53:32 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 4 01:53:34 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> Message-ID: Well, locally you can pick apart the files and dig out the passwords. 2008/9/4 Leo R. Lundgren : > Do you know what the best source for knowing about any Filemaker > vulnerabilities, local or nonm-local, is? > > > 4 sep 2008 kl. 09.35 skrev Gjermund Gusland Thorsen: > >> Most of FileMaker's vulnerabilities are local. >> >> ggt >> >> 2008/9/4 Leo R. Lundgren : >>> >>> I would interpret that question as if they are asking if there is any >>> service where you can be sure to either find or automatically recieve >>> from, >>> security notifications about vulnerabilities in Filemaker, when they are >>> discovered and disclosed. Many vendors have this, for example freebsd.org >>> has a mailing list that sends out notifications of vulnerabilities, what >>> products they affect, impacts, possible workarounds, and >>> solutions/patches. >>> There are also other vulnerability sites which publish vulnerabilities >>> for >>> various products. >>> >>> I do not know if Filemaker has anything like this, I'm sure someone else >>> does though. My impression is that it's quite quiet regarding >>> vulnerabilities for Filemaker. >>> >>> In any case, in your scenario, as you say, the PHP frontend (your code) >>> and >>> the Windows Server itself are probably the primary targets. >>> >>> >>> 3 sep 2008 kl. 21.19 skrev Joel Shapiro: >>> >>>> Hi all >>>> >>>> I just received the following question from the IT person at a client of >>>> mine and I'm not sure what they're asking for. Can anybody offer me a >>>> clue >>>> on how to best respond? >>>> >>>> They wrote: >>>> "Given the number of web site compromises that have occurred, I am >>>> wondering about Filemaker server security. Is there a security >>>> notification >>>> service for Filemaker about vulnerabilities? I worry about possible >>>> compromises to the web based FileMaker site on our server." >>>> >>>> They are running FMSA9 & FX.php on Windows Server 2003 (one-machine >>>> config). The site has a valid SSL cert., the machine is behind a >>>> firewall >>>> (such that you need VPN access to open the DB remotely), & FMS has >>>> Secure >>>> Connections (SSL) enabled between FMS & the WPE. >>>> >>>> They've been up and running for over two years. I upgraded them to FMS9 >>>> over the summer, and they made sure their OS was fully up-to-date >>>> beforehand. >>>> >>>> What kind of " security notification service" might they be looking for? >>>> >>>> TIA, >>>> -Joel >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -| >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -| > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From leo at finalresort.org Thu Sep 4 02:12:17 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Sep 4 02:11:37 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> Message-ID: <4A6BA9EF-B2AF-44E4-9300-911F8D6EFB9C@finalresort.org> Sorry, I meant to ask what resources are available, such as possible mailing lists where Filemaker publishes these kinds of things? I know there's a TechNet, but in my opinion, one shouldn't have to cash up extra in order to enjoy security notices. I did a quick look in Filemaker.com but couldn't find anything but the downloads section with updates to the products, which isn't the same thing as recieving notices when there's some security issue to be handled. 4 sep 2008 kl. 09.53 skrev Gjermund Gusland Thorsen: > Well, locally you can pick apart the files and dig out the passwords. > > 2008/9/4 Leo R. Lundgren : >> Do you know what the best source for knowing about any Filemaker >> vulnerabilities, local or nonm-local, is? >> >> >> 4 sep 2008 kl. 09.35 skrev Gjermund Gusland Thorsen: >> >>> Most of FileMaker's vulnerabilities are local. >>> >>> ggt >>> >>> 2008/9/4 Leo R. Lundgren : >>>> >>>> I would interpret that question as if they are asking if there >>>> is any >>>> service where you can be sure to either find or automatically >>>> recieve >>>> from, >>>> security notifications about vulnerabilities in Filemaker, when >>>> they are >>>> discovered and disclosed. Many vendors have this, for example >>>> freebsd.org >>>> has a mailing list that sends out notifications of >>>> vulnerabilities, what >>>> products they affect, impacts, possible workarounds, and >>>> solutions/patches. >>>> There are also other vulnerability sites which publish >>>> vulnerabilities >>>> for >>>> various products. >>>> >>>> I do not know if Filemaker has anything like this, I'm sure >>>> someone else >>>> does though. My impression is that it's quite quiet regarding >>>> vulnerabilities for Filemaker. >>>> >>>> In any case, in your scenario, as you say, the PHP frontend >>>> (your code) >>>> and >>>> the Windows Server itself are probably the primary targets. >>>> >>>> >>>> 3 sep 2008 kl. 21.19 skrev Joel Shapiro: >>>> >>>>> Hi all >>>>> >>>>> I just received the following question from the IT person at a >>>>> client of >>>>> mine and I'm not sure what they're asking for. Can anybody >>>>> offer me a >>>>> clue >>>>> on how to best respond? >>>>> >>>>> They wrote: >>>>> "Given the number of web site compromises that have occurred, I am >>>>> wondering about Filemaker server security. Is there a security >>>>> notification >>>>> service for Filemaker about vulnerabilities? I worry about >>>>> possible >>>>> compromises to the web based FileMaker site on our server." >>>>> >>>>> They are running FMSA9 & FX.php on Windows Server 2003 (one- >>>>> machine >>>>> config). The site has a valid SSL cert., the machine is behind a >>>>> firewall >>>>> (such that you need VPN access to open the DB remotely), & FMS has >>>>> Secure >>>>> Connections (SSL) enabled between FMS & the WPE. >>>>> >>>>> They've been up and running for over two years. I upgraded >>>>> them to FMS9 >>>>> over the summer, and they made sure their OS was fully up-to-date >>>>> beforehand. >>>>> >>>>> What kind of " security notification service" might they be >>>>> looking for? >>>>> >>>>> TIA, >>>>> -Joel >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> -| >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 Thu Sep 4 02:13:57 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 4 02:13:59 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <4A6BA9EF-B2AF-44E4-9300-911F8D6EFB9C@finalresort.org> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> <4A6BA9EF-B2AF-44E4-9300-911F8D6EFB9C@finalresort.org> Message-ID: Well as most proprietary applications, such things as security is not heard of, and if anyone ever reports such an issue, it will be solved in silence, and updgrade will be issued IMO. FileMaker is not exactly open on these issues. ggt 2008/9/4 Leo R. Lundgren : > Sorry, I meant to ask what resources are available, such as possible mailing > lists where Filemaker publishes these kinds of things? I know there's a > TechNet, but in my opinion, one shouldn't have to cash up extra in order to > enjoy security notices. I did a quick look in Filemaker.com but couldn't > find anything but the downloads section with updates to the products, which > isn't the same thing as recieving notices when there's some security issue > to be handled. > > 4 sep 2008 kl. 09.53 skrev Gjermund Gusland Thorsen: > >> Well, locally you can pick apart the files and dig out the passwords. >> >> 2008/9/4 Leo R. Lundgren : >>> >>> Do you know what the best source for knowing about any Filemaker >>> vulnerabilities, local or nonm-local, is? >>> >>> >>> 4 sep 2008 kl. 09.35 skrev Gjermund Gusland Thorsen: >>> >>>> Most of FileMaker's vulnerabilities are local. >>>> >>>> ggt >>>> >>>> 2008/9/4 Leo R. Lundgren : >>>>> >>>>> I would interpret that question as if they are asking if there is any >>>>> service where you can be sure to either find or automatically recieve >>>>> from, >>>>> security notifications about vulnerabilities in Filemaker, when they >>>>> are >>>>> discovered and disclosed. Many vendors have this, for example >>>>> freebsd.org >>>>> has a mailing list that sends out notifications of vulnerabilities, >>>>> what >>>>> products they affect, impacts, possible workarounds, and >>>>> solutions/patches. >>>>> There are also other vulnerability sites which publish vulnerabilities >>>>> for >>>>> various products. >>>>> >>>>> I do not know if Filemaker has anything like this, I'm sure someone >>>>> else >>>>> does though. My impression is that it's quite quiet regarding >>>>> vulnerabilities for Filemaker. >>>>> >>>>> In any case, in your scenario, as you say, the PHP frontend (your code) >>>>> and >>>>> the Windows Server itself are probably the primary targets. >>>>> >>>>> >>>>> 3 sep 2008 kl. 21.19 skrev Joel Shapiro: >>>>> >>>>>> Hi all >>>>>> >>>>>> I just received the following question from the IT person at a client >>>>>> of >>>>>> mine and I'm not sure what they're asking for. Can anybody offer me a >>>>>> clue >>>>>> on how to best respond? >>>>>> >>>>>> They wrote: >>>>>> "Given the number of web site compromises that have occurred, I am >>>>>> wondering about Filemaker server security. Is there a security >>>>>> notification >>>>>> service for Filemaker about vulnerabilities? I worry about possible >>>>>> compromises to the web based FileMaker site on our server." >>>>>> >>>>>> They are running FMSA9 & FX.php on Windows Server 2003 (one-machine >>>>>> config). The site has a valid SSL cert., the machine is behind a >>>>>> firewall >>>>>> (such that you need VPN access to open the DB remotely), & FMS has >>>>>> Secure >>>>>> Connections (SSL) enabled between FMS & the WPE. >>>>>> >>>>>> They've been up and running for over two years. I upgraded them to >>>>>> FMS9 >>>>>> over the summer, and they made sure their OS was fully up-to-date >>>>>> beforehand. >>>>>> >>>>>> What kind of " security notification service" might they be looking >>>>>> for? >>>>>> >>>>>> TIA, >>>>>> -Joel >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> -| >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -| >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -| > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From leo at finalresort.org Thu Sep 4 02:35:57 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Sep 4 02:35:21 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> <4A6BA9EF-B2AF-44E4-9300-911F8D6EFB9C@finalresort.org> Message-ID: <250D225B-CFE4-482F-AA0B-73AD41A4DA03@finalresort.org> OK. Yes that's the impression I've gotten, utter silence. I haven't checked, but I wouldn't be surprised not to find anything like a changelog or a list of security fixes that have been taken care of in the various updates and so on. It's a shame! I only know one thing for sure; No application have zero security issues, and surely not Filemaker :) 4 sep 2008 kl. 10.13 skrev Gjermund Gusland Thorsen: > Well as most proprietary applications, such things as security is > not heard of, > and if anyone ever reports such an issue, it will be solved in > silence, and updgrade will be issued IMO. > > FileMaker is not exactly open on these issues. > > ggt > > 2008/9/4 Leo R. Lundgren : >> Sorry, I meant to ask what resources are available, such as >> possible mailing >> lists where Filemaker publishes these kinds of things? I know >> there's a >> TechNet, but in my opinion, one shouldn't have to cash up extra in >> order to >> enjoy security notices. I did a quick look in Filemaker.com but >> couldn't >> find anything but the downloads section with updates to the >> products, which >> isn't the same thing as recieving notices when there's some >> security issue >> to be handled. >> >> 4 sep 2008 kl. 09.53 skrev Gjermund Gusland Thorsen: >> >>> Well, locally you can pick apart the files and dig out the >>> passwords. >>> >>> 2008/9/4 Leo R. Lundgren : >>>> >>>> Do you know what the best source for knowing about any Filemaker >>>> vulnerabilities, local or nonm-local, is? >>>> >>>> >>>> 4 sep 2008 kl. 09.35 skrev Gjermund Gusland Thorsen: >>>> >>>>> Most of FileMaker's vulnerabilities are local. >>>>> >>>>> ggt >>>>> >>>>> 2008/9/4 Leo R. Lundgren : >>>>>> >>>>>> I would interpret that question as if they are asking if there >>>>>> is any >>>>>> service where you can be sure to either find or automatically >>>>>> recieve >>>>>> from, >>>>>> security notifications about vulnerabilities in Filemaker, >>>>>> when they >>>>>> are >>>>>> discovered and disclosed. Many vendors have this, for example >>>>>> freebsd.org >>>>>> has a mailing list that sends out notifications of >>>>>> vulnerabilities, >>>>>> what >>>>>> products they affect, impacts, possible workarounds, and >>>>>> solutions/patches. >>>>>> There are also other vulnerability sites which publish >>>>>> vulnerabilities >>>>>> for >>>>>> various products. >>>>>> >>>>>> I do not know if Filemaker has anything like this, I'm sure >>>>>> someone >>>>>> else >>>>>> does though. My impression is that it's quite quiet regarding >>>>>> vulnerabilities for Filemaker. >>>>>> >>>>>> In any case, in your scenario, as you say, the PHP frontend >>>>>> (your code) >>>>>> and >>>>>> the Windows Server itself are probably the primary targets. >>>>>> >>>>>> >>>>>> 3 sep 2008 kl. 21.19 skrev Joel Shapiro: >>>>>> >>>>>>> Hi all >>>>>>> >>>>>>> I just received the following question from the IT person at >>>>>>> a client >>>>>>> of >>>>>>> mine and I'm not sure what they're asking for. Can anybody >>>>>>> offer me a >>>>>>> clue >>>>>>> on how to best respond? >>>>>>> >>>>>>> They wrote: >>>>>>> "Given the number of web site compromises that have occurred, >>>>>>> I am >>>>>>> wondering about Filemaker server security. Is there a security >>>>>>> notification >>>>>>> service for Filemaker about vulnerabilities? I worry about >>>>>>> possible >>>>>>> compromises to the web based FileMaker site on our server." >>>>>>> >>>>>>> They are running FMSA9 & FX.php on Windows Server 2003 (one- >>>>>>> machine >>>>>>> config). The site has a valid SSL cert., the machine is >>>>>>> behind a >>>>>>> firewall >>>>>>> (such that you need VPN access to open the DB remotely), & >>>>>>> FMS has >>>>>>> Secure >>>>>>> Connections (SSL) enabled between FMS & the WPE. >>>>>>> >>>>>>> They've been up and running for over two years. I upgraded >>>>>>> them to >>>>>>> FMS9 >>>>>>> over the summer, and they made sure their OS was fully up-to- >>>>>>> date >>>>>>> beforehand. >>>>>>> >>>>>>> What kind of " security notification service" might they be >>>>>>> looking >>>>>>> for? >>>>>>> >>>>>>> TIA, >>>>>>> -Joel >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> >>>>>> -| >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/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 tim at nicheit.com.au Thu Sep 4 03:02:35 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Thu Sep 4 03:02:53 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <250D225B-CFE4-482F-AA0B-73AD41A4DA03@finalresort.org> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> <4A6BA9EF-B2AF-44E4-9300-911F8D6EFB9C@finalresort.org> <250D225B-CFE4-482F-AA0B-73AD41A4DA03@finalresort.org> Message-ID: <196803B3-8260-44A3-A01B-8F30C83F2A0B@nicheit.com.au> On 04/09/2008, at 6:35 PM, Leo R. Lundgren wrote: > OK. Yes that's the impression I've gotten, utter silence. I haven't > checked, but I wouldn't be surprised not to find anything like a > changelog or a list of security fixes that have been taken care of > in the various updates and so on. It's a shame! > > I only know one thing for sure; No application have zero security > issues, and surely not Filemaker :) Correct. However, FM (in my opinion) has always followed a security by obscurity approach - if you read release notes carefully, you may find an oblique reference to what may have been a security issue is a version that has been rectified. Not often, and not by open disclosure. This is not unusual in proprietary software though - most of the software that has open disclosure is also open source and has a community of like-minded people developing it rather than through a software house. Or it has soooooo many users that flaws can be widely publicised (Adobe springs to mind for that). Also, TechTalk etc does not usually carry any official FM communication about anything - the main people there are fellow developers, although FM do have some active people who seem to do it in their spare time. And there was at least one doozy of a web hole back in v4 and 5 that has been fixed these days. OTOH, even though I knew about the hole, and it was actually described in the docs (feature, not bug), and I took steps to block it, that filter was *never* triggered over a period of 5 years that I ran vulnerable versions. Make of that what you will (see para 2) Cheers Webko From jsfmp at earthlink.net Thu Sep 4 12:41:19 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Sep 4 12:41:27 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <196803B3-8260-44A3-A01B-8F30C83F2A0B@nicheit.com.au> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <31A5C246-9BC9-4157-8929-9253E3654330@finalresort.org> <4A6BA9EF-B2AF-44E4-9300-911F8D6EFB9C@finalresort.org> <250D225B-CFE4-482F-AA0B-73AD41A4DA03@finalresort.org> <196803B3-8260-44A3-A01B-8F30C83F2A0B@nicheit.com.au> Message-ID: <57076D02-333E-4F03-940B-3EA4187B3F07@earthlink.net> Thanks all who responded. I'm trying to find out specifically what the client is looking for, and what the concerns are. Best, -Joel On Sep 4, 2008, at 2:02 AM, Tim 'Webko' Booth wrote: > > On 04/09/2008, at 6:35 PM, Leo R. Lundgren wrote: > >> OK. Yes that's the impression I've gotten, utter silence. I >> haven't checked, but I wouldn't be surprised not to find anything >> like a changelog or a list of security fixes that have been taken >> care of in the various updates and so on. It's a shame! >> >> I only know one thing for sure; No application have zero security >> issues, and surely not Filemaker :) > > Correct. > > However, FM (in my opinion) has always followed a security by > obscurity approach - if you read release notes carefully, you may > find an oblique reference to what may have been a security issue is > a version that has been rectified. Not often, and not by open > disclosure. > > This is not unusual in proprietary software though - most of the > software that has open disclosure is also open source and has a > community of like-minded people developing it rather than through a > software house. Or it has soooooo many users that flaws can be > widely publicised (Adobe springs to mind for that). > > Also, TechTalk etc does not usually carry any official FM > communication about anything - the main people there are fellow > developers, although FM do have some active people who seem to do > it in their spare time. > > And there was at least one doozy of a web hole back in v4 and 5 > that has been fixed these days. > > OTOH, even though I knew about the hole, and it was actually > described in the docs (feature, not bug), and I took steps to block > it, that filter was *never* triggered over a period of 5 years that > I ran vulnerable versions. Make of that what you will (see para 2) > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Thu Sep 4 13:50:44 2008 From: bob at patin.com (Bob Patin) Date: Thu Sep 4 13:50:50 2008 Subject: [FX.php List] PHP Batch uploading Message-ID: I have a client for whom I just wrote a document-management system. Today he made a new request: They'd like to be able to batch-upload a folder-full of files at one time, rather than using the standard web upload dialog, which is what they have right now. Does anyone know of a way to do this with a web form? Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/8ad7b33a/attachment.html From ggt667 at gmail.com Thu Sep 4 13:53:35 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 4 13:53:37 2008 Subject: [FX.php List] PHP Batch uploading In-Reply-To: References: Message-ID: Hmm, is would be simpler to upload a zip file and decompress it in the script... 2008/9/4 Bob Patin : > I have a client for whom I just wrote a document-management system. Today he > made a new request: > > They'd like to be able to batch-upload a folder-full of files at one time, > rather than using the standard web upload dialog, which is what they have > right now. > > Does anyone know of a way to do this with a web form? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From leo at finalresort.org Thu Sep 4 14:06:47 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Sep 4 14:06:12 2008 Subject: [FX.php List] PHP Batch uploading In-Reply-To: References: Message-ID: Not that I know of at least. It's not a limitation of PHP but the fact that browsers don't support uploading entire folders. You can solve it using Java applets for the client side if you want to, I know there are some. Other than that I can't think of any JavaScript to do it either :/ I think the easiest solution for both you and your client is to have them zip the folder they want to send, and upload the zipfile. You can then unzip the file on your end when needed (if it's a zip file). One more step for them, but it's probably that or Java (or ActiveX, horrors!). Be careful though to adjust the php settings such as max_upload_filesize and possibly other settings as well, especially if you're using a PHP extension such as Suhosin (Hardened PHP). Depending on how you handle the zip file extraction you might need to adjust memory_limit as well. 4 sep 2008 kl. 21.50 skrev Bob Patin: > I have a client for whom I just wrote a document-management system. > Today he made a new request: > > They'd like to be able to batch-upload a folder-full of files at > one time, rather than using the standard web upload dialog, which > is what they have right now. > > Does anyone know of a way to do this with a web form? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080904/deb573ce/attachment.html From bob at patin.com Thu Sep 4 14:29:29 2008 From: bob at patin.com (Bob Patin) Date: Thu Sep 4 14:29:38 2008 Subject: [FX.php List] PHP Batch uploading In-Reply-To: References: Message-ID: <7796977C-E757-4318-8D0E-5EBD197D1BE2@patin.com> Yeah but they want to be able to view their photos online; they do insurance inspections, and need to be able to go through their photos. I've already suggested the ZIP file idea to my client, but wanted to see if anyone's written a reliable batch script in PHP that would work cross-platform. -- Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 4, 2008, at 2:53 PM, Gjermund Gusland Thorsen wrote: > Hmm, is would be simpler to upload a zip file and decompress it in > the script... > > 2008/9/4 Bob Patin : >> I have a client for whom I just wrote a document-management system. >> Today he >> made a new request: >> >> They'd like to be able to batch-upload a folder-full of files at >> one time, >> rather than using the standard web upload dialog, which is what >> they have >> right now. >> >> Does anyone know of a way to do this with a web form? >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Thu Sep 4 14:38:25 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Thu Sep 4 14:38:28 2008 Subject: [FX.php List] PHP Batch uploading Message-ID: <1983728.24071220560705634.JavaMail.postmaster@troymeyers.com> Bob, I sure don't know quite how it would work, but maybe JavaScript or a Java applet that loops through the camera "drive" reading the files and uploading them one by one, so that they can unload the camera right into the remote system (via the web page interface) all in one step? -Troy > Yeah but they want to be able to view their photos online; they do > insurance inspections, and need to be able to go through their photos. > > I've already suggested the ZIP file idea to my client, but wanted to > see if anyone's written a reliable batch script in PHP that would work > cross-platform. From dbengston at tds.net Thu Sep 4 15:01:32 2008 From: dbengston at tds.net (Dale Bengston) Date: Thu Sep 4 15:01:42 2008 Subject: [FX.php List] PHP Batch uploading In-Reply-To: <7796977C-E757-4318-8D0E-5EBD197D1BE2@patin.com> References: <7796977C-E757-4318-8D0E-5EBD197D1BE2@patin.com> Message-ID: Bob, I think what is suggested here is the photos get zipped so there's one upload, but as part of the upload process, your PHP would unzip the images and process them individually. I know zipping by the client is an extra step, but at least that would allow for a single uploaded file. Maybe okay if the un-zipping is automated? Dale On Sep 4, 2008, at 3:29 PM, Bob Patin wrote: > Yeah but they want to be able to view their photos online; they do > insurance inspections, and need to be able to go through their photos. > > I've already suggested the ZIP file idea to my client, but wanted to > see if anyone's written a reliable batch script in PHP that would > work cross-platform. > > -- > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Sep 4, 2008, at 2:53 PM, Gjermund Gusland Thorsen wrote: > >> Hmm, is would be simpler to upload a zip file and decompress it in >> the script... >> >> 2008/9/4 Bob Patin : >>> I have a client for whom I just wrote a document-management >>> system. Today he >>> made a new request: >>> >>> They'd like to be able to batch-upload a folder-full of files at >>> one time, >>> rather than using the standard web upload dialog, which is what >>> they have >>> right now. >>> >>> Does anyone know of a way to do this with a web form? >>> >>> Thanks, >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> AIM: longterm1954 >>> FileMaker 9 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP ? Full email services ? Free DNS hosting ? Colocation ? >>> Consulting >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Thu Sep 4 15:07:04 2008 From: bob at patin.com (Bob Patin) Date: Thu Sep 4 15:07:10 2008 Subject: [FX.php List] PHP Batch uploading In-Reply-To: References: <7796977C-E757-4318-8D0E-5EBD197D1BE2@patin.com> Message-ID: I'm not going to sweat it at this point; they're going to have to ZIP their photos together. They do approx. 100 photos of every inspection, plus audio comments and a transcription, so I'm hoping that will work for them... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 4, 2008, at 4:01 PM, Dale Bengston wrote: > Bob, I think what is suggested here is the photos get zipped so > there's one upload, but as part of the upload process, your PHP > would unzip the images and process them individually. > > I know zipping by the client is an extra step, but at least that > would allow for a single uploaded file. Maybe okay if the un-zipping > is automated? > > Dale > > On Sep 4, 2008, at 3:29 PM, Bob Patin wrote: > >> Yeah but they want to be able to view their photos online; they do >> insurance inspections, and need to be able to go through their >> photos. >> >> I've already suggested the ZIP file idea to my client, but wanted >> to see if anyone's written a reliable batch script in PHP that >> would work cross-platform. >> >> -- >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> On Sep 4, 2008, at 2:53 PM, Gjermund Gusland Thorsen wrote: >> >>> Hmm, is would be simpler to upload a zip file and decompress it in >>> the script... >>> >>> 2008/9/4 Bob Patin : >>>> I have a client for whom I just wrote a document-management >>>> system. Today he >>>> made a new request: >>>> >>>> They'd like to be able to batch-upload a folder-full of files at >>>> one time, >>>> rather than using the standard web upload dialog, which is what >>>> they have >>>> right now. >>>> >>>> Does anyone know of a way to do this with a web form? >>>> >>>> Thanks, >>>> >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> iChat: bobpatin >>>> AIM: longterm1954 >>>> FileMaker 9 Certified Developer >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> -------------------------- >>>> FileMaker hosting and consulting for all versions of FileMaker >>>> PHP ? Full email services ? Free DNS hosting ? Colocation ? >>>> Consulting >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > 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 4 15:45:26 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Sep 4 15:45:29 2008 Subject: [FX.php List] PHP Batch uploading In-Reply-To: References: <7796977C-E757-4318-8D0E-5EBD197D1BE2@patin.com> Message-ID: Well it will work alot better than uploading 100 individual files I assume... and will be a lot more efficient than a script that emulates a folder upload. ggt 2008/9/4 Bob Patin : > I'm not going to sweat it at this point; they're going to have to ZIP their > photos together. They do approx. 100 photos of every inspection, plus audio > comments and a transcription, so I'm hoping that will work for them... > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > On Sep 4, 2008, at 4:01 PM, Dale Bengston wrote: > >> Bob, I think what is suggested here is the photos get zipped so there's >> one upload, but as part of the upload process, your PHP would unzip the >> images and process them individually. >> >> I know zipping by the client is an extra step, but at least that would >> allow for a single uploaded file. Maybe okay if the un-zipping is automated? >> >> Dale >> >> On Sep 4, 2008, at 3:29 PM, Bob Patin wrote: >> >>> Yeah but they want to be able to view their photos online; they do >>> insurance inspections, and need to be able to go through their photos. >>> >>> I've already suggested the ZIP file idea to my client, but wanted to see >>> if anyone's written a reliable batch script in PHP that would work >>> cross-platform. >>> >>> -- >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> AIM: longterm1954 >>> FileMaker 9 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >>> >>> On Sep 4, 2008, at 2:53 PM, Gjermund Gusland Thorsen wrote: >>> >>>> Hmm, is would be simpler to upload a zip file and decompress it in the >>>> script... >>>> >>>> 2008/9/4 Bob Patin : >>>>> >>>>> I have a client for whom I just wrote a document-management system. >>>>> Today he >>>>> made a new request: >>>>> >>>>> They'd like to be able to batch-upload a folder-full of files at one >>>>> time, >>>>> rather than using the standard web upload dialog, which is what they >>>>> have >>>>> right now. >>>>> >>>>> Does anyone know of a way to do this with a web form? >>>>> >>>>> Thanks, >>>>> >>>>> Bob Patin >>>>> Longterm Solutions >>>>> bob@longtermsolutions.com >>>>> 615-333-6858 >>>>> http://www.longtermsolutions.com >>>>> iChat: bobpatin >>>>> AIM: longterm1954 >>>>> FileMaker 9 Certified Developer >>>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>>> -------------------------- >>>>> FileMaker hosting and consulting for all versions of FileMaker >>>>> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jsfmp at earthlink.net Thu Sep 4 18:06:01 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Sep 4 18:06:12 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: Hi again This is how the client replied when I asked for more info: "I keep hearing about "sql injection attacks" being used to compromise web pages. So I was wondering if Filemaker had a notification service about updates and / or security issues. It may be that Filemaker is "flying under the radar" when it comes to malware writers and there is little reason for concern. Given the security of the Internet nowadays I would rather be safe than sorry." It seems that FMI does *not* provide (decipherable) security update notifications, so I can pass that along to the client. Investigating "SQL injection attacks" (e.g. ), I'm reminded of Jonathan Stark's DevCon presentation in which he urged (numerous times) that we Filter All Data, incl. the use of htmlentities() & strip_tags()... Do people here do that on *all* submittable fields? For all FMFind, FMEdit & FMNew? Is there some guideline as to when that's more or less important? Are there other functions you like to use for this? Also: 1) Is a site vulnerable to this type attack when using FileMaker security for logins (internal or Ext Auth w/ AD OD)? (My guess is "no" since these aren't fields in a web-accessible database...) 2) When using records w/ username & password fields for logins, would using the format: $login->AddDBParam('UserID','=="'.$_POST['user_name'].'"'); be safe enough to avoid these types of attacks, since FM can't process additional code like SQL seemingly can (e.g. the submission of: ' or 1=1 -- ) ? 3) Are there any such risks within FMEdit calls? Does it matter whether fields are submitted via radio buttons? 4) The above URL cautions against SQL procedures such as xp_cmdshell and xp_grantlogin. Do FileMaker or FX.php (or the API) have any such dangerous code? 5) Realistically, if a site is hosted locally, has an SSL cert, and has no links from any external pages, is there much risk of it being found and thusly hacked? Thanks, -Joel On Sep 3, 2008, at 12:19 PM, Joel Shapiro wrote: > Hi all > > I just received the following question from the IT person at a > client of mine and I'm not sure what they're asking for. Can > anybody offer me a clue on how to best respond? > > They wrote: > "Given the number of web site compromises that have occurred, I am > wondering about Filemaker server security. Is there a security > notification service for Filemaker about vulnerabilities? I worry > about possible compromises to the web based FileMaker site on our > server." > > They are running FMSA9 & FX.php on Windows Server 2003 (one-machine > config). The site has a valid SSL cert., the machine is behind a > firewall (such that you need VPN access to open the DB remotely), & > FMS has Secure Connections (SSL) enabled between FMS & the WPE. > > They've been up and running for over two years. I upgraded them to > FMS9 over the summer, and they made sure their OS was fully up-to- > date beforehand. > > What kind of " security notification service" might they be looking > for? > > TIA, > -Joel > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Thu Sep 4 18:21:40 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Thu Sep 4 18:21:42 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? Message-ID: <1485079.70151220574100541.JavaMail.postmaster@troymeyers.com> Joel, Regarding this one: > 2) When using records w/ username & password fields for logins, would > using the format: > > $login->AddDBParam('UserID','=="'.$_POST['user_name'].'"'); be safe > enough to avoid these types of attacks, since FM can't process > additional code like SQL seemingly can > > (e.g. the submission of: ' or 1=1 -- ) ? ... I always use: $login->AddDBParam('UserID','=='.preg_replace('/([@*#?!=<>"])/','\\\${1}',$_POST['user_name'])); ... because otherwise a wild card could be slipped in. This isn't an execution-of-code problem, but just a vulnerability to someone mischievously or not including a search wild card character. It seems like the double-equal '==' and quotes in: '=="'.$_POST['user_name'].'"' ...would prevent this, but actually it won't because if a hacker includes a " in the submitted user ID, the " ends the literal and then any subsequent wildcard works. -Troy From kfutter at sbc.melb.catholic.edu.au Thu Sep 4 18:24:30 2008 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Thu Sep 4 18:24:58 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: Message-ID: Hi Joel, I'd be very surprised if FM was susceptible to any form of SQL injection attack. However, PHP code for form processing can still be vulnerable, especially email scripts. On 5/09/08 10:06 AM, "Joel Shapiro" wrote: > Hi again > > This is how the client replied when I asked for more info: > "I keep hearing about "sql injection attacks" being used to > compromise web pages. So I was wondering if Filemaker had a > notification service about updates and / or security issues. It may > be that Filemaker is "flying under the radar" when it comes to > malware writers and there is little reason for concern. Given the > security of the Internet nowadays I would rather be safe than sorry." > > It seems that FMI does *not* provide (decipherable) security update > notifications, so I can pass that along to the client. > > Investigating "SQL injection attacks" (e.g. print/sql-injection-attacks-safe/> ), I'm reminded of Jonathan > Stark's DevCon presentation in which he urged (numerous times) that > we Filter All Data, incl. the use of htmlentities() & strip_tags()... > > Do people here do that on *all* submittable fields? For all FMFind, > FMEdit & FMNew? Is there some guideline as to when that's more or > less important? Are there other functions you like to use for this? > > Also: > > 1) Is a site vulnerable to this type attack when using FileMaker > security for logins (internal or Ext Auth w/ AD OD)? (My guess is > "no" since these aren't fields in a web-accessible database...) > > 2) When using records w/ username & password fields for logins, would > using the format: > $login->AddDBParam('UserID','=="'.$_POST['user_name'].'"'); > be safe enough to avoid these types of attacks, since FM can't > process additional code like SQL seemingly can > (e.g. the submission of: ' or 1=1 -- ) ? > > 3) Are there any such risks within FMEdit calls? Does it matter > whether fields are submitted via radio buttons? > > 4) The above URL cautions against SQL procedures such as xp_cmdshell > and xp_grantlogin. Do FileMaker or FX.php (or the API) have any such > dangerous code? > > 5) Realistically, if a site is hosted locally, has an SSL cert, and > has no links from any external pages, is there much risk of it being > found and thusly hacked? > > Thanks, > -Joel > -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### 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 tim at nicheit.com.au Thu Sep 4 18:26:44 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Thu Sep 4 18:27:00 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> Dear Joel, I am not a security expert but... > This is how the client replied when I asked for more info: > "I keep hearing about "sql injection attacks" being used to > compromise web pages. So I was wondering if Filemaker had a > notification service about updates and / or security issues. It may > be that Filemaker is "flying under the radar" when it comes to > malware writers and there is little reason for concern. Given the > security of the Internet nowadays I would rather be safe than sorry." > > It seems that FMI does *not* provide (decipherable) security update > notifications, so I can pass that along to the client. > > Investigating "SQL injection attacks" (e.g. > ), I'm reminded of Jonathan Stark's DevCon presentation in which > he urged (numerous times) that we Filter All Data, incl. the use of > htmlentities() & strip_tags()... The vast difference between SQL and FM is that FM effectively has no command line - I do not believe an injection type attack could compromise a FM database. You could put whatever code you like into a FileMaker field through a new or edit, but that is not interpreted as run-code by the FM engine. Of course, you can get bad data, and if the attacker can guess some of the other field names, or knows them somehow, they could over-write records, add data in places you don't want, or hijack a delete routine to remove records that you want to keep... It *may* be able to compromise the web server, or at least knock it over through buffer overflows etc - that is more a php vulnerability than a FM one, and php does issue decent security advisories. > > > Do people here do that on *all* submittable fields? For all > FMFind, FMEdit & FMNew? Is there some guideline as to when that's > more or less important? Are there other functions you like to use > for this? I do not allow FMDelete - people can mark records as not to show, or for deletion later, but I never use an actual delete in any web page. FMNew I'm reasonably OK with - I do have at least one system where someone or something randomly adds extraneous records, but as it is an open system on the web for registrations, I expect some level of bad data. I do make sure key fields are there and conform with system requirements. FMFind I'm not worried about to any great degree - any system that allows a find does so for a reason - I want people to see stuff. Exception is systems where i have targeted user groups, and then I start storing some important info about the users into session variables to use in each find. FMEdit I am fairly careful with. > > > Also: > > 1) Is a site vulnerable to this type attack when using FileMaker > security for logins (internal or Ext Auth w/ AD OD)? (My guess is > "no" since these aren't fields in a web-accessible database...) It should be somewhat less vulnerable than an open site, as you have restricted who can see it. And the authentication side of it should be happening inside your network,making man in the middle more difficult. > > > 2) When using records w/ username & password fields for logins, > would using the format: > $login->AddDBParam('UserID','=="'.$_POST['user_name'].'"'); > be safe enough to avoid these types of attacks, since FM can't > process additional code like SQL seemingly can > (e.g. the submission of: ' or 1=1 -- ) ? You could be paranoid and do some parsing/stripping/filtering, but that's pretty much what I've been doing - it will either match or not - php itself may be vulnerable at this point. > > > 3) Are there any such risks within FMEdit calls? Does it matter > whether fields are submitted via radio buttons? FMEdit is probably the command to worry about the most, especially if the recid is ever visible, or your primary key. Like other web systems, if people can craft a GET call with either of those, they may be able to change data you are not expecting to be changed. > > > 4) The above URL cautions against SQL procedures such as xp_cmdshell > and xp_grantlogin. Do FileMaker or FX.php (or the API) have any > such dangerous code? Not that I aware of. > > > 5) Realistically, if a site is hosted locally, has an SSL cert, and > has no links from any external pages, is there much risk of it being > found and thusly hacked? Realistically. Not a lot. Like I said earlier, I had a FM system with a gaping known security hole, and the patch toi plug that hole was never triggered in 5 years (apart from my own testing...) - and that one was heavily used and publically accessible... Hope these musings help to some degree From ggt667 at gmail.com Fri Sep 5 00:34:41 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 5 00:34:44 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: > Do people here do that on *all* submittable fields? For all FMFind, FMEdit > & FMNew? Is there some guideline as to when that's more or less important? > Are there other functions you like to use for this? There are ways to address this, the customwebpublishing account should not have delete privs, and the CWPE should not be publically reachable. ggt667 From bob at patin.com Fri Sep 5 08:04:51 2008 From: bob at patin.com (Bob Patin) Date: Fri Sep 5 08:04:56 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> Message-ID: <8E8955AF-3FAB-45DA-A05A-7FA7F6263602@patin.com> On Sep 5, 2008, at 1:34 AM, Gjermund Gusland Thorsen wrote: > > There are ways to address this, the customwebpublishing account should > not have delete privs, Huh? Are you saying you *never* have a record-delete function in your web apps? I'd have some unhappy clients if that were the case... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From dbengston at tds.net Fri Sep 5 08:29:44 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Sep 5 08:30:01 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <8E8955AF-3FAB-45DA-A05A-7FA7F6263602@patin.com> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <8E8955AF-3FAB-45DA-A05A-7FA7F6263602@patin.com> Message-ID: <7AC0E065-5810-401D-AD2C-7A2D20AD7821@tds.net> It's a lot safer to just flag the record as inactive or "deleted." We do allow deletes in some cases, but not in others. Dale On Sep 5, 2008, at 9:04 AM, Bob Patin wrote: > > On Sep 5, 2008, at 1:34 AM, Gjermund Gusland Thorsen wrote: > >> >> There are ways to address this, the customwebpublishing account >> should >> not have delete privs, > > Huh? Are you saying you *never* have a record-delete function in > your web apps? > > I'd have some unhappy clients if that were the case... > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Fri Sep 5 09:56:12 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 5 09:56:14 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <8E8955AF-3FAB-45DA-A05A-7FA7F6263602@patin.com> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <8E8955AF-3FAB-45DA-A05A-7FA7F6263602@patin.com> Message-ID: Yes, my cwp user is not allowed to delete records, I have statusfield(number) 10 = webentry, this key colors the record yellow 1 = FM entry or webentry validated as a real order by a company representative, this key colors the record green 0 = deleted, this key colors the record red in admin mode Then the FileMaker users only see records through a relationship for statusfield != 0 ggt 2008/9/5 Bob Patin : > > On Sep 5, 2008, at 1:34 AM, Gjermund Gusland Thorsen wrote: > >> >> There are ways to address this, the customwebpublishing account should >> not have delete privs, > > Huh? Are you saying you *never* have a record-delete function in your web > apps? > > I'd have some unhappy clients if that were the case... > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From tcmeyers at troymeyers.com Fri Sep 5 10:07:41 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Fri Sep 5 10:07:45 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP Message-ID: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> We've just received a new duo-core Intel Mac Mini that came with Leopard and Apache 2.2 installed. The plan was to get this so that, without disturbing our existing Tiger Apache 1.3 / WPE machine, I could set up an SSL server and test it, so that I'd be able to swap it in when I was confident that all components, Apache SSL, PHP, and WPE were working as needed. I had thought it would be easy because (supposedly) you just do a little Terminal work to turn on the SSL capability in Apache 2.2. This may be the case, but I've run into a roadblock even before getting that far. On the existing PHP machine I've been using the Entropy installation, which I needed because we need the GD library. On the new machine, I installed the FMS9A 9.0v3 "full" (since it's Leopard) with the "Multiple Machines" and "Worker" options. That appeared to go fine, though I never went as far as reconfiguring the deployment... not ready for that yet. Then, I tried installing the Entropy PHP 5.2.4 package for Apache 2 (entropy-php-5.2.4-1-apache2.tar). It is listed for MacOS 10.4, but I thought since 10.5 wasn't mentioned anywhere it'd still be OK. This threw an error at the end of the installation. It killed Apache too. I hit the old posts in forums, and it looks like this is a well known problem without a clear-cut solution, and that the Entropy guy (Marc Liyanage) isn't/doesn't have time to come out with a new version. It's been months. Lots of fixes have been posted, but it looks like none work well for the majority. Some have suggested that abandoning Entropy PHP and moving to MAMP (http://www.mamp.info/en/mamp.html) as the solution. It sounds promising, but looking on that forum too shows that it hasn't been trouble-free. I'm not sure if I should take that plunge. So, I have burning questions. Is anyone using the WPE, Apache 2.2, and a PHP version with GD, (with or without SSL, I guess) on and Intel Mac Mini (or similar) under Leopard? What other PHP options are there that include GD, that will work on this machine? Will MAMP work with the WPE? What order of install is best-- FMS, PHP, enable SSL? I've wiped the new machine so that I can start over. If anyone can give me some advice I'd really appreciate it! -Troy From ggt667 at gmail.com Fri Sep 5 10:11:19 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 5 10:11:21 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> References: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> Message-ID: I guess you could download and compile php with gdlib from source under Leopard... ggt 2008/9/5 Troy Meyers : > We've just received a new duo-core Intel Mac Mini that came with Leopard and Apache 2.2 installed. The plan was to get this so that, without disturbing our existing Tiger Apache 1.3 / WPE machine, I could set up an SSL server and test it, so that I'd be able to swap it in when I was confident that all components, Apache SSL, PHP, and WPE were working as needed. > > I had thought it would be easy because (supposedly) you just do a little Terminal work to turn on the SSL capability in Apache 2.2. This may be the case, but I've run into a roadblock even before getting that far. > > On the existing PHP machine I've been using the Entropy installation, which I needed because we need the GD library. > > On the new machine, I installed the FMS9A 9.0v3 "full" (since it's Leopard) with the "Multiple Machines" and "Worker" options. That appeared to go fine, though I never went as far as reconfiguring the deployment... not ready for that yet. > > Then, I tried installing the Entropy PHP 5.2.4 package for Apache 2 (entropy-php-5.2.4-1-apache2.tar). It is listed for MacOS 10.4, but I thought since 10.5 wasn't mentioned anywhere it'd still be OK. This threw an error at the end of the installation. It killed Apache too. > > I hit the old posts in forums, and it looks like this is a well known problem without a clear-cut solution, and that the Entropy guy (Marc Liyanage) isn't/doesn't have time to come out with a new version. It's been months. Lots of fixes have been posted, but it looks like none work well for the majority. > > Some have suggested that abandoning Entropy PHP and moving to MAMP (http://www.mamp.info/en/mamp.html) as the solution. It sounds promising, but looking on that forum too shows that it hasn't been trouble-free. I'm not sure if I should take that plunge. > > So, I have burning questions. > > Is anyone using the WPE, Apache 2.2, and a PHP version with GD, (with or without SSL, I guess) on and Intel Mac Mini (or similar) under Leopard? > > What other PHP options are there that include GD, that will work on this machine? > > Will MAMP work with the WPE? > > What order of install is best-- FMS, PHP, enable SSL? > > I've wiped the new machine so that I can start over. If anyone can give me some advice I'd really appreciate it! > > -Troy > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From rogerkiwi at aol.com Fri Sep 5 10:14:34 2008 From: rogerkiwi at aol.com (Roger Moffat) Date: Fri Sep 5 10:14:43 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> References: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> Message-ID: <864CBF2B-DA53-400D-874C-63F53F181301@aol.com> On Sep 5, 2008, at 12:07 PM, Troy Meyers wrote: > Is anyone using the WPE, Apache 2.2, and a PHP version with GD, > (with or without SSL, I guess) on and Intel Mac Mini (or similar) > under Leopard? Yes, I'm using the last version Marc made as "beta 6" for Mac OS X Leopard, Apache 2 and PHP 5.2.5.. http://www.entropy.ch/phpbb2/viewtopic.php?t=2945 and follow the instructions that are in green in the first post of that thread. That worked for me when I set up my new Mac Pro in February 2008. Roger From rogerkiwi at aol.com Fri Sep 5 10:17:52 2008 From: rogerkiwi at aol.com (Roger Moffat) Date: Fri Sep 5 10:17:59 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <864CBF2B-DA53-400D-874C-63F53F181301@aol.com> References: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> <864CBF2B-DA53-400D-874C-63F53F181301@aol.com> Message-ID: <59D6C852-3CB5-45F4-9D5B-5978D0724A05@aol.com> On Sep 5, 2008, at 12:14 PM, Roger Moffat wrote: > > On Sep 5, 2008, at 12:07 PM, Troy Meyers wrote: > >> Is anyone using the WPE, Apache 2.2, and a PHP version with GD, >> (with or without SSL, I guess) on and Intel Mac Mini (or similar) >> under Leopard? > > Yes, I'm using the last version Marc made as "beta 6" for Mac OS X > Leopard, Apache 2 and PHP 5.2.5.. > > http://www.entropy.ch/phpbb2/viewtopic.php?t=2945 > > and follow the instructions that are in green in the first post of > that thread. > > That worked for me when I set up my new Mac Pro in February 2008. And I "think" that I installed this before installing FileMaker Server 9 and the WPE in a 2 machine setup - the FileMaker machine already existed on a separate Macintosh. Roger From dbengston at tds.net Fri Sep 5 10:56:52 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Sep 5 10:57:00 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <864CBF2B-DA53-400D-874C-63F53F181301@aol.com> References: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> <864CBF2B-DA53-400D-874C-63F53F181301@aol.com> Message-ID: <636AA097-B748-489D-8EC2-4D16AAFB5D24@tds.net> Yes, we are also using the Entropy beta on testing machines with 10.5.x. If you're wiping and starting over, I'd skip the FMP PHP install. It's just one more thing you'll have to shut off to use the Entropy version. Dale On Sep 5, 2008, at 11:14 AM, Roger Moffat wrote: > > On Sep 5, 2008, at 12:07 PM, Troy Meyers wrote: > >> Is anyone using the WPE, Apache 2.2, and a PHP version with GD, >> (with or without SSL, I guess) on and Intel Mac Mini (or similar) >> under Leopard? > > Yes, I'm using the last version Marc made as "beta 6" for Mac OS X > Leopard, Apache 2 and PHP 5.2.5.. > > http://www.entropy.ch/phpbb2/viewtopic.php?t=2945 > > and follow the instructions that are in green in the first post of > that thread. > > That worked for me when I set up my new Mac Pro in February 2008. > > Roger > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Fri Sep 5 11:41:41 2008 From: bob at patin.com (Bob Patin) Date: Fri Sep 5 11:41:49 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> References: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> Message-ID: <1D616820-BF23-4F7A-8C64-BB28F4EA583B@patin.com> Troy, I don't know if this pertains to your issue or not, but when I put PHP 5 on one of my web servers and then turned on webmail, it turned on PHP 4 as a default, probably because that is what it was written to use. As a result, web services wouldn't restart until I found the cause and turned PHP 4 off again. This one drove me crazy until I realized that SquirrelMail was doing it. This may be totally unrelated to your situation and if so, you'll know where to file this email! :) HTH, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 5, 2008, at 11:07 AM, Troy Meyers wrote: > We've just received a new duo-core Intel Mac Mini that came with > Leopard and Apache 2.2 installed. The plan was to get this so that, > without disturbing our existing Tiger Apache 1.3 / WPE machine, I > could set up an SSL server and test it, so that I'd be able to swap > it in when I was confident that all components, Apache SSL, PHP, and > WPE were working as needed. > > I had thought it would be easy because (supposedly) you just do a > little Terminal work to turn on the SSL capability in Apache 2.2. > This may be the case, but I've run into a roadblock even before > getting that far. > > On the existing PHP machine I've been using the Entropy > installation, which I needed because we need the GD library. > > On the new machine, I installed the FMS9A 9.0v3 "full" (since it's > Leopard) with the "Multiple Machines" and "Worker" options. That > appeared to go fine, though I never went as far as reconfiguring the > deployment... not ready for that yet. > > Then, I tried installing the Entropy PHP 5.2.4 package for Apache 2 > (entropy-php-5.2.4-1-apache2.tar). It is listed for MacOS 10.4, but > I thought since 10.5 wasn't mentioned anywhere it'd still be OK. > This threw an error at the end of the installation. It killed Apache > too. > > I hit the old posts in forums, and it looks like this is a well > known problem without a clear-cut solution, and that the Entropy guy > (Marc Liyanage) isn't/doesn't have time to come out with a new > version. It's been months. Lots of fixes have been posted, but it > looks like none work well for the majority. > > Some have suggested that abandoning Entropy PHP and moving to MAMP (http://www.mamp.info/en/mamp.html > ) as the solution. It sounds promising, but looking on that forum > too shows that it hasn't been trouble-free. I'm not sure if I should > take that plunge. > > So, I have burning questions. > > Is anyone using the WPE, Apache 2.2, and a PHP version with GD, > (with or without SSL, I guess) on and Intel Mac Mini (or similar) > under Leopard? > > What other PHP options are there that include GD, that will work on > this machine? > > Will MAMP work with the WPE? > > What order of install is best-- FMS, PHP, enable SSL? > > I've wiped the new machine so that I can start over. If anyone can > give me some advice I'd really appreciate it! > > -Troy > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Fri Sep 5 12:02:35 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Fri Sep 5 12:02:39 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP Message-ID: <4251986.73471220637755736.JavaMail.postmaster@troymeyers.com> Bob, Thanks for the warning, though I don't think I have that trouble. Roger, The install seems to have gone well. Apache is still alive and I put in a phpinfo.php file, and the version number and GD being enabled is as desired. Thanks! Dale, I've been looking at the FMS9 installer... and I don't see an option for omitting the PHP install. How do I skip it? I'm ready to do that installation now, except for that detail. Thank you all for your help. -Troy From tcmeyers at troymeyers.com Fri Sep 5 12:05:40 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Fri Sep 5 12:05:43 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP Message-ID: <6821621.73511220637940495.JavaMail.postmaster@troymeyers.com> ggt, Thanks, it's looking like I won't have to... I'd have to learn how to do all that, so I'm relieved! -Troy > I guess you could download and compile php with gdlib from source under > Leopard... > > ggt From tcmeyers at troymeyers.com Fri Sep 5 12:45:09 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Fri Sep 5 12:45:12 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP Message-ID: <2557856.73991220640309579.JavaMail.postmaster@troymeyers.com> Dale, I guess I figured it out. It's not at installation, but I found it in the Deployment Assistant, where I can choose to "use my existing installation of the PHP engine". I'm not ready to re-deploy, but I'll try to remember that when I do do the machine swap. Actually, that begs a question: is there any way to use both the currently deployed WPE/Apache machine and the new one with FileMaker? I was just sort of assuming that means buying another license or something, which I don't want to do, it'd just be for testing. -Troy From jsfmp at earthlink.net Fri Sep 5 13:18:51 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Sep 5 13:18:58 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <1485079.70151220574100541.JavaMail.postmaster@troymeyers.com> References: <1485079.70151220574100541.JavaMail.postmaster@troymeyers.com> Message-ID: Whoa, thanks Troy! I know this list has bandied about on using double-equal '==' and quotes, a la: '=="'.$_POST['user_name'].'"' as safe for logins, but read Troy's last line (below). Then try entering a valid username and then "* (double-quote asterisk) as the password on a site where you've used that structure! It seems using preg_replace() at LEAST to strip double-quotes is really necessary afterall! Thanks Troy, -Joel On Sep 4, 2008, at 5:21 PM, Troy Meyers wrote: > Joel, > > Regarding this one: > >> 2) When using records w/ username & password fields for logins, would >> using the format: >> >> $login->AddDBParam('UserID','=="'.$_POST['user_name'].'"'); be >> safe >> enough to avoid these types of attacks, since FM can't process >> additional code like SQL seemingly can >> >> (e.g. the submission of: ' or 1=1 -- ) ? > > ... I always use: > > $login->AddDBParam('UserID','=='.preg_replace('/([@*#?!=<>"])/','\\\ > ${1}',$_POST['user_name'])); > > ... because otherwise a wild card could be slipped in. This isn't > an execution-of-code problem, but just a vulnerability to someone > mischievously or not including a search wild card character. > > It seems like the double-equal '==' and quotes in: > '=="'.$_POST['user_name'].'"' > ...would prevent this, but actually it won't because if a hacker > includes a " in the submitted user ID, the " ends the literal and > then any subsequent wildcard works. > > -Troy > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Fri Sep 5 13:21:02 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Sep 5 13:21:11 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> Message-ID: <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> Thanks Webko & Kevin Webko, your line "The vast difference between SQL and FM is that FM effectively has no command line" is key, thanks! Kevin & Webko both mentioned PHP vulnerabilities: K: "PHP code for form processing can still be vulnerable" W: "It *may* be able to compromise the web server, or at least knock it over through buffer overflows etc - that is more a php vulnerability than a FM one, and php does issue decent security advisories." Any pointers on where I can get more info about these issues? As to my question "Do people here do that on *all* submittable fields?...", the "that" I'd meant was filtering the fields in PHP before submission to FM, e.g. using htmlentities(), strip_tags(), etc. Do people do *that* on all submittable fields? Thanks, -Joel On Sep 4, 2008, at 5:26 PM, Tim 'Webko' Booth wrote: > Dear Joel, > > I am not a security expert but... > >> This is how the client replied when I asked for more info: >> "I keep hearing about "sql injection attacks" being used to >> compromise web pages. So I was wondering if Filemaker had a >> notification service about updates and / or security issues. It >> may be that Filemaker is "flying under the radar" when it comes to >> malware writers and there is little reason for concern. Given the >> security of the Internet nowadays I would rather be safe than sorry." >> >> It seems that FMI does *not* provide (decipherable) security >> update notifications, so I can pass that along to the client. >> >> Investigating "SQL injection attacks" (e.g. > www.sitepoint.com/print/sql-injection-attacks-safe/> ), I'm >> reminded of Jonathan Stark's DevCon presentation in which he urged >> (numerous times) that we Filter All Data, incl. the use of >> htmlentities() & strip_tags()... > > The vast difference between SQL and FM is that FM effectively has > no command line - I do not believe an injection type attack could > compromise a FM database. You could put whatever code you like into > a FileMaker field through a new or edit, but that is not > interpreted as run-code by the FM engine. > > Of course, you can get bad data, and if the attacker can guess some > of the other field names, or knows them somehow, they could over- > write records, add data in places you don't want, or hijack a > delete routine to remove records that you want to keep... > > It *may* be able to compromise the web server, or at least knock it > over through buffer overflows etc - that is more a php > vulnerability than a FM one, and php does issue decent security > advisories. >> >> >> Do people here do that on *all* submittable fields? For all >> FMFind, FMEdit & FMNew? Is there some guideline as to when that's >> more or less important? Are there other functions you like to use >> for this? > > I do not allow FMDelete - people can mark records as not to show, > or for deletion later, but I never use an actual delete in any web > page. > > FMNew I'm reasonably OK with - I do have at least one system where > someone or something randomly adds extraneous records, but as it is > an open system on the web for registrations, I expect some level of > bad data. I do make sure key fields are there and conform with > system requirements. > > FMFind I'm not worried about to any great degree - any system that > allows a find does so for a reason - I want people to see stuff. > Exception is systems where i have targeted user groups, and then I > start storing some important info about the users into session > variables to use in each find. > > FMEdit I am fairly careful with. >> >> >> Also: >> >> 1) Is a site vulnerable to this type attack when using FileMaker >> security for logins (internal or Ext Auth w/ AD OD)? (My guess is >> "no" since these aren't fields in a web-accessible database...) > > It should be somewhat less vulnerable than an open site, as you > have restricted who can see it. And the authentication side of it > should be happening inside your network,making man in the middle > more difficult. >> >> >> 2) When using records w/ username & password fields for logins, >> would using the format: >> $login->AddDBParam('UserID','=="'.$_POST['user_name'].'"'); >> be safe enough to avoid these types of attacks, since FM can't >> process additional code like SQL seemingly can >> (e.g. the submission of: ' or 1=1 -- ) ? > > You could be paranoid and do some parsing/stripping/filtering, but > that's pretty much what I've been doing - it will either match or > not - php itself may be vulnerable at this point. >> >> >> 3) Are there any such risks within FMEdit calls? Does it matter >> whether fields are submitted via radio buttons? > > FMEdit is probably the command to worry about the most, especially > if the recid is ever visible, or your primary key. Like other web > systems, if people can craft a GET call with either of those, they > may be able to change data you are not expecting to be changed. >> >> >> 4) The above URL cautions against SQL procedures such as >> xp_cmdshell and xp_grantlogin. Do FileMaker or FX.php (or the >> API) have any such dangerous code? > > Not that I aware of. >> >> >> 5) Realistically, if a site is hosted locally, has an SSL cert, >> and has no links from any external pages, is there much risk of it >> being found and thusly hacked? > > Realistically. Not a lot. > Like I said earlier, I had a FM system with a gaping known security > hole, and the patch toi plug that hole was never triggered in 5 > years (apart from my own testing...) - and that one was heavily > used and publically accessible... > > Hope these musings help to some degree > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Fri Sep 5 13:38:04 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Fri Sep 5 13:38:07 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? Message-ID: <8045541.74271220643484308.JavaMail.postmaster@troymeyers.com> Joel, Thanks for the acknowledgment. Yes, testing with the two characters "* is a shocker! -Troy > Whoa, thanks Troy! > > I know this list has bandied about on using double-equal '==' and > quotes, a la: > > '=="'.$_POST['user_name'].'"' > > as safe for logins, but read Troy's last line (below). Then try > entering a valid username and then "* (double-quote asterisk) as the > password on a site where you've used that structure! > > It seems using preg_replace() at LEAST to strip double-quotes is > really necessary afterall! > > Thanks Troy, > > -Joel From ggt667 at gmail.com Fri Sep 5 13:43:13 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 5 13:43:15 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <8045541.74271220643484308.JavaMail.postmaster@troymeyers.com> References: <8045541.74271220643484308.JavaMail.postmaster@troymeyers.com> Message-ID: And using unicode for language for the password field as well as unicode for the username; if it's an email, also helps. ggt 2008/9/5 Troy Meyers : > Joel, > > Thanks for the acknowledgment. Yes, testing with the two characters "* is a shocker! > > -Troy > > >> Whoa, thanks Troy! >> >> I know this list has bandied about on using double-equal '==' and >> quotes, a la: >> >> '=="'.$_POST['user_name'].'"' >> >> as safe for logins, but read Troy's last line (below). Then try >> entering a valid username and then "* (double-quote asterisk) as the >> password on a site where you've used that structure! >> >> It seems using preg_replace() at LEAST to strip double-quotes is >> really necessary afterall! >> >> Thanks Troy, >> >> -Joel > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jsfmp at earthlink.net Fri Sep 5 14:09:34 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Sep 5 14:09:42 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <8045541.74271220643484308.JavaMail.postmaster@troymeyers.com> Message-ID: Do you mean setting the index language to unicode within FMP field definitions? I realize that that can help with Case-Sensitivity, but how could it help with email addresses? (since the =="xx" seems to allow for appropriate use of @ symbols)? -Joel On Sep 5, 2008, at 12:43 PM, Gjermund Gusland Thorsen wrote: > And using unicode for language for the password field as well as > unicode for the username; if it's an email, also helps. > > ggt > > 2008/9/5 Troy Meyers : >> Joel, >> >> Thanks for the acknowledgment. Yes, testing with the two >> characters "* is a shocker! >> >> -Troy >> >> >>> Whoa, thanks Troy! >>> >>> I know this list has bandied about on using double-equal '==' and >>> quotes, a la: >>> >>> '=="'.$_POST['user_name'].'"' >>> >>> as safe for logins, but read Troy's last line (below). Then try >>> entering a valid username and then "* (double-quote asterisk) as the >>> password on a site where you've used that structure! >>> >>> It seems using preg_replace() at LEAST to strip double-quotes is >>> really necessary afterall! >>> >>> Thanks Troy, >>> >>> -Joel >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From andersm at alamark.com Fri Sep 5 14:51:13 2008 From: andersm at alamark.com (Anders Monsen) Date: Fri Sep 5 14:51:17 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropyand MAMP In-Reply-To: <6821621.73511220637940495.JavaMail.postmaster@troymeyers.com> References: <6821621.73511220637940495.JavaMail.postmaster@troymeyers.com> Message-ID: I'll have to double check to see if GD was included, but I just enabled PHP on some MacBooks with Leopard, by uncommenting one line for PHP in the httpd.conf file. For some reason the Entropy PHP did not install, and I read instructions somewhere online how to enable PHP just by changing this file (via the Terminal using "sudo pico httpd.conf") and then creating a copy of the php.ini.default -> php.ini in the /private/etc/ folder. The MacBooks then all served up the phpinfo() test page. It was a lot faster than installing the Entropy package, which has worked fine in the past. Anders Monsen On Sep 5, 2008, at 1:05 PM, Troy Meyers wrote: > ggt, > > Thanks, it's looking like I won't have to... I'd have to learn how > to do all that, so I'm relieved! > > -Troy > >> I guess you could download and compile php with gdlib from source >> under >> Leopard... >> >> ggt > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From ggt667 at gmail.com Fri Sep 5 15:44:40 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Sep 5 15:44:43 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <8045541.74271220643484308.JavaMail.postmaster@troymeyers.com> Message-ID: Just a habit, if you are to check for content in authentication fields, and characters outside [A-Z][a-z][0-9] ggt667 2008/9/5 Joel Shapiro : > Do you mean setting the index language to unicode within FMP field > definitions? > > I realize that that can help with Case-Sensitivity, but how could it help > with email addresses? (since the =="xx" seems to allow for appropriate use > of @ symbols)? > > -Joel > > > On Sep 5, 2008, at 12:43 PM, Gjermund Gusland Thorsen wrote: > >> And using unicode for language for the password field as well as >> unicode for the username; if it's an email, also helps. >> >> ggt >> >> 2008/9/5 Troy Meyers : >>> >>> Joel, >>> >>> Thanks for the acknowledgment. Yes, testing with the two characters "* is >>> a shocker! >>> >>> -Troy >>> >>> >>>> Whoa, thanks Troy! >>>> >>>> I know this list has bandied about on using double-equal '==' and >>>> quotes, a la: >>>> >>>> '=="'.$_POST['user_name'].'"' >>>> >>>> as safe for logins, but read Troy's last line (below). Then try >>>> entering a valid username and then "* (double-quote asterisk) as the >>>> password on a site where you've used that structure! >>>> >>>> It seems using preg_replace() at LEAST to strip double-quotes is >>>> really necessary afterall! >>>> >>>> Thanks Troy, >>>> >>>> -Joel >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From rogerkiwi at aol.com Fri Sep 5 16:49:58 2008 From: rogerkiwi at aol.com (Roger Moffat) Date: Fri Sep 5 16:50:18 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropyand MAMP In-Reply-To: References: <6821621.73511220637940495.JavaMail.postmaster@troymeyers.com> Message-ID: <4E461A0F-9BD1-4AD0-967C-7F9EFF6E31E3@aol.com> On Sep 5, 2008, at 4:51 PM, Anders Monsen wrote: > I'll have to double check to see if GD was included, but I just > enabled PHP on some MacBooks with Leopard, by uncommenting one line > for PHP in the httpd.conf file. This is the big problem - the GD Libary is NOT included by Apple in their install of PHP, and in my case I need it on my site for dynamic resizing of images, so have to use something else. The install of Entropy as I noted from this page http://www.entropy.ch/phpbb2/viewtopic.php?t=2945 has worked for me since February, and Troy Meyers reports that it installed effortlessly for him today. The only downside to this is that it's now one version of PHP behind - 5.2.5 instead of 5.2.6 Roger From vicepresident at comcast.net Fri Sep 5 16:59:19 2008 From: vicepresident at comcast.net (Jon & Jane Montgomery) Date: Fri Sep 5 16:59:24 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropyand MAMP In-Reply-To: <4E461A0F-9BD1-4AD0-967C-7F9EFF6E31E3@aol.com> Message-ID: Roger, How big a deal is it to be down one version? Jon Montgomery On 9/5/08 5:49 PM, "Roger Moffat" wrote: > The only downside to this is that it's now one version of PHP behind - > 5.2.5 instead of 5.2.6 > > Roger From jsfmp at earthlink.net Fri Sep 5 17:15:36 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Sep 5 17:15:43 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <1485079.70151220574100541.JavaMail.postmaster@troymeyers.com> Message-ID: <91760F54-4630-46CF-8EEB-C17553058571@earthlink.net> FYI- Since I don't need to be as restrictive as Troy on what are valid characters, I'm only stripping out all double-quotes in the submission (just via str_replace), and I'm keeping the double-quotes on either side of the $_POST. This way someone could create a password like "p@55w0rd", and the @ would be legitimate and retrievable -- while submitting "* would not validate, as it does without the str_replace(). $login->AddDBParam('Pass', '=="' . str_replace('"', '', $_POST ['password']) . '"'); (anyone please let me know if this can break) -Joel On Sep 5, 2008, at 12:18 PM, Joel Shapiro wrote: > Whoa, thanks Troy! > > I know this list has bandied about on using double-equal '==' and > quotes, a la: > '=="'.$_POST['user_name'].'"' > as safe for logins, but read Troy's last line (below). Then try > entering a valid username and then "* (double-quote asterisk) as > the password on a site where you've used that structure! > > It seems using preg_replace() at LEAST to strip double-quotes is > really necessary afterall! > > Thanks Troy, > -Joel > > > On Sep 4, 2008, at 5:21 PM, Troy Meyers wrote: > >> Joel, >> >> Regarding this one: >> >>> 2) When using records w/ username & password fields for logins, >>> would >>> using the format: >>> >>> $login->AddDBParam('UserID','=="'.$_POST['user_name'].'"'); >>> be safe >>> enough to avoid these types of attacks, since FM can't process >>> additional code like SQL seemingly can >>> >>> (e.g. the submission of: ' or 1=1 -- ) ? >> >> ... I always use: >> >> $login->AddDBParam('UserID','=='.preg_replace('/([@*#?!=<>"])/','\\ >> \${1}',$_POST['user_name'])); >> >> ... because otherwise a wild card could be slipped in. This isn't >> an execution-of-code problem, but just a vulnerability to someone >> mischievously or not including a search wild card character. >> >> It seems like the double-equal '==' and quotes in: >> '=="'.$_POST['user_name'].'"' >> ...would prevent this, but actually it won't because if a hacker >> includes a " in the submitted user ID, the " ends the literal and >> then any subsequent wildcard works. >> >> -Troy >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Fri Sep 5 19:05:53 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Sep 5 19:06:01 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <2557856.73991220640309579.JavaMail.postmaster@troymeyers.com> References: <2557856.73991220640309579.JavaMail.postmaster@troymeyers.com> Message-ID: <5C0328A2-6036-4AC3-B5C8-DE5DAFF14DC8@tds.net> I believe it's still limit one WPE per FMS, even though they give you that big list-looking block with the header Web Publishing Engines. Dale On Sep 5, 2008, at 1:45 PM, Troy Meyers wrote: > Dale, > > I guess I figured it out. It's not at installation, but I found it > in the Deployment Assistant, where I can choose to "use my existing > installation of the PHP engine". > > I'm not ready to re-deploy, but I'll try to remember that when I do > do the machine swap. > > Actually, that begs a question: is there any way to use both the > currently deployed WPE/Apache machine and the new one with > FileMaker? I was just sort of assuming that means buying another > license or something, which I don't want to do, it'd just be for > testing. > > -Troy > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Fri Sep 5 19:12:53 2008 From: dbengston at tds.net (Dale Bengston) Date: Fri Sep 5 19:13:05 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> Message-ID: <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> Yes. Besides the malicious use of "sql injections" and such, people copy text from word files, emails, and just about everywhere else and paste it in your input fields. (This is a good thing - people shouldn't have to re-type.) If they have curly quotes, or other high- ascii stuff, and their document uses different encoding than your site, weird things can result. Better to catch it and wash the data before it hits your tables. Dale On Sep 5, 2008, at 2:21 PM, Joel Shapiro wrote: > As to my question "Do people here do that on *all* submittable > fields?...", the "that" I'd meant was filtering the fields in PHP > before submission to FM, e.g. using htmlentities(), strip_tags(), > etc. Do people do *that* on all submittable fields? From rogerkiwi at aol.com Fri Sep 5 19:36:50 2008 From: rogerkiwi at aol.com (Roger Moffat) Date: Fri Sep 5 19:37:03 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropyand MAMP In-Reply-To: References: Message-ID: <5E87146A-F4F9-451A-AD6C-B27A78F5E523@aol.com> On Sep 5, 2008, at 6:59 PM, Jon & Jane Montgomery wrote: > How big a deal is it to be down one version? Well personally I'm not worried about it right now, but since Entropy.ch isn't being updated at all it seems, eventually instead of being a x.x.1 version behind it will be an x.1.x behind, or eventually a 1.x.x behind. If people are members of the Apple Developers Connection it would be worth while filing a bug report about the missing GD Library, and other things, with a hope to urging Apple to include these things in what they supply, and then that way they'll take care of the security updates etc. Roger From csinfo at criticalsolution.com Fri Sep 5 12:25:34 2008 From: csinfo at criticalsolution.com (John Funk) Date: Fri Sep 5 23:17:50 2008 Subject: [FX.php List] PHP results In-Reply-To: Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: image[2].jpg Type: application/octet-stream Size: 484639 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20080905/704210c3/image2-0001.obj From ggt667 at gmail.com Sat Sep 6 01:02:14 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Sep 6 01:02:18 2008 Subject: [FX.php List] PHP results In-Reply-To: References: Message-ID: Does the version of IE matter? ggt 2008/9/5 John Funk : > I have a solution where the user logs in and they see their data in a nice > html formated page. Works great for most. But one user on a PC gets the > results as a bunch of data strings, not xml, not html but the raw data > returned with a date stamp. Please see attached screen grab. > It must be Explorer.....Any ideas? > John Funk > > > _______________________________________________ > 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 6 01:04:26 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Sep 6 01:04:28 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> Message-ID: It's is simple to avoid "FileMaker XML RPC injections" you make sure WPE and web server is on 2 different machines, and you block access to WPE from the outside world, but open for the web server. ggt 2008/9/6 Dale Bengston : > Yes. Besides the malicious use of "sql injections" and such, people copy > text from word files, emails, and just about everywhere else and paste it in > your input fields. (This is a good thing - people shouldn't have to > re-type.) If they have curly quotes, or other high-ascii stuff, and their > document uses different encoding than your site, weird things can result. > Better to catch it and wash the data before it hits your tables. > > Dale > > On Sep 5, 2008, at 2:21 PM, Joel Shapiro wrote: > >> As to my question "Do people here do that on *all* submittable >> fields?...", the "that" I'd meant was filtering the fields in PHP before >> submission to FM, e.g. using htmlentities(), strip_tags(), etc. Do people >> do *that* on all submittable fields? > > _______________________________________________ > 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 6 01:06:12 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Sep 6 01:06:14 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropyand MAMP In-Reply-To: <5E87146A-F4F9-451A-AD6C-B27A78F5E523@aol.com> References: <5E87146A-F4F9-451A-AD6C-B27A78F5E523@aol.com> Message-ID: I still use php4, alot of my scripts are no longer working in 5... ggt 2008/9/6 Roger Moffat : > > On Sep 5, 2008, at 6:59 PM, Jon & Jane Montgomery wrote: > >> How big a deal is it to be down one version? > > Well personally I'm not worried about it right now, but since Entropy.ch > isn't being updated at all it seems, eventually instead of being a x.x.1 > version behind it will be an x.1.x behind, or eventually a 1.x.x behind. > > If people are members of the Apple Developers Connection it would be worth > while filing a bug report about the missing GD Library, and other things, > with a hope to urging Apple to include these things in what they supply, and > then that way they'll take care of the security updates etc. > > Roger > _______________________________________________ > 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 6 08:16:51 2008 From: bob at patin.com (Bob Patin) Date: Sat Sep 6 08:16:57 2008 Subject: [FX.php List] How to combine two sets of query results Message-ID: <87868716-8EA9-4865-956A-BD4F67BAB280@patin.com> I have 2 query results sets--logResult and log2Result. Is there an easy way to combine these two before I parse, massage, and display these result sets? What I'd like is to be able to combine these two into something like "log3Result" so that I can use my existing FOREACH loop on queries from 2 different databases at the same time. Because of the nature of the display, I have to sort the query results before the FOREACH loop starts; each of the 2 queries are already sorted, but what I'd *really* like to do is do query 1 do query 2 combine query 1 with query 2 into 1 resultset sort combined resultset run my loop If anyone can guide me on the right way to do this, I'd be most grateful. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From jschwartz at exit445.com Sat Sep 6 08:36:25 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Sep 6 08:37:40 2008 Subject: [FX.php List] How to combine two sets of query results In-Reply-To: <87868716-8EA9-4865-956A-BD4F67BAB280@patin.com> References: <87868716-8EA9-4865-956A-BD4F67BAB280@patin.com> Message-ID: Morning Bob. Hope you are staying dry in the hurricane today. Isn't this simply where you would add two arrays? There is an array merge function: http://us.php.net/manual/en/function.array-merge.php But I'm guess that perhaps a simple arraycombined = array1.array2 might wrk. Not sure if that can be done. Jonathan At 9:16 AM -0500 9/6/08, Bob Patin wrote: >I have 2 query results sets--logResult and log2Result. > >Is there an easy way to combine these two before I parse, massage, >and display these result sets? > >What I'd like is to be able to combine these two into something like >"log3Result" so that I can use my existing FOREACH loop on queries >from 2 different databases at the same time. Because of the nature >of the display, I have to sort the query results before the FOREACH >loop starts; each of the 2 queries are already sorted, but what I'd >*really* like to do is > >do query 1 > >do query 2 > >combine query 1 with query 2 into 1 resultset > >sort combined resultset > >run my loop > >If anyone can guide me on the right way to do this, I'd be most grateful. > >Thanks, > >Bob Patin >Longterm Solutions >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com >iChat: bobpatin >AIM: longterm1954 >FileMaker 9 Certified Developer >Member of FileMaker Business Alliance and FileMaker TechNet >-------------------------- >FileMaker hosting and consulting for all versions of FileMaker >PHP * Full email services * Free DNS hosting * Colocation * Consulting > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dbengston at tds.net Sat Sep 6 08:57:14 2008 From: dbengston at tds.net (Dale Bengston) Date: Sat Sep 6 08:57:21 2008 Subject: [FX.php List] PHP results In-Reply-To: References: Message-ID: Hi John, If that makes an HTML table in other browsers, then I think you should be looking for a mal-formed tag somewhere. A missing closing quote on an attribute or something, like this: Dale On Sep 5, 2008, at 1:25 PM, John Funk wrote: I have a solution where the user logs in and they see their data in a nice html formated page. Works great for most. But one user on a PC gets the results as a bunch of data strings, not xml, not html but the raw data returned with a date stamp. Please see attached screen grab. It must be Explorer.....Any ideas? John Funk _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080906/b28b2b53/attachment-0001.html From jsfmp at earthlink.net Sat Sep 6 12:48:29 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Sat Sep 6 12:48:37 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> Message-ID: <60D10943-7283-4720-A114-04E003E5F083@earthlink.net> Hi Dale I thought using UTF-8 was enough to deal with pasted-in text, e.g. w/ curly quotes. It seemed to have been sufficient on one of my pages where people were pasting from Word. What function(s) do you use to "wash the data"? -Joel On Sep 5, 2008, at 6:12 PM, Dale Bengston wrote: > Yes. Besides the malicious use of "sql injections" and such, people > copy text from word files, emails, and just about everywhere else > and paste it in your input fields. (This is a good thing - people > shouldn't have to re-type.) If they have curly quotes, or other > high-ascii stuff, and their document uses different encoding than > your site, weird things can result. Better to catch it and wash the > data before it hits your tables. > > Dale > > On Sep 5, 2008, at 2:21 PM, Joel Shapiro wrote: > >> As to my question "Do people here do that on *all* submittable >> fields?...", the "that" I'd meant was filtering the fields in PHP >> before submission to FM, e.g. using htmlentities(), strip_tags(), >> etc. Do people do *that* on all submittable fields? > > _______________________________________________ > 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 Sat Sep 6 12:55:38 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Sat Sep 6 12:55:49 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> Message-ID: hmm... Can you say any more about that? Is XML-RPC installed by default in PHP? It looks like it might need to be installed separately. Also, one site I looked at said the vulnerability through XML-RPC was still SQL injection attacks... so if there's no SQL in a FM/PHP solution, what's the risk? -Joel On Sep 6, 2008, at 12:04 AM, Gjermund Gusland Thorsen wrote: > It's is simple to avoid "FileMaker XML RPC injections" you make sure > WPE and web server is on 2 different machines, and you block access to > WPE from the outside world, but open for the web server. > > ggt > > 2008/9/6 Dale Bengston : >> Yes. Besides the malicious use of "sql injections" and such, >> people copy >> text from word files, emails, and just about everywhere else and >> paste it in >> your input fields. (This is a good thing - people shouldn't have to >> re-type.) If they have curly quotes, or other high-ascii stuff, >> and their >> document uses different encoding than your site, weird things can >> result. >> Better to catch it and wash the data before it hits your tables. >> >> Dale >> >> On Sep 5, 2008, at 2:21 PM, Joel Shapiro wrote: >> >>> As to my question "Do people here do that on *all* submittable >>> fields?...", the "that" I'd meant was filtering the fields in PHP >>> before >>> submission to FM, e.g. using htmlentities(), strip_tags(), etc. >>> Do people >>> do *that* on all submittable fields? >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Sat Sep 6 14:04:07 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Sep 6 14:04:10 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> Message-ID: The clue is to have your php files on a separate server than the FileMaker WPE ggt 2008/9/6 Joel Shapiro : > hmm... Can you say any more about that? > > Is XML-RPC installed by default in PHP? It looks like it might need to be > installed separately. > > Also, one site I looked at said the vulnerability through XML-RPC was still > SQL injection attacks... so if there's no SQL in a FM/PHP solution, what's > the risk? > > -Joel > > > On Sep 6, 2008, at 12:04 AM, Gjermund Gusland Thorsen wrote: > >> It's is simple to avoid "FileMaker XML RPC injections" you make sure >> WPE and web server is on 2 different machines, and you block access to >> WPE from the outside world, but open for the web server. >> >> ggt >> >> 2008/9/6 Dale Bengston : >>> >>> Yes. Besides the malicious use of "sql injections" and such, people copy >>> text from word files, emails, and just about everywhere else and paste it >>> in >>> your input fields. (This is a good thing - people shouldn't have to >>> re-type.) If they have curly quotes, or other high-ascii stuff, and their >>> document uses different encoding than your site, weird things can result. >>> Better to catch it and wash the data before it hits your tables. >>> >>> Dale >>> >>> On Sep 5, 2008, at 2:21 PM, Joel Shapiro wrote: >>> >>>> As to my question "Do people here do that on *all* submittable >>>> fields?...", the "that" I'd meant was filtering the fields in PHP before >>>> submission to FM, e.g. using htmlentities(), strip_tags(), etc. Do >>>> people >>>> do *that* on all submittable fields? >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 andretozzini at gmail.com Sat Sep 6 14:37:58 2008 From: andretozzini at gmail.com (Andre Rabha Tozzini) Date: Sat Sep 6 14:38:06 2008 Subject: [FX.php List] How to get the Accessing FileMaker Pro 7/8/9 data and Using FileMaker URL messages of my fx.php page? In-Reply-To: References: Message-ID: <3257792C-DAAC-4A43-A183-D1AD0DD2F4D3@gmail.com> Hi Folks, I wanna know how i can get this messages of my fx.php page Accessing FileMaker Pro 7/8/9 data. Using FileMaker URL: http://Admin:Admin@localhost:80/fmi/xml/FMPXMLRESULT.xml?-db=videos.fp7&-lay=videos&-max=all&-findall Thanx a lot Andre Rabha Tozzini Filemaker Developer andretozzini@gmail.com MSN: andtozzini@hotmail.com Skype: tozzini AIM: tozzini@mac.com Nextel ID: 55*8309*11 Celular: 55 21 7629-6371 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080906/31ff6471/attachment.html From ggt667 at gmail.com Sat Sep 6 14:52:17 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Sep 6 14:52:19 2008 Subject: [FX.php List] How to get the Accessing FileMaker Pro 7/8/9 data and Using FileMaker URL messages of my fx.php page? In-Reply-To: <3257792C-DAAC-4A43-A183-D1AD0DD2F4D3@gmail.com> References: <3257792C-DAAC-4A43-A183-D1AD0DD2F4D3@gmail.com> Message-ID: Looks like debugging is enabled? There is nothing in your scripts that outputs that stuff. ggt 2008/9/6 Andre Rabha Tozzini : > Hi Folks, > > I wanna know how i can get this messages of my fx.php page > > Accessing FileMaker Pro 7/8/9 data. > > Using FileMaker > URL: http://Admin:Admin@localhost:80/fmi/xml/FMPXMLRESULT.xml?-db=videos.fp7&-lay=videos&-max=all&-findall > > Thanx a lot > > > > Andre Rabha Tozzini > Filemaker Developer > andretozzini@gmail.com > MSN: andtozzini@hotmail.com > Skype: tozzini > AIM: tozzini@mac.com > Nextel ID: 55*8309*11 > Celular: 55 21 7629-6371 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From andretozzini at gmail.com Sat Sep 6 14:55:00 2008 From: andretozzini at gmail.com (Andre Rabha Tozzini) Date: Sat Sep 6 14:55:07 2008 Subject: [FX.php List] How to get the Accessing FileMaker Pro 7/8/9 data and Using FileMaker URL messages of my fx.php page? In-Reply-To: References: <3257792C-DAAC-4A43-A183-D1AD0DD2F4D3@gmail.com> Message-ID: <1F05EB3B-4D6D-40E1-B982-5EFFEB2A18E6@gmail.com> GGT thanx alot... this is the problem... thanx... ART On 06/09/2008, at 17:52, Gjermund Gusland Thorsen wrote: > Looks like debugging is enabled? > > There is nothing in your scripts that outputs that stuff. > > ggt > > 2008/9/6 Andre Rabha Tozzini : >> Hi Folks, >> >> I wanna know how i can get this messages of my fx.php page >> >> Accessing FileMaker Pro 7/8/9 data. >> >> Using FileMaker >> URL: http://Admin:Admin@localhost:80/fmi/xml/FMPXMLRESULT.xml?-db=videos.fp7&-lay=videos&-max=all&-findall >> >> Thanx a lot >> >> >> >> Andre Rabha Tozzini >> Filemaker Developer >> andretozzini@gmail.com >> MSN: andtozzini@hotmail.com >> Skype: tozzini >> AIM: tozzini@mac.com >> Nextel ID: 55*8309*11 >> Celular: 55 21 7629-6371 >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 csinfo at comcast.net Sat Sep 6 17:33:10 2008 From: csinfo at comcast.net (John Funk) Date: Sat Sep 6 17:33:17 2008 Subject: [FX.php List] How to get the Accessing FileMaker Pro 7/8/9 data andUsing FileMaker URL messages of my fx.php page? In-Reply-To: <3257792C-DAAC-4A43-A183-D1AD0DD2F4D3@gmail.com> Message-ID: <20080906233314.ED401BCB56@mail.iviking.org> Look for a line that says: define('DEBUG', True); change it to false _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Andre Rabha Tozzini Sent: Saturday, September 06, 2008 3:38 PM To: FX.php Discussion List Subject: [FX.php List] How to get the Accessing FileMaker Pro 7/8/9 data andUsing FileMaker URL messages of my fx.php page? Hi Folks, I wanna know how i can get this messages of my fx.php page Accessing FileMaker Pro 7/8/9 data. Using FileMaker URL: http://Admin:Admin@localhost:80/fmi/xml/FMPXMLRESULT.xml?-db=videos.fp7 &-lay=videos&-max=all&-findall Thanx a lot Andre Rabha Tozzini Filemaker Developer andretozzini@gmail.com MSN: andtozzini@hotmail.com Skype: tozzini AIM: tozzini@mac.com Nextel ID: 55*8309*11 Celular: 55 21 7629-6371 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080906/64ab462a/attachment-0001.html From andretozzini at gmail.com Sat Sep 6 19:26:15 2008 From: andretozzini at gmail.com (Andre Rabha Tozzini) Date: Sat Sep 6 19:26:25 2008 Subject: [FX.php List] How to get the Accessing FileMaker Pro 7/8/9 data andUsing FileMaker URL messages of my fx.php page? In-Reply-To: <20080906233314.ED401BCB56@mail.iviking.org> References: <20080906233314.ED401BCB56@mail.iviking.org> Message-ID: Thanx John, U r right, that's it... Thanx... ART On 06/09/2008, at 20:33, John Funk wrote: > Look for a line that says: > define('DEBUG', True); > change it to false > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Andre Rabha Tozzini > Sent: Saturday, September 06, 2008 3:38 PM > To: FX.php Discussion List > Subject: [FX.php List] How to get the Accessing FileMaker Pro 7/8/9 > data andUsing FileMaker URL messages of my fx.php page? > > Hi Folks, > > I wanna know how i can get this messages of my fx.php page > > Accessing FileMaker Pro 7/8/9 data. > > Using FileMaker URL: http://Admin:Admin@localhost:80/fmi/xml/FMPXMLRESULT.xml?-db=videos.fp7&-lay=videos&-max=all&-findall > > Thanx a lot > > > > > > > Andre Rabha Tozzini > Filemaker Developer > andretozzini@gmail.com > MSN: andtozzini@hotmail.com > Skype: tozzini > AIM: tozzini@mac.com > Nextel ID: 55*8309*11 > Celular: 55 21 7629-6371 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080906/80510210/attachment.html From bob at patin.com Sat Sep 6 19:36:47 2008 From: bob at patin.com (Bob Patin) Date: Sat Sep 6 19:36:59 2008 Subject: [FX.php List] Annoying PHP warning Message-ID: I'm getting this warning, and I *think* it's because I have an undeclared variable, but if that's the case I can't find it. Can anyone tell me the most common cause for this error? ERROR MSG: Warning: Unknown(): Your script possibly relies on a session side- effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080906/61a29dd0/attachment.html From ggt667 at gmail.com Sun Sep 7 01:29:22 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 7 01:29:26 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: Do you use _GET and _POST prefixes in variables? ggt 2008/9/7 Bob Patin : > I'm getting this warning, and I *think* it's because I have an undeclared > variable, but if that's the case I can't find it. > Can anyone tell me the most common cause for this error? > ERROR MSG: > Warning: Unknown(): Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session extension > does not consider global variables as a source of data, unless > register_globals is enabled. You can disable this functionality and this > warning by setting session.bug_compat_42 or session.bug_compat_warn to off, > respectively. in Unknown on line 0 > Thanks, > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From jschwartz at exit445.com Sun Sep 7 07:24:07 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Sep 7 07:27:28 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: Bob, When I was first learning fx.php, I would run into this error all the time. I would try and determine what it meant, but I was never successful. The error would simply go away as strangely as it appeared. It still occurs from time to time while developing. I find that I have usually made an error of some kind and fixing the error solves the problem. I also would enjoy knowing the answer to this one. J At 8:36 PM -0500 9/6/08, Bob Patin wrote: >I'm getting this warning, and I *think* it's because I have an >undeclared variable, but if that's the case I can't find it. > >Can anyone tell me the most common cause for this error? > >ERROR MSG: > >Warning: Unknown(): Your script possibly relies on a session >side-effect which existed until PHP 4.2.3. Please be advised that >the session extension does not consider global variables as a source >of data, unless register_globals is enabled. You can disable this >functionality and this warning by setting session.bug_compat_42 or >session.bug_compat_warn to off, respectively. in Unknown on line 0 > >Thanks, > >Bob Patin >Longterm Solutions >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com >iChat: bobpatin >AIM: longterm1954 >FileMaker 9 Certified Developer >Member of FileMaker Business Alliance and FileMaker TechNet >-------------------------- >FileMaker hosting and consulting for all versions of FileMaker >PHP * Full email services * Free DNS hosting * Colocation * Consulting > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/7d88716a/attachment-0001.html From leo at finalresort.org Sun Sep 7 07:52:46 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Sun Sep 7 07:52:06 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: Some thoughts: 1) Do you have the setting register_globals set to On? 2) Do you somewhere in your code use variable names such as $myVar where a session variable with the same name (for example $_SESSION ['myVar']) is/have been used? 3) Are you using session_register() somewhere in your code, such as session_register('variable_name')? I've never seen that error before, but my guess is that #2 is the problem (and to be fair, #1 is in error as well ;-) 7 sep 2008 kl. 03.36 skrev Bob Patin: > I'm getting this warning, and I *think* it's because I have an > undeclared variable, but if that's the case I can't find it. > > Can anyone tell me the most common cause for this error? > > ERROR MSG: > > Warning: Unknown(): Your script possibly relies on a session side- > effect which existed until PHP 4.2.3. Please be advised that the > session extension does not consider global variables as a source of > data, unless register_globals is enabled. You can disable this > functionality and this warning by setting session.bug_compat_42 or > session.bug_compat_warn to off, respectively. in Unknown on line 0 > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/950f0e41/attachment.html From jschwartz at exit445.com Sun Sep 7 10:06:10 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Sep 7 10:09:59 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: Hmmm...not to hijack Bob's email....but I have definitely used the same name for regular variables and $_SESSION variables in the same script/solution. Thsi is a no-no? Answer to other questions is "no". J At 3:52 PM +0200 9/7/08, Leo R. Lundgren wrote: >Some thoughts: > >1) Do you have the setting register_globals set to On? >2) Do you somewhere in your code use variable names such as $myVar >where a session variable with the same name (for example >$_SESSION['myVar']) is/have been used? >3) Are you using session_register() somewhere in your code, such as >session_register('variable_name')? > >I've never seen that error before, but my guess is that #2 is the >problem (and to be fair, #1 is in error as well ;-) > > >7 sep 2008 kl. 03.36 skrev Bob Patin: > >>I'm getting this warning, and I *think* it's because I have an >>undeclared variable, but if that's the case I can't find it. >> >>Can anyone tell me the most common cause for this error? >> >>ERROR MSG: >> >>Warning: Unknown(): Your script possibly relies on a session >>side-effect which existed until PHP 4.2.3. Please be advised that >>the session extension does not consider global variables as a >>source of data, unless register_globals is enabled. You can disable >>this functionality and this warning by setting >>session.bug_compat_42 or session.bug_compat_warn to off, >>respectively. in Unknown on line 0 >> >>Thanks, >> >>Bob Patin >>Longterm Solutions >>bob@longtermsolutions.com >>615-333-6858 >>http://www.longtermsolutions.com >>iChat: bobpatin >>AIM: longterm1954 >>FileMaker 9 Certified Developer >>Member of FileMaker Business Alliance and FileMaker TechNet >>-------------------------- >>FileMaker hosting and consulting for all versions of FileMaker >>PHP * Full email services * Free DNS hosting * Colocation * Consulting >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> > > >-| > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/45b4822e/attachment.html From leo at finalresort.org Sun Sep 7 11:45:39 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Sun Sep 7 11:44:58 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> Well, I don't really know for sure. I haven't encountered that error myself and therefore haven't fixed it either. So, you're saying that you have a "yes" to #2, but not #1 (in the cases of #2), when you encountered the same error? I'm merely trying to see what could be the cause, but I don't know anything yet :-) Bob; Is it possible to see the code that might be causing this error? 7 sep 2008 kl. 18.06 skrev Jonathan Schwartz: > Hmmm...not to hijack Bob's email....but I have definitely used the > same name for regular variables and $_SESSION variables in the same > script/solution. Thsi is a no-no? > > Answer to other questions is "no". > > J > > > At 3:52 PM +0200 9/7/08, Leo R. Lundgren wrote: >> Some thoughts: >> >> 1) Do you have the setting register_globals set to On? >> 2) Do you somewhere in your code use variable names such as $myVar >> where a session variable with the same name (for example $_SESSION >> ['myVar']) is/have been used? >> 3) Are you using session_register() somewhere in your code, such >> as session_register('variable_name')? >> >> I've never seen that error before, but my guess is that #2 is the >> problem (and to be fair, #1 is in error as well ;-) >> >> >> 7 sep 2008 kl. 03.36 skrev Bob Patin: >> >>> I'm getting this warning, and I *think* it's because I have an >>> undeclared variable, but if that's the case I can't find it. >>> >>> Can anyone tell me the most common cause for this error? >>> >>> ERROR MSG: >>> >>> Warning: Unknown(): Your script possibly relies on a session side- >>> effect which existed until PHP 4.2.3. Please be advised that the >>> session extension does not consider global variables as a source >>> of data, unless register_globals is enabled. You can disable this >>> functionality and this warning by setting session.bug_compat_42 >>> or session.bug_compat_warn to off, respectively. in Unknown on >>> line 0 >>> >>> Thanks, >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> AIM: longterm1954 >>> FileMaker 9 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP * Full email services * Free DNS hosting * Colocation * >>> Consulting >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -| >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/4c3f60c7/attachment-0001.html From jschwartz at exit445.com Sun Sep 7 13:38:50 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Sep 7 13:39:32 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> Message-ID: Again, I'm sorry to hijack Bob's original email. I'm thinking that we can learn something by adding in my similar experiences. On that, I don't have a current error, I'm going from past experience. However, I do often use the same name for $_SESSION variables and regular variables. Plus it is my practice to have register_globals set to off. And I don't use session_register. I will keep an eye out for the next time it occurs. Thanks for the feedback. Jonathan At 7:45 PM +0200 9/7/08, Leo R. Lundgren wrote: >Well, I don't really know for sure. I haven't encountered that error >myself and therefore haven't fixed it either. > >So, you're saying that you have a "yes" to #2, but not #1 (in the >cases of #2), when you encountered the same error? > >I'm merely trying to see what could be the cause, but I don't know >anything yet :-) > >Bob; Is it possible to see the code that might be causing this error? > > >7 sep 2008 kl. 18.06 skrev Jonathan Schwartz: > >>Hmmm...not to hijack Bob's email....but I have definitely used the >>same name for regular variables and $_SESSION variables in the same >>script/solution. Thsi is a no-no? >> >>Answer to other questions is "no". >> >>J >> >> >>At 3:52 PM +0200 9/7/08, Leo R. Lundgren wrote: >> >>>Some thoughts: >>> >>> >>>1) Do you have the setting register_globals set to On? >>> >>>2) Do you somewhere in your code use variable names such as $myVar >>>where a session variable with the same name (for example >>>$_SESSION['myVar']) is/have been used? >>> >>>3) Are you using session_register() somewhere in your code, such >>>as session_register('variable_name')? >>> >>> >>>I've never seen that error before, but my guess is that #2 is the >>>problem (and to be fair, #1 is in error as well ;-) >>> >>> >>> >>>7 sep 2008 kl. 03.36 skrev Bob Patin: >>> >>> >>>>I'm getting this warning, and I *think* it's because I have an >>>>undeclared variable, but if that's the case I can't find it. >>>> >>>> >>>>Can anyone tell me the most common cause for this error? >>>> >>>> >>>>ERROR MSG: >>>> >>>> >>>>Warning: Unknown(): Your script possibly relies on a session >>>>side-effect which existed until PHP 4.2.3. Please be advised that >>>>the session extension does not consider global variables as a >>>>source of data, unless register_globals is enabled. You can >>>>disable this functionality and this warning by setting >>>>session.bug_compat_42 or session.bug_compat_warn to off, >>>>respectively. in Unknown on line 0 >>>> >>>> >>>>Thanks, >>>> >>>> >>>>Bob Patin >>>> >>>>Longterm Solutions >>>> >>>>bob@longtermsolutions.com >>>> >>>>615-333-6858 >>>> >>>>http://www.longtermsolutions.com >>>> >>>>iChat: bobpatin >>>> >>>>AIM: longterm1954 >>>> >>>>FileMaker 9 Certified Developer >>>> >>>>Member of FileMaker Business Alliance and FileMaker TechNet >>>> >>>>-------------------------- >>>> >>>>FileMaker hosting and consulting for all versions of FileMaker >>>> >>>>PHP * Full email services * Free DNS hosting * Colocation * Consulting >>>> >>>> >>>>_______________________________________________ >>>> >>>>FX.php_List mailing list >>>> >>>>FX.php_List@mail.iviking.org >>>> >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> >>> >>>-| >>> >>> >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> > > >-| > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/f92ef479/attachment.html From ggt667 at gmail.com Sun Sep 7 13:50:13 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 7 13:50:16 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> Message-ID: Hey Jonathan That's what this place is for, making a non commercial knowledge base for FX.php ggt 2008/9/7 Jonathan Schwartz : > Again, I'm sorry to hijack Bob's original email. I'm thinking that we can > learn something by adding in my similar experiences. > On that, I don't have a current error, I'm going from past experience. > However, I do often use the same name for $_SESSION variables and regular > variables. Plus it is my practice to have register_globals set to off. And > I don't use session_register. > I will keep an eye out for the next time it occurs. > Thanks for the feedback. > Jonathan > At 7:45 PM +0200 9/7/08, Leo R. Lundgren wrote: > > Well, I don't really know for sure. I haven't encountered that error myself > and therefore haven't fixed it either. > > So, you're saying that you have a "yes" to #2, but not #1 (in the cases of > #2), when you encountered the same error? > > I'm merely trying to see what could be the cause, but I don't know anything > yet :-) > > Bob; Is it possible to see the code that might be causing this error? > > 7 sep 2008 kl. 18.06 skrev Jonathan Schwartz: > > Hmmm...not to hijack Bob's email....but I have definitely used the same name > for regular variables and $_SESSION variables in the same script/solution. > Thsi is a no-no? > > Answer to other questions is "no". > > J > > At 3:52 PM +0200 9/7/08, Leo R. Lundgren wrote: > > Some thoughts: > > 1) Do you have the setting register_globals set to On? > > 2) Do you somewhere in your code use variable names such as $myVar where a > session variable with the same name (for example $_SESSION['myVar']) is/have > been used? > > 3) Are you using session_register() somewhere in your code, such as > session_register('variable_name')? > > I've never seen that error before, but my guess is that #2 is the problem > (and to be fair, #1 is in error as well ;-) > > > 7 sep 2008 kl. 03.36 skrev Bob Patin: > > I'm getting this warning, and I *think* it's because I have an undeclared > variable, but if that's the case I can't find it. > > Can anyone tell me the most common cause for this error? > > ERROR MSG: > > Warning: Unknown(): Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session extension > does not consider global variables as a source of data, unless > register_globals is enabled. You can disable this functionality and this > warning by setting session.bug_compat_42 or session.bug_compat_warn to off, > respectively. in Unknown on line 0 > > Thanks, > > Bob Patin > > Longterm Solutions > > bob@longtermsolutions.com > > 615-333-6858 > > http://www.longtermsolutions.com > > iChat: bobpatin > > AIM: longterm1954 > > FileMaker 9 Certified Developer > > Member of FileMaker Business Alliance and FileMaker TechNet > > -------------------------- > > FileMaker hosting and consulting for all versions of FileMaker > > PHP * Full email services * Free DNS hosting * Colocation * Consulting > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > -| > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > > Exit 445 Group > > jonathan@exit445.com > > http://www.exit445.com > > 415-370-5011 > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > -| > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -- > > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From joshshrier at gmail.com Sun Sep 7 14:03:50 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Sun Sep 7 14:04:03 2008 Subject: [FX.php List] Scripting in PHP Message-ID: <000601c91124$dbc3d8f0$0100000a@JoshShrier> I know this is probably a simple question but I am a newbie with PHP. How do you trigger a FM script from PHP? If someone can send me a submission line with the code in it I would really appreciate it. -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/e2f43ee3/attachment.html From joshshrier at gmail.com Sun Sep 7 14:13:41 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Sun Sep 7 14:13:51 2008 Subject: [FX.php List] Looping validation Message-ID: <000b01c91126$39eecab0$0100000a@JoshShrier> I have a script that checks if an activity a user suggests have an available employee to train at that date and time. The way the script works is it creates variables for the date and time, and then goes to the staff table and loops through the portal rows to see if that person has a spot available. If yes, then it books that trainer. If not, it goes to the next staff member and repeats the same. If the script gets through all the staff members and there is no one available during that time then an error is returned. I would like to know how to approach coding this script in PHP, given that the staff table is not related to the contacts table until a staff member is chosen which isn't until the end of the script. Thanks, Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/e34278c7/attachment-0001.html From ggt667 at gmail.com Sun Sep 7 14:18:34 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 7 14:18:36 2008 Subject: [FX.php List] Looping validation In-Reply-To: <000b01c91126$39eecab0$0100000a@JoshShrier> References: <000b01c91126$39eecab0$0100000a@JoshShrier> Message-ID: I would design the solution in a way that it would make a not unique respons to FX.php I believe. ggt 2008/9/7 Josh Shrier : > I have a script that checks if an activity a user suggests have an available > employee to train at that date and time. The way the script works is it > creates variables for the date and time, and then goes to the staff table > and loops through the portal rows to see if that person has a spot > available. If yes, then it books that trainer. If not, it goes to the next > staff member and repeats the same. If the script gets through all the staff > members and there is no one available during that time then an error is > returned. I would like to know how to approach coding this script in PHP, > given that the staff table is not related to the contacts table until a > staff member is chosen which isn't until the end of the script. > > Thanks, > > Josh Shrier > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From joshshrier at gmail.com Sun Sep 7 14:24:11 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Sun Sep 7 14:24:21 2008 Subject: [FX.php List] Looping validation In-Reply-To: References: <000b01c91126$39eecab0$0100000a@JoshShrier> Message-ID: <001001c91127$b1333650$0100000a@JoshShrier> Can you elaborate on that a little. I am new to PHP. -----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: Sunday, September 07, 2008 11:19 PM To: FX.php Discussion List Subject: Re: [FX.php List] Looping validation I would design the solution in a way that it would make a not unique respons to FX.php I believe. ggt 2008/9/7 Josh Shrier : > I have a script that checks if an activity a user suggests have an available > employee to train at that date and time. The way the script works is it > creates variables for the date and time, and then goes to the staff table > and loops through the portal rows to see if that person has a spot > available. If yes, then it books that trainer. If not, it goes to the next > staff member and repeats the same. If the script gets through all the staff > members and there is no one available during that time then an error is > returned. I would like to know how to approach coding this script in PHP, > given that the staff table is not related to the contacts table until a > staff member is chosen which isn't until the end of the script. > > Thanks, > > Josh Shrier > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Sun Sep 7 14:56:49 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 7 14:56:51 2008 Subject: [FX.php List] Looping validation In-Reply-To: <001001c91127$b1333650$0100000a@JoshShrier> References: <000b01c91126$39eecab0$0100000a@JoshShrier> <001001c91127$b1333650$0100000a@JoshShrier> Message-ID: That would not be a php issue, rather how you design your table. When you make a request to have a tutor teach a student at a certain point in time, the creation of that record should fail if there is no tutor available for that student. ggt 2008/9/7 Josh Shrier : > Can you elaborate on that a little. I am new to PHP. > > -----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: Sunday, September 07, 2008 11:19 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] Looping validation > > I would design the solution in a way that it would make a not unique > respons to FX.php I believe. > > ggt > > 2008/9/7 Josh Shrier : >> I have a script that checks if an activity a user suggests have an > available >> employee to train at that date and time. The way the script works is it >> creates variables for the date and time, and then goes to the staff table >> and loops through the portal rows to see if that person has a spot >> available. If yes, then it books that trainer. If not, it goes to the next >> staff member and repeats the same. If the script gets through all the > staff >> members and there is no one available during that time then an error is >> returned. I would like to know how to approach coding this script in PHP, >> given that the staff table is not related to the contacts table until a >> staff member is chosen which isn't until the end of the script. >> >> Thanks, >> >> Josh Shrier >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Sun Sep 7 15:04:27 2008 From: bob at patin.com (Bob Patin) Date: Sun Sep 7 15:04:33 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: It's a form that uses the GET_ variable, if that's what you meant, but why should that cause a problem? I can prevent error displays, but I wanted to fix the problem rather than just turn off error_reporting. Thanks, BP On Sep 7, 2008, at 2:29 AM, Gjermund Gusland Thorsen wrote: > Do you use _GET and _POST prefixes in variables? > > ggt > > 2008/9/7 Bob Patin : >> I'm getting this warning, and I *think* it's because I have an >> undeclared >> variable, but if that's the case I can't find it. >> Can anyone tell me the most common cause for this error? >> ERROR MSG: >> Warning: Unknown(): Your script possibly relies on a session side- >> effect >> which existed until PHP 4.2.3. Please be advised that the session >> extension >> does not consider global variables as a source of data, unless >> register_globals is enabled. You can disable this functionality and >> this >> warning by setting session.bug_compat_42 or session.bug_compat_warn >> to off, >> respectively. in Unknown on line 0 >> Thanks, >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> iChat: bobpatin >> AIM: longterm1954 >> FileMaker 9 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -------------------------- >> FileMaker hosting and consulting for all versions of FileMaker >> PHP ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Sun Sep 7 15:06:47 2008 From: bob at patin.com (Bob Patin) Date: Sun Sep 7 15:06:52 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: <91AEDDF7-72F4-4690-951C-ECC3AF95BED1@patin.com> Leo, I probably do because I like to keep my variable names consistent; I didn't know that was a no-no. Is that the reason for that error msg.? So if I understand correctly, you're saying I shouldn't use $_SESSION['myVar'] and $myVar in the same page. Am I understanding correctly? Seems strange that I can't do that without incurring an error... -- Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 7, 2008, at 8:52 AM, Leo R. Lundgren wrote: > 2) Do you somewhere in your code use variable names such as $myVar > where a session variable with the same name (for example > $_SESSION['myVar']) is/have been used? From ggt667 at gmail.com Sun Sep 7 15:07:33 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 7 15:07:35 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: Well here is one of the problems FM does not know the difference between errors and warnings in php there is 5 levels? if I recall correctly warning being just a notification error being important to run the script there are at least 2 more levels of errors in php In FileMaker even warnings are at the same level as errors... ggt 2008/9/7 Bob Patin : > It's a form that uses the GET_ variable, if that's what you meant, but why > should that cause a problem? I can prevent error displays, but I wanted to > fix the problem rather than just turn off error_reporting. > > Thanks, > > BP > > > On Sep 7, 2008, at 2:29 AM, Gjermund Gusland Thorsen wrote: > >> Do you use _GET and _POST prefixes in variables? >> >> ggt >> >> 2008/9/7 Bob Patin : >>> >>> I'm getting this warning, and I *think* it's because I have an undeclared >>> variable, but if that's the case I can't find it. >>> Can anyone tell me the most common cause for this error? >>> ERROR MSG: >>> Warning: Unknown(): Your script possibly relies on a session side-effect >>> which existed until PHP 4.2.3. Please be advised that the session >>> extension >>> does not consider global variables as a source of data, unless >>> register_globals is enabled. You can disable this functionality and this >>> warning by setting session.bug_compat_42 or session.bug_compat_warn to >>> off, >>> respectively. in Unknown on line 0 >>> Thanks, >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> iChat: bobpatin >>> AIM: longterm1954 >>> FileMaker 9 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -------------------------- >>> FileMaker hosting and consulting for all versions of FileMaker >>> PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Sun Sep 7 15:10:41 2008 From: bob at patin.com (Bob Patin) Date: Sun Sep 7 15:10:46 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> Message-ID: <81C87182-1CDF-4115-8381-F55D47421979@patin.com> Well, it's a LOT of code; it's a very complex form, with a large loop that takes an array and processes the array elements, does some calculations, and then generates a table. At the top of the form, where the error is (because I can comment it out and eliminate it), the code there is probably 30-40 lines long. But here's just one place where I'm using a GET_var and also using it as a variable: if (isset($_GET['skipSize'])){ $skipSize=$_GET['skipSize']; } So if I understand correctly, I shouldn't use the same var name in 2 places like that? I've done it a million times with POST variables; I know that I always try to keep my var names the same as field names, for consistency... BP -- Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 7, 2008, at 12:45 PM, Leo R. Lundgren wrote: > Well, I don't really know for sure. I haven't encountered that error > myself and therefore haven't fixed it either. > > So, you're saying that you have a "yes" to #2, but not #1 (in the > cases of #2), when you encountered the same error? > > I'm merely trying to see what could be the cause, but I don't know > anything yet :-) > > Bob; Is it possible to see the code that might be causing this error? > From bob at patin.com Sun Sep 7 15:14:55 2008 From: bob at patin.com (Bob Patin) Date: Sun Sep 7 15:15:00 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: Message-ID: <5381BABD-F96E-42C3-8A53-F89F6A75D9EE@patin.com> But the page works just fine; it just shows the warning at the bottom of the page, which I can turn off with error_reporting(). What does the register_globals setting do, and how *should* it be set? It's set to OFF right now... Thanks, BP -- Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 7, 2008, at 4:07 PM, Gjermund Gusland Thorsen wrote: > Well here is one of the problems FM does not know the difference > between errors and warnings > > in php there is 5 levels? if I recall correctly > > warning being just a notification > error being important to run the script > > there are at least 2 more levels of errors in php > > In FileMaker even warnings are at the same level as errors... > > ggt From bob at patin.com Sun Sep 7 15:17:46 2008 From: bob at patin.com (Bob Patin) Date: Sun Sep 7 15:17:51 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <5C0328A2-6036-4AC3-B5C8-DE5DAFF14DC8@tds.net> References: <2557856.73991220640309579.JavaMail.postmaster@troymeyers.com> <5C0328A2-6036-4AC3-B5C8-DE5DAFF14DC8@tds.net> Message-ID: <872A8D26-B452-48A5-B5F5-20E6A3621342@patin.com> Yes, although it *looks* like you could use more than one... you can't though. You can use the same WPE with multiple web servers though; I use two web servers with a single WPE insall, for a client who has a dedicated web server. BP -- Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 5, 2008, at 8:05 PM, Dale Bengston wrote: > I believe it's still limit one WPE per FMS, even though they give > you that big list-looking block with the header Web Publishing > Engines. > > Dale From derrick at fogles.net Sun Sep 7 15:18:15 2008 From: derrick at fogles.net (Derrick Fogle) Date: Sun Sep 7 15:18:29 2008 Subject: [FX.php List] Looping validation In-Reply-To: References: <000b01c91126$39eecab0$0100000a@JoshShrier> <001001c91127$b1333650$0100000a@JoshShrier> Message-ID: <6E9118FB-6A0A-495F-B88D-D7D38CC45F01@fogles.net> >> The PHP scripting would actually be very similar, in concept, to your FMP script. The syntax is just completely different. I'm a little fuzzy on how you get to the point you start at in your description, so I'll start with the "creates variables for date and time" part. The PHP equivalent is a form that submits the date and time to another PHP script. In that 2nd PHP script, use FX.php to find all tutor staff records with (I'm guessing) the portal data of scheduled time. You'll need a couple nested foreach() statements to loop through first the staff records, and within each staff record, loops through the portal data. The comparisons you use in FMP vs PHP to determine availability will be virtually identical, although you'll probably need to learn a bit about unixtime and PHP's date and time functions to pull it off. When a match is found, create the schedule record in FMP and redirect to a 'successful' page. If you get to the end of the nested loops, you're in error territory and can show the error there. Just remember that the logic used in your FMP script is the exact same logic you'll use in the PHP script. You've just got to learn the PHP syntax, and how to get data in and out of FMP with FX.php, to implement it. Good luck! >> 2008/9/7 Josh Shrier : >>> I have a script that checks if an activity a user suggests have an >> available >>> employee to train at that date and time. The way the script works >>> is it >>> creates variables for the date and time, and then goes to the >>> staff table >>> and loops through the portal rows to see if that person has a spot >>> available. If yes, then it books that trainer. If not, it goes to >>> the next >>> staff member and repeats the same. If the script gets through all >>> the >> staff >>> members and there is no one available during that time then an >>> error is >>> returned. I would like to know how to approach coding this script >>> in PHP, >>> given that the staff table is not related to the contacts table >>> until a >>> staff member is chosen which isn't until the end of the script. Derrick From bob at patin.com Sun Sep 7 15:20:45 2008 From: bob at patin.com (Bob Patin) Date: Sun Sep 7 15:20:51 2008 Subject: [FX.php List] Scripting in PHP In-Reply-To: <000601c91124$dbc3d8f0$0100000a@JoshShrier> References: <000601c91124$dbc3d8f0$0100000a@JoshShrier> Message-ID: <1B389DF2-9453-4927-8DBB-6C94FCA83CD5@patin.com> Josh, If you look in the FX folder you'll find some really useful docs in there; here's the line you need to put in your query: There may be cases when you would like to perform a FileMaker script on the returned data set. In such cases, use one of the '-script' $name parameters: '-script', '- script.pre?nd', or '-script.presort'. When these parameters are used, the $value parameter should be the name of the FileMaker script that you wish to be executed. Usage is fairly self-explanatory. When '-script' is used, the speci?ed FileMaker script will be executed after the current ?nd and sort (if any) are performed. Using '- script.pre?nd' causes the speci?ed FileMaker script to execute before the current ?nd and sort are executed. The '-script.presort' $name parameter runs the speci?ed FileMaker script after the current ?nd, but before the current sort is executed. Usage of these parameters would be similar to the following examples: $InstanceName->AddDBParam('-script', 'Relookup Addresses'); $InstanceName->AddDBParam('-script.pre?nd', 'Delete Expired Records'); $InstanceName->AddDBParam('-script.presort', 'Omit Dulicates'); On Sep 7, 2008, at 3:03 PM, Josh Shrier wrote: > I know this is probably a simple question but I am a newbie with > PHP. How do you trigger a FM script from PHP? If someone can send me > a submission line with the code in it I would really appreciate it. > > -Josh Shrier > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/612d4ead/attachment.html From ggt667 at gmail.com Sun Sep 7 15:21:02 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 7 15:21:07 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <81C87182-1CDF-4115-8381-F55D47421979@patin.com> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> <81C87182-1CDF-4115-8381-F55D47421979@patin.com> Message-ID: You should really not turn globals on. This is good --- if (isset($_GET['skipSize'])){ $skipSize=$_GET['skipSize']; } --- The point with globals on is that you can make --- if( isset( $skipSize ) ) { $mySkipSize = $skipSize; } --- but it is not good practice. ggt 2008/9/7 Bob Patin : > Well, it's a LOT of code; it's a very complex form, with a large loop that > takes an array and processes the array elements, does some calculations, and > then generates a table. At the top of the form, where the error is (because > I can comment it out and eliminate it), the code there is probably 30-40 > lines long. > > But here's just one place where I'm using a GET_var and also using it as a > variable: > > if (isset($_GET['skipSize'])){ > $skipSize=$_GET['skipSize']; > } > > So if I understand correctly, I shouldn't use the same var name in 2 places > like that? > > I've done it a million times with POST variables; I know that I always try > to keep my var names the same as field names, for consistency... > > BP > > -- > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > > On Sep 7, 2008, at 12:45 PM, Leo R. Lundgren wrote: > >> Well, I don't really know for sure. I haven't encountered that error >> myself and therefore haven't fixed it either. >> >> So, you're saying that you have a "yes" to #2, but not #1 (in the cases of >> #2), when you encountered the same error? >> >> I'm merely trying to see what could be the cause, but I don't know >> anything yet :-) >> >> Bob; Is it possible to see the code that might be causing this error? >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Sun Sep 7 15:23:05 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Sep 7 15:23:07 2008 Subject: [FX.php List] Looping validation In-Reply-To: <6E9118FB-6A0A-495F-B88D-D7D38CC45F01@fogles.net> References: <000b01c91126$39eecab0$0100000a@JoshShrier> <001001c91127$b1333650$0100000a@JoshShrier> <6E9118FB-6A0A-495F-B88D-D7D38CC45F01@fogles.net> Message-ID: Ehh, Fogle, I was attempting to make Shrier, do a design job first, and then maybe end up with a smaller script, if any, in both places... ggt 2008/9/7 Derrick Fogle : >>> > > The PHP scripting would actually be very similar, in concept, to your FMP > script. The syntax is just completely different. > > I'm a little fuzzy on how you get to the point you start at in your > description, so I'll start with the "creates variables for date and time" > part. The PHP equivalent is a form that submits the date and time to another > PHP script. In that 2nd PHP script, use FX.php to find all tutor staff > records with (I'm guessing) the portal data of scheduled time. > > You'll need a couple nested foreach() statements to loop through first the > staff records, and within each staff record, loops through the portal data. > The comparisons you use in FMP vs PHP to determine availability will be > virtually identical, although you'll probably need to learn a bit about > unixtime and PHP's date and time functions to pull it off. > > When a match is found, create the schedule record in FMP and redirect to a > 'successful' page. If you get to the end of the nested loops, you're in > error territory and can show the error there. > > Just remember that the logic used in your FMP script is the exact same logic > you'll use in the PHP script. You've just got to learn the PHP syntax, and > how to get data in and out of FMP with FX.php, to implement it. > > Good luck! > >>> 2008/9/7 Josh Shrier : >>>> >>>> I have a script that checks if an activity a user suggests have an >>> >>> available >>>> >>>> employee to train at that date and time. The way the script works is it >>>> creates variables for the date and time, and then goes to the staff >>>> table >>>> and loops through the portal rows to see if that person has a spot >>>> available. If yes, then it books that trainer. If not, it goes to the >>>> next >>>> staff member and repeats the same. If the script gets through all the >>> >>> staff >>>> >>>> members and there is no one available during that time then an error is >>>> returned. I would like to know how to approach coding this script in >>>> PHP, >>>> given that the staff table is not related to the contacts table until a >>>> staff member is chosen which isn't until the end of the script. > > > Derrick > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Sun Sep 7 15:24:52 2008 From: bob at patin.com (Bob Patin) Date: Sun Sep 7 15:24:58 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropyand MAMP In-Reply-To: References: Message-ID: Jon, Worlds will collide, life as we know it will end, animals will run wild, dogs and cats living together,... Actually, I have one of my web servers still running PHP 4, and life seems to be just fine... :) < I know, a totally unhelpful reply... > BP On Sep 5, 2008, at 5:59 PM, Jon & Jane Montgomery wrote: > Roger, > > How big a deal is it to be down one version? > > Jon Montgomery > > On 9/5/08 5:49 PM, "Roger Moffat" wrote: > >> The only downside to this is that it's now one version of PHP >> behind - >> 5.2.5 instead of 5.2.6 >> >> Roger > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From joshshrier at gmail.com Sun Sep 7 16:20:53 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Sun Sep 7 16:21:03 2008 Subject: [FX.php List] Looping validation In-Reply-To: <6E9118FB-6A0A-495F-B88D-D7D38CC45F01@fogles.net> References: <000b01c91126$39eecab0$0100000a@JoshShrier><001001c91127$b1333650$0100000a@JoshShrier> <6E9118FB-6A0A-495F-B88D-D7D38CC45F01@fogles.net> Message-ID: <002501c91137$fea48c80$0100000a@JoshShrier> What is the downside to using the script instead of rewriting the script in PHP? Is there a dramatic speed difference? Is it that other users will be slower while that is running and in PHP not? -Josh Shrier -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick Fogle Sent: Monday, September 08, 2008 12:18 AM To: FX.php Discussion List Subject: Re: [FX.php List] Looping validation >> The PHP scripting would actually be very similar, in concept, to your FMP script. The syntax is just completely different. I'm a little fuzzy on how you get to the point you start at in your description, so I'll start with the "creates variables for date and time" part. The PHP equivalent is a form that submits the date and time to another PHP script. In that 2nd PHP script, use FX.php to find all tutor staff records with (I'm guessing) the portal data of scheduled time. You'll need a couple nested foreach() statements to loop through first the staff records, and within each staff record, loops through the portal data. The comparisons you use in FMP vs PHP to determine availability will be virtually identical, although you'll probably need to learn a bit about unixtime and PHP's date and time functions to pull it off. When a match is found, create the schedule record in FMP and redirect to a 'successful' page. If you get to the end of the nested loops, you're in error territory and can show the error there. Just remember that the logic used in your FMP script is the exact same logic you'll use in the PHP script. You've just got to learn the PHP syntax, and how to get data in and out of FMP with FX.php, to implement it. Good luck! >> 2008/9/7 Josh Shrier : >>> I have a script that checks if an activity a user suggests have an >> available >>> employee to train at that date and time. The way the script works >>> is it >>> creates variables for the date and time, and then goes to the >>> staff table >>> and loops through the portal rows to see if that person has a spot >>> available. If yes, then it books that trainer. If not, it goes to >>> the next >>> staff member and repeats the same. If the script gets through all >>> the >> staff >>> members and there is no one available during that time then an >>> error is >>> returned. I would like to know how to approach coding this script >>> in PHP, >>> given that the staff table is not related to the contacts table >>> until a >>> staff member is chosen which isn't until the end of the script. Derrick _______________________________________________ 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 Sun Sep 7 17:06:44 2008 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Sun Sep 7 17:06:41 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <7358684.72951220630861833.JavaMail.postmaster@troymeyers.com> Message-ID: On 6/09/08 2:07 AM, "Troy Meyers" wrote: > We've just received a new duo-core Intel Mac Mini that came with Leopard and > Apache 2.2 installed. The plan was to get this so that, without disturbing our > existing Tiger Apache 1.3 / WPE machine, I could set up an SSL server and test > it, so that I'd be able to swap it in when I was confident that all > components, Apache SSL, PHP, and WPE were working as needed. > > I had thought it would be easy because (supposedly) you just do a little > Terminal work to turn on the SSL capability in Apache 2.2. This may be the > case, but I've run into a roadblock even before getting that far. > > On the existing PHP machine I've been using the Entropy installation, which I > needed because we need the GD library. > > On the new machine, I installed the FMS9A 9.0v3 "full" (since it's Leopard) > with the "Multiple Machines" and "Worker" options. That appeared to go fine, > though I never went as far as reconfiguring the deployment... not ready for > that yet. > > Then, I tried installing the Entropy PHP 5.2.4 package for Apache 2 > (entropy-php-5.2.4-1-apache2.tar). It is listed for MacOS 10.4, but I thought > since 10.5 wasn't mentioned anywhere it'd still be OK. This threw an error at > the end of the installation. It killed Apache too. > > I hit the old posts in forums, and it looks like this is a well known problem > without a clear-cut solution, and that the Entropy guy (Marc Liyanage) > isn't/doesn't have time to come out with a new version. It's been months. Lots > of fixes have been posted, but it looks like none work well for the majority. > > Some have suggested that abandoning Entropy PHP and moving to MAMP > (http://www.mamp.info/en/mamp.html) as the solution. It sounds promising, but > looking on that forum too shows that it hasn't been trouble-free. I'm not sure > if I should take that plunge. > > So, I have burning questions. > > Is anyone using the WPE, Apache 2.2, and a PHP version with GD, (with or > without SSL, I guess) on and Intel Mac Mini (or similar) under Leopard? > > What other PHP options are there that include GD, that will work on this > machine? > > Will MAMP work with the WPE? > > What order of install is best-- FMS, PHP, enable SSL? > > I've wiped the new machine so that I can start over. If anyone can give me > some advice I'd really appreciate it! > > -Troy I can't help with your specific problem Troy, but I would not advise moving to MAMP. MAMP is intended as a local development environment, and the MAMP guys themselves don't recommend it for production. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### 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 adenman at tmea.org Sun Sep 7 17:16:21 2008 From: adenman at tmea.org (Andrew Denman) Date: Sun Sep 7 17:16:25 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> Message-ID: <014201c9113f$bd70ade0$385209a0$@org> I believe what ggt is saying is that someone cannot submit a malformed query directly to your WPE server if it is not accessible to the outside world. If your main web server is also the WPE server then this is a possible security risk. As far as data submitted using FX, you should be OK because as far as I can tell FX URL encodes everything it sends to the WPE server, preventing submitted data from affecting the URL. In my experience, the only possible injection type attacks come from the special search characters that FM allows you to search with. Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Joel Shapiro Sent: Saturday, September 06, 2008 1:56 PM To: FX.php Discussion List Subject: Re: [FX.php List] [OFF] Filemaker Web Security? hmm... Can you say any more about that? Is XML-RPC installed by default in PHP? It looks like it might need to be installed separately. Also, one site I looked at said the vulnerability through XML-RPC was still SQL injection attacks... so if there's no SQL in a FM/PHP solution, what's the risk? -Joel On Sep 6, 2008, at 12:04 AM, Gjermund Gusland Thorsen wrote: > It's is simple to avoid "FileMaker XML RPC injections" you make sure > WPE and web server is on 2 different machines, and you block access to > WPE from the outside world, but open for the web server. > > ggt > > 2008/9/6 Dale Bengston : >> Yes. Besides the malicious use of "sql injections" and such, >> people copy >> text from word files, emails, and just about everywhere else and >> paste it in >> your input fields. (This is a good thing - people shouldn't have to >> re-type.) If they have curly quotes, or other high-ascii stuff, >> and their >> document uses different encoding than your site, weird things can >> result. >> Better to catch it and wash the data before it hits your tables. >> >> Dale >> >> On Sep 5, 2008, at 2:21 PM, Joel Shapiro wrote: >> >>> As to my question "Do people here do that on *all* submittable >>> fields?...", the "that" I'd meant was filtering the fields in PHP >>> before >>> submission to FM, e.g. using htmlentities(), strip_tags(), etc. >>> Do people >>> do *that* on all submittable fields? >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Sun Sep 7 17:21:46 2008 From: derrick at fogles.net (Derrick Fogle) Date: Sun Sep 7 17:22:00 2008 Subject: [FX.php List] Looping validation In-Reply-To: <002501c91137$fea48c80$0100000a@JoshShrier> References: <000b01c91126$39eecab0$0100000a@JoshShrier><001001c91127$b1333650$0100000a@JoshShrier> <6E9118FB-6A0A-495F-B88D-D7D38CC45F01@fogles.net> <002501c91137$fea48c80$0100000a@JoshShrier> Message-ID: The single biggest performance hit (95% of total execution time) will be getting data between FMP and PHP. If this were engineered in PHP with MySQL (or similar) as a database, it would blow the doors off anything that involved FMP. But FMP scripts are reasonably fast in their native environment, so if you can just trigger the script and it works, that will be your second best option in terms of performance. By far the worst performance will be getting all the data out of FMP, processing it in PHP, then inserting data back into FMP from the PHP script. If you've got a script that's working, I would have to recommend trying to just trigger the script. There are some gotchas in there (FMP global fields don't really work with the API's), but it's a heck of a lot less work (and will be faster) than completely re-engineering the script in PHP. HTH, On Sep 7, 2008, at 5:20 PM, Josh Shrier wrote: > What is the downside to using the script instead of rewriting the > script in > PHP? Is there a dramatic speed difference? Is it that other users > will be > slower while that is running and in PHP not? > > -Josh Shrier > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick > Fogle > Sent: Monday, September 08, 2008 12:18 AM > To: FX.php Discussion List > Subject: Re: [FX.php List] Looping validation > >>> > > The PHP scripting would actually be very similar, in concept, to your > FMP script. The syntax is just completely different. > > I'm a little fuzzy on how you get to the point you start at in your > description, so I'll start with the "creates variables for date and > time" part. The PHP equivalent is a form that submits the date and > time to another PHP script. In that 2nd PHP script, use FX.php to find > all tutor staff records with (I'm guessing) the portal data of > scheduled time. > > You'll need a couple nested foreach() statements to loop through first > the staff records, and within each staff record, loops through the > portal data. The comparisons you use in FMP vs PHP to determine > availability will be virtually identical, although you'll probably > need to learn a bit about unixtime and PHP's date and time functions > to pull it off. > > When a match is found, create the schedule record in FMP and redirect > to a 'successful' page. If you get to the end of the nested loops, > you're in error territory and can show the error there. > > Just remember that the logic used in your FMP script is the exact same > logic you'll use in the PHP script. You've just got to learn the PHP > syntax, and how to get data in and out of FMP with FX.php, to > implement it. > > Good luck! > >>> 2008/9/7 Josh Shrier : >>>> I have a script that checks if an activity a user suggests have an >>> available >>>> employee to train at that date and time. The way the script works >>>> is it >>>> creates variables for the date and time, and then goes to the >>>> staff table >>>> and loops through the portal rows to see if that person has a spot >>>> available. If yes, then it books that trainer. If not, it goes to >>>> the next >>>> staff member and repeats the same. If the script gets through all >>>> the >>> staff >>>> members and there is no one available during that time then an >>>> error is >>>> returned. I would like to know how to approach coding this script >>>> in PHP, >>>> given that the staff table is not related to the contacts table >>>> until a >>>> staff member is chosen which isn't until the end of the script. > > > Derrick > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 From jsfmp at earthlink.net Sun Sep 7 17:50:36 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Sun Sep 7 17:50:45 2008 Subject: [FX.php List] [OFF] Filemaker Web Security? In-Reply-To: <014201c9113f$bd70ade0$385209a0$@org> References: <04FCAE96-BF43-486D-8928-29F44CB3F802@earthlink.net> <51D19D93-7D90-4784-B0E3-BD89456B4659@nicheit.com.au> <8E341B1B-D7BA-460E-A288-8F524A9B0EED@earthlink.net> <38439298-C3E3-4ABA-BBB1-3C67E694DE80@tds.net> <014201c9113f$bd70ade0$385209a0$@org> Message-ID: Thanks for the clarification, Andrew. -Joel On Sep 7, 2008, at 4:16 PM, Andrew Denman wrote: > I believe what ggt is saying is that someone cannot submit a > malformed query > directly to your WPE server if it is not accessible to the outside > world. If > your main web server is also the WPE server then this is a possible > security > risk. > > As far as data submitted using FX, you should be OK because as far > as I can > tell FX URL encodes everything it sends to the WPE server, preventing > submitted data from affecting the URL. In my experience, the only > possible > injection type attacks come from the special search characters that FM > allows you to search with. > > Andrew Denman > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Joel > Shapiro > Sent: Saturday, September 06, 2008 1:56 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] [OFF] Filemaker Web Security? > > hmm... Can you say any more about that? > > Is XML-RPC installed by default in PHP? It looks like it might need > to be installed separately. > > Also, one site I looked at said the vulnerability through XML-RPC was > still SQL injection attacks... so if there's no SQL in a FM/PHP > solution, what's the risk? > > -Joel > > > On Sep 6, 2008, at 12:04 AM, Gjermund Gusland Thorsen wrote: > >> It's is simple to avoid "FileMaker XML RPC injections" you make sure >> WPE and web server is on 2 different machines, and you block >> access to >> WPE from the outside world, but open for the web server. >> >> ggt >> >> 2008/9/6 Dale Bengston : >>> Yes. Besides the malicious use of "sql injections" and such, >>> people copy >>> text from word files, emails, and just about everywhere else and >>> paste it in >>> your input fields. (This is a good thing - people shouldn't have to >>> re-type.) If they have curly quotes, or other high-ascii stuff, >>> and their >>> document uses different encoding than your site, weird things can >>> result. >>> Better to catch it and wash the data before it hits your tables. >>> >>> Dale >>> >>> On Sep 5, 2008, at 2:21 PM, Joel Shapiro wrote: >>> >>>> As to my question "Do people here do that on *all* submittable >>>> fields?...", the "that" I'd meant was filtering the fields in PHP >>>> before >>>> submission to FM, e.g. using htmlentities(), strip_tags(), etc. >>>> Do people >>>> do *that* on all submittable fields? >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 tim at nicheit.com.au Mon Sep 8 00:00:55 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Mon Sep 8 00:01:05 2008 Subject: [FX.php List] PHP results In-Reply-To: References: Message-ID: <8D700DC3-899C-4CA7-B96A-06CC58D20E27@nicheit.com.au> On 06/09/2008, at 4:25 AM, John Funk wrote: > I have a solution where the user logs in and they see their data in > a nice html formated page. Works great for most. But one user on a > PC gets the results as a bunch of data strings, not xml, not html > but the raw data returned with a date stamp. Please see attached > screen grab. > It must be Explorer.....Any ideas? I suspect that is raw XML - try view source and see what the underlying code looks like... I'll lay decent odds that the layout being used has the primary key, the product name and either a create/ modify date and time field... Cheers Webko -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080908/f7eaab8f/attachment.html From ggt667 at gmail.com Mon Sep 8 00:52:19 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Sep 8 00:52:22 2008 Subject: [FX.php List] Looping validation In-Reply-To: References: <000b01c91126$39eecab0$0100000a@JoshShrier> <001001c91127$b1333650$0100000a@JoshShrier> <6E9118FB-6A0A-495F-B88D-D7D38CC45F01@fogles.net> <002501c91137$fea48c80$0100000a@JoshShrier> Message-ID: There are other design methods than scripts, you can make logic on validation of fields. ggt 2008/9/8 Derrick Fogle : > The single biggest performance hit (95% of total execution time) will be > getting data between FMP and PHP. If this were engineered in PHP with MySQL > (or similar) as a database, it would blow the doors off anything that > involved FMP. But FMP scripts are reasonably fast in their native > environment, so if you can just trigger the script and it works, that will > be your second best option in terms of performance. By far the worst > performance will be getting all the data out of FMP, processing it in PHP, > then inserting data back into FMP from the PHP script. > > If you've got a script that's working, I would have to recommend trying to > just trigger the script. There are some gotchas in there (FMP global fields > don't really work with the API's), but it's a heck of a lot less work (and > will be faster) than completely re-engineering the script in PHP. > > HTH, > > On Sep 7, 2008, at 5:20 PM, Josh Shrier wrote: > >> What is the downside to using the script instead of rewriting the script >> in >> PHP? Is there a dramatic speed difference? Is it that other users will be >> slower while that is running and in PHP not? >> >> -Josh Shrier >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Derrick Fogle >> Sent: Monday, September 08, 2008 12:18 AM >> To: FX.php Discussion List >> Subject: Re: [FX.php List] Looping validation >> >>>> >> >> The PHP scripting would actually be very similar, in concept, to your >> FMP script. The syntax is just completely different. >> >> I'm a little fuzzy on how you get to the point you start at in your >> description, so I'll start with the "creates variables for date and >> time" part. The PHP equivalent is a form that submits the date and >> time to another PHP script. In that 2nd PHP script, use FX.php to find >> all tutor staff records with (I'm guessing) the portal data of >> scheduled time. >> >> You'll need a couple nested foreach() statements to loop through first >> the staff records, and within each staff record, loops through the >> portal data. The comparisons you use in FMP vs PHP to determine >> availability will be virtually identical, although you'll probably >> need to learn a bit about unixtime and PHP's date and time functions >> to pull it off. >> >> When a match is found, create the schedule record in FMP and redirect >> to a 'successful' page. If you get to the end of the nested loops, >> you're in error territory and can show the error there. >> >> Just remember that the logic used in your FMP script is the exact same >> logic you'll use in the PHP script. You've just got to learn the PHP >> syntax, and how to get data in and out of FMP with FX.php, to >> implement it. >> >> Good luck! >> >>>> 2008/9/7 Josh Shrier : >>>>> >>>>> I have a script that checks if an activity a user suggests have an >>>> >>>> available >>>>> >>>>> employee to train at that date and time. The way the script works >>>>> is it >>>>> creates variables for the date and time, and then goes to the >>>>> staff table >>>>> and loops through the portal rows to see if that person has a spot >>>>> available. If yes, then it books that trainer. If not, it goes to >>>>> the next >>>>> staff member and repeats the same. If the script gets through all >>>>> the >>>> >>>> staff >>>>> >>>>> members and there is no one available during that time then an >>>>> error is >>>>> returned. I would like to know how to approach coding this script >>>>> in PHP, >>>>> given that the staff table is not related to the contacts table >>>>> until a >>>>> staff member is chosen which isn't until the end of the script. >> >> >> Derrick >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 > > _______________________________________________ > 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 6 07:33:42 2008 From: bob at patin.com (Bob Patin) Date: Mon Sep 8 08:17:21 2008 Subject: [FX.php List] PHP results In-Reply-To: References: Message-ID: <4A662AEF-DC13-49DF-AC03-4B7ED7BC47AA@patin.com> John, When I tried your page I got this: On Sep 5, 2008, at 1:25 PM, John Funk wrote: > I have a solution where the user logs in and they see their data in > a nice html formated page. Works great for most. But one user on a > PC gets the results as a bunch of data strings, not xml, not html > but the raw data returned with a date stamp. Please see attached > screen grab. > It must be Explorer.....Any ideas? > John Funk > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- Skipped content of type multipart/related From ggt667 at gmail.com Mon Sep 8 08:49:21 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Sep 8 08:49:23 2008 Subject: [FX.php List] PHP results In-Reply-To: <4A662AEF-DC13-49DF-AC03-4B7ED7BC47AA@patin.com> References: <4A662AEF-DC13-49DF-AC03-4B7ED7BC47AA@patin.com> Message-ID: That's php 5's way to say that you refered to an empty spot in the array or to a non-existing spot in the array... in php4 referring to such a spot would automatically render implicit = "" ggt 2008/9/6 Bob Patin : > John, > When I tried your page I got this: > > On Sep 5, 2008, at 1:25 PM, John Funk wrote: > > I have a solution where the user logs in and they see their data in a nice > html formated page. Works great for most. But one user on a PC gets the > results as a bunch of data strings, not xml, not html but the raw data > returned with a date stamp. Please see attached screen grab. > It must be Explorer.....Any ideas? > John Funk > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From leo at finalresort.org Mon Sep 8 09:42:17 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Mon Sep 8 09:42:30 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <81C87182-1CDF-4115-8381-F55D47421979@patin.com> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> <81C87182-1CDF-4115-8381-F55D47421979@patin.com> Message-ID: Thirty to forty lines of code isn't a lot :) But the problem might relate to previous code as well, not just the one that /triggers/ the warning. But anyhow, you say you don't have register_globals active. You also say that there is no place where you use both $myVar and $_SESSION ['myVar'] at the same time. Those two things was what I was aiming for :) The mystery continues. But as long as there's no code to be seen we can just speculate what the problem might be. 7 sep 2008 kl. 23.10 skrev Bob Patin: > Well, it's a LOT of code; it's a very complex form, with a large > loop that takes an array and processes the array elements, does > some calculations, and then generates a table. At the top of the > form, where the error is (because I can comment it out and > eliminate it), the code there is probably 30-40 lines long. > > But here's just one place where I'm using a GET_var and also using > it as a variable: > > if (isset($_GET['skipSize'])){ > $skipSize=$_GET['skipSize']; > } > > So if I understand correctly, I shouldn't use the same var name in > 2 places like that? > > I've done it a million times with POST variables; I know that I > always try to keep my var names the same as field names, for > consistency... > > BP > > -- > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > AIM: longterm1954 > FileMaker 9 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > > On Sep 7, 2008, at 12:45 PM, Leo R. Lundgren wrote: > >> Well, I don't really know for sure. I haven't encountered that >> error myself and therefore haven't fixed it either. >> >> So, you're saying that you have a "yes" to #2, but not #1 (in the >> cases of #2), when you encountered the same error? >> >> I'm merely trying to see what could be the cause, but I don't know >> anything yet :-) >> >> Bob; Is it possible to see the code that might be causing this error? >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From bob at patin.com Mon Sep 8 09:48:21 2008 From: bob at patin.com (Bob Patin) Date: Mon Sep 8 09:48:28 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org> <81C87182-1CDF-4115-8381-F55D47421979@patin.com> Message-ID: <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> On Sep 8, 2008, at 10:42 AM, Leo R. Lundgren wrote: > Thirty to forty lines of code isn't a lot :) Yes, I know that, but I didn't want to put 30 or 40 lines in an email... > > > But anyhow, you say you don't have register_globals active. True. > You also say that there is no place where you use both $myVar and > $_SESSION['myVar'] at the same time. Not true. What I said is that I very often (almost always, in fact) use the same variable names for a $_GET or $_POST and then in the subsequent variable. On this page, I have 2 session variables that I read in and use for a URL: $the_db = $_SESSION['the_db']; $return_link = $_SESSION['return_link']; Is this a bad thing to do? If so, I'm wondering why it hasn't been a problem in other pages. I pass around things like userIDs all the time, and I would normally save it in the same session variable name that I might use later in the page, and it never throws an error... Thanks for any help... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting From dness at bondedbuilders.com Mon Sep 8 10:03:37 2008 From: dness at bondedbuilders.com (David Ness) Date: Mon Sep 8 10:03:39 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com> <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> Message-ID: -----Original Message----- On this page, I have 2 session variables that I read in and use for a URL: $the_db = $_SESSION['the_db']; $return_link = $_SESSION['return_link']; Is this a bad thing to do? If so, I'm wondering why it hasn't been a problem in other pages... --------------- I do this all the time, many dozens of times on some pages, with no problems. David Allen Ness Database Systems Programmer Web Applications Developer From leo at finalresort.org Mon Sep 8 10:04:41 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Mon Sep 8 10:05:46 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com> <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> Message-ID: <73E30243-EE98-422C-90DC-76DD764F21B4@finalresort.org> 8 sep 2008 kl. 18.03 skrev David Ness: > > -----Original Message----- > On this page, I have 2 session variables that I read in and use for a > URL: > > $the_db = $_SESSION['the_db']; > $return_link = $_SESSION['return_link']; > > Is this a bad thing to do? If so, I'm wondering why it hasn't been a > problem in other pages... > --------------- > > I do this all the time, many dozens of times on some pages, with no > problems. When you do, do you have register_globals set to On? -| From bob at patin.com Mon Sep 8 10:13:43 2008 From: bob at patin.com (Bob Patin) Date: Mon Sep 8 10:13:48 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <73E30243-EE98-422C-90DC-76DD764F21B4@finalresort.org> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com> <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> <73E30243-EE98-422C-90DC-76DD764F21B4@finalresort.org> Message-ID: <320644B2-AC32-4888-A26F-60181CBED14E@patin.com> No, I *never* turn register_globals on. On Sep 8, 2008, at 11:04 AM, Leo R. Lundgren wrote: > > > When you do, do you have register_globals set to On? > > -| From leo at finalresort.org Mon Sep 8 10:15:34 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Mon Sep 8 10:15:42 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <320644B2-AC32-4888-A26F-60181CBED14E@patin.com> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com> <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> <73E30243-EE98-422C-90DC-76DD764F21B4@finalresort.org> <320644B2-AC32-4888-A26F-60181CBED14E@patin.com> Message-ID: Sorry, I meant to ask David. 8 sep 2008 kl. 18.13 skrev Bob Patin: > No, I *never* turn register_globals on. > > > On Sep 8, 2008, at 11:04 AM, Leo R. Lundgren wrote: > >> >> >> When you do, do you have register_globals set to On? >> >> -| > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From dbengston at tds.net Mon Sep 8 10:24:21 2008 From: dbengston at tds.net (Dale Bengston) Date: Mon Sep 8 10:24:25 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com> <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> Message-ID: <575D6B0C-EA3B-45D4-B332-C3EB6F8F7151@tds.net> We do this too, and I've never seen the warning reported. Bob, perhaps you could comment parts of the form and see where the warning disappears? This might cause other errors in the short term but at least it would help you zero in on the line causing the warning. Dale On Sep 8, 2008, at 11:03 AM, David Ness wrote: > > -----Original Message----- > On this page, I have 2 session variables that I read in and use for a > URL: > > $the_db = $_SESSION['the_db']; > $return_link = $_SESSION['return_link']; > > Is this a bad thing to do? If so, I'm wondering why it hasn't been a > problem in other pages... > --------------- > > I do this all the time, many dozens of times on some pages, with no > problems. > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Mon Sep 8 10:26:35 2008 From: bob at patin.com (Bob Patin) Date: Mon Sep 8 10:26:41 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <575D6B0C-EA3B-45D4-B332-C3EB6F8F7151@tds.net> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com> <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> <575D6B0C-EA3B-45D4-B332-C3EB6F8F7151@tds.net> Message-ID: <7B79DE01-4BBC-4D7E-A842-6510BE0BD15B@patin.com> Well, I did that, but it seemed that I had to comment out all of the processing code to make the warning disappear, which is what was so odd to me. I finally threw in an error_reporting(0) line and got rid of it... no time to spend on it anymore... :) Thanks, Bob Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 FileMaker 9 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Sep 8, 2008, at 11:24 AM, Dale Bengston wrote: > Bob, perhaps you could comment parts of the form and see where the > warning disappears? This might cause other errors in the short term > but at least it would help you zero in on the line causing the > warning. > > Dale From adenman at tmea.org Mon Sep 8 10:39:37 2008 From: adenman at tmea.org (Andrew Denman) Date: Mon Sep 8 10:38:38 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com> <8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> Message-ID: <00b001c911d1$7d4e99b0$77ebcd10$@org> The reason they're asking about this is because register_globals creates those variables for you, so if you're using the same variable name inadvertently you could get unexpected results. Using the same variable name as a session variable IS NOT a problem unless you also have register_globals on. There is a special case though... As for the original warning, if session.bug_compat_42 is on in php.ini it seems you can use the simplified variables for session variables even if register_globals is off. If you also have session.bug_compat_warn on, you will get the warning message whenever you access one of those variables. According to the PHP docs, both of these default to true. If you don't want to change php.ini, I would check to make sure you are not using any variables named the same as session variables before you explicitly set them, otherwise disabling the warning message and/or the bug should get rid of the warnings. Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of David Ness Sent: Monday, September 08, 2008 11:04 AM To: FX.php Discussion List Subject: RE: [FX.php List] Annoying PHP warning -----Original Message----- On this page, I have 2 session variables that I read in and use for a URL: $the_db = $_SESSION['the_db']; $return_link = $_SESSION['return_link']; Is this a bad thing to do? If so, I'm wondering why it hasn't been a problem in other pages... --------------- I do this all the time, many dozens of times on some pages, with no problems. David Allen Ness Database Systems Programmer Web Applications Developer _______________________________________________ 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 Mon Sep 8 10:40:45 2008 From: dness at bondedbuilders.com (David Ness) Date: Mon Sep 8 10:40:47 2008 Subject: [FX.php List] Annoying PHP warning In-Reply-To: <73E30243-EE98-422C-90DC-76DD764F21B4@finalresort.org> References: <5D21109C-FADC-496A-B731-A7378ECEB788@finalresort.org><81C87182-1CDF-4115-8381-F55D47421979@patin.com><8CDB17F2-FFF1-43CE-8066-7FE84E315697@patin.com> <73E30243-EE98-422C-90DC-76DD764F21B4@finalresort.org> Message-ID: >> When you do, do you have register_globals set to On? No, I never turn register_globals on. _______________________________________________ David Ness From joshshrier at gmail.com Mon Sep 8 14:13:57 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Mon Sep 8 14:14:09 2008 Subject: [FX.php List] Returning calculated fields after a new record submission Message-ID: <000c01c911ef$6d5a2510$0500000a@JoshShrier> I have a form which the user fills out as a submission request. I want the results page to display all the entered information from the form as well as calculation results generated in the database after the submission. The information entered on the form displayed fine on the results, however the calculated results did not display. For example: The user enters start and end time and I want to results page to display the duration time which is end time- start time. On the results page I have it shows up blank. I used $Duration=$_POST['Duration']; as the variable Then in the table I attempted to display like this: Duration I don't know why it doesn't work, please help. -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080908/e03ac5af/attachment.html From derrick at fogles.net Mon Sep 8 14:18:02 2008 From: derrick at fogles.net (Derrick Fogle) Date: Mon Sep 8 14:18:16 2008 Subject: [FX.php List] Returning calculated fields after a new record submission In-Reply-To: <000c01c911ef$6d5a2510$0500000a@JoshShrier> References: <000c01c911ef$6d5a2510$0500000a@JoshShrier> Message-ID: It's there as long as the field is on the layout you're using for your FX.php call, you just have to get it back out of the FX.php data structure after the transaction. On Sep 8, 2008, at 3:13 PM, Josh Shrier wrote: > I have a form which the user fills out as a submission request. I > want the results page to display all the entered information from > the form as well as calculation results generated in the database > after the submission. The information entered on the form displayed > fine on the results, however the calculated results did not display. > > For example: > > The user enters start and end time and I want to results page to > display the duration time which is end time- start time. On the > results page I have it shows up blank. > > I used $Duration=$_POST['Duration']; as the variable > > Then in the table I attempted to display like this: > > > Duration > > > > > I don?t know why it doesn?t work, please help. > > -Josh Shrier > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Derrick From jsfmp at earthlink.net Mon Sep 8 14:26:10 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Sep 8 14:26:18 2008 Subject: [FX.php List] Returning calculated fields after a new record submission In-Reply-To: <000c01c911ef$6d5a2510$0500000a@JoshShrier> References: <000c01c911ef$6d5a2510$0500000a@JoshShrier> Message-ID: Hi Josh If Duration is a calc field in FMP, then you're not POSTing it with the submission, are you? I think you're looking for the FM field to return, off of the layout and from your FMEdit or FMNew results. Also, you could just calculate Duration within PHP based on the POSTed start and end times. HTH, -Joel On Sep 8, 2008, at 1:13 PM, Josh Shrier wrote: > I have a form which the user fills out as a submission request. I > want the results page to display all the entered information from > the form as well as calculation results generated in the database > after the submission. The information entered on the form displayed > fine on the results, however the calculated results did not display. > > > > For example: > > > > The user enters start and end time and I want to results page to > display the duration time which is end time- start time. On the > results page I have it shows up blank. > > > > I used $Duration=$_POST['Duration']; as the variable > > > > Then in the table I attempted to display like this: > > > > > > Duration > > > > > > > > > > I don?t know why it doesn?t work, please help. > > > > -Josh Shrier > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Mon Sep 8 17:58:25 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon Sep 8 17:58:28 2008 Subject: [FX.php List] [OFF] Apache 2.2 SSL setup difficulties Message-ID: <4629408.3361220918305789.JavaMail.tcmeyers@troymeyers.com> A few days ago I mentioned that we got a Mac Mini (Leopard) with Apache 2.2 preinstalled (they just ship that way) and have managed to install (with help from here) PHP 5.2.5 with GD, which I had to do because there's no GD in the PHP installation that ships with Leopard. That appears to be working. The end goal is getting a secure server set up, and I had thought that enabling SSL in the Apache 2.2 would be easy, since (at least I think) all the modules needed are preinstalled and just need to be turned on. I also had thought that the instructions were in the Apache docs... but now I realize that I don't understand enough. Maybe they the instructions tell me how to set up different flavors of SSL, but not the basic on/off. The variations I've tried in httpd.config have just made Apache stop working. Glad I made backups first. What I want to do is have this one machine be my Apache server doing both http and https, and also have the WPE on that machine. Another is the database server. I've studied a number of forum archives for several days now, but can't find the answer, so I thought I'd finally ask here -- how do I do it -- or where's the best place to ask? Thanks for any help! -Troy From bob at patin.com Mon Sep 8 18:47:59 2008 From: bob at patin.com (Bob Patin) Date: Mon Sep 8 18:48:05 2008 Subject: [FX.php List] Answered my own question... Message-ID: <4B1B251B-FAF8-42D5-83FA-513480753BFE@patin.com> I just had to stop & start web services... BP From dbengston at tds.net Mon Sep 8 20:02:43 2008 From: dbengston at tds.net (Dale Bengston) Date: Mon Sep 8 20:02:58 2008 Subject: [FX.php List] [OFF] Apache 2.2 SSL setup difficulties In-Reply-To: <4629408.3361220918305789.JavaMail.tcmeyers@troymeyers.com> References: <4629408.3361220918305789.JavaMail.tcmeyers@troymeyers.com> Message-ID: Hi Troy, In the past, Apple has provided very detailed instructions for generating KEYs, CSRs and CRTs and all that SSL good stuff. I don't know if they've continued with Apache 2.0, but here's what I used years ago: http://developer.apple.com/internet/serverside/modssl.html Dale On Sep 8, 2008, at 6:58 PM, Troy Meyers wrote: > A few days ago I mentioned that we got a Mac Mini (Leopard) with > Apache 2.2 preinstalled (they just ship that way) and have managed > to install (with help from here) PHP 5.2.5 with GD, which I had to > do because there's no GD in the PHP installation that ships with > Leopard. That appears to be working. > > The end goal is getting a secure server set up, and I had thought > that enabling SSL in the Apache 2.2 would be easy, since (at least I > think) all the modules needed are preinstalled and just need to be > turned on. I also had thought that the instructions were in the > Apache docs... but now I realize that I don't understand enough. > Maybe they the instructions tell me how to set up different flavors > of SSL, but not the basic on/off. The variations I've tried in > httpd.config have just made Apache stop working. Glad I made backups > first. > > What I want to do is have this one machine be my Apache server doing > both http and https, and also have the WPE on that machine. Another > is the database server. > > I've studied a number of forum archives for several days now, but > can't find the answer, so I thought I'd finally ask here -- how do I > do it -- or where's the best place to ask? > > Thanks for any help! > > -Troy > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Mon Sep 8 20:08:41 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon Sep 8 20:08:44 2008 Subject: [FX.php List] [OFF] Apache 2.2 SSL setup difficulties Message-ID: <7929530.3761220926121442.JavaMail.tcmeyers@troymeyers.com> Thanks Dale, that looks very very good. I'll do the drill and report back. I sure appreciate it. -Troy > Hi Troy, > > In the past, Apple has provided very detailed instructions for > generating KEYs, CSRs and CRTs and all that SSL good stuff. I don't > know if they've continued with Apache 2.0, but here's what I used > years ago: > > http://developer.apple.com/internet/serverside/modssl.html > > Dale From derrick at fogles.net Mon Sep 8 20:14:25 2008 From: derrick at fogles.net (Derrick Fogle) Date: Mon Sep 8 20:15:04 2008 Subject: [FX.php List] [OFF] Apache 2.2 SSL setup difficulties In-Reply-To: References: <4629408.3361220918305789.JavaMail.tcmeyers@troymeyers.com> Message-ID: <384A496B-7543-4E52-85EC-EC75B027A833@fogles.net> I've got a Mac Mini doing SSL, but it's still running Panther (Apache 1.x). I followed the instructions on the Entropy website, but I tell ya, I've had lots of problems with the SSL cert on this thing. Apache does a log roll and soft restart every Sat. AM, and every few months, the thing just dies on the soft restart - complaining that there's no valid SSL cert. The cause is supposed to be the fact that the key file is password protected, and it can't be re-read on a soft restart. I can't tell you how many times I've reinstalled the cert, created a non-password key file for it, etc., but I always end up with the same problem: far before the cert is due to expire, it just stops working on the soft restart. A hard restart always works though. My personal opinion is that Mac Mini's are crap. I've got 10 times more problems with Mac Minis locking up and crashing than I do any other Mac I see deployed. Not that the poor quality of Mac Minis are your problem, but I just had to throw that out there. They are NOT even in the ballpark of server-level quality. If you use them as a server, you're in for a lot of trouble. On Sep 8, 2008, at 9:02 PM, Dale Bengston wrote: > Hi Troy, > > In the past, Apple has provided very detailed instructions for > generating KEYs, CSRs and CRTs and all that SSL good stuff. I don't > know if they've continued with Apache 2.0, but here's what I used > years ago: > > http://developer.apple.com/internet/serverside/modssl.html > > Dale > > On Sep 8, 2008, at 6:58 PM, Troy Meyers wrote: > >> A few days ago I mentioned that we got a Mac Mini (Leopard) with >> Apache 2.2 preinstalled (they just ship that way) and have managed >> to install (with help from here) PHP 5.2.5 with GD, which I had to >> do because there's no GD in the PHP installation that ships with >> Leopard. That appears to be working. >> >> The end goal is getting a secure server set up, and I had thought >> that enabling SSL in the Apache 2.2 would be easy, since (at least >> I think) all the modules needed are preinstalled and just need to >> be turned on. I also had thought that the instructions were in the >> Apache docs... but now I realize that I don't understand enough. >> Maybe they the instructions tell me how to set up different flavors >> of SSL, but not the basic on/off. The variations I've tried in >> httpd.config have just made Apache stop working. Glad I made >> backups first. >> >> What I want to do is have this one machine be my Apache server >> doing both http and https, and also have the WPE on that machine. >> Another is the database server. >> >> I've studied a number of forum archives for several days now, but >> can't find the answer, so I thought I'd finally ask here -- how do >> I do it -- or where's the best place to ask? >> >> Thanks for any help! >> >> -Troy >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 From vicepresident at comcast.net Mon Sep 8 22:03:17 2008 From: vicepresident at comcast.net (Jon & Jane Montgomery) Date: Mon Sep 8 22:03:22 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropyand MAMP In-Reply-To: Message-ID: Bob, No that is really a good response. That is where I was coming from. The version of PHP from the FileMaker Server install is several "versions" down I think. So that was really my point only I am not as versed in this area as most everyone else is on here. So your answer was great! (Musician's Humor) Jon On 9/7/08 4:24 PM, "Bob Patin" wrote: > Jon, > > Worlds will collide, life as we know it will end, animals will run > wild, dogs and cats living together,... > > Actually, I have one of my web servers still running PHP 4, and life > seems to be just fine... :) > > < I know, a totally unhelpful reply... > > > BP From vicepresident at comcast.net Mon Sep 8 22:08:47 2008 From: vicepresident at comcast.net (Jon & Jane Montgomery) Date: Mon Sep 8 22:08:50 2008 Subject: [FX.php List] Looping validation In-Reply-To: Message-ID: Derrick, Thank you ! I have been waiting to hear just that way of wording it. Answers a question I have had in my mind for over a year. And as I am working towards using this tech and was worried it would not work after all of the hard work in FMP. Thanks again! Jon Montgomery On 9/7/08 6:21 PM, "Derrick Fogle" wrote: > If you've got a script that's working, I would have to recommend > trying to just trigger the script. There are some gotchas in there > (FMP global fields don't really work with the API's), but it's a heck > of a lot less work (and will be faster) than completely re-engineering > the script in PHP. From dbengston at tds.net Mon Sep 8 23:12:28 2008 From: dbengston at tds.net (Dale Bengston) Date: Mon Sep 8 23:12:34 2008 Subject: [FX.php List] [OFF] Apache 2.2 SSL setup difficulties In-Reply-To: <384A496B-7543-4E52-85EC-EC75B027A833@fogles.net> References: <4629408.3361220918305789.JavaMail.tcmeyers@troymeyers.com> <384A496B-7543-4E52-85EC-EC75B027A833@fogles.net> Message-ID: Hmm, crashes are generally not hardware-related, in my experience, unless maybe you have a bad stick of memory or something. Our Mac mini is a workhorse. I'd have to say it has the best ROI of any Mac we have, and we have quite a few. That said, I'd never use a Mac mini as a front-line production server - it essentially has a laptop hard drive in it. But the mini sure is nice to beat around as a development box. Anyway, I'm sorry your experience with the mini is not as good. I wish I had five more of them... including one in my living room hooked up to my television! Maybe time for a wipe-and-reinstall-everything on your mini? Dale On Sep 8, 2008, at 9:14 PM, Derrick Fogle wrote: > I've got a Mac Mini doing SSL, but it's still running Panther > (Apache 1.x). I followed the instructions on the Entropy website, > but I tell ya, I've had lots of problems with the SSL cert on this > thing. Apache does a log roll and soft restart every Sat. AM, and > every few months, the thing just dies on the soft restart - > complaining that there's no valid SSL cert. The cause is supposed to > be the fact that the key file is password protected, and it can't be > re-read on a soft restart. > > I can't tell you how many times I've reinstalled the cert, created a > non-password key file for it, etc., but I always end up with the > same problem: far before the cert is due to expire, it just stops > working on the soft restart. A hard restart always works though. > > My personal opinion is that Mac Mini's are crap. I've got 10 times > more problems with Mac Minis locking up and crashing than I do any > other Mac I see deployed. Not that the poor quality of Mac Minis are > your problem, but I just had to throw that out there. They are NOT > even in the ballpark of server-level quality. If you use them as a > server, you're in for a lot of trouble. > > On Sep 8, 2008, at 9:02 PM, Dale Bengston wrote: > >> Hi Troy, >> >> In the past, Apple has provided very detailed instructions for >> generating KEYs, CSRs and CRTs and all that SSL good stuff. I don't >> know if they've continued with Apache 2.0, but here's what I used >> years ago: >> >> http://developer.apple.com/internet/serverside/modssl.html >> >> Dale >> >> On Sep 8, 2008, at 6:58 PM, Troy Meyers wrote: >> >>> A few days ago I mentioned that we got a Mac Mini (Leopard) with >>> Apache 2.2 preinstalled (they just ship that way) and have managed >>> to install (with help from here) PHP 5.2.5 with GD, which I had to >>> do because there's no GD in the PHP installation that ships with >>> Leopard. That appears to be working. >>> >>> The end goal is getting a secure server set up, and I had thought >>> that enabling SSL in the Apache 2.2 would be easy, since (at least >>> I think) all the modules needed are preinstalled and just need to >>> be turned on. I also had thought that the instructions were in the >>> Apache docs... but now I realize that I don't understand enough. >>> Maybe they the instructions tell me how to set up different >>> flavors of SSL, but not the basic on/off. The variations I've >>> tried in httpd.config have just made Apache stop working. Glad I >>> made backups first. >>> >>> What I want to do is have this one machine be my Apache server >>> doing both http and https, and also have the WPE on that machine. >>> Another is the database server. >>> >>> I've studied a number of forum archives for several days now, but >>> can't find the answer, so I thought I'd finally ask here -- how do >>> I do it -- or where's the best place to ask? >>> >>> Thanks for any help! >>> >>> -Troy >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Tue Sep 9 09:46:05 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Sep 9 09:46:11 2008 Subject: [FX.php List] [OFF] Apache 2.2 SSL setup difficulties Message-ID: <3823725.5961220975165904.JavaMail.tcmeyers@troymeyers.com> Dale and Derrick, Thank you for the comments about using Mac Minis. If it doesn't work out for me I won't feel like no one warned me. For what it's worth, the machine currently running Apache 1.3/Tiger/WPE that we will be swapping out (once the new on with Apache 2.2/Leopard/WPE is ready) is also a Mini, actually an older, slower one (1.66 GHz, 512MB -- maybe 32-bit because it's "Intel Core Duo" rather than "Intel Core 2 Duo") with less memory than the new one, and it has been trouble-free the entire time it's been in use since December 2006 when it was the database server, then October 2007 when it moved to the Apache/WPE job, never a problem, never had to restart it. Our site is pretty esoteric, so it could be that the demands on it aren't at "production" levels. The new one is 2GHz, 1GB, "Intel Core 2 Duo" which I guess means 64-bit. We do have some even older Minis that aren't Intel and they are sluggish. Relegated to workstations. -Troy > Hmm, crashes are generally not hardware-related, in my experience, > unless maybe you have a bad stick of memory or something. Our Mac mini > is a workhorse. I'd have to say it has the best ROI of any Mac we > have, and we have quite a few. That said, I'd never use a Mac mini as > a front-line production server - it essentially has a laptop hard > drive in it. But the mini sure is nice to beat around as a development > box. > > Anyway, I'm sorry your experience with the mini is not as good. I wish > I had five more of them... including one in my living room hooked up > to my television! > > Maybe time for a wipe-and-reinstall-everything on your mini? > > Dale From tcmeyers at troymeyers.com Tue Sep 9 09:50:00 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Sep 9 09:50:03 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP Message-ID: <5270786.6001220975400411.JavaMail.tcmeyers@troymeyers.com> Thanks Kevin, Luckily I've dodged using MAMP, with the beta Entropy installer. I appreciate the warning. -Troy > I can't help with your specific problem Troy, but I would not advise > moving to MAMP. MAMP is intended as a local development environment, and > the MAMP guys themselves don't recommend it for production. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ From jschwartz at exit445.com Tue Sep 9 11:18:28 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Sep 9 11:20:42 2008 Subject: [FX.php List] Filling a multi-dimensional array Message-ID: Apologies ahead of time for asking this RTM question, but I need to get this worked at ASAP. I need to populate a multi-dimenisional array from an FMP query. The existing code, below, populates only the last record. What syntax build the array with all found values? $additionalParameters= array(); foreach($findResult2['data'] as $key => $value2) { $additionalParameters= array($value2['paramkey'][0] => $value2['paramvalue'][0]); } Thanks J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dan.cynosure at dbmscan.com Tue Sep 9 11:32:52 2008 From: dan.cynosure at dbmscan.com (DC) Date: Tue Sep 9 11:32:55 2008 Subject: [FX.php List] Filling a multi-dimensional array In-Reply-To: References: Message-ID: <48C6B344.406@dbmscan.com> $additionalParameters[]= array($value2['paramkey'][0] => $value2['paramvalue'][0]); Jonathan Schwartz wrote: > Apologies ahead of time for asking this RTM question, but I need to get > this worked at ASAP. > > I need to populate a multi-dimenisional array from an FMP query. The > existing code, below, populates only the last record. What syntax build > the array with all found values? > > > $additionalParameters= array(); > foreach($findResult2['data'] as $key => $value2) > { > $additionalParameters= array($value2['paramkey'][0] => > $value2['paramvalue'][0]); > } > > > Thanks > > J From jschwartz at exit445.com Tue Sep 9 12:16:45 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Sep 9 12:18:29 2008 Subject: [FX.php List] Filling a multi-dimensional array In-Reply-To: <48C6B344.406@dbmscan.com> References: <48C6B344.406@dbmscan.com> Message-ID: Thanks DC. Although this does build an array with each record, it isn't the type of array structure I was expecting . I was looking for this result: Array ( [year] => 2008 [status] => active ) I got this result: Array ( [0] => Array ( [status] => active ) [1] => Array ( [year] => 2008 ) ) Jonathan At 1:32 PM -0400 9/9/08, DC wrote: >$additionalParameters[]= array($value2['paramkey'][0] => >$value2['paramvalue'][0]); > >Jonathan Schwartz wrote: >>Apologies ahead of time for asking this RTM question, but I need to >>get this worked at ASAP. >> >>I need to populate a multi-dimenisional array from an FMP query. >>The existing code, below, populates only the last record. What >>syntax build the array with all found values? >> >> >>$additionalParameters= array(); >> foreach($findResult2['data'] as $key => $value2) >> { >> $additionalParameters= array($value2['paramkey'][0] => >>$value2['paramvalue'][0]); >> } >> >> >>Thanks >> >>J >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080909/2f60a39d/attachment-0001.html From steve at bluecrocodile.co.nz Tue Sep 9 12:37:17 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Sep 9 12:37:28 2008 Subject: [FX.php List] Filling a multi-dimensional array In-Reply-To: References: <48C6B344.406@dbmscan.com> Message-ID: Hi Jonathan, Try this; $counter = 0; $additionalParameters= array(); foreach($findResult2['data'] as $key => $value2) { $additionalParameters[$counter]['year'] = $value2['paramkey'][0]; $additionalParameters[$counter]['status'] =$value2['paramvalue'][0]); $counter++; } Should give you; Array ( [0] => Array( [year] => 2008 [status] => active )) Cheers Steve -----Original Message----- From: Jonathan Schwartz To: "FX.php Discussion List" Date: Tue, 9 Sep 2008 11:16:45 -0700 Subject: Re: [FX.php List] Filling a multi-dimensional array Thanks DC. Although this does build an array with each record, it isn't the type of array structure I was expecting . I was looking for this result: Array ( [year] => 2008 [status] => active ) I got this result: Array ( [0] => Array ( [status] => active ) [1] => Array ( [year] => 2008 ) ) Jonathan At 1:32 PM -0400 9/9/08, DC wrote: $additionalParameters[]= array($value2['paramkey'][0] => $value2['paramvalue'][0]); Jonathan Schwartz wrote: Apologies ahead of time for asking this RTM question, but I need to get this worked at ASAP. I need to populate a multi-dimenisional array from an FMP query. The existing code, below, populates only the last record. What syntax build the array with all found values? $additionalParameters= array(); foreach($findResult2['data'] as $key => $value2) { $additionalParameters= array($value2['paramkey'][0] => $value2['paramvalue'][0]); } Thanks J _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080909/9e010f45/attachment.html From dan.cynosure at dbmscan.com Tue Sep 9 12:59:45 2008 From: dan.cynosure at dbmscan.com (DC) Date: Tue Sep 9 12:59:49 2008 Subject: [FX.php List] Filling a multi-dimensional array In-Reply-To: References: <48C6B344.406@dbmscan.com> Message-ID: <48C6C7A1.9000900@dbmscan.com> ha ha ha! you're like that client who changes the spec in the middle of the project. you must have taken the line i sent and pasted it in TWICE to get the result you showed. that is, you asked for something with one paramkey and paramvalue, $additionalParameters= array($value2['paramkey'][0] => $value2['paramvalue'][0]); but you actually required two paramkeys and two values. steve winter's should work for you - his working spec: two paramkeys, two paramvalues per nested array. glad you solved it anyway! dan Jonathan Schwartz wrote: > Thanks DC. > > Although this does build an array with each record, it isn't the type of > array structure I was expecting . > > I was looking for this result: > > Array > ( > [year] => 2008 > [status] => active > ) > > I got this result: > > Array > ( > [0] => Array > ( > [status] => active > ) > > [1] => Array > ( > [year] => 2008 > ) > ) > > > Jonathan > > > > At 1:32 PM -0400 9/9/08, DC wrote: > > >> $additionalParameters[]= array($value2['paramkey'][0] => >> $value2['paramvalue'][0]); >> >> Jonathan Schwartz wrote: >>> Apologies ahead of time for asking this RTM question, but I need to >>> get this worked at ASAP. >>> >>> I need to populate a multi-dimenisional array from an FMP query. The >>> existing code, below, populates only the last record. What syntax >>> build the array with all found values? >>> >>> >>> $additionalParameters= array(); >>> foreach($findResult2['data'] as $key => $value2) >>> { >>> $additionalParameters= array($value2['paramkey'][0] => >>> $value2['paramvalue'][0]); >>> } >>> >>> >>> Thanks >>> >>> J >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > > > ------------------------------------------------------------------------ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jschwartz at exit445.com Tue Sep 9 13:03:57 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Sep 9 13:08:26 2008 Subject: [FX.php List] Filling a multi-dimensional array In-Reply-To: References: <48C6B344.406@dbmscan.com> Message-ID: Hey Steve! This is actually the next step of the technique you gave me during lunch at DevCon. ;-) I am adding the ability to process additional search parameter pairs in my favorite searchPage template script. There might be 0 extra parameter pairs...there might be 5. So... they will not always be just "year" and "status". How do I deal with that? On the other end, in building the FMP query that uses these pairs, this the script I use to create the addlitional AddDBParam entries; foreach($additionalParameters as $paramKey => $paramValue) { $search->AddDBParam($paramKey, $paramValue); } I suspect that the multidimensional array will not work with the code above. J At 7:37 PM +0100 9/9/08, Steve Winter wrote: >Hi Jonathan, > >Try this; > > $counter = 0; > $additionalParameters= array(); > foreach($findResult2['data'] as $key => $value2) { > $additionalParameters[$counter]['year'] = $value2['paramkey'][0]; > $additionalParameters[$counter]['status'] = $value2['paramvalue'][0]); > $counter++; > } > > >Should give you; > >Array ( > [0] => Array ( > [year] => 2008 > [status] => active > >) >) > >Cheers >Steve > >-----Original Message----- >From: Jonathan Schwartz >To: "FX.php Discussion List" >Date: Tue, 9 Sep 2008 11:16:45 -0700 >Subject: Re: [FX.php List] Filling a multi-dimensional array > >Thanks DC. > >Although this does build an array with each record, it isn't the >type of array structure I was expecting . > >I was looking for this result: > >Array >( > [year] => 2008 > [status] => active >) > >I got this result: > >Array >( > [0] => Array > ( > [status] => active > ) > > [1] => Array > ( > [year] => 2008 > ) >) > > >Jonathan > > > >At 1:32 PM -0400 9/9/08, DC wrote: > > >>$additionalParameters[]= array($value2['paramkey'][0] => >>$value2['paramvalue'][0]); >> >>Jonathan Schwartz wrote: >> >>>Apologies ahead of time for asking this RTM question, but I need >>>to get this worked at ASAP. >>> >>>I need to populate a multi-dimenisional array from an FMP query. >>>The existing code, below, populates only the last record. What >>>syntax build the array with all found values? >>> >>> >>>$additionalParameters= array(); >>> foreach($findResult2['data'] as $key => $value2) >>> { >>> $additionalParameters= array($value2['paramkey'][0] => >>>$value2['paramvalue'][0]); >>> } >>> >>> >>>Thanks >>> >>>J >>> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list > > > >-- >Jonathan Schwartz >Exit 445 Group >jonathan@exit445.com >http://www.exit445.com >415-370-5011 > > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080909/e4c56331/attachment.html From jschwartz at exit445.com Tue Sep 9 13:17:18 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Sep 9 13:18:37 2008 Subject: [FX.php List] Filling a multi-dimensional array In-Reply-To: <48C6C7A1.9000900@dbmscan.com> References: <48C6B344.406@dbmscan.com> <48C6C7A1.9000900@dbmscan.com> Message-ID: Think maybe I had not explained myself adequately. I need to process a *variable* number of "records", each one containing a field name and a value. "Year" and "Status" was just an example of using 2 pairs. It could be... Year = 2008 Status = active Gender = M Grade = 10 etc..... Now...perhaps the structure you created is the best one. If so, how do I parse the multidimensional array below to extract the pairs? Array ( [0] => Array ( [status] => active ) [1] => Array ( [year] => 2008 ) ) J At 2:59 PM -0400 9/9/08, DC wrote: >ha ha ha! you're like that client who changes the spec in the middle >of the project. > >you must have taken the line i sent and pasted it in TWICE to get >the result you showed. that is, you asked for something with one >paramkey and paramvalue, > >$additionalParameters= array($value2['paramkey'][0] => >$value2['paramvalue'][0]); > >but you actually required two paramkeys and two values. steve >winter's should work for you - his working spec: two paramkeys, two >paramvalues per nested array. > >glad you solved it anyway! >dan > >Jonathan Schwartz wrote: >>Thanks DC. >> >>Although this does build an array with each record, it isn't the >>type of array structure I was expecting . >> >>I was looking for this result: >> >>Array >>( >> [year] => 2008 >> [status] => active >>) >> >>I got this result: >> >>Array >>( >> [0] => Array >> ( >> [status] => active >> ) >> >> [1] => Array >> ( >> [year] => 2008 >> ) >>) >> >> >>Jonathan >> >> >> >>At 1:32 PM -0400 9/9/08, DC wrote: >> >>>$additionalParameters[]= array($value2['paramkey'][0] => >>>$value2['paramvalue'][0]); >>> >>>Jonathan Schwartz wrote: >>>>Apologies ahead of time for asking this RTM question, but I need >>>>to get this worked at ASAP. >>>> >>>>I need to populate a multi-dimenisional array from an FMP query. >>>>The existing code, below, populates only the last record. What >>>>syntax build the array with all found values? >>>> >>>> >>>>$additionalParameters= array(); >>>> foreach($findResult2['data'] as $key => $value2) >>>> { >>>> $additionalParameters= array($value2['paramkey'][0] => >>>>$value2['paramvalue'][0]); >>>> } >>>> >>>> >>>>Thanks >>>> >>>>J >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >> >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >> >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dan.cynosure at dbmscan.com Tue Sep 9 13:41:21 2008 From: dan.cynosure at dbmscan.com (DC) Date: Tue Sep 9 13:41:25 2008 Subject: [FX.php List] Filling a multi-dimensional array In-Reply-To: References: <48C6B344.406@dbmscan.com> <48C6C7A1.9000900@dbmscan.com> Message-ID: <48C6D161.8020209@dbmscan.com> well, "the structure i created" gives you an array with all the values in it which was what you requested help on. ;-) but, when you say "process" it sounds like you want to take FX data array and turn it from a recordset array into a columnset array so you can use it easily in a menu or something? maybe this is what you are looking for: --------------------------------- $i=0; $additionalParameters= array(); foreach($findResult2['data'] as $record) { foreach($record as $fieldname=>$field) { $additionalParameters[$i][$fieldname] => $field[0]); } $i++; } ---------------------------------- that assumes you don't have any related fields. this code does two things to the raw FX data array: 1) flattens it so there are no nested arrays at the lowest level (FX has a parameter for this, so you really might enjoy a read through the manual. :-) 2) removes the modid and recid keys and replaces them with numeric keys for easier array manipulation. dan Jonathan Schwartz wrote: > Think maybe I had not explained myself adequately. > > I need to process a *variable* number of "records", each one containing > a field name and a value. "Year" and "Status" was just an example of > using 2 pairs. It could be... > > Year = 2008 > Status = active > Gender = M > Grade = 10 > etc..... > > Now...perhaps the structure you created is the best one. If so, how do > I parse the multidimensional array below to extract the pairs? > > Array > ( > [0] => Array > ( > [status] => active > ) > > [1] => Array > ( > [year] => 2008 > ) > ) > > J > > > At 2:59 PM -0400 9/9/08, DC wrote: >> ha ha ha! you're like that client who changes the spec in the middle >> of the project. >> >> you must have taken the line i sent and pasted it in TWICE to get the >> result you showed. that is, you asked for something with one paramkey >> and paramvalue, >> >> $additionalParameters= array($value2['paramkey'][0] => >> $value2['paramvalue'][0]); >> >> but you actually required two paramkeys and two values. steve winter's >> should work for you - his working spec: two paramkeys, two paramvalues >> per nested array. >> >> glad you solved it anyway! >> dan >> >> Jonathan Schwartz wrote: >>> Thanks DC. >>> >>> Although this does build an array with each record, it isn't the type >>> of array structure I was expecting . >>> >>> I was looking for this result: >>> >>> Array >>> ( >>> [year] => 2008 >>> [status] => active >>> ) >>> >>> I got this result: >>> >>> Array >>> ( >>> [0] => Array >>> ( >>> [status] => active >>> ) >>> >>> [1] => Array >>> ( >>> [year] => 2008 >>> ) >>> ) >>> >>> >>> Jonathan >>> >>> >>> >>> At 1:32 PM -0400 9/9/08, DC wrote: >>> >>>> $additionalParameters[]= array($value2['paramkey'][0] => >>>> $value2['paramvalue'][0]); >>>> >>>> Jonathan Schwartz wrote: >>>>> Apologies ahead of time for asking this RTM question, but I need to >>>>> get this worked at ASAP. >>>>> >>>>> I need to populate a multi-dimenisional array from an FMP query. >>>>> The existing code, below, populates only the last record. What >>>>> syntax build the array with all found values? >>>>> >>>>> >>>>> $additionalParameters= array(); >>>>> foreach($findResult2['data'] as $key => $value2) >>>>> { >>>>> $additionalParameters= array($value2['paramkey'][0] => >>>>> $value2['paramvalue'][0]); >>>>> } >>>>> >>>>> >>>>> Thanks >>>>> >>>>> J >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > From jschwartz at exit445.com Tue Sep 9 13:41:49 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Sep 9 13:43:29 2008 Subject: [FX.php List] Filling a multi-dimensional .... RESOLVED In-Reply-To: References: <48C6B344.406@dbmscan.com> <48C6C7A1.9000900@dbmscan.com> Message-ID: THIS is what I needed: $additionalParameters[$value2['paramkey'][0]] = $value2['paramvalue'][0]; Thanks DC and Steve. You got me on the right path. J >Think maybe I had not explained myself adequately. > >I need to process a *variable* number of "records", each one >containing a field name and a value. "Year" and "Status" was just >an example of using 2 pairs. It could be... > >Year = 2008 >Status = active >Gender = M >Grade = 10 >etc..... > >Now...perhaps the structure you created is the best one. If so, how >do I parse the multidimensional array below to extract the pairs? > >Array >( > [0] => Array > ( > [status] => active > ) > > [1] => Array > ( > [year] => 2008 > ) >) > >J > > >At 2:59 PM -0400 9/9/08, DC wrote: >>ha ha ha! you're like that client who changes the spec in the >>middle of the project. >> >>you must have taken the line i sent and pasted it in TWICE to get >>the result you showed. that is, you asked for something with one >>paramkey and paramvalue, >> >>$additionalParameters= array($value2['paramkey'][0] => >>$value2['paramvalue'][0]); >> >>but you actually required two paramkeys and two values. steve >>winter's should work for you - his working spec: two paramkeys, two >>paramvalues per nested array. >> >>glad you solved it anyway! >>dan >> >>Jonathan Schwartz wrote: >>>Thanks DC. >>> >>>Although this does build an array with each record, it isn't the >>>type of array structure I was expecting . >>> >>>I was looking for this result: >>> >>>Array >>>( >>> [year] => 2008 >>> [status] => active >>>) >>> >>>I got this result: >>> >>>Array >>>( >>> [0] => Array >>> ( >>> [status] => active >>> ) >>> >>> [1] => Array >>> ( >>> [year] => 2008 >>> ) >>>) >>> >>> >>>Jonathan >>> >>> >>> >>>At 1:32 PM -0400 9/9/08, DC wrote: >>> >>>>$additionalParameters[]= array($value2['paramkey'][0] => >>>>$value2['paramvalue'][0]); >>>> >>>>Jonathan Schwartz wrote: >>>>>Apologies ahead of time for asking this RTM question, but I need >>>>>to get this worked at ASAP. >>>>> >>>>>I need to populate a multi-dimenisional array from an FMP query. >>>>>The existing code, below, populates only the last record. What >>>>>syntax build the array with all found values? >>>>> >>>>> >>>>>$additionalParameters= array(); >>>>> foreach($findResult2['data'] as $key => $value2) >>>>> { >>>>> $additionalParameters= array($value2['paramkey'][0] => >>>>>$value2['paramvalue'][0]); >>>>> } >>>>> >>>>> >>>>>Thanks >>>>> >>>>>J >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>>-- >>> >>>Jonathan Schwartz >>>Exit 445 Group >>>jonathan@exit445.com >>>http://www.exit445.com >>>415-370-5011 >>> >>> >>>------------------------------------------------------------------------ >>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > > >-- >Jonathan Schwartz >Exit 445 Group >jonathan@exit445.com >http://www.exit445.com >415-370-5011 >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From kfutter at sbc.melb.catholic.edu.au Tue Sep 9 16:23:41 2008 From: kfutter at sbc.melb.catholic.edu.au (Kevin Futter) Date: Tue Sep 9 16:24:27 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: <5270786.6001220975400411.JavaMail.tcmeyers@troymeyers.com> Message-ID: My pleasure Troy. Just to be clear though, I *do* use MAMP as my local development environment, but use Entropy for production. Kev On 10/09/08 1:50 AM, "Troy Meyers" wrote: > Thanks Kevin, > > Luckily I've dodged using MAMP, with the beta Entropy installer. I appreciate > the warning. > > -Troy > > > >> I can't help with your specific problem Troy, but I would not advise >> moving to MAMP. MAMP is intended as a local development environment, and >> the MAMP guys themselves don't recommend it for production. -- Kevin Futter Webmaster, St. Bernard's College http://www.sbc.melb.catholic.edu.au/ ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### 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 Tue Sep 9 16:28:52 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Sep 9 16:28:56 2008 Subject: [FX.php List] Advice on Leopard, Apache 2, PHP w/ GD, Entropy and MAMP In-Reply-To: References: <5270786.6001220975400411.JavaMail.tcmeyers@troymeyers.com> Message-ID: One of my clients use MAMP for production and it's not as straight forward as LAMP ggt 2008/9/10 Kevin Futter : > My pleasure Troy. Just to be clear though, I *do* use MAMP as my local > development environment, but use Entropy for production. > > Kev > > On 10/09/08 1:50 AM, "Troy Meyers" wrote: > >> Thanks Kevin, >> >> Luckily I've dodged using MAMP, with the beta Entropy installer. I appreciate >> the warning. >> >> -Troy >> >> >> >>> I can't help with your specific problem Troy, but I would not advise >>> moving to MAMP. MAMP is intended as a local development environment, and >>> the MAMP guys themselves don't recommend it for production. > > > -- > Kevin Futter > Webmaster, St. Bernard's College > http://www.sbc.melb.catholic.edu.au/ > > > ##################################################################################### > This e-mail message has been scanned for Viruses and Content and cleared > by MailMarshal > ##################################################################################### > > 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 joshshrier at gmail.com Wed Sep 10 05:57:21 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 10 05:57:39 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP Message-ID: <001b01c9133c$630c8460$0200000a@JoshShrier> How do you do a search in PHP for an email in Filemaker. When it performs a regular search the "@" in the e-mail address forces a no records found result during the find. The only way to find it is the use "" around the address. I do not know how to solve this during a PHP query. Please assist. -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080910/0afa9713/attachment.html From ggt667 at gmail.com Wed Sep 10 06:02:08 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 06:02:10 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: <001b01c9133c$630c8460$0200000a@JoshShrier> References: <001b01c9133c$630c8460$0200000a@JoshShrier> Message-ID: Use unicode as storage type for field. ggt667 2008/9/10 Josh Shrier : > How do you do a search in PHP for an email in Filemaker. When it performs a > regular search the "@" in the e-mail address forces a no records found > result during the find. The only way to find it is the use "" around the > address. I do not know how to solve this during a PHP query. Please assist. > > > > -Josh Shrier > > _______________________________________________ > 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 10 06:02:46 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 06:02:48 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> Message-ID: Use unicode as storage type for field in FileMaker field definition. ggt 2008/9/10 Gjermund Gusland Thorsen : > Use unicode as storage type for field. > > ggt667 > > 2008/9/10 Josh Shrier : >> How do you do a search in PHP for an email in Filemaker. When it performs a >> regular search the "@" in the e-mail address forces a no records found >> result during the find. The only way to find it is the use "" around the >> address. I do not know how to solve this during a PHP query. Please assist. >> >> >> >> -Josh Shrier >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> > From william.downs at gmail.com Wed Sep 10 07:04:50 2008 From: william.downs at gmail.com (william.downs) Date: Wed Sep 10 07:05:00 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: <001b01c9133c$630c8460$0200000a@JoshShrier> References: <001b01c9133c$630c8460$0200000a@JoshShrier> Message-ID: <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> Hi Josh, Surely using double == works ? as in $medFind->AddDBParam('Email',"==".$medEmail); I may be lost here though William On 10 Sep 2008, at 12:57, Josh Shrier wrote: How do you do a search in PHP for an email in Filemaker. When it performs a regular search the ?@? in the e-mail address forces a no records found result during the find. The only way to find it is the use ?? around the address. I do not know how to solve this during a PHP query. Please assist. -Josh Shrier _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080910/610df540/attachment-0001.html From dan.cynosure at dbmscan.com Wed Sep 10 07:40:50 2008 From: dan.cynosure at dbmscan.com (DC) Date: Wed Sep 10 07:41:30 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> Message-ID: <48C7CE62.7070202@dbmscan.com> search the archives... this one is a chestnut. anyone make progress on that FAQ we started last year? http://www.google.com/coop/cse?cx=013867382578033190853%3Axht3ywlmfpc cheers, dan william.downs wrote: > Hi Josh, > > Surely using double == works ? > > as in $medFind->AddDBParam('Email',"==".$medEmail); > > I may be lost here though > > William > > On 10 Sep 2008, at 12:57, Josh Shrier wrote: > > How do you do a search in PHP for an email in Filemaker. When it > performs a regular search the ?@? in the e-mail address forces a no > records found result during the find. The only way to find it is the use > ?? around the address. I do not know how to solve this during a PHP > query. Please assist. > > > > -Josh Shrier > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > ------------------------------------------------------------------------ > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Wed Sep 10 09:21:30 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Sep 10 09:21:44 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> Message-ID: <7F487BF1-D5F2-475B-A367-A73127C60FB3@earthlink.net> Hi Josh If you're using this as part of a login scheme (or for anything where you want people to only find the exact email they search for), I'd recommend adding two additional components to William's suggestion: $login->AddDBParam( 'email', '=="' . str_replace( '"', '', $_POST ['email'] ) . '"' ); Notice that: a) there's an opening double-quote immediately after the == and the closing double-quote on the other side of the submitted string b) the str_replace() strips any double-quotes that might be submitted by the user, since otherwise the user could enter "* (double-quote asterisk), which would be equivalent to entering an asterisk in a Find within FileMaker (thanks again to Troy for making me aware of this vulnerability) HTH, -Joel On Sep 10, 2008, at 6:04 AM, william.downs wrote: > Hi Josh, > > Surely using double == works ? > > as in $medFind->AddDBParam('Email',"==".$medEmail); > > I may be lost here though > > William > > On 10 Sep 2008, at 12:57, Josh Shrier wrote: > > How do you do a search in PHP for an email in Filemaker. When it > performs a regular search the ?@? in the e-mail address forces a no > records found result during the find. The only way to find it is > the use ?? around the address. I do not know how to solve this > during a PHP query. Please assist. > > > > -Josh Shrier > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/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 10 09:23:16 2008 From: fx at 9degrees.com (Michael Layne) Date: Wed Sep 10 09:23:20 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: <48C7CE62.7070202@dbmscan.com> References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> Message-ID: Here's what I did a few years ago because it was a bit squirrelly (like you're finding out...) in PHP... $user = str_replace("@","",$_POST['email']); // BEGIN : here we're grabbing the record information $q = new FX($ip, $port); $q->SetDBData($fmdb,$lay . 'parentlist'); $q->SetDBPassword($fmpw[0],$fmpw[1]); $q->AddDBParam('email_lookup',$user); $r = $q->FMFind(); in FileMaker: email_lookup = calc... Substitute ( email ; "@" ; "" ) works for me! HTH... Michael Michael Layne | 9 degrees development | 9degrees.com | skype:laynebay On Sep 10, 2008, at 9:40 AM, DC wrote: > search the archives... this one is a chestnut. anyone make progress > on that FAQ we started last year? > > http://www.google.com/coop/cse?cx=013867382578033190853%3Axht3ywlmfpc > > cheers, > dan > > william.downs wrote: >> Hi Josh, >> Surely using double == works ? >> as in $medFind->AddDBParam('Email',"==".$medEmail); >> I may be lost here though >> William >> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >> How do you do a search in PHP for an email in Filemaker. When it >> performs a regular search the ?@? in the e-mail address forces a no >> records found result during the find. The only way to find it is >> the use ?? around the address. I do not know how to solve this >> during a PHP query. Please assist. >> -Josh Shrier >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> ------------------------------------------------------------------------ >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080910/3a6ac739/attachment.html From ggt667 at gmail.com Wed Sep 10 09:53:52 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 09:53:55 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> Message-ID: I am sure you would all benefit from first making the fields correct, then the tables, then the relationships, then the php/ScriptMaker stuff. Doing the design right makes alot of scripting unnecessary. ggt 2008/9/10 Michael Layne : > Here's what I did a few years ago because it was a bit squirrelly (like > you're finding out...) > in PHP... > $user = str_replace("@","",$_POST['email']); > // BEGIN : here we're grabbing the record information > $q = new FX($ip, $port); > $q->SetDBData($fmdb,$lay . 'parentlist'); > $q->SetDBPassword($fmpw[0],$fmpw[1]); > $q->AddDBParam('email_lookup',$user); > $r = $q->FMFind(); > > in FileMaker: > email_lookup = calc... > Substitute ( email ; "@" ; "" ) > works for me! > HTH... > Michael > Michael Layne | 9 degrees development | 9degrees.com | skype:laynebay > On Sep 10, 2008, at 9:40 AM, DC wrote: > > search the archives... this one is a chestnut. anyone make progress on that > FAQ we started last year? > > http://www.google.com/coop/cse?cx=013867382578033190853%3Axht3ywlmfpc > > cheers, > dan > > william.downs wrote: > > Hi Josh, > > Surely using double == works ? > > as in $medFind->AddDBParam('Email',"==".$medEmail); > > I may be lost here though > > William > > On 10 Sep 2008, at 12:57, Josh Shrier wrote: > > How do you do a search in PHP for an email in Filemaker. When it performs a > regular search the "@" in the e-mail address forces a no records found > result during the find. The only way to find it is the use "" around the > address. I do not know how to solve this during a PHP query. Please assist. > > -Josh Shrier > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/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 10 09:57:59 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 09:58:01 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> Message-ID: The reason why it's clumsy to store emails in the a field that has a language sorting is: Language indexes strips off everything outside of the characters that makes up the language, for english that would be all characters [A-Z][a-z] on top of it all A=a, so much for individual characters... @ is most likely turned into an IFS( inter field separator such as tab, newline and space ) when a language is used for indexing the field. Switching to Unicode instead of a language does turn off all this imaginary wordsplitting stuff and therefore indexes an email as 1 entity. hth, ggt 2008/9/10 Gjermund Gusland Thorsen : > I am sure you would all benefit from first making the fields correct, > then the tables, then the relationships, then the php/ScriptMaker > stuff. > > Doing the design right makes alot of scripting unnecessary. > > ggt > > 2008/9/10 Michael Layne : >> Here's what I did a few years ago because it was a bit squirrelly (like >> you're finding out...) >> in PHP... >> $user = str_replace("@","",$_POST['email']); >> // BEGIN : here we're grabbing the record information >> $q = new FX($ip, $port); >> $q->SetDBData($fmdb,$lay . 'parentlist'); >> $q->SetDBPassword($fmpw[0],$fmpw[1]); >> $q->AddDBParam('email_lookup',$user); >> $r = $q->FMFind(); >> >> in FileMaker: >> email_lookup = calc... >> Substitute ( email ; "@" ; "" ) >> works for me! >> HTH... >> Michael >> Michael Layne | 9 degrees development | 9degrees.com | skype:laynebay >> On Sep 10, 2008, at 9:40 AM, DC wrote: >> >> search the archives... this one is a chestnut. anyone make progress on that >> FAQ we started last year? >> >> http://www.google.com/coop/cse?cx=013867382578033190853%3Axht3ywlmfpc >> >> cheers, >> dan >> >> william.downs wrote: >> >> Hi Josh, >> >> Surely using double == works ? >> >> as in $medFind->AddDBParam('Email',"==".$medEmail); >> >> I may be lost here though >> >> William >> >> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >> >> How do you do a search in PHP for an email in Filemaker. When it performs a >> regular search the "@" in the e-mail address forces a no records found >> result during the find. The only way to find it is the use "" around the >> address. I do not know how to solve this during a PHP query. Please assist. >> >> -Josh Shrier >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/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 jsfmp at earthlink.net Wed Sep 10 10:24:44 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Sep 10 10:24:59 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> Message-ID: <6411BF06-38C9-47A2-89C2-C39159F300DC@earthlink.net> But one problem w/ setting an email field's index to unicode is that if someone searches for JohnSmith@gmail.com, they won't find johnsmith@gmail.com, right? -Joel On Sep 10, 2008, at 8:57 AM, Gjermund Gusland Thorsen wrote: > The reason why it's clumsy to store emails in the a field that has a > language sorting is: > > Language indexes strips off everything outside of the characters that > makes up the language, > for english that would be all characters [A-Z][a-z] on top of it all > A=a, so much for individual characters... > @ is most likely turned into an IFS( inter field separator such as > tab, newline and space ) when a language is used for indexing the > field. > > Switching to Unicode instead of a language does turn off all this > imaginary wordsplitting stuff and therefore indexes an email as 1 > entity. > > hth, > ggt > > 2008/9/10 Gjermund Gusland Thorsen : >> I am sure you would all benefit from first making the fields correct, >> then the tables, then the relationships, then the php/ScriptMaker >> stuff. >> >> Doing the design right makes alot of scripting unnecessary. >> >> ggt >> >> 2008/9/10 Michael Layne : >>> Here's what I did a few years ago because it was a bit squirrelly >>> (like >>> you're finding out...) >>> in PHP... >>> $user = str_replace("@","",$_POST['email']); >>> // BEGIN : here we're grabbing the record information >>> $q = new FX($ip, $port); >>> $q->SetDBData($fmdb,$lay . 'parentlist'); >>> $q->SetDBPassword($fmpw[0],$fmpw[1]); >>> $q->AddDBParam('email_lookup',$user); >>> $r = $q->FMFind(); >>> >>> in FileMaker: >>> email_lookup = calc... >>> Substitute ( email ; "@" ; "" ) >>> works for me! >>> HTH... >>> Michael >>> Michael Layne | 9 degrees development | 9degrees.com | >>> skype:laynebay >>> On Sep 10, 2008, at 9:40 AM, DC wrote: >>> >>> search the archives... this one is a chestnut. anyone make >>> progress on that >>> FAQ we started last year? >>> >>> http://www.google.com/coop/cse?cx=013867382578033190853% >>> 3Axht3ywlmfpc >>> >>> cheers, >>> dan >>> >>> william.downs wrote: >>> >>> Hi Josh, >>> >>> Surely using double == works ? >>> >>> as in $medFind->AddDBParam('Email',"==".$medEmail); >>> >>> I may be lost here though >>> >>> William >>> >>> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >>> >>> How do you do a search in PHP for an email in Filemaker. When it >>> performs a >>> regular search the "@" in the e-mail address forces a no records >>> found >>> result during the find. The only way to find it is the use "" >>> around the >>> address. I do not know how to solve this during a PHP query. >>> Please assist. >>> >>> -Josh Shrier >>> >>> _______________________________________________ >>> >>> FX.php_List mailing list >>> >>> FX.php_List@mail.iviking.org >>> >>> http://www.iviking.org/mailman/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 fx at 9degrees.com Wed Sep 10 10:34:12 2008 From: fx at 9degrees.com (Michael Layne) Date: Wed Sep 10 10:34:16 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> Message-ID: Makes sense. Thanks Gjermund... Michael Layne | 9 degrees development | 9degrees.com | skype:laynebay On Sep 10, 2008, at 11:57 AM, Gjermund Gusland Thorsen wrote: > The reason why it's clumsy to store emails in the a field that has a > language sorting is: > > Language indexes strips off everything outside of the characters that > makes up the language, > for english that would be all characters [A-Z][a-z] on top of it all > A=a, so much for individual characters... > @ is most likely turned into an IFS( inter field separator such as > tab, newline and space ) when a language is used for indexing the > field. > > Switching to Unicode instead of a language does turn off all this > imaginary wordsplitting stuff and therefore indexes an email as 1 > entity. > > hth, > ggt > > 2008/9/10 Gjermund Gusland Thorsen : >> I am sure you would all benefit from first making the fields correct, >> then the tables, then the relationships, then the php/ScriptMaker >> stuff. >> >> Doing the design right makes alot of scripting unnecessary. >> >> ggt >> >> 2008/9/10 Michael Layne : >>> Here's what I did a few years ago because it was a bit squirrelly >>> (like >>> you're finding out...) >>> in PHP... >>> $user = str_replace("@","",$_POST['email']); >>> // BEGIN : here we're grabbing the record information >>> $q = new FX($ip, $port); >>> $q->SetDBData($fmdb,$lay . 'parentlist'); >>> $q->SetDBPassword($fmpw[0],$fmpw[1]); >>> $q->AddDBParam('email_lookup',$user); >>> $r = $q->FMFind(); >>> >>> in FileMaker: >>> email_lookup = calc... >>> Substitute ( email ; "@" ; "" ) >>> works for me! >>> HTH... >>> Michael >>> Michael Layne | 9 degrees development | 9degrees.com | skype:laynebay >>> On Sep 10, 2008, at 9:40 AM, DC wrote: >>> >>> search the archives... this one is a chestnut. anyone make >>> progress on that >>> FAQ we started last year? >>> >>> http://www.google.com/coop/cse? >>> cx=013867382578033190853%3Axht3ywlmfpc >>> >>> cheers, >>> dan >>> >>> william.downs wrote: >>> >>> Hi Josh, >>> >>> Surely using double == works ? >>> >>> as in $medFind->AddDBParam('Email',"==".$medEmail); >>> >>> I may be lost here though >>> >>> William >>> >>> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >>> >>> How do you do a search in PHP for an email in Filemaker. When it >>> performs a >>> regular search the "@" in the e-mail address forces a no records >>> found >>> result during the find. The only way to find it is the use "" >>> around the >>> address. I do not know how to solve this during a PHP query. >>> Please assist. >>> >>> -Josh Shrier >>> >>> _______________________________________________ >>> >>> FX.php_List mailing list >>> >>> FX.php_List@mail.iviking.org >>> >>> http://www.iviking.org/mailman/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://mail.iviking.org/pipermail/fx.php_list/attachments/20080910/ec2974de/attachment.html From joshshrier at gmail.com Wed Sep 10 12:13:24 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 10 12:13:42 2008 Subject: [FX.php List] How different is FX from MySQL Message-ID: <003201c91370$eba9d2d0$0200000a@JoshShrier> I have been offered a couple of projects to do PHP with a MySQL database. I have become pretty fluent with FX. Can someone tell me what the learning curve would be from FX to MySQL. Thanks, Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080910/954a2a2d/attachment.html From csinfo at criticalsolution.com Wed Sep 10 12:23:11 2008 From: csinfo at criticalsolution.com (John Funk) Date: Wed Sep 10 13:35:18 2008 Subject: [FX.php List] How different is FX from MySQL In-Reply-To: <003201c91370$eba9d2d0$0200000a@JoshShrier> Message-ID: You do not need FX to connect to MySql. There are many sites dedicated to this. PHP and MySQL work very well together. My 2 cents: I converted a site from MYSQL to FX/FileMaker and the resulting code is far simpler. John Funk On 9/10/08 1:13 PM, "Josh Shrier" wrote: > I have been offered a couple of projects to do PHP with a MySQL database. I > have become pretty fluent with FX. Can someone tell me what the learning curve > would be from FX to MySQL. > > Thanks, > > Josh Shrier > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080910/c36cf171/attachment.html From ggt667 at gmail.com Wed Sep 10 14:41:02 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 14:41:06 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: <6411BF06-38C9-47A2-89C2-C39159F300DC@earthlink.net> References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> <6411BF06-38C9-47A2-89C2-C39159F300DC@earthlink.net> Message-ID: Well that part of quality insurance is simple to do from the php point of view there should be strtolower() in php? ggt 2008/9/10 Joel Shapiro : > But one problem w/ setting an email field's index to unicode is that if > someone searches for JohnSmith@gmail.com, they won't find > johnsmith@gmail.com, right? > > -Joel > > > On Sep 10, 2008, at 8:57 AM, Gjermund Gusland Thorsen wrote: > >> The reason why it's clumsy to store emails in the a field that has a >> language sorting is: >> >> Language indexes strips off everything outside of the characters that >> makes up the language, >> for english that would be all characters [A-Z][a-z] on top of it all >> A=a, so much for individual characters... >> @ is most likely turned into an IFS( inter field separator such as >> tab, newline and space ) when a language is used for indexing the >> field. >> >> Switching to Unicode instead of a language does turn off all this >> imaginary wordsplitting stuff and therefore indexes an email as 1 >> entity. >> >> hth, >> ggt >> >> 2008/9/10 Gjermund Gusland Thorsen : >>> >>> I am sure you would all benefit from first making the fields correct, >>> then the tables, then the relationships, then the php/ScriptMaker >>> stuff. >>> >>> Doing the design right makes alot of scripting unnecessary. >>> >>> ggt >>> >>> 2008/9/10 Michael Layne : >>>> >>>> Here's what I did a few years ago because it was a bit squirrelly (like >>>> you're finding out...) >>>> in PHP... >>>> $user = str_replace("@","",$_POST['email']); >>>> // BEGIN : here we're grabbing the record information >>>> $q = new FX($ip, $port); >>>> $q->SetDBData($fmdb,$lay . 'parentlist'); >>>> $q->SetDBPassword($fmpw[0],$fmpw[1]); >>>> $q->AddDBParam('email_lookup',$user); >>>> $r = $q->FMFind(); >>>> >>>> in FileMaker: >>>> email_lookup = calc... >>>> Substitute ( email ; "@" ; "" ) >>>> works for me! >>>> HTH... >>>> Michael >>>> Michael Layne | 9 degrees development | 9degrees.com | >>>> skype:laynebay >>>> On Sep 10, 2008, at 9:40 AM, DC wrote: >>>> >>>> search the archives... this one is a chestnut. anyone make progress on >>>> that >>>> FAQ we started last year? >>>> >>>> http://www.google.com/coop/cse?cx=013867382578033190853%3Axht3ywlmfpc >>>> >>>> cheers, >>>> dan >>>> >>>> william.downs wrote: >>>> >>>> Hi Josh, >>>> >>>> Surely using double == works ? >>>> >>>> as in $medFind->AddDBParam('Email',"==".$medEmail); >>>> >>>> I may be lost here though >>>> >>>> William >>>> >>>> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >>>> >>>> How do you do a search in PHP for an email in Filemaker. When it >>>> performs a >>>> regular search the "@" in the e-mail address forces a no records found >>>> result during the find. The only way to find it is the use "" around the >>>> address. I do not know how to solve this during a PHP query. Please >>>> assist. >>>> >>>> -Josh Shrier >>>> >>>> _______________________________________________ >>>> >>>> FX.php_List mailing list >>>> >>>> FX.php_List@mail.iviking.org >>>> >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> >>>> FX.php_List mailing list >>>> >>>> FX.php_List@mail.iviking.org >>>> >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jsfmp at earthlink.net Wed Sep 10 14:48:26 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Sep 10 14:48:39 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> <6411BF06-38C9-47A2-89C2-C39159F300DC@earthlink.net> Message-ID: And on the FM end you'd probably have to do the same, using Lower() as an auto-enter calc. OK, this thread's gone on long enough. Over and out. -Joel On Sep 10, 2008, at 1:41 PM, Gjermund Gusland Thorsen wrote: > Well that part of quality insurance is simple to do from the php point > of view there should be strtolower() in php? > > ggt > > 2008/9/10 Joel Shapiro : >> But one problem w/ setting an email field's index to unicode is >> that if >> someone searches for JohnSmith@gmail.com, they won't find >> johnsmith@gmail.com, right? >> >> -Joel >> >> >> On Sep 10, 2008, at 8:57 AM, Gjermund Gusland Thorsen wrote: >> >>> The reason why it's clumsy to store emails in the a field that has a >>> language sorting is: >>> >>> Language indexes strips off everything outside of the characters >>> that >>> makes up the language, >>> for english that would be all characters [A-Z][a-z] on top of it all >>> A=a, so much for individual characters... >>> @ is most likely turned into an IFS( inter field separator such as >>> tab, newline and space ) when a language is used for indexing the >>> field. >>> >>> Switching to Unicode instead of a language does turn off all this >>> imaginary wordsplitting stuff and therefore indexes an email as 1 >>> entity. >>> >>> hth, >>> ggt >>> >>> 2008/9/10 Gjermund Gusland Thorsen : >>>> >>>> I am sure you would all benefit from first making the fields >>>> correct, >>>> then the tables, then the relationships, then the php/ScriptMaker >>>> stuff. >>>> >>>> Doing the design right makes alot of scripting unnecessary. >>>> >>>> ggt >>>> >>>> 2008/9/10 Michael Layne : >>>>> >>>>> Here's what I did a few years ago because it was a bit >>>>> squirrelly (like >>>>> you're finding out...) >>>>> in PHP... >>>>> $user = str_replace("@","",$_POST['email']); >>>>> // BEGIN : here we're grabbing the record information >>>>> $q = new FX($ip, $port); >>>>> $q->SetDBData($fmdb,$lay . 'parentlist'); >>>>> $q->SetDBPassword($fmpw[0],$fmpw[1]); >>>>> $q->AddDBParam('email_lookup',$user); >>>>> $r = $q->FMFind(); >>>>> >>>>> in FileMaker: >>>>> email_lookup = calc... >>>>> Substitute ( email ; "@" ; "" ) >>>>> works for me! >>>>> HTH... >>>>> Michael >>>>> Michael Layne | 9 degrees development | 9degrees.com | >>>>> skype:laynebay >>>>> On Sep 10, 2008, at 9:40 AM, DC wrote: >>>>> >>>>> search the archives... this one is a chestnut. anyone make >>>>> progress on >>>>> that >>>>> FAQ we started last year? >>>>> >>>>> http://www.google.com/coop/cse?cx=013867382578033190853% >>>>> 3Axht3ywlmfpc >>>>> >>>>> cheers, >>>>> dan >>>>> >>>>> william.downs wrote: >>>>> >>>>> Hi Josh, >>>>> >>>>> Surely using double == works ? >>>>> >>>>> as in $medFind->AddDBParam('Email',"==".$medEmail); >>>>> >>>>> I may be lost here though >>>>> >>>>> William >>>>> >>>>> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >>>>> >>>>> How do you do a search in PHP for an email in Filemaker. When it >>>>> performs a >>>>> regular search the "@" in the e-mail address forces a no >>>>> records found >>>>> result during the find. The only way to find it is the use "" >>>>> around the >>>>> address. I do not know how to solve this during a PHP query. >>>>> Please >>>>> assist. >>>>> >>>>> -Josh Shrier >>>>> >>>>> _______________________________________________ >>>>> >>>>> FX.php_List mailing list >>>>> >>>>> FX.php_List@mail.iviking.org >>>>> >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> ------------------------------------------------------------------ >>>>> ------ >>>>> >>>>> _______________________________________________ >>>>> >>>>> FX.php_List mailing list >>>>> >>>>> FX.php_List@mail.iviking.org >>>>> >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Wed Sep 10 15:00:30 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 15:00:33 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> <6411BF06-38C9-47A2-89C2-C39159F300DC@earthlink.net> Message-ID: Why? 2008/9/10 Joel Shapiro : > And on the FM end you'd probably have to do the same, using Lower() as an > auto-enter calc. > > OK, this thread's gone on long enough. Over and out. > > -Joel > > > On Sep 10, 2008, at 1:41 PM, Gjermund Gusland Thorsen wrote: > >> Well that part of quality insurance is simple to do from the php point >> of view there should be strtolower() in php? >> >> ggt >> >> 2008/9/10 Joel Shapiro : >>> >>> But one problem w/ setting an email field's index to unicode is that if >>> someone searches for JohnSmith@gmail.com, they won't find >>> johnsmith@gmail.com, right? >>> >>> -Joel >>> >>> >>> On Sep 10, 2008, at 8:57 AM, Gjermund Gusland Thorsen wrote: >>> >>>> The reason why it's clumsy to store emails in the a field that has a >>>> language sorting is: >>>> >>>> Language indexes strips off everything outside of the characters that >>>> makes up the language, >>>> for english that would be all characters [A-Z][a-z] on top of it all >>>> A=a, so much for individual characters... >>>> @ is most likely turned into an IFS( inter field separator such as >>>> tab, newline and space ) when a language is used for indexing the >>>> field. >>>> >>>> Switching to Unicode instead of a language does turn off all this >>>> imaginary wordsplitting stuff and therefore indexes an email as 1 >>>> entity. >>>> >>>> hth, >>>> ggt >>>> >>>> 2008/9/10 Gjermund Gusland Thorsen : >>>>> >>>>> I am sure you would all benefit from first making the fields correct, >>>>> then the tables, then the relationships, then the php/ScriptMaker >>>>> stuff. >>>>> >>>>> Doing the design right makes alot of scripting unnecessary. >>>>> >>>>> ggt >>>>> >>>>> 2008/9/10 Michael Layne : >>>>>> >>>>>> Here's what I did a few years ago because it was a bit squirrelly >>>>>> (like >>>>>> you're finding out...) >>>>>> in PHP... >>>>>> $user = str_replace("@","",$_POST['email']); >>>>>> // BEGIN : here we're grabbing the record information >>>>>> $q = new FX($ip, $port); >>>>>> $q->SetDBData($fmdb,$lay . 'parentlist'); >>>>>> $q->SetDBPassword($fmpw[0],$fmpw[1]); >>>>>> $q->AddDBParam('email_lookup',$user); >>>>>> $r = $q->FMFind(); >>>>>> >>>>>> in FileMaker: >>>>>> email_lookup = calc... >>>>>> Substitute ( email ; "@" ; "" ) >>>>>> works for me! >>>>>> HTH... >>>>>> Michael >>>>>> Michael Layne | 9 degrees development | 9degrees.com | >>>>>> skype:laynebay >>>>>> On Sep 10, 2008, at 9:40 AM, DC wrote: >>>>>> >>>>>> search the archives... this one is a chestnut. anyone make progress on >>>>>> that >>>>>> FAQ we started last year? >>>>>> >>>>>> http://www.google.com/coop/cse?cx=013867382578033190853%3Axht3ywlmfpc >>>>>> >>>>>> cheers, >>>>>> dan >>>>>> >>>>>> william.downs wrote: >>>>>> >>>>>> Hi Josh, >>>>>> >>>>>> Surely using double == works ? >>>>>> >>>>>> as in $medFind->AddDBParam('Email',"==".$medEmail); >>>>>> >>>>>> I may be lost here though >>>>>> >>>>>> William >>>>>> >>>>>> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >>>>>> >>>>>> How do you do a search in PHP for an email in Filemaker. When it >>>>>> performs a >>>>>> regular search the "@" in the e-mail address forces a no records found >>>>>> result during the find. The only way to find it is the use "" around >>>>>> the >>>>>> address. I do not know how to solve this during a PHP query. Please >>>>>> assist. >>>>>> >>>>>> -Josh Shrier >>>>>> >>>>>> _______________________________________________ >>>>>> >>>>>> FX.php_List mailing list >>>>>> >>>>>> FX.php_List@mail.iviking.org >>>>>> >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> _______________________________________________ >>>>>> >>>>>> FX.php_List mailing list >>>>>> >>>>>> FX.php_List@mail.iviking.org >>>>>> >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From tcmeyers at troymeyers.com Wed Sep 10 15:11:47 2008 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Wed Sep 10 15:11:50 2008 Subject: [FX.php List] [OFF] Apache 2.2 SSL setup difficulties Message-ID: <8246082.13601221081107500.JavaMail.tcmeyers@troymeyers.com> Dale, Reporting back. Thanks to this reference, a lot of head-scratching and undoing and redoing, and some offlist suggestions from Bob Patin, I have the new Mini operating as a secure server. I couldn't actually use the instructions verbatim on the page... http://developer.apple.com/internet/serverside/modssl.html ...because they refer to an older version, and paths and other things have changed, as well as the fact that many of the instructions are unnecessary since in the Leopard Apache 2.2 nearly everything is already set up. But it was very helpful helping me figure out what was what, and what few lines I actually did need to change. Also, I didn't use a self-signed certificate, instead I got a free one from RapidSSL which I will be upgrading to a real one in a few days (for not that many dollars) once I'm confident that all will work as it should. I still have lots of work to do, transferring PHP files from the current WPE and figuring out if there are other consequences to doing SSL, figuring out how to make pages shift automatically to https, making sure the new Mini will work both as http and https, whether sessions remain intact when making the switch, or if it won't or they won't, how to deal with that. Thank you all. I expect to have to ask more as I proceed. I appreciate this forum. -Troy > Hi Troy, > > In the past, Apple has provided very detailed instructions for > generating KEYs, CSRs and CRTs and all that SSL good stuff. I don't > know if they've continued with Apache 2.0, but here's what I used > years ago: > > http://developer.apple.com/internet/serverside/modssl.html > > Dale From jsfmp at earthlink.net Wed Sep 10 15:13:50 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Sep 10 15:14:03 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: References: <001b01c9133c$630c8460$0200000a@JoshShrier> <96A22CE8-5F76-42FD-933B-1ACB4DE14492@gmail.com> <48C7CE62.7070202@dbmscan.com> <6411BF06-38C9-47A2-89C2-C39159F300DC@earthlink.net> Message-ID: <2A567681-322B-4E50-9FE1-2FC83A45A4A4@earthlink.net> (attempting to stay under the radar... If someone enters JohnSmith@gmail.com in FMP (client) and it's stored as Unicode, then trying to find johnsmith@gmail.com through PHP -- whether before or after strtolower() -- will fail. No? OK. Over and out (?) -Joel On Sep 10, 2008, at 2:00 PM, Gjermund Gusland Thorsen wrote: > Why? > > 2008/9/10 Joel Shapiro : >> And on the FM end you'd probably have to do the same, using Lower >> () as an >> auto-enter calc. >> >> OK, this thread's gone on long enough. Over and out. >> >> -Joel >> >> >> On Sep 10, 2008, at 1:41 PM, Gjermund Gusland Thorsen wrote: >> >>> Well that part of quality insurance is simple to do from the php >>> point >>> of view there should be strtolower() in php? >>> >>> ggt >>> >>> 2008/9/10 Joel Shapiro : >>>> >>>> But one problem w/ setting an email field's index to unicode is >>>> that if >>>> someone searches for JohnSmith@gmail.com, they won't find >>>> johnsmith@gmail.com, right? >>>> >>>> -Joel >>>> >>>> >>>> On Sep 10, 2008, at 8:57 AM, Gjermund Gusland Thorsen wrote: >>>> >>>>> The reason why it's clumsy to store emails in the a field that >>>>> has a >>>>> language sorting is: >>>>> >>>>> Language indexes strips off everything outside of the >>>>> characters that >>>>> makes up the language, >>>>> for english that would be all characters [A-Z][a-z] on top of >>>>> it all >>>>> A=a, so much for individual characters... >>>>> @ is most likely turned into an IFS( inter field separator such as >>>>> tab, newline and space ) when a language is used for indexing the >>>>> field. >>>>> >>>>> Switching to Unicode instead of a language does turn off all this >>>>> imaginary wordsplitting stuff and therefore indexes an email as 1 >>>>> entity. >>>>> >>>>> hth, >>>>> ggt >>>>> >>>>> 2008/9/10 Gjermund Gusland Thorsen : >>>>>> >>>>>> I am sure you would all benefit from first making the fields >>>>>> correct, >>>>>> then the tables, then the relationships, then the php/ScriptMaker >>>>>> stuff. >>>>>> >>>>>> Doing the design right makes alot of scripting unnecessary. >>>>>> >>>>>> ggt >>>>>> >>>>>> 2008/9/10 Michael Layne : >>>>>>> >>>>>>> Here's what I did a few years ago because it was a bit >>>>>>> squirrelly >>>>>>> (like >>>>>>> you're finding out...) >>>>>>> in PHP... >>>>>>> $user = str_replace("@","",$_POST['email']); >>>>>>> // BEGIN : here we're grabbing the record information >>>>>>> $q = new FX($ip, $port); >>>>>>> $q->SetDBData($fmdb,$lay . 'parentlist'); >>>>>>> $q->SetDBPassword($fmpw[0],$fmpw[1]); >>>>>>> $q->AddDBParam('email_lookup',$user); >>>>>>> $r = $q->FMFind(); >>>>>>> >>>>>>> in FileMaker: >>>>>>> email_lookup = calc... >>>>>>> Substitute ( email ; "@" ; "" ) >>>>>>> works for me! >>>>>>> HTH... >>>>>>> Michael >>>>>>> Michael Layne | 9 degrees development | 9degrees.com | >>>>>>> skype:laynebay >>>>>>> On Sep 10, 2008, at 9:40 AM, DC wrote: >>>>>>> >>>>>>> search the archives... this one is a chestnut. anyone make >>>>>>> progress on >>>>>>> that >>>>>>> FAQ we started last year? >>>>>>> >>>>>>> http://www.google.com/coop/cse?cx=013867382578033190853% >>>>>>> 3Axht3ywlmfpc >>>>>>> >>>>>>> cheers, >>>>>>> dan >>>>>>> >>>>>>> william.downs wrote: >>>>>>> >>>>>>> Hi Josh, >>>>>>> >>>>>>> Surely using double == works ? >>>>>>> >>>>>>> as in $medFind->AddDBParam('Email',"==".$medEmail); >>>>>>> >>>>>>> I may be lost here though >>>>>>> >>>>>>> William >>>>>>> >>>>>>> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >>>>>>> >>>>>>> How do you do a search in PHP for an email in Filemaker. When it >>>>>>> performs a >>>>>>> regular search the "@" in the e-mail address forces a no >>>>>>> records found >>>>>>> result during the find. The only way to find it is the use "" >>>>>>> around >>>>>>> the >>>>>>> address. I do not know how to solve this during a PHP query. >>>>>>> Please >>>>>>> assist. >>>>>>> >>>>>>> -Josh Shrier >>>>>>> >>>>>>> _______________________________________________ >>>>>>> >>>>>>> FX.php_List mailing list >>>>>>> >>>>>>> FX.php_List@mail.iviking.org >>>>>>> >>>>>>> >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> >>>>>>> ---------------------------------------------------------------- >>>>>>> -------- >>>>>>> >>>>>>> _______________________________________________ >>>>>>> >>>>>>> FX.php_List mailing list >>>>>>> >>>>>>> FX.php_List@mail.iviking.org >>>>>>> >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> >>>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Wed Sep 10 15:18:20 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 15:18:22 2008 Subject: [FX.php List] Finding emails in Filemaker with PHP In-Reply-To: <2A567681-322B-4E50-9FE1-2FC83A45A4A4@earthlink.net> References: <001b01c9133c$630c8460$0200000a@JoshShrier> <48C7CE62.7070202@dbmscan.com> <6411BF06-38C9-47A2-89C2-C39159F300DC@earthlink.net> <2A567681-322B-4E50-9FE1-2FC83A45A4A4@earthlink.net> Message-ID: Well that is technically two different email addresses, while the domain is always lowercase, the username is pr definition casesensitive, however most mailservers do strtolower() on the addresses these days, when the original one was not found, as an active failover. ggt 2008/9/10 Joel Shapiro : > (attempting to stay under the radar... > > If someone enters JohnSmith@gmail.com in FMP (client) and it's stored as > Unicode, then trying to find johnsmith@gmail.com through PHP -- whether > before or after strtolower() -- will fail. No? > > OK. Over and out (?) > > -Joel > > > On Sep 10, 2008, at 2:00 PM, Gjermund Gusland Thorsen wrote: > >> Why? >> >> 2008/9/10 Joel Shapiro : >>> >>> And on the FM end you'd probably have to do the same, using Lower() as an >>> auto-enter calc. >>> >>> OK, this thread's gone on long enough. Over and out. >>> >>> -Joel >>> >>> >>> On Sep 10, 2008, at 1:41 PM, Gjermund Gusland Thorsen wrote: >>> >>>> Well that part of quality insurance is simple to do from the php point >>>> of view there should be strtolower() in php? >>>> >>>> ggt >>>> >>>> 2008/9/10 Joel Shapiro : >>>>> >>>>> But one problem w/ setting an email field's index to unicode is that if >>>>> someone searches for JohnSmith@gmail.com, they won't find >>>>> johnsmith@gmail.com, right? >>>>> >>>>> -Joel >>>>> >>>>> >>>>> On Sep 10, 2008, at 8:57 AM, Gjermund Gusland Thorsen wrote: >>>>> >>>>>> The reason why it's clumsy to store emails in the a field that has a >>>>>> language sorting is: >>>>>> >>>>>> Language indexes strips off everything outside of the characters that >>>>>> makes up the language, >>>>>> for english that would be all characters [A-Z][a-z] on top of it all >>>>>> A=a, so much for individual characters... >>>>>> @ is most likely turned into an IFS( inter field separator such as >>>>>> tab, newline and space ) when a language is used for indexing the >>>>>> field. >>>>>> >>>>>> Switching to Unicode instead of a language does turn off all this >>>>>> imaginary wordsplitting stuff and therefore indexes an email as 1 >>>>>> entity. >>>>>> >>>>>> hth, >>>>>> ggt >>>>>> >>>>>> 2008/9/10 Gjermund Gusland Thorsen : >>>>>>> >>>>>>> I am sure you would all benefit from first making the fields correct, >>>>>>> then the tables, then the relationships, then the php/ScriptMaker >>>>>>> stuff. >>>>>>> >>>>>>> Doing the design right makes alot of scripting unnecessary. >>>>>>> >>>>>>> ggt >>>>>>> >>>>>>> 2008/9/10 Michael Layne : >>>>>>>> >>>>>>>> Here's what I did a few years ago because it was a bit squirrelly >>>>>>>> (like >>>>>>>> you're finding out...) >>>>>>>> in PHP... >>>>>>>> $user = str_replace("@","",$_POST['email']); >>>>>>>> // BEGIN : here we're grabbing the record information >>>>>>>> $q = new FX($ip, $port); >>>>>>>> $q->SetDBData($fmdb,$lay . 'parentlist'); >>>>>>>> $q->SetDBPassword($fmpw[0],$fmpw[1]); >>>>>>>> $q->AddDBParam('email_lookup',$user); >>>>>>>> $r = $q->FMFind(); >>>>>>>> >>>>>>>> in FileMaker: >>>>>>>> email_lookup = calc... >>>>>>>> Substitute ( email ; "@" ; "" ) >>>>>>>> works for me! >>>>>>>> HTH... >>>>>>>> Michael >>>>>>>> Michael Layne | 9 degrees development | 9degrees.com | >>>>>>>> skype:laynebay >>>>>>>> On Sep 10, 2008, at 9:40 AM, DC wrote: >>>>>>>> >>>>>>>> search the archives... this one is a chestnut. anyone make progress >>>>>>>> on >>>>>>>> that >>>>>>>> FAQ we started last year? >>>>>>>> >>>>>>>> >>>>>>>> http://www.google.com/coop/cse?cx=013867382578033190853%3Axht3ywlmfpc >>>>>>>> >>>>>>>> cheers, >>>>>>>> dan >>>>>>>> >>>>>>>> william.downs wrote: >>>>>>>> >>>>>>>> Hi Josh, >>>>>>>> >>>>>>>> Surely using double == works ? >>>>>>>> >>>>>>>> as in $medFind->AddDBParam('Email',"==".$medEmail); >>>>>>>> >>>>>>>> I may be lost here though >>>>>>>> >>>>>>>> William >>>>>>>> >>>>>>>> On 10 Sep 2008, at 12:57, Josh Shrier wrote: >>>>>>>> >>>>>>>> How do you do a search in PHP for an email in Filemaker. When it >>>>>>>> performs a >>>>>>>> regular search the "@" in the e-mail address forces a no records >>>>>>>> found >>>>>>>> result during the find. The only way to find it is the use "" around >>>>>>>> the >>>>>>>> address. I do not know how to solve this during a PHP query. Please >>>>>>>> assist. >>>>>>>> >>>>>>>> -Josh Shrier >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> >>>>>>>> FX.php_List mailing list >>>>>>>> >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------------ >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> >>>>>>>> FX.php_List mailing list >>>>>>>> >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> FX.php_List mailing list >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> FX.php_List mailing list >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>>> >>>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jschwartz at exit445.com Wed Sep 10 15:44:59 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Sep 10 15:45:11 2008 Subject: [FX.php List] No return from long script Message-ID: Hi folks. I am using phpmailer to send emails. On long runs, the browser will continue to appear busy, even though FMP indicates that all records have been sent. I am using an ini statement to extend max server execution. Any ideas? Jonathan Schwartz Exit 445 Group 415-370-5011 jonathan@exit445.com ------------------------------- Note: I am sending this message from my mobile device. Please excuse brevity or errors. From derrick at fogles.net Wed Sep 10 15:50:11 2008 From: derrick at fogles.net (Derrick Fogle) Date: Wed Sep 10 15:50:25 2008 Subject: [FX.php List] How different is FX from MySQL In-Reply-To: References: Message-ID: <2C697A94-7AB5-4C4C-B9F1-78618F1AC643@fogles.net> Conversely, I've had almost the opposite experience. Working with MySQL as a backend DB to PHP is extremely simple and straightforward, and there are some very robust libraries - or frameworks - for it. The only thing you lose that makes more code in PHP is the fact that the database doesn't do calculations for you. I'll take that tradeoff for the speed: MySQL is so much faster as a DB than FMP, it's hard to even come up with a figure. Think thousands of times faster, maybe more. FX.php is an invaluable tool and a godsend if you've already got something running in FMP and need to extend it to the web. But the code is more verbose than MySQL. And with the experience I've got in both PHP and FMP, I find it roughly equivalent to tackle a logic problem in one vs the other. Filemaker's solution always seems to be "yet another field"; PHP is a much bigger and dynamic sandbox, with some really robust functions. If I have the need for a workgroup DB that doesn't necessarily have to be web-based (i.e. everyone is on the same LAN in the same office), I'll pick FMP and extend a few small portions to the web with FX.php if needed. But if I have an application that needs to be web-based (and that means just about any geographically diverse group of users), I wouldn't even think of staring in FMP except as a modeling tool. It's just too slow, and there's that functionality "wall" you hit with FMP that just doesn't exist in a PHP/MySQL web app. Just my US $0.00... On Sep 10, 2008, at 1:23 PM, John Funk wrote: > You do not need FX to connect to MySql. > There are many sites dedicated to this. PHP and MySQL work very well > together. > My 2 cents: I converted a site from MYSQL to FX/FileMaker and the > resulting code is far simpler. > John Funk > > > On 9/10/08 1:13 PM, "Josh Shrier" wrote: > >> I have been offered a couple of projects to do PHP with a MySQL >> database. I have become pretty fluent with FX. Can someone tell me >> what the learning curve would be from FX to MySQL. >> >> Thanks, >> >> Josh Shrier >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 From ggt667 at gmail.com Wed Sep 10 16:00:33 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Sep 10 16:00:35 2008 Subject: [FX.php List] How different is FX from MySQL In-Reply-To: <2C697A94-7AB5-4C4C-B9F1-78618F1AC643@fogles.net> References: <2C697A94-7AB5-4C4C-B9F1-78618F1AC643@fogles.net> Message-ID: Ehh... I see three totally different scenarios, when to use FileMaker? When you need GUI and business logic fast for a small/medium user environment. When to use Filemaker and the web? When you have a small/medium user environment that needs input from the web. When to use MySQL and the web? When you need dynamic data on the web fast. ggt 2008/9/10 Derrick Fogle : > Conversely, I've had almost the opposite experience. Working with MySQL as a > backend DB to PHP is extremely simple and straightforward, and there are > some very robust libraries - or frameworks - for it. The only thing you lose > that makes more code in PHP is the fact that the database doesn't do > calculations for you. I'll take that tradeoff for the speed: MySQL is so > much faster as a DB than FMP, it's hard to even come up with a figure. Think > thousands of times faster, maybe more. > > FX.php is an invaluable tool and a godsend if you've already got something > running in FMP and need to extend it to the web. But the code is more > verbose than MySQL. And with the experience I've got in both PHP and FMP, I > find it roughly equivalent to tackle a logic problem in one vs the other. > Filemaker's solution always seems to be "yet another field"; PHP is a much > bigger and dynamic sandbox, with some really robust functions. > > If I have the need for a workgroup DB that doesn't necessarily have to be > web-based (i.e. everyone is on the same LAN in the same office), I'll pick > FMP and extend a few small portions to the web with FX.php if needed. But if > I have an application that needs to be web-based (and that means just about > any geographically diverse group of users), I wouldn't even think of staring > in FMP except as a modeling tool. It's just too slow, and there's that > functionality "wall" you hit with FMP that just doesn't exist in a PHP/MySQL > web app. > > Just my US $0.00... > > > On Sep 10, 2008, at 1:23 PM, John Funk wrote: > >> You do not need FX to connect to MySql. >> There are many sites dedicated to this. PHP and MySQL work very well >> together. >> My 2 cents: I converted a site from MYSQL to FX/FileMaker and the >> resulting code is far simpler. >> John Funk >> >> >> On 9/10/08 1:13 PM, "Josh Shrier" wrote: >> >>> I have been offered a couple of projects to do PHP with a MySQL database. >>> I have become pretty fluent with FX. Can someone tell me what the learning >>> curve would be from FX to MySQL. >>> >>> Thanks, >>> >>> Josh Shrier >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 > > _______________________________________________ > 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 Wed Sep 10 16:03:53 2008 From: derrick at fogles.net (Derrick Fogle) Date: Wed Sep 10 16:04:06 2008 Subject: [FX.php List] How different is FX from MySQL In-Reply-To: References: <2C697A94-7AB5-4C4C-B9F1-78618F1AC643@fogles.net> Message-ID: <17A6C263-EBD1-47E5-B91E-2B7556B13D09@fogles.net> Nice summary :-) On Sep 10, 2008, at 5:00 PM, Gjermund Gusland Thorsen wrote: > Ehh... I see three totally different scenarios, when to use FileMaker? > When you need GUI and business logic fast for a small/medium user > environment. > > When to use Filemaker and the web? > When you have a small/medium user environment that needs input from > the web. > > When to use MySQL and the web? > When you need dynamic data on the web fast. From hank at atlasinnovation.com Wed Sep 10 20:07:58 2008 From: hank at atlasinnovation.com (Hank Shrier) Date: Wed Sep 10 20:08:48 2008 Subject: [FX.php List] HTTPS Post Message-ID: Hi all, I'm new to the list. I have a client who asked me the following question. How does one use PHP to do an https post? Does anyone have sample code they are willing to share? If not, can anyone quote me a price for such code. The desired result is to do the post and receive a response to the request. Please contact me back channel with any specific responses. Also, I am posting from Jerusalem even though I have a CA phone number. Thanks for your help. Hank Shrier +1 408-252-5418 Office +1 408-387-2111 Cell +1 408-521-1801 Fax hank@atlasinnovation.com THIS COMMUNICATION IS LEGALLY PRIVILEGED AND CONFIDENTIAL This e-mail, and any attachments hereto, is intended only for use by the addressee(s) named herein. If you are, or are not, the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments hereto, without written permission, is strictly prohibited. If you have received this email in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/692fb476/attachment.html From joshshrier at gmail.com Wed Sep 10 21:44:52 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Wed Sep 10 21:45:11 2008 Subject: [FX.php List] If statements Message-ID: <001201c913c0$c12a1920$0200000a@JoshShrier> I want to trap if found count is 0 display message and nothing else and if found count>0 display results page. Can someone please help me. -Josh Shrier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/bc3543a6/attachment.html From leo at finalresort.org Wed Sep 10 23:53:06 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Wed Sep 10 23:53:17 2008 Subject: [FX.php List] HTTPS Post In-Reply-To: References: Message-ID: <67AE7E22-1870-4FC0-8334-F15134F74E0A@finalresort.org> POSTing form data to the server via HTTPS instead of the usual HTTP doesn't depend on PHP in any way. What you need to do is to make sure that in your form, you have the action="" set to an url that is indeed a HTTPS url, such as action="https://example.com/formhandler.php" instead of action="http://example.com/formhandler.php". If you are using relative urls such as action="formhandler.php", you will need to make sure that the user have already loaded the current page (the one with the form) from the server via HTTPS, for example so that their address bar says "https://example.com/myform.php" instead of "http://example.com/myform.php". If it does, then the relative action of the form will simply use HTTPS since this is the current "basis" for the page and nothing else is specified for the protocol. Regarding the PHP side, there's nothing special to do if you just want to grab the input, you access the data via the usual $_POST variable (see the manual under "Variables" for more information). However, if you first want to make sure that the user posted the stuff using HTTPS you can check the variable $_SERVER['HTTPS'] - if it is set (and I believe it also contains the value "on" if that is the case, at least in Apache environments) this should indicate that the protocol used for the connection is https. Apart from the above, you/the administrator of the webserver need to configure it so that HTTPS is enabled for the domain/virtual host that your site resides in. Hope this helps. 11 sep 2008 kl. 04.07 skrev Hank Shrier: > Hi all, > > > > I?m new to the list. I have a client who asked me the following > question. How does one use PHP to do an https post? Does anyone > have sample code they are willing to share? If not, can anyone > quote me a price for such code. The desired result is to do the > post and receive a response to the request. > > > > Please contact me back channel with any specific responses. Also, > I am posting from Jerusalem even though I have a CA phone number. > > > > > > Thanks for your help. > > > > Hank Shrier > > +1 408-252-5418 Office > > +1 408-387-2111 Cell > > +1 408-521-1801 Fax > > hank@atlasinnovation.com > > > > > > THIS COMMUNICATION IS LEGALLY PRIVILEGED AND CONFIDENTIAL > > This e-mail, and any attachments hereto, is intended only for use > by the > > addressee(s) named herein. If you are, or are not, the intended > recipient > > of this e-mail, you are hereby notified that any dissemination, > distribution > > or copying of this e-mail, and any attachments hereto, without written > > permission, is strictly prohibited. If you have received this email in > > error, please immediately notify me and permanently delete the > original and > > any copy of any e-mail and any printout thereof. > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/d36a2d38/attachment-0001.html From tim at nicheit.com.au Thu Sep 11 00:00:51 2008 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Thu Sep 11 00:01:01 2008 Subject: [FX.php List] If statements In-Reply-To: <001201c913c0$c12a1920$0200000a@JoshShrier> References: <001201c913c0$c12a1920$0200000a@JoshShrier> Message-ID: On 11/09/2008, at 1:44 PM, Josh Shrier wrote: > I want to trap if found count is 0 display message and nothing else > and if found count>0 display results page. Can someone please help me. In the original find: $searchProject = $searchProject -> FMFind(); $searchProjectCount = $searchProject['foundCount']; In the page

Oh noes, there's nothing therrrreeeee

Whatever is to appear other wise

That's if you didn't trap for a 401 in the first place... Cheers Webko -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/16ea43c2/attachment.html From joshshrier at gmail.com Thu Sep 11 02:56:56 2008 From: joshshrier at gmail.com (Josh Shrier) Date: Thu Sep 11 02:57:16 2008 Subject: [FX.php List] If statements In-Reply-To: References: <001201c913c0$c12a1920$0200000a@JoshShrier> Message-ID: <002301c913ec$58d95ee0$0200000a@JoshShrier> With these variables how can I trap here for the error code of the found code? $search=new FX('',''); $search->SetDBData('); $search->SetDBPassword(); $search->AddDBParam('User_search',"==".$username); $search->AddDBParam('Pass_search',"==".$password); "?????" $searchResult =$search -> FMFind(); foreach($searchResult['data'] as $key=>$searchData) _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Tim 'Webko' Booth Sent: Thursday, September 11, 2008 9:01 AM To: FX.php Discussion List Subject: Re: [FX.php List] If statements On 11/09/2008, at 1:44 PM, Josh Shrier wrote: I want to trap if found count is 0 display message and nothing else and if found count>0 display results page. Can someone please help me. In the original find: $searchProject = $searchProject -> FMFind(); $searchProjectCount = $searchProject['foundCount']; In the page

Oh noes, there's nothing therrrreeeee

Whatever is to appear other wise

That's if you didn't trap for a 401 in the first place... Cheers Webko -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/f423f538/attachment.html From ben at batfastad.com Thu Sep 11 04:52:42 2008 From: ben at batfastad.com (Ben Bradley) Date: Thu Sep 11 04:52:46 2008 Subject: [FX.php List] No return from long script In-Reply-To: References: Message-ID: <6970ac50809110352o3fb9c3f7g6c3a5c95ddec7611@mail.gmail.com> I ran into the same situation with phpMailer a couple of years ago, and I never figured it out. FMU 6 and FX.php / Apache 2.2 on Windows 2000 server. I switched my script to the most excellent swiftmailer instead ( www.swiftmailer.org) which I actually found far easier to integrate too. There's a setting which tells the mailing to continue even once the browser window is closed, and the script just runs until it's finished - ignoring the mac execution time of PHP. Sorry couldn't be more help though :( I would like to know why that happened! Ben 2008/9/10 Jonathan Schwartz > Hi folks. > > I am using phpmailer to send emails. > > On long runs, the browser will continue to appear busy, even though FMP > indicates that all records have been sent. > > I am using an ini statement to extend max server execution. > > Any ideas? > > Jonathan Schwartz > Exit 445 Group > 415-370-5011 > jonathan@exit445.com > ------------------------------- > Note: I am sending this message from my mobile device. Please excuse > brevity or errors._______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/a890689b/attachment.html From jschwartz at exit445.com Thu Sep 11 04:56:56 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Sep 11 04:57:23 2008 Subject: [FX.php List] HTTPS Post In-Reply-To: