From ggt667 at gmail.com Mon Mar 3 01:57:41 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Mon Mar 3 01:57:54 2008 Subject: [FX.php List] [OT Commercial? product for FileMaker] but still nice to know permissions in FileMaker was always a pain in the hammock or elsewhere... Message-ID: Matt made a nice looking template that should ease the work of setting up permissions http://www.scriptology.com/permissions He might charge the white from your eyes for what I know, I just wanted you to know that there is a possibility with this messy topic. sorry for spamming the thread with a commercial product, however as I have said a million times before knowhow never hurt anybody and I consider this an enhancement to those days that you sit there knocking your head in the wall with those 100 sets of permission for that new client that started off by giving you the solution he spent 17 years developing, and the permissions are all finetuned for each year of development and actually the fastest way would not to know the thoughts that were developed throughout those years, and just make a purposefully done new piece of sets based on the current workflow of today. Yeah, I've been down _THAT_ slope myself! have a nice day, ggt From rp272 at cam.ac.uk Tue Mar 4 08:10:16 2008 From: rp272 at cam.ac.uk (Roger Price) Date: Tue Mar 4 08:10:43 2008 Subject: [FX.php List] [OFF] sending email confirmation Message-ID: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> As part of a web project I am collecting data from our some of our past students that we have lost contact with. I want to try to ensure that we don't get too many malicious returns so I intend to send a confirmation to the entered email address with an activation link. So far so good! In order that the database record key is not blatantly obvious I'm using base64_encode! however when I mail a link such as: http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== the two '=' characters that are generated at the end of this particular record are omitted from the hyperlink when viewed in Outlook Express or Windows Mail. Entourage only omits one! However Outlook and my webmail program work perfectly. If anybody resolved this problem before I would be grateful to know the best way. Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/7c2c86f4/attachment.html From steve at bluecrocodile.co.nz Tue Mar 4 08:15:04 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Mar 4 08:15:47 2008 Subject: [FX.php List] [OFF] sending email confirmation In-Reply-To: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> Message-ID: <24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> Hi Roger, I presume that the presence of the two == are a function of base64_encode.?? If not, what purpose do they serve.? Perhaps using an alternative encoding method (eg md5) might resolve the issue, since it would not result in == characters.?? Cheers Steve _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Roger Price Sent: 04 March 2008 15:10 To: FX.php Discussion List Subject: [FX.php List] [OFF] sending email confirmation As part of a web project I am collecting data from our some of our past students that we have lost contact with. I want to try to ensure that we don't get too many malicious returns so I intend to send a confirmation to the entered email address with an activation link. So far so good! In order that the database record key is not blatantly obvious I'm using base64_encode! however when I mail a link such as: http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== the two '=' characters that are generated at the end of this particular record are omitted from the hyperlink when viewed in Outlook Express or Windows Mail. Entourage only omits one! However Outlook and my webmail program work perfectly. If anybody resolved this problem before I would be grateful to know the best way. Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/a425ccf8/attachment-0001.html From jschwartz at exit445.com Tue Mar 4 08:29:43 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Mar 4 08:30:06 2008 Subject: [FX.php List] [OFF] sending email confirmation In-Reply-To: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> Message-ID: Hmmm... I see the symptom in this email...the trailing "==" are not part of the URL. However, when I did a test...both in Mac Eudora and Windows Outlook, a properly formatted URL appears to come thu fine. I used a word as the clickable link instead of the URL. How does this look on your email? CLICK HERE Jonathan At 3:10 PM +0000 3/4/08, Roger Price wrote: > >however when I mail a link such as: >http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== > >the two '=' characters that are generated at the end of this >particular record are omitted from the hyperlink when viewed in >Outlook Express or Windows Mail. Entourage only omits one! However >Outlook and my webmail program work perfectly. -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/cf4c139d/attachment.html From adenman at tmea.org Tue Mar 4 08:36:05 2008 From: adenman at tmea.org (Andrew Denman) Date: Tue Mar 4 08:33:11 2008 Subject: [FX.php List] [OFF] sending email confirmation In-Reply-To: <24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> <24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> Message-ID: <002501c87e0d$76492980$62db7c80$@org> Roger, Since the equal sign is a special character for URLs, it is a good idea to not use them in your data if possible. If you must use the equal signs, you should URL encode them to ensure they work everywhere. In FileMaker there is the GetAsURLEncoded() function, and in PHP there is the rawurlencode() function. Andrew Denman From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Steve Winter Sent: Tuesday, March 04, 2008 9:15 AM To: 'FX.php Discussion List' Subject: RE: [FX.php List] [OFF] sending email confirmation Hi Roger, I presume that the presence of the two == are a function of base64_encode.?? If not, what purpose do they serve.? Perhaps using an alternative encoding method (eg md5) might resolve the issue, since it would not result in == characters.?? Cheers Steve _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Roger Price Sent: 04 March 2008 15:10 To: FX.php Discussion List Subject: [FX.php List] [OFF] sending email confirmation As part of a web project I am collecting data from our some of our past students that we have lost contact with. I want to try to ensure that we don't get too many malicious returns so I intend to send a confirmation to the entered email address with an activation link. So far so good! In order that the database record key is not blatantly obvious I'm using base64_encode! however when I mail a link such as: http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== the two '=' characters that are generated at the end of this particular record are omitted from the hyperlink when viewed in Outlook Express or Windows Mail. Entourage only omits one! However Outlook and my webmail program work perfectly. If anybody resolved this problem before I would be grateful to know the best way. Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/135d3d2c/attachment.html From rp272 at cam.ac.uk Tue Mar 4 08:40:00 2008 From: rp272 at cam.ac.uk (Roger Price) Date: Tue Mar 4 08:40:25 2008 Subject: [FX.php List] [OFF] sending email confirmation In-Reply-To: <24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> <24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> Message-ID: Steve Yes when you base64 encode '0001' you get the 'MDAwMQ==' I have since looked at md5() and while it's just as easy to encode there does not appear to be a simple decode function. I'm not quite so worried about security as this strategy would not in any case prevent malicious responses but it should limit them to only the very dedicated hacker and quite frankly I don't suppose they would be bothered! Roger ----- Original Message ----- From: Steve Winter To: 'FX.php Discussion List' Sent: Tuesday, March 04, 2008 3:15 PM Subject: RE: [FX.php List] [OFF] sending email confirmation Hi Roger, I presume that the presence of the two == are a function of base64_encode.?? If not, what purpose do they serve.? Perhaps using an alternative encoding method (eg md5) might resolve the issue, since it would not result in == characters.?? Cheers Steve ------------------------------------------------------------------------------ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Roger Price Sent: 04 March 2008 15:10 To: FX.php Discussion List Subject: [FX.php List] [OFF] sending email confirmation As part of a web project I am collecting data from our some of our past students that we have lost contact with. I want to try to ensure that we don't get too many malicious returns so I intend to send a confirmation to the entered email address with an activation link. So far so good! In order that the database record key is not blatantly obvious I'm using base64_encode! however when I mail a link such as: http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== the two '=' characters that are generated at the end of this particular record are omitted from the hyperlink when viewed in Outlook Express or Windows Mail. Entourage only omits one! However Outlook and my webmail program work perfectly. If anybody resolved this problem before I would be grateful to know the best way. Roger ------------------------------------------------------------------------------ _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/4bb54efd/attachment-0001.html From jsfmp at earthlink.net Tue Mar 4 08:56:00 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Mar 4 08:56:21 2008 Subject: [FX.php List] [OFF] sending email confirmation In-Reply-To: References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> <24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> Message-ID: Hi Roger Will the links *always* end in two equals signs? If so, you could check for their existence in your receiving page, and add them (one or two) to the $_GET['rec'] variable whenever necessary. HTH, -Joel On Mar 4, 2008, at 7:40 AM, Roger Price wrote: > Steve > > Yes when you base64 encode '0001' you get the 'MDAwMQ==' > > I have since looked at md5() and while it's just as easy to encode > there does not appear to be a simple decode function. > > I'm not quite so worried about security as this strategy would not > in any case prevent malicious responses but it should limit them to > only the very dedicated hacker and quite frankly I don't suppose > they would be bothered! > > Roger > > > ----- Original Message ----- > From: Steve Winter > To: 'FX.php Discussion List' > Sent: Tuesday, March 04, 2008 3:15 PM > Subject: RE: [FX.php List] [OFF] sending email confirmation > > Hi Roger, > > > > I presume that the presence of the two == are a function of > base64_encode??? If not, what purpose do they serve?? > > > > Perhaps using an alternative encoding method (eg md5) might resolve > the issue, since it would not result in == characters??? > > > > Cheers > > Steve > > > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list- > bounces@mail.iviking.org] On Behalf Of Roger Price > Sent: 04 March 2008 15:10 > To: FX.php Discussion List > Subject: [FX.php List] [OFF] sending email confirmation > > > > As part of a web project I am collecting data from our some of our > past students that we have lost contact with. > > > > I want to try to ensure that we don't get too many malicious > returns so I intend to send a confirmation to the entered email > address with an activation link. > > > > So far so good! > > > > In order that the database record key is not blatantly obvious I'm > using base64_encode! > > > > however when I mail a link such as: http:// > www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== > > the two '=' characters that are generated at the end of this > particular record are omitted from the hyperlink when viewed in > Outlook Express or Windows Mail. Entourage only omits one! However > Outlook and my webmail program work perfectly. > > If anybody resolved this problem before I would be grateful to know > the best way. > > Roger > > > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From steve at bluecrocodile.co.nz Tue Mar 4 09:01:20 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Mar 4 09:02:07 2008 Subject: [FX.php List] [OFF] sending email confirmation In-Reply-To: References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk><24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> Message-ID: <7AF634C33E174DAFB77F44585D35EABA@matatirosolutions.co.uk> Hi Roger, You?re quite right, there is in theory no way to decode md5 I see now what you?re trying to do, you actually want to be able to ?extract? the ID from the URL Probably the suggestions for urlencoding the == will resolve the issue for you Here?s an alternative way to deal with it, which uses the md5 and prevents people from ?hacking? the url when their ID is in clear text In your db, create a ?secret? field, and put a value in there, say ?Bt7?sFg?, then when you create your URL go for edit2.html?id=0001&h=md5(id+secret) On your receiving page, (assuming it?s PHP) you can check that the id in the url matches the id in the hash; $secret = ?Bt7?sFg?; $hash = $_GET[?id?].$secret; if($hash != $_GET[?h?]) { echo ?You have tried to hack into someone else\?s account? } else { //The rest of your page goes here } That way you can be certain that the person hasn?t hacked your url to try and access someone else?s details. If like Jonathan you want to place a time limit on this as well you can extend your URL a bit further and put a (unix) timestamp in there, so your url would become something like edit2.html?id=0001&ts=11234267&h=md5(id+timestamp+secret) Then on your page you can do; $secret = ?Bt7?sFg?; $hash = $_GET[?id?].$_GET[?ts?].$secret; if($hash != $_GET[?h?]) { echo ?You have tried to hack into someone else\?s account? } elseif ($_GET[?ts?] < time() + howlong you it live for) { echo ?The link you tried to use has expired. We are no longer collecting data from previous students?; } else { //The rest of your page goes here } Helpful ?? Cheers Steve _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Roger Price Sent: 04 March 2008 15:40 To: FX.php Discussion List Subject: Re: [FX.php List] [OFF] sending email confirmation Steve Yes when you base64 encode '0001' you get the 'MDAwMQ==' I have since looked at md5() and while it's just as easy to encode there does not appear to be a simple decode function. I'm not quite so worried about security as this strategy would not in any case prevent malicious responses but it should limit them to only the very dedicated hacker and quite frankly I don't suppose they would be bothered! Roger ----- Original Message ----- From: Steve Winter To: 'FX.php Discussion List' Sent: Tuesday, March 04, 2008 3:15 PM Subject: RE: [FX.php List] [OFF] sending email confirmation Hi Roger, I presume that the presence of the two == are a function of base64_encode ?? If not, what purpose do they serve ? Perhaps using an alternative encoding method (eg md5) might resolve the issue, since it would not result in == characters ?? Cheers Steve _____ From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Roger Price Sent: 04 March 2008 15:10 To: FX.php Discussion List Subject: [FX.php List] [OFF] sending email confirmation As part of a web project I am collecting data from our some of our past students that we have lost contact with. I want to try to ensure that we don't get too many malicious returns so I intend to send a confirmation to the entered email address with an activation link. So far so good! In order that the database record key is not blatantly obvious I'm using base64_encode! however when I mail a link such as: http://www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== the two '=' characters that are generated at the end of this particular record are omitted from the hyperlink when viewed in Outlook Express or Windows Mail. Entourage only omits one! However Outlook and my webmail program work perfectly. If anybody resolved this problem before I would be grateful to know the best way. Roger _____ _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/0d127e16/attachment-0001.html From chris at iViking.org Tue Mar 4 09:46:54 2008 From: chris at iViking.org (Chris Hansen) Date: Tue Mar 4 09:47:14 2008 Subject: [FX.php List] [OFF] sending email confirmation In-Reply-To: <002501c87e0d$76492980$62db7c80$@org> References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk> <24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk> <002501c87e0d$76492980$62db7c80$@org> Message-ID: Roger, Andrew has the right approach here. The base64_encode() is great for encoding things in a way which makes them not readily recognizable, but any string that goes into a url which may have non-alphanumeric characters in it needs to be urlencoded. period. This is fundamental to working with the web and would even affect putting a text field into a URL (those spaces will cause you problems) or comparing one way hashes. For more information about encoding, check out the PHP docs: http://us.php.net/manual/en/function.urlencode.php http://us.php.net/manual/en/function.rawurlencode.php So most likely what you want to do is first come up with an unrecognizable string, and then be sure to urlencode it. Just one extra step, and you should be fine. HTH --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Mar 4, 2008, at 8:36 AM, Andrew Denman wrote: > Roger, > > Since the equal sign is a special character for URLs, it is a good > idea to not use them in your data if possible. If you must use the > equal signs, you should URL encode them to ensure they work > everywhere. > > In FileMaker there is the GetAsURLEncoded() function, and in PHP > there is the rawurlencode() function. > > Andrew Denman > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Steve Winter > Sent: Tuesday, March 04, 2008 9:15 AM > To: 'FX.php Discussion List' > Subject: RE: [FX.php List] [OFF] sending email confirmation > > Hi Roger, > > I presume that the presence of the two == are a function of > base64_encode??? If not, what purpose do they serve?? > > Perhaps using an alternative encoding method (eg md5) might resolve > the issue, since it would not result in == characters??? > > Cheers > Steve > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Roger Price > Sent: 04 March 2008 15:10 > To: FX.php Discussion List > Subject: [FX.php List] [OFF] sending email confirmation > > As part of a web project I am collecting data from our some of our > past students that we have lost contact with. > > I want to try to ensure that we don't get too many malicious returns > so I intend to send a confirmation to the entered email address with > an activation link. > > So far so good! > > In order that the database record key is not blatantly obvious I'm > using base64_encode! > > however when I mail a link such as: http:// > www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== > the two '=' characters that are generated at the end of this > particular record are omitted from the hyperlink when viewed in > Outlook Express or Windows Mail. Entourage only omits one! However > Outlook and my webmail program work perfectly. > > If anybody resolved this problem before I would be grateful to know > the best way. > > Roger > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From rp272 at cam.ac.uk Tue Mar 4 12:12:19 2008 From: rp272 at cam.ac.uk (Roger Price) Date: Tue Mar 4 12:12:33 2008 Subject: [FX.php List] [OFF] sending email confirmation References: <00c001c87e09$da6310b0$2caa6f83@crim.cam.ac.uk><24CF749B6C91456588B44E1EFA21A027@matatirosolutions.co.uk><002501c87e0d$76492980$62db7c80$@org> Message-ID: <003501c87e2b$ab287cf0$0302a8c0@Roger> Thank you for all your suggestions. It seems that it is a well known problem for which UTF-7 Modified Base64 was developed which does not use the '='. The '=' is a padding character which only appears at the end of an encoded string and then only as a single or double. I tried replacing it with other characters inc '_' but OE still ignored them. Finally I did a str_replace' exchanging '=' with ';1' and '==' with ';2'. Having a digit as the last character seems to fool OE. I haven't yet tried it with Entouage but I expect it will be fine. The code I used was: if(substr($hash,-2,2)=='==') {$hash = str_replace('==',';2',$hash);} if(substr($hash,-1,1)=='=') {$hash = str_replace('==',';1',$hash);} where $hash was the original base64 encoded 'recid' This can of course be easily reversed on the target page. It is not a very elegant solution but works well enough. Roger ----- Original Message ----- From: "Chris Hansen" To: "FX.php Discussion List" Sent: Tuesday, March 04, 2008 4:46 PM Subject: Re: [FX.php List] [OFF] sending email confirmation Roger, Andrew has the right approach here. The base64_encode() is great for encoding things in a way which makes them not readily recognizable, but any string that goes into a url which may have non-alphanumeric characters in it needs to be urlencoded. period. This is fundamental to working with the web and would even affect putting a text field into a URL (those spaces will cause you problems) or comparing one way hashes. For more information about encoding, check out the PHP docs: http://us.php.net/manual/en/function.urlencode.php http://us.php.net/manual/en/function.rawurlencode.php So most likely what you want to do is first come up with an unrecognizable string, and then be sure to urlencode it. Just one extra step, and you should be fine. HTH --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Mar 4, 2008, at 8:36 AM, Andrew Denman wrote: > Roger, > > Since the equal sign is a special character for URLs, it is a good > idea to not use them in your data if possible. If you must use the > equal signs, you should URL encode them to ensure they work > everywhere. > > In FileMaker there is the GetAsURLEncoded() function, and in PHP > there is the rawurlencode() function. > > Andrew Denman > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Steve Winter > Sent: Tuesday, March 04, 2008 9:15 AM > To: 'FX.php Discussion List' > Subject: RE: [FX.php List] [OFF] sending email confirmation > > Hi Roger, > > I presume that the presence of the two == are a function of > base64_encode??? If not, what purpose do they serve?? > > Perhaps using an alternative encoding method (eg md5) might resolve > the issue, since it would not result in == characters??? > > Cheers > Steve > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Roger Price > Sent: 04 March 2008 15:10 > To: FX.php Discussion List > Subject: [FX.php List] [OFF] sending email confirmation > > As part of a web project I am collecting data from our some of our > past students that we have lost contact with. > > I want to try to ensure that we don't get too many malicious returns > so I intend to send a confirmation to the entered email address with > an activation link. > > So far so good! > > In order that the database record key is not blatantly obvious I'm > using base64_encode! > > however when I mail a link such as: http:// > www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== > the two '=' characters that are generated at the end of this > particular record are omitted from the hyperlink when viewed in > Outlook Express or Windows Mail. Entourage only omits one! However > Outlook and my webmail program work perfectly. > > If anybody resolved this problem before I would be grateful to know > the best way. > > Roger > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080304/dd46bda0/attachment.html From rp272 at cam.ac.uk Wed Mar 5 02:19:37 2008 From: rp272 at cam.ac.uk (Roger Price) Date: Wed Mar 5 02:19:58 2008 Subject: [FX.php List] [OFF] sending email confirmation - follow up Message-ID: <1BF0755311624411A9E48D4327269118@crim.cam.ac.uk> It was a long day yesterday and I failed to notice the 'obvious'! Base64 breaks 8 bit bytes into 6 bit chunks and uses the '=' padding character to make up the shortfall when the number of characters encoded is not exactly divisible by 3. I had added leading zeros to my record ID to make it 4 digits thus '==' would always be added to the end. 4 digits was just an arbitrary figure so increasing it to 6 solved the problem! Thanks to everyone who offered a suggestion Roger ----- Original Message ----- From: Roger Price To: FX.php Discussion List Sent: Tuesday, March 04, 2008 7:12 PM Subject: Re: [FX.php List] [OFF] sending email confirmation Thank you for all your suggestions. It seems that it is a well known problem for which UTF-7 Modified Base64 was developed which does not use the '='. The '=' is a padding character which only appears at the end of an encoded string and then only as a single or double. I tried replacing it with other characters inc '_' but OE still ignored them. Finally I did a str_replace' exchanging '=' with ';1' and '==' with ';2'. Having a digit as the last character seems to fool OE. I haven't yet tried it with Entouage but I expect it will be fine. The code I used was: if(substr($hash,-2,2)=='==') {$hash = str_replace('==',';2',$hash);} if(substr($hash,-1,1)=='=') {$hash = str_replace('==',';1',$hash);} where $hash was the original base64 encoded 'recid' This can of course be easily reversed on the target page. It is not a very elegant solution but works well enough. Roger ----- Original Message ----- From: "Chris Hansen" To: "FX.php Discussion List" Sent: Tuesday, March 04, 2008 4:46 PM Subject: Re: [FX.php List] [OFF] sending email confirmation Roger, Andrew has the right approach here. The base64_encode() is great for encoding things in a way which makes them not readily recognizable, but any string that goes into a url which may have non-alphanumeric characters in it needs to be urlencoded. period. This is fundamental to working with the web and would even affect putting a text field into a URL (those spaces will cause you problems) or comparing one way hashes. For more information about encoding, check out the PHP docs: http://us.php.net/manual/en/function.urlencode.php http://us.php.net/manual/en/function.rawurlencode.php So most likely what you want to do is first come up with an unrecognizable string, and then be sure to urlencode it. Just one extra step, and you should be fine. HTH --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Mar 4, 2008, at 8:36 AM, Andrew Denman wrote: > Roger, > > Since the equal sign is a special character for URLs, it is a good > idea to not use them in your data if possible. If you must use the > equal signs, you should URL encode them to ensure they work > everywhere. > > In FileMaker there is the GetAsURLEncoded() function, and in PHP > there is the rawurlencode() function. > > Andrew Denman > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Steve Winter > Sent: Tuesday, March 04, 2008 9:15 AM > To: 'FX.php Discussion List' > Subject: RE: [FX.php List] [OFF] sending email confirmation > > Hi Roger, > > I presume that the presence of the two == are a function of > base64_encode??? If not, what purpose do they serve?? > > Perhaps using an alternative encoding method (eg md5) might resolve > the issue, since it would not result in == characters??? > > Cheers > Steve > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org > ] On Behalf Of Roger Price > Sent: 04 March 2008 15:10 > To: FX.php Discussion List > Subject: [FX.php List] [OFF] sending email confirmation > > As part of a web project I am collecting data from our some of our > past students that we have lost contact with. > > I want to try to ensure that we don't get too many malicious returns > so I intend to send a confirmation to the entered email address with > an activation link. > > So far so good! > > In order that the database record key is not blatantly obvious I'm > using base64_encode! > > however when I mail a link such as: http:// > www.xxx.xxx.xx.xx..edit2.html?rec=MDAwMQ== > the two '=' characters that are generated at the end of this > particular record are omitted from the hyperlink when viewed in > Outlook Express or Windows Mail. Entourage only omits one! However > Outlook and my webmail program work perfectly. > > If anybody resolved this problem before I would be grateful to know > the best way. > > Roger > > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080305/f7cd063a/attachment-0001.html From CSinfo at comcast.net Wed Mar 5 13:24:28 2008 From: CSinfo at comcast.net (CSInfo) Date: Wed Mar 5 13:24:48 2008 Subject: [FX.php List] Converting PHP / MySql to PHP/FileMaker/fx In-Reply-To: <862E0E09-E1EC-4206-A600-66DC69408E39@iViking.org> References: <862E0E09-E1EC-4206-A600-66DC69408E39@iViking.org> Message-ID: <000001c87efe$e9e54990$0301a8c0@CSDellXP> Any body out there know of a fast way to convert the PHP code from MYSQL flavor to FileMaker (FM Server)? I am dealing only with a few flat tables so it should not be too hard. But I have thousands of lines of code to convert. I do not need help with the actual DB table convert. Any ideas are appreciated. Thanks, John Funk From info at visioncomputerconsulting.com Wed Mar 5 13:54:14 2008 From: info at visioncomputerconsulting.com (Vision Computer Consulting) Date: Wed Mar 5 13:54:34 2008 Subject: [FX.php List] L In-Reply-To: <000001c87efe$e9e54990$0301a8c0@CSDellXP> References: <862E0E09-E1EC-4206-A600-66DC69408E39@iViking.org> <000001c87efe$e9e54990$0301a8c0@CSDellXP> Message-ID: <88E8CBFD-8952-44A5-A345-86C9D43BB3DB@visioncomputerconsulting.com> I have ha to do this same things. The only things I had to change were the link to the db and making the queries be FX instead of SQL The goes pretty fast if your code is using modules. On Mar 5, 2008, at 12:24 PM, CSInfo wrote: > Any body out there know of a fast way to convert the PHP code from > MYSQL > flavor to FileMaker (FM Server)? I am dealing only with a few flat > tables so > it should not be too hard. But I have thousands of lines of code to > convert. > I do not need help with the actual DB table convert. > Any ideas are appreciated. > Thanks, > 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 Thu Mar 6 05:37:45 2008 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Mar 6 05:38:05 2008 Subject: [FX.php List] Converting PHP / MySql to PHP/FileMaker/fx In-Reply-To: <000001c87efe$e9e54990$0301a8c0@CSDellXP> References: <862E0E09-E1EC-4206-A600-66DC69408E39@iViking.org> <000001c87efe$e9e54990$0301a8c0@CSDellXP> Message-ID: What type of code is it? business logic? ggt 2008/3/5, CSInfo : > Any body out there know of a fast way to convert the PHP code from MYSQL > flavor to FileMaker (FM Server)? I am dealing only with a few flat tables so > it should not be too hard. But I have thousands of lines of code to convert. > I do not need help with the actual DB table convert. > Any ideas are appreciated. > Thanks, > John Funk > > _______________________________________________ > 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 Mar 7 08:52:51 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 08:52:58 2008 Subject: [FX.php List] Strange problem with editing records Message-ID: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> I've inherited a web app that was started by someone else, and the client has called me with a strange problem. There are about 8 or so pages of forms, all of which edit the same record... The user logs in, starts editing their record; if they should leave their browser open and idle for an hour or so, and then return, and then complete the editing of one of these forms, the data isn't written to THEIR record, but rather the first record in the database. From what I can see in the code, all he's doing is starting a session; I see no place where he's even storing the current user's RECID in a variable. However, when they return to their browsers (and this has happened consistently) after an hour or more, the value of RECID seems to either get forgotten or changed to the RECID of record #1. Has anyone seen this sort of behavior? I didn't write this web app, and it's extremely convoluted considering the simplicity of the actual site, which isn't helping in my search for the reason for this anomaly. Any help would be mucho appreciated... thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting From dness at bondedbuilders.com Fri Mar 7 08:56:18 2008 From: dness at bondedbuilders.com (David Ness) Date: Fri Mar 7 08:56:22 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> Message-ID: It certainly sounds as though the session is expiring. I think the default is something like 30 minutes. Make certain that the '-recid' or some other key value isn't stored in a $_SESSION variable. David Allen Ness Database Systems Programmer Web Applications Developer -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Friday, March 07, 2008 10:53 AM To: FX.php Discussion List Subject: [FX.php List] Strange problem with editing records I've inherited a web app that was started by someone else, and the client has called me with a strange problem. There are about 8 or so pages of forms, all of which edit the same record... The user logs in, starts editing their record; if they should leave their browser open and idle for an hour or so, and then return, and then complete the editing of one of these forms, the data isn't written to THEIR record, but rather the first record in the database. From what I can see in the code, all he's doing is starting a session; I see no place where he's even storing the current user's RECID in a variable. However, when they return to their browsers (and this has happened consistently) after an hour or more, the value of RECID seems to either get forgotten or changed to the RECID of record #1. Has anyone seen this sort of behavior? I didn't write this web app, and it's extremely convoluted considering the simplicity of the actual site, which isn't helping in my search for the reason for this anomaly. Any help would be mucho appreciated... thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP * CDML * Full email services * Free DNS hosting * Colocation * Consulting _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Fri Mar 7 09:09:26 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 09:09:31 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> Message-ID: <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> That's what I thought, but I can't find any place where he was writing the RECID to a session variable... And also, if that WERE the case, wouldn't the RECID be empty and then cause the EDIT process to fail? It's not... what is happening is that people are actually editing the 1st record in the table. Hmm... I really don't enjoy editing someone else's work... :) Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Mar 7, 2008, at 9:56 AM, David Ness wrote: > It certainly sounds as though the session is expiring. I think the > default is something like 30 minutes. Make certain that the '-recid' > or > some other key value isn't stored in a $_SESSION variable. From jschwartz at exit445.com Fri Mar 7 09:25:17 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Mar 7 09:25:24 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> Message-ID: Bob, Ya need recid to edit. Are they actually using the FMEdit() command? Perhaps they are creating a new record for each edit? If they *are* using FMEdit... What appears as the value for '-recid' in the AddDBParam line? You can use BBEdit to do a search across all pages of the solution for any occurrence of that variable. It must be set somewhere. Regarding session expiration, you might consider pro-actively setting the expiration time rather then letting the system decide for you...with unexpected results. HTH J At 10:09 AM -0600 3/7/08, Bob Patin wrote: >That's what I thought, but I can't find any place where he was >writing the RECID to a session variable... > >And also, if that WERE the case, wouldn't the RECID be empty and >then cause the EDIT process to fail? It's not... what is happening >is that people are actually editing the 1st record in the table. > >Hmm... I really don't enjoy editing someone else's work... :) > > -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From bob at patin.com Fri Mar 7 09:27:32 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 09:27:36 2008 Subject: [FX.php List] RECID anomaly, more info Message-ID: I just double-checked the pages, and I can see in the form where he passes the RECID in a hidden field, and then retrieves it in a $_POST on the processing page. So it's not using a session variable at all, yet somehow, if the page is left to fester for an hour or so, the value of the RECID variable gets somehow forgotten... Very strange; I'm going to leave the form open in Firefox for 2 hours and see if it happens for me too... BP From bob at patin.com Fri Mar 7 09:31:54 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 09:31:59 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> Message-ID: <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> On Mar 7, 2008, at 10:25 AM, Jonathan Schwartz wrote: > > Ya need recid to edit. Right, that's what I thought too. Otherwise it'd throw an error... > > > Are they actually using the FMEdit() command? Perhaps they are > creating a new record for each edit? Yes, he's using FMEdit. > > > If they *are* using FMEdit... > What appears as the value for '-recid' in the AddDBParam line? $query->AddDBParam('-recid', $_POST['-recid']); I can see the hidden field in the form, which is feeding this $_POST. > > > Regarding session expiration, you might consider pro-actively > setting the expiration time rather then letting the system decide > for you...with unexpected results. I don't think this is a session variable issue, which makes this even stranger; however, I'm getting this from the users, who are college kids. I'm going to see what happens for me after 2 hours, and that'll tell me more. From what I can see in the forms, it's a straightforward passing of a hidden field (-recid) to the processing page, which is how I would do it too. However, this site is incredibly convoluted, and the programmer bailed on the client without fixing all the bugs. A well- known person too, I was really surprised... BP From jsfmp at earthlink.net Fri Mar 7 09:46:09 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Mar 7 09:46:10 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> Message-ID: <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> Hey Bob > $query->AddDBParam('-recid', $_POST['-recid']); $_POST['-recid'] seems weird to me. Is it kosher? So in the form, it's ? What happens if you give the hidden input a better name (without the hyphen)? -Joel From bob at patin.com Fri Mar 7 10:01:04 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 10:01:09 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> Message-ID: <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> Joel, I agree that it looks weird, but the guy who wrote the original site (whose name you all know and who shall remain nameless) wrote it that way. He apparently stopped answering the client's calls, so she called me. At any rate, the whole web app seems to use that, and it does work... except for the weird bugs. BP > Hey Bob > >> $query->AddDBParam('-recid', $_POST['-recid']); > > $_POST['-recid'] seems weird to me. Is it kosher? > > So in the form, it's > > ? > > What happens if you give the hidden input a better name (without the > hyphen)? > > -Joel > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From alex at gandrpublishing.com Fri Mar 7 10:11:53 2008 From: alex at gandrpublishing.com (Alex Gates) Date: Fri Mar 7 10:12:02 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> Message-ID: <47D17759.6050702@gandrpublishing.com> Bob - So the rec id is gathered only on the first page and transferred via hidden fields through all 8 pages? Is the rec ID of the first record in the DB 1? Finally - Can't you just rewrite that part to use a session instead? Bob Patin wrote: > Joel, > > I agree that it looks weird, but the guy who wrote the original site > (whose name you all know and who shall remain nameless) wrote it that > way. He apparently stopped answering the client's calls, so she called me. > > At any rate, the whole web app seems to use that, and it does work... > except for the weird bugs. > > BP > > > >> Hey Bob >> >>> $query->AddDBParam('-recid', $_POST['-recid']); >> >> $_POST['-recid'] seems weird to me. Is it kosher? >> >> So in the form, it's >> >> ? >> >> What happens if you give the hidden input a better name (without the >> hyphen)? >> >> -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 dbengston at preservationstudio.com Fri Mar 7 10:50:13 2008 From: dbengston at preservationstudio.com (Dale Bengston) Date: Fri Mar 7 10:51:30 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <47D17759.6050702@gandrpublishing.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> Message-ID: <8194B18A-2A76-4E1D-B49B-14CE7F722614@preservationstudio.com> There must be some way the incorrect recID is getting supplied. A missing recID will fail to edit anything, rather than just decide to edit the first record. So for each form, the recID is brought back from the last POST and put in a hidden form field. Under those conditions, posting the next form should work. For debugging, can you print_r($_POST) on every page to see at what point the recID actually goes wrong? Dale On Mar 7, 2008, at 11:11 AM, Alex Gates wrote: > Bob - > So the rec id is gathered only on the first page and transferred via > hidden fields through all 8 pages? > > Is the rec ID of the first record in the DB 1? > > Finally - > Can't you just rewrite that part to use a session instead? > > > Bob Patin wrote: >> Joel, >> I agree that it looks weird, but the guy who wrote the original >> site (whose name you all know and who shall remain nameless) wrote >> it that way. He apparently stopped answering the client's calls, so >> she called me. >> At any rate, the whole web app seems to use that, and it does >> work... except for the weird bugs. >> BP >>> Hey Bob >>> >>>> $query->AddDBParam('-recid', $_POST['-recid']); >>> >>> $_POST['-recid'] seems weird to me. Is it kosher? >>> >>> So in the form, it's >>> >>> ? >>> >>> What happens if you give the hidden input a better name (without >>> the hyphen)? >>> >>> -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 chris at iViking.org Fri Mar 7 11:03:09 2008 From: chris at iViking.org (Chris Hansen) Date: Fri Mar 7 11:03:23 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <8194B18A-2A76-4E1D-B49B-14CE7F722614@preservationstudio.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> <8194B18A-2A76-4E1D-B49B-14CE7F722614@preservationstudio.com> Message-ID: Bob, Here's another take: is it certain that it's the FIRST edit that's failing? How is the RecordID being passed to the next page? Basically, all that a RecordID is (as most on this list probably already know) is a sequential number starting at 1. So, if the user's session expired, and they submitted, is it possible that the first edit works, but the expired session results in a '1' being passed into _subsequent_ edits as the RecordID (it sounds to me like there's a whole chain of edits going on...) Just a stab in the dark. HTH --Chris Hansen FileMaker 8 Certified Developer FileMaker 7 Certified Developer Creator of FX.php "The best way from FileMaker to the Web." www.iViking.org On Mar 7, 2008, at 10:50 AM, Dale Bengston wrote: > There must be some way the incorrect recID is getting supplied. A > missing recID will fail to edit anything, rather than just decide to > edit the first record. > > So for each form, the recID is brought back from the last POST and > put in a hidden form field. Under those conditions, posting the next > form should work. For debugging, can you print_r($_POST) on every > page to see at what point the recID actually goes wrong? > > Dale > > On Mar 7, 2008, at 11:11 AM, Alex Gates wrote: > >> Bob - >> So the rec id is gathered only on the first page and transferred >> via hidden fields through all 8 pages? >> >> Is the rec ID of the first record in the DB 1? >> >> Finally - >> Can't you just rewrite that part to use a session instead? >> >> >> Bob Patin wrote: >>> Joel, >>> I agree that it looks weird, but the guy who wrote the original >>> site (whose name you all know and who shall remain nameless) wrote >>> it that way. He apparently stopped answering the client's calls, >>> so she called me. >>> At any rate, the whole web app seems to use that, and it does >>> work... except for the weird bugs. >>> BP >>>> Hey Bob >>>> >>>>> $query->AddDBParam('-recid', $_POST['-recid']); >>>> >>>> $_POST['-recid'] seems weird to me. Is it kosher? >>>> >>>> So in the form, it's >>>> >>>> ? >>>> >>>> What happens if you give the hidden input a better name (without >>>> the hyphen)? >>>> >>>> -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 jschwartz at exit445.com Fri Mar 7 11:02:43 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Mar 7 11:06:40 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <47D17759.6050702@gandrpublishing.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> Message-ID: Why not view source in each of the pages, examining the value of the hidden recid in the form? Somewhere/somehow, the value isn't carrying over. J -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From bob at patin.com Fri Mar 7 11:08:01 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 11:08:06 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <8194B18A-2A76-4E1D-B49B-14CE7F722614@preservationstudio.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> <8194B18A-2A76-4E1D-B49B-14CE7F722614@preservationstudio.com> Message-ID: Well, the odd thing is that if I were to do the whole process right now, going thru all forms, it would work just fine. It's only when someone goes and has a coffee break that there have been problems. I opened one of the forms and had it sitting open in Firefox, then without thinking about it, I restarted my laptop, which destroyed my test... arghh... On Mar 7, 2008, at 11:50 AM, Dale Bengston wrote: > There must be some way the incorrect recID is getting supplied. A > missing recID will fail to edit anything, rather than just decide to > edit the first record. > > So for each form, the recID is brought back from the last POST and > put in a hidden form field. Under those conditions, posting the next > form should work. For debugging, can you print_r($_POST) on every > page to see at what point the recID actually goes wrong? From bob at patin.com Fri Mar 7 11:11:46 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 11:11:52 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> <8194B18A-2A76-4E1D-B49B-14CE7F722614@preservationstudio.com> Message-ID: <5D5314B4-6B26-4585-83A1-49E8B09FB949@patin.com> Chris, A good stab in the dark, but unfortunately I don't have enough details to answer your question. However, since he's not passing the RECID in a session variable, it shouldn't matter whether the session expires. Also, if it did expire and that somehow caused the RECID value to disappear, would not FMEdit fail completely? What's happening (according to my client) is that record #1 is being edited instead of the one they were working in, which is their own. So somehow the RECID value, which might be 221, for example, is changing to 1. That's what is so strange; to make it odder, if you were to go thru the chain of EDITs without pausing, it would work fine. It's only when they let their computer sit for an hour or so that this happens. So... I'm going to leave Firefox open for 2 hours and see if my process fails as well, and that might help me find the source of this strangeness. Thanks for the input, Chris and everyone, Bob On Mar 7, 2008, at 12:03 PM, Chris Hansen wrote: > Here's another take: is it certain that it's the FIRST edit that's > failing? How is the RecordID being passed to the next page? > > Basically, all that a RecordID is (as most on this list probably > already know) is a sequential number starting at 1. So, if the > user's session expired, and they submitted, is it possible that the > first edit works, but the expired session results in a '1' being > passed into _subsequent_ edits as the RecordID (it sounds to me like > there's a whole chain of edits going on...) From bob at patin.com Fri Mar 7 11:12:05 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 11:12:12 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> Message-ID: I did, and I see the RECID just as I should... On Mar 7, 2008, at 12:02 PM, Jonathan Schwartz wrote: > Why not view source in each of the pages, examining the value of the > hidden recid in the form? From jschwartz at exit445.com Fri Mar 7 18:18:31 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Mar 7 18:21:43 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> Message-ID: This really is odd. If done in a timely fashion the last page of the form has the correct recid. If some extended amount of time goes by the recid goes south. Do you have a log that shows arrival to each page and the recid it arrives with? I have an all purpose log file. It gets written to from an include that I drop into pages wherever I'd like to document access. With this, you can see where things are goind bad. HTH, Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From bob at patin.com Fri Mar 7 19:43:39 2008 From: bob at patin.com (Bob Patin) Date: Fri Mar 7 19:43:45 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> Message-ID: <032D6B03-1BDA-4375-840E-A34508E01B0F@patin.com> It just gets odder... I logged in, opened one of the forms in Firefox, and then let it stay open on that page for 2.5 hours. I modified the PROCESS page so that it would echo the $_POST['- recid'], which is how the hidden field's named; I then put an exit so the form wouldn't actually write anything. When I went back to the form, and then clicked the SUBMIT button, it reported the correct RECID. I can't find anything wrong, but my client tells me that they've tested this over and over, with the same error occurring consistently. It's not using a session variable in any way for the RECID, so I can't understand why the RECID variable seems to be getting rewritten to a variable of "1." Very strange... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Mar 7, 2008, at 7:18 PM, Jonathan Schwartz wrote: > This really is odd. > > If done in a timely fashion the last page of the form has the > correct recid. If some extended amount of time goes by the recid > goes south. > > Do you have a log that shows arrival to each page and the recid it > arrives with? > > I have an all purpose log file. It gets written to from an include > that I drop into pages wherever I'd like to document access. > > With this, you can see where things are goind bad. From jschwartz at exit445.com Sat Mar 8 09:10:56 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Mar 8 09:14:57 2008 Subject: [FX.php List] Strange problem with editing records In-Reply-To: <032D6B03-1BDA-4375-840E-A34508E01B0F@patin.com> References: <2A0602D9-7C0A-4F32-9D10-F1654A0EFA41@patin.com> <5E04D820-9A61-42F8-AD36-4FCA3EA47293@patin.com> <55FE4654-09D7-4DD7-A79A-90CFAEE85428@patin.com> <90FFC3A7-185F-43BF-94C9-34CD50FA8D86@earthlink.net> <5F9E3D41-9C49-44E7-AE4E-98EB46A6ADE7@patin.com> <47D17759.6050702@gandrpublishing.com> <032D6B03-1BDA-4375-840E-A34508E01B0F@patin.com> Message-ID: Bob, Something is different between your environment and theirs. You know what the form data says when originally created, and you know what the db record says after it is updated, but you don't know what the server is actually receiving at the time the problem occurs. Try my earlier suggestion. Create a filemaker log file that records data during desired events. I would record: - arrival to each page. Record recid - edit of FMP record. Record recid. With this, you start to see exactly what is being passed from page to page and then to FMP. Plus, you get to see the browser and OS environment...all value clues. Let me know if you need the sample log.php page plus the code I use to include. Code is below. I couldn't survive w/o my log file. ;-) J add code at point of desired log------------- $Step = "Your Page or Step"; $Name= $_SESSION['your value']; // $Detail =$_POST['recid']; include('log.php'); ------------------------ log.php ---------------- include_once ("FX/FX.php"); include_once ("FX/server_data.php"); $IP = $_SERVER['HTTP_PC_REMOTE_ADDR']; $AGENT = $_SERVER['HTTP_USER_AGENT']; $hostname=gethostbyaddr($IP); $log = new FX($serverIP, $dataPort, $dataSourceType, $scheme); $log->SetDBData ('log.fp7','web'); $log->SetDBPassword ($webPW, $webUN); $log->AddDBParam ('IP', $IP); $log->AddDBParam ('Browser', $AGENT); $log->AddDBParam ('Location', $_SERVER['PHP_SELF']); $log->AddDBParam ('DB', 'Your DB Name'); $log->AddDBParam ('hostname', $hostname); //Custom Fields $log->AddDBParam ('step', $Step); $log->AddDBParam ('Name', ucwords(trim($Name))); $log->AddDBParam ('Detail', $Detail); $logResult = $log->FMNew(); //echo $logResult['errorCode']; ------------------ At 8:43 PM -0600 3/7/08, Bob Patin wrote: >It just gets odder... > >I logged in, opened one of the forms in Firefox, and then let it >stay open on that page for 2.5 hours. > >I modified the PROCESS page so that it would echo the >$_POST['-recid'], which is how the hidden field's named; I then put >an exit so the form wouldn't actually write anything. > >When I went back to the form, and then clicked the SUBMIT button, it >reported the correct RECID. > >I can't find anything wrong, but my client tells me that they've >tested this over and over, with the same error occurring >consistently. > >It's not using a session variable in any way for the RECID, so I >can't understand why the RECID variable seems to be getting >rewritten to a variable of "1." Very strange... -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From bob at patin.com Sat Mar 8 11:09:32 2008 From: bob at patin.com (Bob Patin) Date: Sat Mar 8 11:09:39 2008 Subject: [FX.php List] [OFF] How to play Flash video on Mac OS X Server Message-ID: <0ABBC94F-A006-49A6-AE1D-4642646BF4D3@patin.com> Anyone have a hint on how to get this to work? I received a folder with a set of Flash videos that a client had on another server; when I click on the enclosed "index.htm" file, it runs in Safari on my Mac, but when I put it in their website (which is on Mac OS X Server Tiger), it never runs. i've double-checked to make sure I have the "swf" MIME type in the web server... Any help would be mucho appreciated... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting From biscuit.tech at gmail.com Sat Mar 8 11:18:10 2008 From: biscuit.tech at gmail.com (biscuit technologies (gmail)) Date: Sat Mar 8 11:20:47 2008 Subject: [FX.php List] [OFF] How to play Flash video on Mac OS X Server In-Reply-To: <0ABBC94F-A006-49A6-AE1D-4642646BF4D3@patin.com> References: <0ABBC94F-A006-49A6-AE1D-4642646BF4D3@patin.com> Message-ID: <989D55F3-B1B7-4B11-8156-3D114C0FA77F@gmail.com> When you received the folder of flv's was there also a skin file, something.swf, and a folder called Scripts? Check the activity viewer in safari to see if all the associated files are being found when loading the page from the server - I'd guess something's missing. On Mar 8, 2008, at 10:09 AM, Bob Patin wrote: > Anyone have a hint on how to get this to work? > > I received a folder with a set of Flash videos that a client had on > another server; when I click on the enclosed "index.htm" file, it > runs in Safari on my Mac, but when I put it in their website (which > is on Mac OS X Server Tiger), it never runs. > > i've double-checked to make sure I have the "swf" MIME type in the > web server... > > Any help would be mucho appreciated... > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions of > FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Sat Mar 8 11:28:43 2008 From: bob at patin.com (Bob Patin) Date: Sat Mar 8 11:28:50 2008 Subject: [FX.php List] [OFF] How to play Flash video on Mac OS X Server In-Reply-To: <989D55F3-B1B7-4B11-8156-3D114C0FA77F@gmail.com> References: <0ABBC94F-A006-49A6-AE1D-4642646BF4D3@patin.com> <989D55F3-B1B7-4B11-8156-3D114C0FA77F@gmail.com> Message-ID: <419A0A1C-1260-4639-826D-354E483DC8E0@patin.com> But if that were the case, it wouldn't run on my local laptop, would it? On Mar 8, 2008, at 12:18 PM, biscuit technologies (gmail) wrote: > When you received the folder of flv's was there also a skin file, > something.swf, and a folder called Scripts? Check the activity > viewer in safari to see if all the associated files are being found > when loading the page from the server - I'd guess something's missing. > > > On Mar 8, 2008, at 10:09 AM, Bob Patin wrote: > >> Anyone have a hint on how to get this to work? >> >> I received a folder with a set of Flash videos that a client had on >> another server; when I click on the enclosed "index.htm" file, it >> runs in Safari on my Mac, but when I put it in their website (which >> is on Mac OS X Server Tiger), it never runs. >> >> i've double-checked to make sure I have the "swf" MIME type in the >> web server... >> >> Any help would be mucho appreciated... >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> Member of FileMaker Business Alliance and FileMaker TechNet >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> -------------------------- >> Contact us for FileMaker hosting and programming for all versions >> of FileMaker >> PHP ? CDML ? 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 biscuit.tech at gmail.com Sat Mar 8 11:36:28 2008 From: biscuit.tech at gmail.com (biscuit technologies (gmail)) Date: Sat Mar 8 11:39:06 2008 Subject: [FX.php List] [OFF] How to play Flash video on Mac OS X Server In-Reply-To: <419A0A1C-1260-4639-826D-354E483DC8E0@patin.com> References: <0ABBC94F-A006-49A6-AE1D-4642646BF4D3@patin.com> <989D55F3-B1B7-4B11-8156-3D114C0FA77F@gmail.com> <419A0A1C-1260-4639-826D-354E483DC8E0@patin.com> Message-ID: It's just the first and most obvious thing to check. If everything is there and activity viewer doesn't give you any errors and you're on running apache then maybe something got uploaded weird or it's a very old server setup. If the server is IIS and nothing else on the site uses flash or flv's, then most likely you'll have to add the file types to IIS and restart the server service. Since you didn't mention that the server is returning text in place of streaming video I don't think it's the missing file type, but I could be wrong. hope this helps, david On Mar 8, 2008, at 10:28 AM, Bob Patin wrote: > But if that were the case, it wouldn't run on my local laptop, would > it? > > > On Mar 8, 2008, at 12:18 PM, biscuit technologies (gmail) wrote: > >> When you received the folder of flv's was there also a skin file, >> something.swf, and a folder called Scripts? Check the activity >> viewer in safari to see if all the associated files are being found >> when loading the page from the server - I'd guess something's >> missing. >> >> >> On Mar 8, 2008, at 10:09 AM, Bob Patin wrote: >> >>> Anyone have a hint on how to get this to work? >>> >>> I received a folder with a set of Flash videos that a client had >>> on another server; when I click on the enclosed "index.htm" file, >>> it runs in Safari on my Mac, but when I put it in their website >>> (which is on Mac OS X Server Tiger), it never runs. >>> >>> i've double-checked to make sure I have the "swf" MIME type in the >>> web server... >>> >>> Any help would be mucho appreciated... >>> >>> Bob Patin >>> Longterm Solutions >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> >>> CONTACT US VIA INSTANT MESSAGING: >>> AIM or iChat: longterm1954 >>> Yahoo: longterm_solutions >>> MSN: tech@longtermsolutions.com >>> ICQ: 159333060 >>> >>> -------------------------- >>> Contact us for FileMaker hosting and programming for all versions >>> of FileMaker >>> PHP ? CDML ? 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 Sat Mar 8 11:43:10 2008 From: bob at patin.com (Bob Patin) Date: Sat Mar 8 11:43:17 2008 Subject: [FX.php List] [OFF] How to play Flash video on Mac OS X Server In-Reply-To: References: <0ABBC94F-A006-49A6-AE1D-4642646BF4D3@patin.com> <989D55F3-B1B7-4B11-8156-3D114C0FA77F@gmail.com> <419A0A1C-1260-4639-826D-354E483DC8E0@patin.com> Message-ID: <84CA3FFA-4A88-4BA9-9D1E-199C42CB217D@patin.com> Hi David, Thanks for the reply. I'm using Mac OS X Server (Apache); I'm not seeing any errors, but the videos never start running. On my laptop however, running the exact same index.htm page, in the exact same hierarchy that is on the web server, it displays and runs perfectly, so that tells me the folder structure is proper, and I would assume that all the components are there, right? But when I go to the client's website and access the same page, which is stored with the exact same folder structure as what's on my laptop, the video never plays... It displays a default "loading..." message, but nothing ever happens... Thanks for your help, BP On Mar 8, 2008, at 12:36 PM, biscuit technologies (gmail) wrote: > It's just the first and most obvious thing to check. > > If everything is there and activity viewer doesn't give you any > errors and you're on running apache then maybe something got > uploaded weird or it's a very old server setup. If the server is IIS > and nothing else on the site uses flash or flv's, then most likely > you'll have to add the file types to IIS and restart the server > service. > > Since you didn't mention that the server is returning text in place > of streaming video I don't think it's the missing file type, but I > could be wrong. > > hope this helps, > david > > On Mar 8, 2008, at 10:28 AM, Bob Patin wrote: > >> But if that were the case, it wouldn't run on my local laptop, >> would it? >> >> >> On Mar 8, 2008, at 12:18 PM, biscuit technologies (gmail) wrote: >> >>> When you received the folder of flv's was there also a skin file, >>> something.swf, and a folder called Scripts? Check the activity >>> viewer in safari to see if all the associated files are being >>> found when loading the page from the server - I'd guess >>> something's missing. >>> >>> >>> On Mar 8, 2008, at 10:09 AM, Bob Patin wrote: >>> >>>> Anyone have a hint on how to get this to work? >>>> >>>> I received a folder with a set of Flash videos that a client had >>>> on another server; when I click on the enclosed "index.htm" file, >>>> it runs in Safari on my Mac, but when I put it in their website >>>> (which is on Mac OS X Server Tiger), it never runs. >>>> >>>> i've double-checked to make sure I have the "swf" MIME type in >>>> the web server... >>>> >>>> Any help would be mucho appreciated... >>>> >>>> Bob Patin >>>> Longterm Solutions >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> >>>> CONTACT US VIA INSTANT MESSAGING: >>>> AIM or iChat: longterm1954 >>>> Yahoo: longterm_solutions >>>> MSN: tech@longtermsolutions.com >>>> ICQ: 159333060 >>>> >>>> -------------------------- >>>> Contact us for FileMaker hosting and programming for all versions >>>> of FileMaker >>>> PHP ? CDML ? 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 biscuit.tech at gmail.com Sat Mar 8 11:44:44 2008 From: biscuit.tech at gmail.com (biscuit technologies (gmail)) Date: Sat Mar 8 11:47:23 2008 Subject: [FX.php List] [OFF] How to play Flash video on Mac OS X Server In-Reply-To: <84CA3FFA-4A88-4BA9-9D1E-199C42CB217D@patin.com> References: <0ABBC94F-A006-49A6-AE1D-4642646BF4D3@patin.com> <989D55F3-B1B7-4B11-8156-3D114C0FA77F@gmail.com> <419A0A1C-1260-4639-826D-354E483DC8E0@patin.com> <84CA3FFA-4A88-4BA9-9D1E-199C42CB217D@patin.com> Message-ID: If you'd like to send me the link back channel I'd be happy to take a look. - David On Mar 8, 2008, at 10:43 AM, Bob Patin wrote: > Hi David, > > Thanks for the reply. > > I'm using Mac OS X Server (Apache); I'm not seeing any errors, but > the videos never start running. > > On my laptop however, running the exact same index.htm page, in the > exact same hierarchy that is on the web server, it displays and runs > perfectly, so that tells me the folder structure is proper, and I > would assume that all the components are there, right? > > But when I go to the client's website and access the same page, > which is stored with the exact same folder structure as what's on my > laptop, the video never plays... It displays a default "loading..." > message, but nothing ever happens... > > Thanks for your help, > > BP > > > On Mar 8, 2008, at 12:36 PM, biscuit technologies (gmail) wrote: > >> It's just the first and most obvious thing to check. >> >> If everything is there and activity viewer doesn't give you any >> errors and you're on running apache then maybe something got >> uploaded weird or it's a very old server setup. If the server is >> IIS and nothing else on the site uses flash or flv's, then most >> likely you'll have to add the file types to IIS and restart the >> server service. >> >> Since you didn't mention that the server is returning text in place >> of streaming video I don't think it's the missing file type, but I >> could be wrong. >> >> hope this helps, >> david >> >> On Mar 8, 2008, at 10:28 AM, Bob Patin wrote: >> >>> But if that were the case, it wouldn't run on my local laptop, >>> would it? >>> >>> >>> On Mar 8, 2008, at 12:18 PM, biscuit technologies (gmail) wrote: >>> >>>> When you received the folder of flv's was there also a skin file, >>>> something.swf, and a folder called Scripts? Check the activity >>>> viewer in safari to see if all the associated files are being >>>> found when loading the page from the server - I'd guess >>>> something's missing. >>>> >>>> >>>> On Mar 8, 2008, at 10:09 AM, Bob Patin wrote: >>>> >>>>> Anyone have a hint on how to get this to work? >>>>> >>>>> I received a folder with a set of Flash videos that a client had >>>>> on another server; when I click on the enclosed "index.htm" >>>>> file, it runs in Safari on my Mac, but when I put it in their >>>>> website (which is on Mac OS X Server Tiger), it never runs. >>>>> >>>>> i've double-checked to make sure I have the "swf" MIME type in >>>>> the web server... >>>>> >>>>> Any help would be mucho appreciated... >>>>> >>>>> Bob Patin >>>>> Longterm Solutions >>>>> bob@longtermsolutions.com >>>>> 615-333-6858 >>>>> http://www.longtermsolutions.com >>>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>>> >>>>> CONTACT US VIA INSTANT MESSAGING: >>>>> AIM or iChat: longterm1954 >>>>> Yahoo: longterm_solutions >>>>> MSN: tech@longtermsolutions.com >>>>> ICQ: 159333060 >>>>> >>>>> -------------------------- >>>>> Contact us for FileMaker hosting and programming for all >>>>> versions of FileMaker >>>>> PHP ? CDML ? 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 leo at finalresort.org Sat Mar 8 12:22:58 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Sat Mar 8 12:23:10 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: References: Message-ID: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> 7 mar 2008 kl. 17.27 skrev Bob Patin: > I just double-checked the pages, and I can see in the form where he > passes the RECID in a hidden field, and then retrieves it in a > $_POST on the processing page. > > So it's not using a session variable at all, yet somehow, if the > page is left to fester for an hour or so, the value of the RECID > variable gets somehow forgotten... > > Very strange; I'm going to leave the form open in Firefox for 2 > hours and see if it happens for me too... > > BP > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Bob, First make sure that you error_log("recId: {$_POST['-recid']") right before the call(s) that are doing the edit. Then do what you say, try to reproduce the problem. If you can, have a look at the error log. If it reports an incorrect recId you'll start debugging the code, while if it reports a correct recId I suppose you'll have to check up on FX or Filemaker. To really know what's coming to your pages when the pages are posted you can instead log json_encode($_POST), which will give you a readable JSON string in the log. It's neat when you want to see a lot of information, and another upside is that you can copy and decode the logged string if you need to reproduce the same information at some point. Just a simple but useful tip. -| From leo at finalresort.org Sat Mar 8 12:27:50 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Sat Mar 8 12:28:01 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> Message-ID: <5DE632D3-02DB-4474-9A15-8405D2E876F6@finalresort.org> 8 mar 2008 kl. 20.22 skrev Leo R. Lundgren: > 7 mar 2008 kl. 17.27 skrev Bob Patin: > >> I just double-checked the pages, and I can see in the form where >> he passes the RECID in a hidden field, and then retrieves it in a >> $_POST on the processing page. >> >> So it's not using a session variable at all, yet somehow, if the >> page is left to fester for an hour or so, the value of the RECID >> variable gets somehow forgotten... >> >> Very strange; I'm going to leave the form open in Firefox for 2 >> hours and see if it happens for me too... >> >> BP >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > Bob, > > First make sure that you error_log("recId: {$_POST['-recid']") > right before the call(s) that are doing the edit. Then do what you > say, try to reproduce the problem. If you can, have a look at the > error log. If it reports an incorrect recId you'll start debugging > the code, while if it reports a correct recId I suppose you'll have > to check up on FX or Filemaker. > > To really know what's coming to your pages when the pages are > posted you can instead log json_encode($_POST), which will give you > a readable JSON string in the log. It's neat when you want to see a > lot of information, and another upside is that you can copy and > decode the logged string if you need to reproduce the same > information at some point. Just a simple but useful tip. > > -| The error_log I wrote has a syntax error, it should be: error_log ("recId: {$_POST['-recid']}") -| From bob at patin.com Sat Mar 8 12:30:39 2008 From: bob at patin.com (Bob Patin) Date: Sat Mar 8 12:30:48 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> Message-ID: <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> I think I finally figured out what this web app is doing: Contrary to how *I* would do this, the original coder would retrieve the contactID before loading each and every form. He stored the contactID in a session variable, and then before loading each form, he put an include in the page that would retrieve the session variable and query the database for the proper RECID for this client. So I assume the sessions are timing out after all... My question though is this: if the session times out, then the query for the user's contactID should fail, and if that happens, the RECID doesn't get returned. If there's no value in the RECID, then why is FMEdit writing to the first record in the table? Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting From jschwartz at exit445.com Sat Mar 8 14:06:37 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Mar 8 14:06:54 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> Message-ID: Log file. J At 1:30 PM -0600 3/8/08, Bob Patin wrote: >I think I finally figured out what this web app is doing: > >Contrary to how *I* would do this, the original coder would retrieve >the contactID before loading each and every form. He stored the >contactID in a session variable, and then before loading each form, >he put an include in the page that would retrieve the session >variable and query the database for the proper RECID for this client. > >So I assume the sessions are timing out after all... > >My question though is this: if the session times out, then the query >for the user's contactID should fail, and if that happens, the RECID >doesn't get returned. > >If there's no value in the RECID, then why is FMEdit writing to the >first record in the table? > >Bob Patin >Longterm Solutions >bob@longtermsolutions.com >615-333-6858 >http://www.longtermsolutions.com >Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > >-------------------------- >Contact us for FileMaker hosting and programming for all versions of FileMaker >PHP * CDML * 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-381-1852 From dbengston at preservationstudio.com Sat Mar 8 16:17:19 2008 From: dbengston at preservationstudio.com (Dale Bengston) Date: Sat Mar 8 16:17:34 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> Message-ID: Bob, I promise I won't use the word "log" or "file" anywhere in this reply. ;-) When the session times out, the FX query is searching for contact id = nothing. Unfortunately, a busted search in FX retrieves *all* the records in the table, not *no* records. (This one of my least favorite characteristics of the FX class.) I'm betting the FMFind() is set to retrieve one record, so the broken search finds all, returns first. The recID is picked up from that first record. Subsequent edits happen to that record. If you echo the FX queries to the screen temporarily, you will see the search as it's sent to by FX to FMP. Philosophically, there isn't much point to setting a session ID to the contact ID and then using that to search the record id out before each form/edit. The record id could be retrieved at the onset, and passed from page to page with POST, which avoids session timeouts. Hope this helps, Dale On Mar 8, 2008, at 1:30 PM, Bob Patin wrote: > I think I finally figured out what this web app is doing: > > Contrary to how *I* would do this, the original coder would retrieve > the contactID before loading each and every form. He stored the > contactID in a session variable, and then before loading each form, > he put an include in the page that would retrieve the session > variable and query the database for the proper RECID for this client. > > So I assume the sessions are timing out after all... > > My question though is this: if the session times out, then the query > for the user's contactID should fail, and if that happens, the RECID > doesn't get returned. > > If there's no value in the RECID, then why is FMEdit writing to the > first record in the table? > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions of > FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Sat Mar 8 16:54:19 2008 From: bob at patin.com (Bob Patin) Date: Sat Mar 8 16:54:27 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> Message-ID: <891A66A2-6A9A-4081-AAF6-6E63459585EB@patin.com> On Mar 8, 2008, at 5:17 PM, Dale Bengston wrote: > When the session times out, the FX query is searching for contact id > = nothing. Unfortunately, a busted search in FX retrieves *all* the > records in the table, not *no* records. (This one of my least > favorite characteristics of the FX class.) I'm betting the FMFind() > is set to retrieve one record, so the broken search finds all, > returns first. The recID is picked up from that first record. > Subsequent edits happen to that record. So are you saying that if I do a search for contactID #123, and it doesn't exist, that ALL records are in reality returned? The original programmer didn't have any sort of error coding, so there wasn't a test to see if the FIND actually succeeded. So are you saying that because he didn't have any error testing, in reality the first record was returned? Wow, that sucks... :) I would've thought that if a FIND failed, the foundset would be empty. So that explains it... > > If you echo the FX queries to the screen temporarily, you will see > the search as it's sent to by FX to FMP. > > Philosophically, there isn't much point to setting a session ID to > the contact ID and then using that to search the record id out > before each form/edit. The record id could be retrieved at the > onset, and passed from page to page with POST, which avoids session > timeouts. Exactly, which is how I do it. This guy wrote a mess, and he's someone who's very well-known in the FM community (no, it's not our buddy Stephen K), who I would've thought would write better code. To make matters worse, he quit returning calls to his client, which is when she found me... perhaps there's another side to the story, but to me, it's unforgiveable to quit returning calls. Fire the client, sure, but don't just quit answering. Anyway, thanks for your answer... BP From bob at patin.com Sat Mar 8 16:55:51 2008 From: bob at patin.com (Bob Patin) Date: Sat Mar 8 16:55:59 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: <891A66A2-6A9A-4081-AAF6-6E63459585EB@patin.com> References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> <891A66A2-6A9A-4081-AAF6-6E63459585EB@patin.com> Message-ID: <230A776D-372D-4106-8006-491EAB348821@patin.com> OOPS, I didn't mean for this email to go to the list. Stephen is a good friend of mine, and has more sense than to write the mess of code that I'm now dealing with. BP On Mar 8, 2008, at 5:54 PM, Bob Patin wrote: > Exactly, which is how I do it. This guy wrote a mess, and he's > someone who's very well-known in the FM community (no, it's not our > buddy Stephen K), who I would've thought would write better code. To > make matters worse, he quit returning calls to his client, which is > when she found me... perhaps there's another side to the story, but > to me, it's unforgiveable to quit returning calls. Fire the client, > sure, but don't just quit answering. From dbengston at preservationstudio.com Sat Mar 8 17:53:39 2008 From: dbengston at preservationstudio.com (Dale Bengston) Date: Sat Mar 8 17:53:55 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: <891A66A2-6A9A-4081-AAF6-6E63459585EB@patin.com> References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> <891A66A2-6A9A-4081-AAF6-6E63459585EB@patin.com> Message-ID: On Mar 8, 2008, at 5:54 PM, Bob Patin wrote: > I would've thought that if a FIND failed, the foundset would be > empty. So that explains it... > Not in my experience. Sending in no search parameters or searching on a non-existent field will bring back all records. This is really fun when one is writing code and makes a good searching a line items table with 320,000 records in it. That's how I learned! Dale From jschwartz at exit445.com Sat Mar 8 18:01:22 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Mar 8 18:04:54 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> Message-ID: I make no such promise. ;-) Log file could show you the clues: - Time/Date/User/OS/Browser/Recid of last screen user viewed - Time/Date/User/OS/Browser/Recid of when user returned - Time/Date/User/OS/Browser/Recid of last screen that produces FMEdit - Error Code/Found Count/Recid of actual record edited by FMEdit. Anything else is just guesswork. Regarding the reported fx find error...I've not tested that. But, I always test for foundCount=1 when I expect a single record returned, and throw an error screen to avoid further processing. HTH Jonathan At 5:17 PM -0600 3/8/08, Dale Bengston wrote: >Bob, > >I promise I won't use the word "log" or "file" anywhere in this reply. ;-) > >When the session times out, the FX query is searching for contact id >= nothing. Unfortunately, a busted search in FX retrieves *all* the >records in the table, not *no* records. (This one of my least >favorite characteristics of the FX class.) I'm betting the FMFind() >is set to retrieve one record, so the broken search finds all, >returns first. The recID is picked up from that first record. >Subsequent edits happen to that record. -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From bob at patin.com Sat Mar 8 19:21:30 2008 From: bob at patin.com (Bob Patin) Date: Sat Mar 8 19:21:39 2008 Subject: [FX.php List] RECID anomaly, more info In-Reply-To: References: <73CB4452-67B2-4461-9315-7C957AAF484B@finalresort.org> <51799662-E74E-41BF-9166-15D10436DE9A@patin.com> Message-ID: <7D981C47-AE64-44D5-9EE9-8BA831EC1D79@patin.com> While I'll agree that log files can be useful, it wouldn't have helped me to find this bug. Since I didn't write the code, I had to try to unravel the incredibly obtuse, convoluted code that was on the page. Finally I saw where he was bouncing from one include to another, and had slipped in a page whose only function was to return the RECID of the current user. I knew what screens were causing the error; my client had kept really good notes... my problem was deciphering the programming. When I write web apps with a series of EDIT screens, which I've done on quite a few occasions, I do 2 things that would prevent this: 1) I validate the user on every page by looking to see if an authorization session variable is properly set; 2) I pass the RECID of the record being edited from edit page 1 to edit page 2, and so on... This guy had written the site so that you could bookmark an edit page, close your browser, and then return to it without logging in! Not only did it cause lots of problems, but it was totally insecure to boot. They've now spent quite a bit with me just to get the thing working properly... sheesh... :) Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Mar 8, 2008, at 7:01 PM, Jonathan Schwartz wrote: > Log file could show you the clues: > - Time/Date/User/OS/Browser/Recid of last screen user viewed > - Time/Date/User/OS/Browser/Recid of when user returned > - Time/Date/User/OS/Browser/Recid of last screen that produces > FMEdit > - Error Code/Found Count/Recid of actual record edited by FMEdit. From dbengston at preservationstudio.com Tue Mar 11 08:40:41 2008 From: dbengston at preservationstudio.com (Dale Bengston) Date: Tue Mar 11 08:40:58 2008 Subject: [FX.php List] FileMaker Server and Dual-Processor Xserves Message-ID: <9E990047-CDDA-432F-84A4-EBC1687F2578@preservationstudio.com> Hi everyone, I recall some discussions of problems with the WPE on dual-processor Macs. I have a client with a late-model Intel Xserve, running 10.4.x Server and FileMaker Server 8, plus the WPE on the same box (please hold your comments on that part). Is this a scenario that I should worry about? Thanks, Dale -- Dale Bengston Partner, The Whole Brain Group, LLC thewholebraingroup.com From erik at cayre.dk Tue Mar 11 08:57:50 2008 From: erik at cayre.dk (=?ISO-8859-1?Q?Erik_Andreas_Cayr=E9?=) Date: Tue Mar 11 08:58:07 2008 Subject: [FX.php List] FileMaker Server and Dual-Processor Xserves In-Reply-To: <9E990047-CDDA-432F-84A4-EBC1687F2578@preservationstudio.com> References: <9E990047-CDDA-432F-84A4-EBC1687F2578@preservationstudio.com> Message-ID: Den 11/03/2008 kl. 15.40 skrev Dale Bengston: > Hi everyone, > > I recall some discussions of problems with the WPE on dual-processor > Macs. I have a client with a late-model Intel Xserve, running 10.4.x > Server and FileMaker Server 8, plus the WPE on the same box (please > hold your comments on that part). !!! Congrats on the 'running' part of the above. I spent more time than I care to remember, trying to get FMS8 working last year... > Is this a scenario that I should worry about? I have only limited experience with FMS8. I had a server running for test purposes for some months, and don't recall having any problems. (besides getting it running in the first place!) I had FMS8 on several machines including DP G4, and G5. I would recommend upgrading to FMS9 for it's improved feature set and much more stable configuration and management tools. BTW: I now have a production system running on a recent (sep 207) XServe with 15K disks. It does webserving, CPW, IWP, PDF generation, ...and stufff! FMSA9.0.3 on Tiger server (10.4.11). (It's at www.web2pdf.dk) No hiccups! regards --- Erik Andreas Cayr? Spangsbjerg M?llevej 169 6705 Esbjerg ? Privat Tel: 75150512 Mobil: 40161183 --- ?Ved indl?ring er interessen s? meget mere effektiv end frygt, som en atomeksplosion er st?rkere end en knallert.? --Stanley Kubrick ?Kun p....sure mennesker kan ?ndre verden. Innovation skabes ikke af 'markedsanalyse', men af folk, der er afsindigt irriterede over tingenes tilstand ? --Tom Peters ?Hvis du ikke kan forklare det simpelt, forst?r du det ikke godt nok.? -- Albert Einstein ?Hvis du ikke har tid til at g?re det rigtigt, hvorn?r vil du s? have tid til at lave det om?? -- 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://www.iviking.org/pipermail/fx.php_list/attachments/20080311/3582b090/smime.bin From jsfmp at earthlink.net Tue Mar 11 09:52:54 2008 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Mar 11 09:53:11 2008 Subject: [FX.php List] [OFF] Reload whole page from AJAX div? Message-ID: <02296204-A3CA-41E9-9474-576109AEA72B@earthlink.net> Hi all I've got a page that reloads divs via AJAX (links within a div reload that same div). I want to have the *whole page* reload (not just the div) if the session has timed out, however I can't figure out how to do this. If I use header('Location: page.php'); then page.php reloads only in that div I can use Javascript in a link in the div that will reload the whole page, e.g.: click but I'd like this to be automated, so clicking a link in a div that would normally reload just that div will instead reload the whole page whenever the session has timed out. I've tried: but that didn't work (even though I was able to get it to work in another simpler situation). Any suggestions? TIA, -Joel From steve at bluecrocodile.co.nz Tue Mar 11 09:59:22 2008 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Mar 11 10:00:21 2008 Subject: [FX.php List] [OFF] Reload whole page from AJAX div? In-Reply-To: <02296204-A3CA-41E9-9474-576109AEA72B@earthlink.net> References: <02296204-A3CA-41E9-9474-576109AEA72B@earthlink.net> Message-ID: <19300A6C1B314F0F882D2E1BB594BF24@matatirosolutions.co.uk> Hi Joel, Your final solution below should be the answer... in that if the file that's called by Ajax writes the JavaScript to refresh the whole page... I can't really see anything wrong with your JS below either... are you sure that it doesn't work...? what does happen...?? are you sure that it's getting returned correctly into the div...?? (I find FireFox with FireBug installed invaluable for Ajax trouble shooting, as it shows you the calls that are made, and the responses in a window at the bottom of your browser window ;-) Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Joel Shapiro Sent: 11 March 2008 15:53 To: FX.php Discussion List Subject: [FX.php List] [OFF] Reload whole page from AJAX div? Hi all I've got a page that reloads divs via AJAX (links within a div reload that same div). I want to have the *whole page* reload (not just the div) if the session has timed out, however I can't figure out how to do this. If I use header('Location: page.php'); then page.php reloads only in that div I can use Javascript in a link in the div that will reload the whole page, e.g.: click but I'd like this to be automated, so clicking a link in a div that would normally reload just that div will instead reload the whole page whenever the session has timed out. I've tried: but that didn't work (even though I was able to get it to work in another simpler situation). Any suggestions? TIA, -Joel _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Tue Mar 11 10:12:08 2008 From: bob at patin.com (Bob Patin) Date: Tue Mar 11 10:12:23 2008 Subject: [FX.php List] FileMaker Server and Dual-Processor Xserves In-Reply-To: <9E990047-CDDA-432F-84A4-EBC1687F2578@preservationstudio.com> References: <9E990047-CDDA-432F-84A4-EBC1687F2578@preservationstudio.com> Message-ID: <76F67EFF-E1AD-462E-891A-7BC2007212DE@patin.com> Dale, I have several dual-processor G5 Xserves running here, one of which is running FMS9; they're all running Tiger Server or (in one case) Panther server, and I've had no trouble at all with them. None of them are running FMSA 8, but I can't imagine it would be any more trouble there than on my G5 desktops, of which I have a half-dozen, and several of which are running FMSA8. Best, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Mar 11, 2008, at 9:40 AM, Dale Bengston wrote: > Hi everyone, > > I recall some discussions of problems with the WPE on dual-processor > Macs. I have a client with a late-model Intel Xserve, running 10.4.x > Server and FileMaker Server 8, plus the WPE on the same box (please > hold your comments on that part). > > Is this a scenario that I should worry about? > > Thanks, > Dale > > > -- > Dale Bengston > Partner, The Whole Brain Group, LLC > thewholebraingroup.com > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From glenn at possiblesolutions.com.au Tue Mar 11 12:30:31 2008 From: glenn at possiblesolutions.com.au (Glenn Singleton) Date: Tue Mar 11 12:39:01 2008 Subject: [FX.php List] Checking the server is available before calling FX References: <02296204-A3CA-41E9-9474-576109AEA72B@earthlink.net> Message-ID: <00c101c883a6$02dd5a90$c9e2d879@DadsBox> Hi, In a thread I cannot find, someone showed some PHP code that tested that the connection to the server was available before calling any FX.PHP functions. Can anyone repost this code if they have it ? As I recall, it was testing to see if the server was running and if not using the backup server. Again, I think it was by using basic PHP file functions. I am having trouble with a sometimes unreliable link between web server and fm server and would like to use this method before calls to FX.PHP I am using the recommended testing after calling a FX.PHP object (ie if (FX::isError($searchResult)) ) but this is still throwing a PHP error of 'FX.PHP object not found' ***IF*** the server is not available. Thanks Glenn Singleton From dness at bondedbuilders.com Tue Mar 11 12:56:10 2008 From: dness at bondedbuilders.com (David Ness) Date: Tue Mar 11 12:56:26 2008 Subject: [FX.php List] Checking the server is available before calling FX In-Reply-To: <00c101c883a6$02dd5a90$c9e2d879@DadsBox> References: <02296204-A3CA-41E9-9474-576109AEA72B@earthlink.net> <00c101c883a6$02dd5a90$c9e2d879@DadsBox> Message-ID: That might have been me: BTW, in talking about failover servers, I've set up my fx.php code with the following logic: // Check to see if the FileMaker server is up and running if( !fsockopen ($FMserverIP, 80, $errno, $errstr, 2) ) { // set the variable used in fx.php calls to the redundant server IP $FMserverIP = $failoverFMServerIP; // No, it appears to be down, so test the failover server if( !fsockopen ($FMserverIP, 80, $errno, $errstr, 2) ) { $serverUp = false; } else { $serverUp = true; } } else { $serverUp = true; } Before attempting to display a page, I test the value of $serverUp and display an error page if the servers, both Primary & Failover, are down. -----Original Message----- ... In the event of a failure, the system switches to the redundant Location... David Allen Ness Database Systems Programmer Web Applications Developer -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Glenn Singleton Sent: Tuesday, March 11, 2008 2:31 PM To: FX.php Discussion List Subject: [FX.php List] Checking the server is available before calling FX Hi, In a thread I cannot find, someone showed some PHP code that tested that the connection to the server was available before calling any FX.PHP functions. Can anyone repost this code if they have it ? As I recall, it was testing to see if the server was running and if not using the backup server. Again, I think it was by using basic PHP file functions. I am having trouble with a sometimes unreliable link between web server and fm server and would like to use this method before calls to FX.PHP I am using the recommended testing after calling a FX.PHP object (ie if (FX::isError($searchResult)) ) but this is still throwing a PHP error of 'FX.PHP object not found' ***IF*** the server is not available. Thanks Glenn Singleton _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From glenn at possiblesolutions.com.au Tue Mar 11 12:52:47 2008 From: glenn at possiblesolutions.com.au (Glenn Singleton) Date: Tue Mar 11 13:01:01 2008 Subject: [FX.php List] Checking the server is available before calling FX References: <02296204-A3CA-41E9-9474-576109AEA72B@earthlink.net><00c101c883a6$02dd5a90$c9e2d879@DadsBox> Message-ID: <00e201c883a9$1ab65dd0$c9e2d879@DadsBox> David, Thank you very much, for sharing your code and the promptness of your reply. It will help my situation greatly. Regards Glenn Singleton ----- Original Message ----- From: "David Ness" To: "FX.php Discussion List" Sent: Wednesday, March 12, 2008 5:56 AM Subject: RE: [FX.php List] Checking the server is available before calling FX That might have been me: BTW, in talking about failover servers, I've set up my fx.php code with the following logic: // Check to see if the FileMaker server is up and running if( !fsockopen ($FMserverIP, 80, $errno, $errstr, 2) ) { // set the variable used in fx.php calls to the redundant server IP $FMserverIP = $failoverFMServerIP; // No, it appears to be down, so test the failover server if( !fsockopen ($FMserverIP, 80, $errno, $errstr, 2) ) { $serverUp = false; } else { $serverUp = true; } } else { $serverUp = true; } Before attempting to display a page, I test the value of $serverUp and display an error page if the servers, both Primary & Failover, are down. -----Original Message----- ... In the event of a failure, the system switches to the redundant Location... David Allen Ness Database Systems Programmer Web Applications Developer -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Glenn Singleton Sent: Tuesday, March 11, 2008 2:31 PM To: FX.php Discussion List Subject: [FX.php List] Checking the server is available before calling FX Hi, In a thread I cannot find, someone showed some PHP code that tested that the connection to the server was available before calling any FX.PHP functions. Can anyone repost this code if they have it ? As I recall, it was testing to see if the server was running and if not using the backup server. Again, I think it was by using basic PHP file functions. I am having trouble with a sometimes unreliable link between web server and fm server and would like to use this method before calls to FX.PHP I am using the recommended testing after calling a FX.PHP object (ie if (FX::isError($searchResult)) ) but this is still throwing a PHP error of 'FX.PHP object not found' ***IF*** the server is not available. Thanks Glenn Singleton _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/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 Mar 11 18:37:31 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Mar 11 18:37:51 2008 Subject: [FX.php List] [OFF] Protecting folder contents with PHP/htaccess Message-ID: Hi Folks, I have password access designed into a system that works just fine. Once logged in, users can view and download private documents by clicking on links for: PDF, DOC, XLS and PPT. But, I'm concerned about the files in the folder could be accessed by search bots or via linked URLs. I understand that I can use htaccess to lock/unlock the folder, but users shouldn't have to log in twice. Is there a way to have the PHP login talk to the htaccess log in? Or, should I be exploring other options? Thx Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-381-1852 From leo at finalresort.org Tue Mar 11 19:16:06 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Tue Mar 11 19:16:27 2008 Subject: [FX.php List] [OFF] Protecting folder contents with PHP/htaccess In-Reply-To: References: Message-ID: <932944BE-51DB-4F0F-9884-EDBB74BBBEEE@finalresort.org> There are some ways to do this, with their pros and cons. One way is to put the files outside the docroot/unprotected space of the website, and have PHP readfile() or passthrough the contents. This will consume resources though, and prevent caching unless you handle that specifically. Another way is to use a mechanism such as Lighttpd's X-Sendfile, which will let PHP tell the httpd to send a file as the response to a request from a client. You can check out the Lighttpd website if you're interested in that, or you can look at this that I just found, not sure how usable it is, but it should give you an idea about what it is: http://www.screenage.de/blog/2008/02/22/libapache2-mod- xsendfile-processes-x-sendfile-headers-with-apache2/ On a similar note to X-Sendfile is http://se2.php.net/manual/en/ function.virtual.php#67945 , which seems to need a bit too much site- specific configuration for my taste though. Just throwing out some ideas! -| 12 mar 2008 kl. 01.37 skrev Jonathan Schwartz: > Hi Folks, > > I have password access designed into a system that works just > fine. Once logged in, users can view and download private documents > by clicking on links for: PDF, DOC, XLS and PPT. > > But, I'm concerned about the files in the folder could be accessed > by search bots or via linked URLs. > > I understand that I can use htaccess to lock/unlock the folder, but > users shouldn't have to log in twice. > > Is there a way to have the PHP login talk to the htaccess log in? > > Or, should I be exploring other options? > > Thx > > Jonathan > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-381-1852 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| From bob at patin.com Tue Mar 11 19:23:30 2008 From: bob at patin.com (Bob Patin) Date: Tue Mar 11 19:23:46 2008 Subject: [FX.php List] Pulling a Javascript variable into a PHP variable? Message-ID: <64B38620-9D56-4FED-97D8-6F11AF49B3FF@patin.com> I have a Javascript variable "j" that I want to put into a PHP variable; is this doable? I tried this: but of course that didn't work... Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting and programming for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting From derrick at fogles.net Tue Mar 11 19:27:57 2008 From: derrick at fogles.net (Derrick Fogle) Date: Tue Mar 11 19:28:25 2008 Subject: [FX.php List] Pulling a Javascript variable into a PHP variable? In-Reply-To: <64B38620-9D56-4FED-97D8-6F11AF49B3FF@patin.com> References: <64B38620-9D56-4FED-97D8-6F11AF49B3FF@patin.com> Message-ID: Not without a trip to the server; Javascript is only in the browser, PHP is only on the server. You've got to use Javascript to submit the value, then have PHP pick up the value from the submit. On Mar 11, 2008, at 8:23 PM, Bob Patin wrote: > I have a Javascript variable "j" that I want to put into a PHP > variable; is this doable? > > I tried this: > > $image_counter = j; > ?> > > but of course that didn't work... > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions of > FileMaker > PHP ? CDML ? 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 Tue Mar 11 19:29:03 2008 From: leo at finalresort.org (Leo R. Lundgren) Date: Tue Mar 11 19:29:22 2008 Subject: [FX.php List] Pulling a Javascript variable into a PHP variable? In-Reply-To: <64B38620-9D56-4FED-97D8-6F11AF49B3FF@patin.com> References: <64B38620-9D56-4FED-97D8-6F11AF49B3FF@patin.com> Message-ID: Since PHP is on the server-side and Javascript is on the client-side, you will have to send the variable data to the server. In short, you need to make a http request to send it, such as a normal get/post or an ajax request. You DO mean a variable that you have on a client when it's viewing a javascript html-page, right? 12 mar 2008 kl. 02.23 skrev Bob Patin: > I have a Javascript variable "j" that I want to put into a PHP > variable; is this doable? > > I tried this: > > $image_counter = j; > ?> > > but of course that didn't work... > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting and programming for all versions > of FileMaker > PHP ? CDML ? 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 Tue Mar 11 19:27:37 2008 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Mar 11 19:32:12 2008 Subject: [FX.php List] [OFF] Protecting folder contents with PHP/htaccess In-Reply-To: <932944BE-51DB-4F0F-9884-EDBB74BBBEEE@finalresort.org> References: <932944BE-51DB-4F0F-9884-EDBB74BBBEEE@finalresort.org> Message-ID: Great suggestions, Leo. I