From ggt667 at gmail.com Tue Dec 1 07:48:58 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 1 07:49:02 2009 Subject: [FX.php List] Lookups when FMNew() Message-ID: When does lookups work for you and when does lookups not work when records are made from FX.php? ggt From ggt667 at gmail.com Thu Dec 3 04:53:18 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Dec 3 04:53:21 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced Message-ID: It?s essential for the system that runs a database that it does not do stupid things on the database files. Turning off spotlight f ex is a good treat to your database?s stability. Following this example: http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html But which other daemons can be turned off without FMSA noticing? I doubt airport agent, dotmac and perhaps a couple of other daemons, is Time Machine a daemon? are needed for FMSA to run flawlessly. Any opinions? ggt From ggt667 at gmail.com Thu Dec 3 04:55:24 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Dec 3 04:55:29 2009 Subject: [FX.php List] Re: Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: References: Message-ID: CUPS I also have doubts about being a necessity of FMSA ggt 2009/12/3 Gjermund Gusland Thorsen : > It?s essential for the system that runs a database that it does not do > stupid things on the database files. > > Turning off spotlight f ex is a good treat to your database?s stability. > > Following this example: > http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html > > But which other daemons can be turned off without FMSA noticing? > > I doubt airport agent, dotmac and perhaps a couple of other daemons, > is Time Machine a daemon? > are needed for FMSA to run flawlessly. > > Any opinions? > > ggt > From jsfmp at earthlink.net Thu Dec 3 11:18:26 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Dec 3 11:18:32 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: References: Message-ID: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> You mention Time Machine. You should definitely make sure that no backup software or routine (incl. Time Machine) ever touches the live hosted FM files. -Joel On Dec 3, 2009, at 3:53 AM, Gjermund Gusland Thorsen wrote: > It?s essential for the system that runs a database that it does not do > stupid things on the database files. > > Turning off spotlight f ex is a good treat to your database?s > stability. > > Following this example: > http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and- > on.html > > But which other daemons can be turned off without FMSA noticing? > > I doubt airport agent, dotmac and perhaps a couple of other daemons, > is Time Machine a daemon? > are needed for FMSA to run flawlessly. > > Any opinions? > > ggt > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Thu Dec 3 11:33:38 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Dec 3 11:33:41 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> Message-ID: The same goes for spotlight... ggt 2009/12/3 Joel Shapiro : > You mention Time Machine. ?You should definitely make sure that no backup > software or routine (incl. Time Machine) ever touches the live hosted FM > files. > > -Joel > > > On Dec 3, 2009, at 3:53 AM, Gjermund Gusland Thorsen wrote: > >> It?s essential for the system that runs a database that it does not do >> stupid things on the database files. >> >> Turning off spotlight f ex is a good treat to your database?s stability. >> >> Following this example: >> http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html >> >> But which other daemons can be turned off without FMSA noticing? >> >> I doubt airport agent, dotmac and perhaps a couple of other daemons, >> is Time Machine a daemon? >> are needed for FMSA to run flawlessly. >> >> Any opinions? >> >> ggt >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Thu Dec 3 11:37:20 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 11:38:03 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> Message-ID: <8AA15049-FF39-45BF-BD86-73EDAC22FFD8@patin.com> I don't think Spotlight really matters so much; I've never bothered to turn it off on my FM servers, and I haven't noticed it causing any trouble. Is your concern that it might slow the server? BP On Dec 3, 2009, at 12:33 PM, Gjermund Gusland Thorsen wrote: > The same goes for spotlight... > > ggt > > 2009/12/3 Joel Shapiro : >> You mention Time Machine. You should definitely make sure that no backup >> software or routine (incl. Time Machine) ever touches the live hosted FM >> files. >> >> -Joel >> >> >> On Dec 3, 2009, at 3:53 AM, Gjermund Gusland Thorsen wrote: >> >>> It?s essential for the system that runs a database that it does not do >>> stupid things on the database files. >>> >>> Turning off spotlight f ex is a good treat to your database?s stability. >>> >>> Following this example: >>> http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html >>> >>> But which other daemons can be turned off without FMSA noticing? >>> >>> I doubt airport agent, dotmac and perhaps a couple of other daemons, >>> is Time Machine a daemon? >>> are needed for FMSA to run flawlessly. >>> >>> Any opinions? >>> >>> ggt >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Thu Dec 3 11:39:33 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 11:39:46 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> Message-ID: <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> Funny thing: I just tried to exclude the FileMaker Data file in Spotlight on one of my servers running Tiger Server, and it just won't take the folder. No matter how I try to add it to the exclude list, it doesn't get added. Thoughts? BP On Dec 3, 2009, at 12:33 PM, Gjermund Gusland Thorsen wrote: > The same goes for spotlight... > > ggt > > 2009/12/3 Joel Shapiro : >> You mention Time Machine. You should definitely make sure that no backup >> software or routine (incl. Time Machine) ever touches the live hosted FM >> files. >> >> -Joel >> >> >> On Dec 3, 2009, at 3:53 AM, Gjermund Gusland Thorsen wrote: >> >>> It?s essential for the system that runs a database that it does not do >>> stupid things on the database files. >>> >>> Turning off spotlight f ex is a good treat to your database?s stability. >>> >>> Following this example: >>> http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html >>> >>> But which other daemons can be turned off without FMSA noticing? >>> >>> I doubt airport agent, dotmac and perhaps a couple of other daemons, >>> is Time Machine a daemon? >>> are needed for FMSA to run flawlessly. >>> >>> Any opinions? >>> >>> ggt >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Thu Dec 3 11:43:05 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 11:43:12 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> Message-ID: <7EE58391-C7DE-4698-8E1A-6C2BC2B1E504@patin.com> Just tried it on another server, same thing. Both running Tiger Server, FMS 10. Hmm... which explains why I never excluded the database folders. I vaguely recall trying this months ago with the same result. What's preventing me from excluding these folders? Is this a Mac OS Server thing? BP On Dec 3, 2009, at 12:39 PM, Bob Patin wrote: > Funny thing: I just tried to exclude the FileMaker Data file in Spotlight on one of my servers running Tiger Server, and it just won't take the folder. No matter how I try to add it to the exclude list, it doesn't get added. > > Thoughts? > > BP > > > On Dec 3, 2009, at 12:33 PM, Gjermund Gusland Thorsen wrote: > >> The same goes for spotlight... >> >> ggt >> >> 2009/12/3 Joel Shapiro : >>> You mention Time Machine. You should definitely make sure that no backup >>> software or routine (incl. Time Machine) ever touches the live hosted FM >>> files. >>> >>> -Joel >>> >>> >>> On Dec 3, 2009, at 3:53 AM, Gjermund Gusland Thorsen wrote: >>> >>>> It?s essential for the system that runs a database that it does not do >>>> stupid things on the database files. >>>> >>>> Turning off spotlight f ex is a good treat to your database?s stability. >>>> >>>> Following this example: >>>> http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html >>>> >>>> But which other daemons can be turned off without FMSA noticing? >>>> >>>> I doubt airport agent, dotmac and perhaps a couple of other daemons, >>>> is Time Machine a daemon? >>>> are needed for FMSA to run flawlessly. >>>> >>>> Any opinions? >>>> >>>> ggt >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Thu Dec 3 11:52:20 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Dec 3 11:52:22 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <7EE58391-C7DE-4698-8E1A-6C2BC2B1E504@patin.com> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <7EE58391-C7DE-4698-8E1A-6C2BC2B1E504@patin.com> Message-ID: <79F64804-7F46-4EB2-AF9E-4BFCC7B9321D@earthlink.net> Hey Bob I just looked at ggt's link. Don't know if that's what you're trying... You should be able to exclude individual folders from Spotlight via: System Prefs >> Spotlight >> Privacy I just did this recently on a machine running Snow Leopard Server without a problem, and have done this on Tiger and Leopard non-Server. FWIW: It *is* recommended that Spotlight or any Indexing service not touch live hosted files. -Joel On Dec 3, 2009, at 10:43 AM, Bob Patin wrote: > Just tried it on another server, same thing. Both running Tiger > Server, FMS 10. > > Hmm... which explains why I never excluded the database folders. I > vaguely recall trying this months ago with the same result. > > What's preventing me from excluding these folders? Is this a Mac OS > Server thing? > > BP > > > On Dec 3, 2009, at 12:39 PM, Bob Patin wrote: > >> Funny thing: I just tried to exclude the FileMaker Data file in >> Spotlight on one of my servers running Tiger Server, and it just >> won't take the folder. No matter how I try to add it to the exclude >> list, it doesn't get added. >> >> Thoughts? >> >> BP >> >> >> On Dec 3, 2009, at 12:33 PM, Gjermund Gusland Thorsen wrote: >> >>> The same goes for spotlight... >>> >>> ggt >>> >>> 2009/12/3 Joel Shapiro : >>>> You mention Time Machine. You should definitely make sure that >>>> no backup >>>> software or routine (incl. Time Machine) ever touches the live >>>> hosted FM >>>> files. >>>> >>>> -Joel >>>> >>>> >>>> On Dec 3, 2009, at 3:53 AM, Gjermund Gusland Thorsen wrote: >>>> >>>>> It?s essential for the system that runs a database that it does >>>>> not do >>>>> stupid things on the database files. >>>>> >>>>> Turning off spotlight f ex is a good treat to your database?s >>>>> stability. >>>>> >>>>> Following this example: >>>>> http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html >>>>> >>>>> But which other daemons can be turned off without FMSA noticing? >>>>> >>>>> I doubt airport agent, dotmac and perhaps a couple of other >>>>> daemons, >>>>> is Time Machine a daemon? >>>>> are needed for FMSA to run flawlessly. >>>>> >>>>> Any opinions? >>>>> >>>>> ggt >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/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 bob at patin.com Thu Dec 3 12:29:05 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 12:30:01 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <79F64804-7F46-4EB2-AF9E-4BFCC7B9321D@earthlink.net> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <7EE58391-C7DE-4698-8E1A-6C2BC2B1E504@patin.com> <79F64804-7F46-4EB2-AF9E-4BFCC7B9321D@earthlink.net> Message-ID: <9F7EDCB6-1635-457E-9EEE-07DDF8A0008D@patin.com> Doesn't work for me... won't let me add the folder... strange. Does the same thing on 2 machines, haven't tried the others... BP On Dec 3, 2009, at 12:52 PM, Joel Shapiro wrote: > You should be able to exclude individual folders from Spotlight via: > System Prefs >> Spotlight >> Privacy > > I just did this recently on a machine running Snow Leopard Server without a problem, and have done this on Tiger and Leopard non-Server. > > FWIW: It *is* recommended that Spotlight or any Indexing service not touch live hosted files. From dbengston at tds.net Thu Dec 3 12:44:05 2009 From: dbengston at tds.net (Dale Bengston) Date: Thu Dec 3 12:44:14 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> Message-ID: <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> Hi Bob, Perhaps a permissions issue? Dale On Dec 3, 2009, at 12:39 PM, Bob Patin wrote: > Funny thing: I just tried to exclude the FileMaker Data file in Spotlight on one of my servers running Tiger Server, and it just won't take the folder. No matter how I try to add it to the exclude list, it doesn't get added. > > Thoughts? > > BP > > > On Dec 3, 2009, at 12:33 PM, Gjermund Gusland Thorsen wrote: > >> The same goes for spotlight... >> >> ggt >> >> 2009/12/3 Joel Shapiro : >>> You mention Time Machine. You should definitely make sure that no backup >>> software or routine (incl. Time Machine) ever touches the live hosted FM >>> files. >>> >>> -Joel >>> >>> >>> On Dec 3, 2009, at 3:53 AM, Gjermund Gusland Thorsen wrote: >>> >>>> It?s essential for the system that runs a database that it does not do >>>> stupid things on the database files. >>>> >>>> Turning off spotlight f ex is a good treat to your database?s stability. >>>> >>>> Following this example: >>>> http://www.nerdlogger.com/2009/01/how-to-turn-spotlight-off-and-on.html >>>> >>>> But which other daemons can be turned off without FMSA noticing? >>>> >>>> I doubt airport agent, dotmac and perhaps a couple of other daemons, >>>> is Time Machine a daemon? >>>> are needed for FMSA to run flawlessly. >>>> >>>> Any opinions? >>>> >>>> ggt >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Thu Dec 3 12:48:27 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 12:48:32 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> Message-ID: <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> Wouldn't think so, since it's the FileMaker Server database folder, but I'll check that... BP On Dec 3, 2009, at 1:44 PM, Dale Bengston wrote: > Hi Bob, > > Perhaps a permissions issue? > > Dale From bob at patin.com Thu Dec 3 12:50:06 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 12:50:13 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> Message-ID: <90240060-FEBC-4B91-805E-F16EC75BAECB@patin.com> Just checked it, made sure the owner was me with r/w, and it still won't let me drag the folder into the Privacy pane. On Dec 3, 2009, at 1:48 PM, Bob Patin wrote: > Wouldn't think so, since it's the FileMaker Server database folder, but I'll check that... > > BP > > > On Dec 3, 2009, at 1:44 PM, Dale Bengston wrote: > >> Hi Bob, >> >> Perhaps a permissions issue? >> >> Dale > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Thu Dec 3 13:10:13 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Dec 3 13:10:16 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> Message-ID: <2F03C0D8-A735-48DC-BFDF-93761685FBF9@earthlink.net> What if you try just the FMS/Data/Databases/ folder? -Joel On Dec 3, 2009, at 11:48 AM, Bob Patin wrote: > Wouldn't think so, since it's the FileMaker Server database folder, > but I'll check that... > > BP > > > On Dec 3, 2009, at 1:44 PM, Dale Bengston wrote: > >> Hi Bob, >> >> Perhaps a permissions issue? >> >> Dale > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Thu Dec 3 13:24:25 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 13:25:47 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <2F03C0D8-A735-48DC-BFDF-93761685FBF9@earthlink.net> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> <2F03C0D8-A735-48DC-BFDF-93761685FBF9@earthlink.net> Message-ID: Tried it... wouldn't go... argh... :) But to be honest, I don't see any negative issues with the databases being indexed by Spotlight... not noticing it, anyway... On Dec 3, 2009, at 2:10 PM, Joel Shapiro wrote: > What if you try just the FMS/Data/Databases/ folder? > > -Joel > > > On Dec 3, 2009, at 11:48 AM, Bob Patin wrote: > >> Wouldn't think so, since it's the FileMaker Server database folder, but I'll check that... >> >> BP >> >> >> On Dec 3, 2009, at 1:44 PM, Dale Bengston wrote: >> >>> Hi Bob, >>> >>> Perhaps a permissions issue? >>> >>> Dale >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Thu Dec 3 13:41:25 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Dec 3 13:41:28 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> <2F03C0D8-A735-48DC-BFDF-93761685FBF9@earthlink.net> Message-ID: Spotlight crashed fmsa 10 for me... so I am not going to run the the two apps on the same machine anymore. ggt 2009/12/3 Bob Patin : > Tried it... wouldn't go... argh... :) > > But to be honest, I don't see any negative issues with the databases being indexed by Spotlight... not noticing it, anyway... > > > On Dec 3, 2009, at 2:10 PM, Joel Shapiro wrote: > >> What if you try just the FMS/Data/Databases/ folder? >> >> -Joel >> >> >> On Dec 3, 2009, at 11:48 AM, Bob Patin wrote: >> >>> Wouldn't think so, since it's the FileMaker Server database folder, but I'll check that... >>> >>> BP >>> >>> >>> On Dec 3, 2009, at 1:44 PM, Dale Bengston wrote: >>> >>>> Hi Bob, >>>> >>>> Perhaps a permissions issue? >>>> >>>> Dale >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Thu Dec 3 14:09:42 2009 From: bob at patin.com (Bob Patin) Date: Thu Dec 3 14:10:03 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> <2F03C0D8-A735-48DC-BFDF-93761685FBF9@earthlink.net> Message-ID: <01AEA8C2-920E-4503-8304-8BB02B6F34BA@patin.com> It's never caused me any trouble, and it's been years. I don't use it though--did it crash when you were using it, or just having it on the machine at all? BP On Dec 3, 2009, at 2:41 PM, Gjermund Gusland Thorsen wrote: > Spotlight crashed fmsa 10 for me... so I am not going to run the the > two apps on the same machine anymore. From kmccoy at supportgroup.com Thu Dec 3 18:01:59 2009 From: kmccoy at supportgroup.com (Karstyn McCoy) Date: Thu Dec 3 18:02:02 2009 Subject: [FX.php List] Memory Error Message-ID: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> Not strictly an FX question but definitly PHP - so thought I try this list for some good ideas. Here is the issue: I get a following error when I execute a php script Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 89727 bytes) I have normally fixed this by doing the following - Increase the memory size in php.ini file - added a line ini_set('memory_limit', -1) - restarting the web server and checking phpinfo to validate the change But I still get the error. --Karstyn From headhoncho at customikesolutions.com Thu Dec 3 18:12:03 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Thu Dec 3 18:12:11 2009 Subject: [FX.php List] Memory Error In-Reply-To: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> Message-ID: Hi Karsytn, On 04/12/2009, at 12:01 PM, Karstyn McCoy wrote: > Not strictly an FX question but definitly PHP - so thought I try this > list for some good ideas. > > Here is the issue: > I get a following error when I execute a php script > Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to > allocate 89727 bytes) > I have normally fixed this by doing the following > - Increase the memory size in php.ini file > - added a line ini_set('memory_limit', -1) > - restarting the web server and checking phpinfo to validate the > change > > But I still get the error. Do you have an infinite loop? This could be the issue. Regards Michael Ward -- Head Honcho CustoMike Solutions Member, FileMaker Business Alliance Member, FileMaker Technical Network FileMaker 7 Certified Developer FileMaker 8 Certified Developer FileMaker 9 Certified Developer FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From jschwartz at exit445.com Thu Dec 3 18:11:41 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Dec 3 18:14:36 2009 Subject: [FX.php List] Memory Error In-Reply-To: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> Message-ID: Kartsyn, While you *could* have a script that requires more memory than has been allocated, a more common source of the problem is an endless loop of a script that normally doesn't need extra memory. Is the problem attributed to just one script? Is it a new script? Are you doing operations similar to other scripts that have no memory issues? If the answer to these questions is "Yes", than look for a malfunctionaing script rather than a memory issue. Hope that helps, Jonthan >Not strictly an FX question but definitly PHP - so thought I try this >list for some good ideas. > >Here is the issue: >I get a following error when I execute a php script >Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to >allocate 89727 bytes) > >I have normally fixed this by doing the following >- Increase the memory size in php.ini file >- added a line ini_set('memory_limit', -1) >- restarting the web server and checking phpinfo to validate the change > >But I still get the error. > >--Karstyn >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From kmccoy at supportgroup.com Thu Dec 3 18:18:07 2009 From: kmccoy at supportgroup.com (Karstyn McCoy) Date: Thu Dec 3 18:18:11 2009 Subject: [FX.php List] Memory Error In-Reply-To: References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> Message-ID: <898d01b70912031718q59fd6075r5c8bd531a4bd5cae@mail.gmail.com> Thanks Guys. I'll do some more debugging to check for endless loops or a malfunctioning part of the script. Thanks, --Karstyn On Thu, Dec 3, 2009 at 5:11 PM, Jonathan Schwartz wrote: > Kartsyn, > > While you *could* have a script that requires more memory than has been > allocated, a more common source of the problem is an endless loop of a > script that normally doesn't need extra memory. > > Is the problem attributed to just one script? ?Is it a new script? Are you > doing operations similar to other scripts that have no memory issues? > > If the answer to these questions is "Yes", than look for a malfunctionaing > script rather than a memory issue. > > Hope that helps, > > Jonthan > > >> Not strictly an FX question but definitly PHP - so thought I try this >> list for some good ideas. >> >> Here is the issue: >> I get a following error when I execute a php script >> Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to >> allocate 89727 bytes) >> >> I have normally fixed this by doing the following >> - Increase the memory size in php.ini file >> - added a line ini_set('memory_limit', -1) >> - restarting the web server and checking phpinfo to validate the change >> >> But I still get the error. >> >> --Karstyn >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dbengston at tds.net Thu Dec 3 19:24:59 2009 From: dbengston at tds.net (Dale Bengston) Date: Thu Dec 3 19:25:05 2009 Subject: [FX.php List] Memory Error In-Reply-To: <898d01b70912031718q59fd6075r5c8bd531a4bd5cae@mail.gmail.com> References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> <898d01b70912031718q59fd6075r5c8bd531a4bd5cae@mail.gmail.com> Message-ID: <2F08C5A9-8D14-4AE3-84AF-AA645BA0E5AC@tds.net> Another way to have this happen is to accidentally retrieve all the records out of a table. If you submit a query to FX that has no search terms, it's like doing a findall. I found this out the hard way on a table with 300K line items. Dale On Dec 3, 2009, at 7:18 PM, Karstyn McCoy wrote: > Thanks Guys. > > I'll do some more debugging to check for endless loops or a > malfunctioning part of the script. > > Thanks, > > --Karstyn > > > > On Thu, Dec 3, 2009 at 5:11 PM, Jonathan Schwartz wrote: >> Kartsyn, >> >> While you *could* have a script that requires more memory than has been >> allocated, a more common source of the problem is an endless loop of a >> script that normally doesn't need extra memory. >> >> Is the problem attributed to just one script? Is it a new script? Are you >> doing operations similar to other scripts that have no memory issues? >> >> If the answer to these questions is "Yes", than look for a malfunctionaing >> script rather than a memory issue. >> >> Hope that helps, >> >> Jonthan >> >> >>> Not strictly an FX question but definitly PHP - so thought I try this >>> list for some good ideas. >>> >>> Here is the issue: >>> I get a following error when I execute a php script >>> Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to >>> allocate 89727 bytes) >>> >>> I have normally fixed this by doing the following >>> - Increase the memory size in php.ini file >>> - added a line ini_set('memory_limit', -1) >>> - restarting the web server and checking phpinfo to validate the change >>> >>> But I still get the error. >>> >>> --Karstyn >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Fri Dec 4 04:44:20 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Dec 4 04:44:23 2009 Subject: [FX.php List] Finetuning MacOS X for FileMaker Server Advanced In-Reply-To: <01AEA8C2-920E-4503-8304-8BB02B6F34BA@patin.com> References: <26E423E6-9470-495D-BAD4-F7E1AADF8489@earthlink.net> <8DA26333-3660-45C7-BE49-5C7A15925BD0@patin.com> <8D267340-5A8B-49D7-ABC3-D2614108A0EE@tds.net> <8B60D458-2AA6-476E-A9ED-8A9645AE00E5@patin.com> <2F03C0D8-A735-48DC-BFDF-93761685FBF9@earthlink.net> <01AEA8C2-920E-4503-8304-8BB02B6F34BA@patin.com> Message-ID: I don?t use it either, I just looked in /Library/Logs/CrashReporter and it has evidence that FileMaker has crashed 3 times, one time due to spotlight activity, the other time to due network activity, probably the bug in FMP9. ggt 2009/12/3 Bob Patin : > It's never caused me any trouble, and it's been years. I don't use it though--did it crash when you were using it, or just having it on the machine at all? > > BP > > > On Dec 3, 2009, at 2:41 PM, Gjermund Gusland Thorsen wrote: > >> Spotlight crashed fmsa 10 for me... so I am not going to run the the >> two apps on the same machine anymore. > > _______________________________________________ > 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 Dec 4 08:48:28 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 4 08:48:39 2009 Subject: [FX.php List] Get Last Record Message-ID: Hi Folks, OK. I admit to being lazy on this, posting my question rather than researching for 2 hours....how do you retrieve just the last record in a file in an efficient manner? I thought of the following: 1) Do an initial query. Get last foreach. But that makes all records transfer. 2) Do a single record query that contains a related record with reverse sort. Get from portal Isn't there a get last record parameter? Thanks Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From steve at bluecrocodile.co.nz Fri Dec 4 09:08:13 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Dec 4 09:07:57 2009 Subject: [FX.php List] Get Last Record In-Reply-To: References: Message-ID: <7C03A5C4-6A5E-4A30-9E73-0C4EBF783DC7@bluecrocodile.co.nz> Off the top of my head, while sitting in a train station, what about a find where -recid > 0 sorted by -recid descending, returning only one record? Cheers Steve Sent from my iPhone On 4 Dec 2009, at 15:48, Jonathan Schwartz wrote: > Hi Folks, > > OK. I admit to being lazy on this, posting my question rather than > researching for 2 hours....how do you retrieve just the last record > in a file in an efficient manner? > > I thought of the following: > 1) Do an initial query. Get last foreach. But that makes all > records transfer. > 2) Do a single record query that contains a related record with > reverse sort. Get from portal > > Isn't there a get last record parameter? > > Thanks > > Jonathan > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jschwartz at exit445.com Fri Dec 4 09:08:11 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 4 09:12:19 2009 Subject: [FX.php List] Get Last Record In-Reply-To: References: Message-ID: I used method 2. Single query. Works great. Nice to know if there is a specific command, though. Jonathan >Hi Folks, > >OK. I admit to being lazy on this, posting my question rather than >researching for 2 hours....how do you retrieve just the last record >in a file in an efficient manner? > >I thought of the following: > 1) Do an initial query. Get last foreach. But that makes all >records transfer. > 2) Do a single record query that contains a related record >with reverse sort. Get from portal > >Isn't there a get last record parameter? > >Thanks > >Jonathan > >-- >Jonathan Schwartz >Exit 445 Group >jonathan@exit445.com >http://www.exit445.com >415-370-5011 >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dbengston at tds.net Fri Dec 4 11:44:29 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 4 11:44:35 2009 Subject: [FX.php List] Get Last Record In-Reply-To: References: Message-ID: <77A57AFE-F40B-498F-BBA7-FBF8A59356CC@tds.net> I'd sort by the table's key field descending (assuming it's incremental & sequential) and set the found set to one record. The last record is the one at the bottom, er top. One thing to look out for: in a busy, multi-user environment: the last record may not be the last record *you* created. A way to defend against this would be to include the user's id or session id or some other data stored in that "last record" makes sure you get the last record you created. Dale On Dec 4, 2009, at 10:08 AM, Jonathan Schwartz wrote: > I used method 2. Single query. Works great. Nice to know if there is a specific command, though. > > Jonathan > > >> Hi Folks, >> >> OK. I admit to being lazy on this, posting my question rather than researching for 2 hours....how do you retrieve just the last record in a file in an efficient manner? >> >> I thought of the following: >> 1) Do an initial query. Get last foreach. But that makes all records transfer. >> 2) Do a single record query that contains a related record with reverse sort. Get from portal >> >> Isn't there a get last record parameter? >> >> Thanks >> >> Jonathan >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > 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 Dec 4 14:37:19 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 4 14:38:17 2009 Subject: [FX.php List] Get Last Record In-Reply-To: <7C03A5C4-6A5E-4A30-9E73-0C4EBF783DC7@bluecrocodile.co.nz> References: <7C03A5C4-6A5E-4A30-9E73-0C4EBF783DC7@bluecrocodile.co.nz> Message-ID: Excellent! Thanks >Off the top of my head, while sitting in a train station, what about >a find where -recid > 0 sorted by -recid descending, returning only >one record? > >Cheers >Steve > >Sent from my iPhone > >On 4 Dec 2009, at 15:48, Jonathan Schwartz wrote: > >>Hi Folks, >> >>OK. I admit to being lazy on this, posting my question rather than >>researching for 2 hours....how do you retrieve just the last record >>in a file in an efficient manner? >> >>I thought of the following: >> 1) Do an initial query. Get last foreach. But that makes all >>records transfer. >> 2) Do a single record query that contains a related record with >>reverse sort. Get from portal >> >>Isn't there a get last record parameter? >> >>Thanks >> >>Jonathan >> >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jschwartz at exit445.com Fri Dec 4 14:43:15 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 4 14:48:17 2009 Subject: [FX.php List] Save to database without a Submit? Message-ID: Hi Folks, I have a client who is very worried about losing form data should something should go wrong during a data entry session, such as dropped connection or so. I have already decided to write to the file upon every page submit (versus saving to sessionand writing it all at once at the end of a multi page form). On a technical level, I imagine that automatic submits can be accomplished using AJAX, perhaps to a temporary file. But is this a reasonable practice? Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jschwartz at exit445.com Fri Dec 4 15:06:40 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 4 15:08:13 2009 Subject: [FX.php List] Worldwide end user environment Message-ID: Hi Folks, I understand that there is no one answer for this, but I need to figure out how to produce an application that will work worldwide...some in developing countries. I have the multiple language aspect figured out. I now need to know what bandwidth and browser support to aim for. If the range is very large, does it make sense to develop for two extremes? I don't think that the client has this information. Thanks for your help. Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From tim at nicheit.com.au Fri Dec 4 15:13:37 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Fri Dec 4 15:13:42 2009 Subject: [FX.php List] Save to database without a Submit? In-Reply-To: References: Message-ID: <0FA02242-AB6E-4E3E-8823-D461B3902E30@nicheit.com.au> On 05/12/2009, at 8:43 AM, Jonathan Schwartz wrote: > Hi Folks, > > I have a client who is very worried about losing form data should > something should go wrong during a data entry session, such as > dropped connection or so. > > I have already decided to write to the file upon every page submit > (versus saving to sessionand writing it all at once at the end of a > multi page form). On a technical level, I imagine that automatic > submits can be accomplished using AJAX, perhaps to a temporary file. > But is this a reasonable practice? No. And you only need a connection at the point of submission anyway, as opposed to being always connected like you would for a AJAX submit on every field... I do minutes off-line into a form, and only press submit when I am back online - even if I forget, the form fails, and the Back button shows it all again... Cheers Webko From tcmeyers at troymeyers.com Fri Dec 4 15:17:26 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Fri Dec 4 15:17:29 2009 Subject: [FX.php List] [Off] FileMaker user dictionary file for spell-check Message-ID: This is way off-topic, but I haven't had any luck getting an answer elsewhere, so I'm trying here because you all know so much. For years I've had this problem. I have a user dictionary "user.upr" which contains numerous esoteric words that we've accumulated ...all of which we use all the time. For some reason I've never been able to have FileMaker refer to the dictionary right away without me "fixing" it by using the "Select User Dictionary..." menu item. What's worse, is that I need to do that individually with each database I open even though I've already selected it. As far as I know this dictionary is in the default location and has the default name that FileMaker "volunteers" when you set it up, which is "user.upr" in the "Documents" folder. What can I do to have this dictionary be set up on launch? (Others have suggested a "launcher" file, but since I have to specify it for each database opened, this doesn't work.) Better yet, is there a way I can put it on FMS so that all users refer to the big one? I have to periodically replace the file on the other workstations to keep it up to date. Any thoughts? Have others had this problem? -Troy From jschwartz at exit445.com Fri Dec 4 15:29:19 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 4 15:33:14 2009 Subject: [FX.php List] Save to database without a Submit? In-Reply-To: <0FA02242-AB6E-4E3E-8823-D461B3902E30@nicheit.com.au> References: <0FA02242-AB6E-4E3E-8823-D461B3902E30@nicheit.com.au> Message-ID: I guess this begs the question what the client is trying to protect against. I was surprised to see you say that the end user connection could be sporadic. I had always thought that if the local connection failed, then the rest of the php session was lost. I need to try this .... J >On 05/12/2009, at 8:43 AM, Jonathan Schwartz wrote: > >>Hi Folks, >> >>I have a client who is very worried about losing form data should >>something should go wrong during a data entry session, such as >>dropped connection or so. >> >>I have already decided to write to the file upon every page submit >>(versus saving to sessionand writing it all at once at the end of a >>multi page form). On a technical level, I imagine that automatic >>submits can be accomplished using AJAX, perhaps to a temporary >>file. But is this a reasonable practice? > >No. And you only need a connection at the point of submission >anyway, as opposed to being always connected like you would for a >AJAX submit on every field... I do minutes off-line into a form, and >only press submit when I am back online - even if I forget, the form >fails, and the Back button shows it all again... > >Cheers > >Webko > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dbengston at tds.net Fri Dec 4 15:54:22 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 4 15:54:28 2009 Subject: [FX.php List] Save to database without a Submit? In-Reply-To: References: Message-ID: <90829C6C-4707-4594-A9D8-B2E6F6C79723@tds.net> I do not believe this is a reasonable expectation of HTML. The web is only in a connection mode between a submit click and the next page reloading. After that, it's all happening in the local browser window until the next submit. (Or ajax call or whatever.) I make these assumptions with complex, multi-part forms: -The user should not be sent down a series of forms with no idea how many pages there are to fill out. -The user might not want to complete the sections in the same order I'd do it. -The user might not finish all the sections in one sitting. So, based on this, I design multi-part forms around a "hub" page, so users can see what's left to be filled in, and do it from the bottom up if they like. (Naturally if there are dependencies based on order, the user would be guided thusly.) And I make sure the user can get back to the hub page if they get disconnected for any reason, or bail out on their own. Until all sections are complete and the user officially submits the entire package, the record (or records) are maintained with a status of "Draft" or something like that. On Dec 4, 2009, at 3:43 PM, Jonathan Schwartz wrote: > Hi Folks, > > I have a client who is very worried about losing form data should something should go wrong during a data entry session, such as dropped connection or so. > > I have already decided to write to the file upon every page submit (versus saving to sessionand writing it all at once at the end of a multi page form). On a technical level, I imagine that automatic submits can be accomplished using AJAX, perhaps to a temporary file. But is this a reasonable practice? > > Jonathan > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jschwartz at exit445.com Fri Dec 4 16:16:25 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 4 16:18:14 2009 Subject: [FX.php List] Save to database without a Submit? In-Reply-To: <90829C6C-4707-4594-A9D8-B2E6F6C79723@tds.net> References: <90829C6C-4707-4594-A9D8-B2E6F6C79723@tds.net> Message-ID: Thanks, Dale. We're in agreement. In fact, I think that you offered the same advice years ago, which I embraced. I'm going to chalk up the idea of midpage quasi-submits as not realistic or beneficial. Thanks J At 4:54 PM -0600 12/4/09, Dale Bengston wrote: >I do not believe this is a reasonable expectation of HTML. The web >is only in a connection mode between a submit click and the next >page reloading. After that, it's all happening in the local browser >window until the next submit. (Or ajax call or whatever.) > >I make these assumptions with complex, multi-part forms: > > -The user should not be sent down a series of forms with no >idea how many pages there are to fill out. > -The user might not want to complete the sections in the same >order I'd do it. > -The user might not finish all the sections in one sitting. > >So, based on this, I design multi-part forms around a "hub" page, so >users can see what's left to be filled in, and do it from the bottom >up if they like. (Naturally if there are dependencies based on >order, the user would be guided thusly.) And I make sure the user >can get back to the hub page if they get disconnected for any >reason, or bail out on their own. > >Until all sections are complete and the user officially submits the >entire package, the record (or records) are maintained with a status >of "Draft" or something like that. > > >On Dec 4, 2009, at 3:43 PM, Jonathan Schwartz wrote: > >> Hi Folks, >> >> I have a client who is very worried about losing form data should >>something should go wrong during a data entry session, such as >>dropped connection or so. >> >> I have already decided to write to the file upon every page submit >>(versus saving to sessionand writing it all at once at the end of a >>multi page form). On a technical level, I imagine that automatic >>submits can be accomplished using AJAX, perhaps to a temporary >>file. But is this a reasonable practice? >> >> Jonathan >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From bob at patin.com Fri Dec 4 16:20:38 2009 From: bob at patin.com (Bob Patin) Date: Fri Dec 4 16:20:45 2009 Subject: [FX.php List] Save to database without a Submit? In-Reply-To: <0FA02242-AB6E-4E3E-8823-D461B3902E30@nicheit.com.au> References: <0FA02242-AB6E-4E3E-8823-D461B3902E30@nicheit.com.au> Message-ID: Tim, Not true with IE; when you use the BACK button in IE, your data's gone. At least, that's the case using an SSL cert... don't remember if it's the case without. BP Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 4, 2009, at 4:13 PM, Tim 'Webko' Booth wrote: > No. And you only need a connection at the point of submission anyway, as opposed to being always connected like you would for a AJAX submit on every field... I do minutes off-line into a form, and only press submit when I am back online - even if I forget, the form fails, and the Back button shows it all again... -------------- next part -------------- Skipped content of type multipart/related From dbengston at tds.net Fri Dec 4 16:43:52 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 4 16:43:59 2009 Subject: [FX.php List] Save to database without a Submit? In-Reply-To: References: <90829C6C-4707-4594-A9D8-B2E6F6C79723@tds.net> Message-ID: Quasi-submits. I like it! On Dec 4, 2009, at 5:16 PM, Jonathan Schwartz wrote: > Thanks, Dale. > > We're in agreement. In fact, I think that you offered the same advice years ago, which I embraced. > > I'm going to chalk up the idea of midpage quasi-submits as not realistic or beneficial. > > Thanks > > J > > At 4:54 PM -0600 12/4/09, Dale Bengston wrote: >> I do not believe this is a reasonable expectation of HTML. The web is only in a connection mode between a submit click and the next page reloading. After that, it's all happening in the local browser window until the next submit. (Or ajax call or whatever.) >> >> I make these assumptions with complex, multi-part forms: >> >> -The user should not be sent down a series of forms with no idea how many pages there are to fill out. >> -The user might not want to complete the sections in the same order I'd do it. >> -The user might not finish all the sections in one sitting. >> >> So, based on this, I design multi-part forms around a "hub" page, so users can see what's left to be filled in, and do it from the bottom up if they like. (Naturally if there are dependencies based on order, the user would be guided thusly.) And I make sure the user can get back to the hub page if they get disconnected for any reason, or bail out on their own. >> >> Until all sections are complete and the user officially submits the entire package, the record (or records) are maintained with a status of "Draft" or something like that. >> >> >> On Dec 4, 2009, at 3:43 PM, Jonathan Schwartz wrote: >> >>> Hi Folks, >>> >>> I have a client who is very worried about losing form data should something should go wrong during a data entry session, such as dropped connection or so. >>> >>> I have already decided to write to the file upon every page submit (versus saving to sessionand writing it all at once at the end of a multi page form). On a technical level, I imagine that automatic submits can be accomplished using AJAX, perhaps to a temporary file. But is this a reasonable practice? >>> >>> Jonathan >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Fri Dec 4 16:47:19 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 4 16:47:27 2009 Subject: [FX.php List] Save to database without a Submit? In-Reply-To: References: <0FA02242-AB6E-4E3E-8823-D461B3902E30@nicheit.com.au> Message-ID: <5D6D87DE-B557-4EEC-B30E-1A123E022B17@tds.net> Yeah, it's the case without as well. I was chasing that one this morning. I'm not sure I'll ever get it solved for IE6 and POST. I'm learning a lot about headers and caching. Dale On Dec 4, 2009, at 5:20 PM, Bob Patin wrote: > Tim, > > Not true with IE; when you use the BACK button in IE, your data's gone. At least, that's the case using an SSL cert... don't remember if it's the case without. > > BP > > Bob Patin > > > > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Dec 4, 2009, at 4:13 PM, Tim 'Webko' Booth wrote: > >> No. And you only need a connection at the point of submission anyway, as opposed to being always connected like you would for a AJAX submit on every field... I do minutes off-line into a form, and only press submit when I am back online - even if I forget, the form fails, and the Back button shows it all again... > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091204/cd2f4c18/attachment.html From dwalton at coresystemsdatabases.com Fri Dec 4 17:30:56 2009 From: dwalton at coresystemsdatabases.com (David Walton) Date: Fri Dec 4 17:30:59 2009 Subject: [FX.php List] Re: FX.php_List Digest, Vol 65, Issue 5 In-Reply-To: <20091204232046.45C4A3BDEB3@mail.iviking.org> References: <20091204232046.45C4A3BDEB3@mail.iviking.org> Message-ID: I have a site with a long form displayed over a tabbed interface. Ajax seemed like a natural way to go, so I built it that way. Individual pieces of user data are saved to FMP via FX whenever a single-field change occurs on the web. No submit buttons, no lost data due to lengthy data entry process, no screen refreshes. It has been a busy site this fall and it has worked great. Here is a very brief of summary: 1) My ajax/js functions are stored in a file. So I include that first: '."\n";?> This functions include different handling processes for checkboxes, textareas, etc. Can do POST or GET. In each case, the url calls my fx handler page plus any specifics collected from the onchange function: ... var url = "tabs_FMP_single_handler.php"; var params = 'crid='+crid_value+'&'+'ts='+tab_suffix+'&'+field_name +'='+field_value; ... 2) My individual fields on the form look like this: onchange="postMethod(this,'','');" value="" size="25" maxlength="25" /> etc. ... 3) The fx handler page is as expected, but simple, simple. It calls layouts which contain a minimum of information. I don't want to fill it up too much here. Thank you for the great information you all share here so often. Dave Walton On Dec 4, 2009, at 6:20 PM, fx.php_list-request@mail.iviking.org wrote: > Send FX.php_List mailing list submissions to > fx.php_list@mail.iviking.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.iviking.org/mailman/listinfo/fx.php_list > or, via email, send a message with subject or body 'help' to > fx.php_list-request@mail.iviking.org > > You can reach the person managing the list at > fx.php_list-owner@mail.iviking.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of FX.php_List digest..." > > > Today's Topics: > > 1. Re: Save to database without a Submit? (Jonathan Schwartz) > 2. Re: Save to database without a Submit? (Bob Patin) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 4 Dec 2009 15:16:25 -0800 > From: Jonathan Schwartz > Subject: Re: [FX.php List] Save to database without a Submit? > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset="us-ascii" ; format="flowed" > > Thanks, Dale. > > We're in agreement. In fact, I think that you offered the same > advice years ago, which I embraced. > > I'm going to chalk up the idea of midpage quasi-submits as not > realistic or beneficial. > > Thanks > > J > > At 4:54 PM -0600 12/4/09, Dale Bengston wrote: >> I do not believe this is a reasonable expectation of HTML. The web >> is only in a connection mode between a submit click and the next >> page reloading. After that, it's all happening in the local browser >> window until the next submit. (Or ajax call or whatever.) >> >> I make these assumptions with complex, multi-part forms: >> >> -The user should not be sent down a series of forms with no >> idea how many pages there are to fill out. >> -The user might not want to complete the sections in the same >> order I'd do it. >> -The user might not finish all the sections in one sitting. >> >> So, based on this, I design multi-part forms around a "hub" page, so >> users can see what's left to be filled in, and do it from the bottom >> up if they like. (Naturally if there are dependencies based on >> order, the user would be guided thusly.) And I make sure the user >> can get back to the hub page if they get disconnected for any >> reason, or bail out on their own. >> >> Until all sections are complete and the user officially submits the >> entire package, the record (or records) are maintained with a status >> of "Draft" or something like that. >> >> >> On Dec 4, 2009, at 3:43 PM, Jonathan Schwartz wrote: >> >>> Hi Folks, >>> >>> I have a client who is very worried about losing form data should >>> something should go wrong during a data entry session, such as >>> dropped connection or so. >>> >>> I have already decided to write to the file upon every page submit >>> (versus saving to sessionand writing it all at once at the end of a >>> multi page form). On a technical level, I imagine that automatic >>> submits can be accomplished using AJAX, perhaps to a temporary >>> file. But is this a reasonable practice? >>> >>> Jonathan >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > > > ------------------------------ > > Message: 2 > Date: Fri, 4 Dec 2009 17:20:38 -0600 > From: Bob Patin > Subject: Re: [FX.php List] Save to database without a Submit? > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset="windows-1252" > > Tim, > > Not true with IE; when you use the BACK button in IE, your data's > gone. At least, that's the case using an SSL cert... don't remember > if it's the case without. > > BP > > Bob Patin > > > > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Dec 4, 2009, at 4:13 PM, Tim 'Webko' Booth wrote: > >> No. And you only need a connection at the point of submission >> anyway, as opposed to being always connected like you would for a >> AJAX submit on every field... I do minutes off-line into a form, >> and only press submit when I am back online - even if I forget, >> the form fails, and the Back button shows it all again... > > -------------- next part -------------- > Skipped content of type multipart/related > > ------------------------------ > > _______________________________________________ > FX.php_List > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > End of FX.php_List Digest, Vol 65, Issue 5 > ****************************************** From jschwartz at exit445.com Sat Dec 5 08:59:47 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Dec 5 09:00:00 2009 Subject: [FX.php List] To data condition or not data condition. That is the question Message-ID: Hi Folks, To data condition or not data condition. That is the question This is a philosophical question, I believe. Up until now, most of my projects have dealt with collecting records where 100% of the records would be used later in the client's FileMaker systems. It made sense to apply capitalization and phone number formatting and such to have the data comply with existing data standards. In a new project, however, records are being submitted that will be stored in a remote database and undergo a series of reviews before potentially being accepted and copied to the main database. Perhaps 5% will make it. Because.. - Data conditioning isn't a perfect process - It costs time to develop - It costs cycles to run - It "taints" the original data entry. (What would ee cummings think about having his name be capitalized?) - Only a small number of records will emerge from the process ...does it makes sense to perform this step? Also, is this a question best left to the client? Would appreciate the insight of folks who have dealt with this....except Bob of course. ;-) Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From ggt667 at gmail.com Sun Dec 6 05:14:18 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Dec 6 05:14:23 2009 Subject: [FX.php List] To data condition or not data condition. That is the question In-Reply-To: References: Message-ID: If you are to make proper() on names you would probably have to make exceptions... McDuck case( left( $lastname; 2 ) = "mc" ; proper( left( $lastname; 2 ) ) & proper( middle( $lastname; 3; -1 ) ); /* misc other exceptions */ proper( $lastname ) ) ggt 2009/12/5 Jonathan Schwartz : > Hi Folks, > > To data condition or not data condition. That is the question > > This is a philosophical question, I believe. > > Up until now, most of my projects have dealt with collecting records where > 100% of the records would be used later in the client's FileMaker systems. > It made sense to apply capitalization and phone number formatting and such > to have the data comply with existing data standards. > > In a new project, however, records are being submitted that will be stored > in a remote database and undergo a series of reviews before potentially > being accepted and copied to the main database. ?Perhaps 5% will make it. > > Because.. > ? ? ? ?- Data conditioning isn't a perfect process > ? ? ? ?- It costs time to develop > ? ? ? ?- It costs cycles to run > ? ? ? ?- It "taints" the original data entry. (What would ee cummings think > about having his name be capitalized?) > ? ? ? ?- Only a small number of records will emerge from the process > > ...does it makes sense to perform this step? > > Also, is this a question best left to the client? > > Would appreciate the insight of folks who have dealt with this....except Bob > of course. ;-) > > Jonathan > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Sun Dec 6 05:17:29 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Dec 6 05:17:33 2009 Subject: [FX.php List] Worldwide end user environment In-Reply-To: References: Message-ID: Well the challenge is not in the development in the country but in the browser they use, if you go for HTML 2.0 you are safe that it will look the same in all browsers, however interaction might differ. Most underdeveloped countries use Linux and Linux uses Firefox and are genereally easier to communicate with than companies using proprietary standards. ggt 2009/12/4 Jonathan Schwartz : > Hi Folks, > > I understand that there is no one answer for this, but I need to figure out > how to produce an application that will work worldwide...some in developing > countries. ?I have the multiple language aspect figured out. ?I now need to > know what bandwidth and browser support to aim for. ?If the range is very > large, does it make sense to develop for two extremes? ?I don't think that > the client has this information. > > Thanks for your help. > > Jonathan > > > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From jschwartz at exit445.com Sun Dec 6 09:01:01 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Dec 6 09:02:40 2009 Subject: [FX.php List] To data condition or not data condition. That is the question In-Reply-To: References: Message-ID: You see, that is the reason not to even start with conditioning if 95% the data is not going to flow upstream. For the 5% that will flow upstream, only a small portion of those will need repair, so it boils down to not even starting. I like your "Mc" tool below, but then we have all the other exceptions: deGalle d'Angello de la Cruz and on... In this project, better not to data condition at all. I have my answer. Thx Jonathan >If you are to make proper() on names you would probably have to make >exceptions... > >McDuck > >case( left( $lastname; 2 ) = "mc" ; proper( left( $lastname; 2 ) ) & >proper( middle( $lastname; 3; -1 ) ); >/* misc other exceptions */ >proper( $lastname ) >) > >ggt > >2009/12/5 Jonathan Schwartz : >> Hi Folks, >> >> To data condition or not data condition. That is the question >> >> This is a philosophical question, I believe. >> >> Up until now, most of my projects have dealt with collecting records where >> 100% of the records would be used later in the client's FileMaker systems. >> It made sense to apply capitalization and phone number formatting and such >> to have the data comply with existing data standards. >> >> In a new project, however, records are being submitted that will be stored >> in a remote database and undergo a series of reviews before potentially >> being accepted and copied to the main database. Perhaps 5% will make it. >> >> Because.. >> - Data conditioning isn't a perfect process >> - It costs time to develop >> - It costs cycles to run >> - It "taints" the original data entry. (What would ee cummings think >> about having his name be capitalized?) >> - Only a small number of records will emerge from the process >> >> ...does it makes sense to perform this step? >> >> Also, is this a question best left to the client? >> >> Would appreciate the insight of folks who have dealt with this....except Bob >> of course. ;-) >> >> Jonathan >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jschwartz at exit445.com Sun Dec 6 09:02:10 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Dec 6 09:02:41 2009 Subject: [FX.php List] Worldwide end user environment In-Reply-To: References: Message-ID: Well said. Thanks! Jonathan >Well the challenge is not in the development in the country but in the >browser they use, >if you go for HTML 2.0 you are safe that it will look the same in all >browsers, however interaction might differ. > >Most underdeveloped countries use Linux and Linux uses Firefox and are >genereally easier to communicate with than companies using proprietary >standards. > >ggt > >2009/12/4 Jonathan Schwartz : >> Hi Folks, >> >> I understand that there is no one answer for this, but I need to figure out >> how to produce an application that will work worldwide...some in developing >> countries. I have the multiple language aspect figured out. I now need to >> know what bandwidth and browser support to aim for. If the range is very >> large, does it make sense to develop for two extremes? I don't think that >> the client has this information. >> >> Thanks for your help. >> >> Jonathan >> >> >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From dbengston at tds.net Sun Dec 6 09:41:49 2009 From: dbengston at tds.net (Dale Bengston) Date: Sun Dec 6 09:41:56 2009 Subject: [FX.php List] To data condition or not data condition. That is the question In-Reply-To: References: Message-ID: Hi Jonathan, I think you've answered your own question. It doesn't make sense to condition data that's going to be filtered out to such an extent. I can appreciate your desire to clean it up as much as possible as a courtesy to the pairs of eyes doing the reviews. If this were my project, I'd probably stop at doing basic JavaScript validation on emails and phone numbers and postal codes and the like. You can also make your best attempt with on-screen instructions to get people to type using proper case and syntax (for what it's worth). Then the focus becomes managing the expectations of the reviewers, and establishing editorial guidelines so the humans are all following the same rules. Nothing worse than your reviewers spending time re-editing records over and over because one prefers St and another prefers St. and another writes out Street. Having editorial guidelines starts with the up-front assumption that the reviewers will be doing the data conditioning, which avoids heartache when the site goes live. Dale On Dec 6, 2009, at 10:01 AM, Jonathan Schwartz wrote: > You see, that is the reason not to even start with conditioning if 95% the data is not going to flow upstream. For the 5% that will flow upstream, only a small portion of those will need repair, so it boils down to not even starting. > > I like your "Mc" tool below, but then we have all the other exceptions: > deGalle > d'Angello > de la Cruz > and on... > > In this project, better not to data condition at all. I have my answer. > > Thx > > Jonathan > > > >> If you are to make proper() on names you would probably have to make >> exceptions... >> >> McDuck >> >> case( left( $lastname; 2 ) = "mc" ; proper( left( $lastname; 2 ) ) & >> proper( middle( $lastname; 3; -1 ) ); >> /* misc other exceptions */ >> proper( $lastname ) >> ) >> >> ggt >> >> 2009/12/5 Jonathan Schwartz : >>> Hi Folks, >>> >>> To data condition or not data condition. That is the question >>> >>> This is a philosophical question, I believe. >>> >>> Up until now, most of my projects have dealt with collecting records where >>> 100% of the records would be used later in the client's FileMaker systems. >>> It made sense to apply capitalization and phone number formatting and such >>> to have the data comply with existing data standards. >>> >>> In a new project, however, records are being submitted that will be stored >>> in a remote database and undergo a series of reviews before potentially >>> being accepted and copied to the main database. Perhaps 5% will make it. >>> >>> Because.. >>> - Data conditioning isn't a perfect process >>> - It costs time to develop >>> - It costs cycles to run >>> - It "taints" the original data entry. (What would ee cummings think >>> about having his name be capitalized?) >>> - Only a small number of records will emerge from the process >>> >>> ...does it makes sense to perform this step? >>> >>> Also, is this a question best left to the client? >>> >>> Would appreciate the insight of folks who have dealt with this....except Bob >>> of course. ;-) >>> >>> Jonathan >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jschwartz at exit445.com Sun Dec 6 11:30:54 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Dec 6 11:31:03 2009 Subject: [FX.php List] To data condition or not data condition. That is the question In-Reply-To: References: Message-ID: Guess I had to hear myself say it "outloud". In years of development, this is the first time that I will not use data conditioning due to the nature of the client's aggressive filtering process. Had a little bit of separation anxiety to overcome. ;-) Jonathan At 10:41 AM -0600 12/6/09, Dale Bengston wrote: >Hi Jonathan, > >I think you've answered your own question. It doesn't make sense to >condition data that's going to be filtered out to such an extent. I >can appreciate your desire to clean it up as much as possible as a >courtesy to the pairs of eyes doing the reviews. > >If this were my project, I'd probably stop at doing basic JavaScript >validation on emails and phone numbers and postal codes and the >like. You can also make your best attempt with on-screen >instructions to get people to type using proper case and syntax (for >what it's worth). Then the focus becomes managing the expectations >of the reviewers, and establishing editorial guidelines so the >humans are all following the same rules. Nothing worse than your >reviewers spending time re-editing records over and over because one >prefers St and another prefers St. and another writes out Street. >Having editorial guidelines starts with the up-front assumption that >the reviewers will be doing the data conditioning, which avoids >heartache when the site goes live. > >Dale > >On Dec 6, 2009, at 10:01 AM, Jonathan Schwartz wrote: > >> You see, that is the reason not to even start with conditioning if >>95% the data is not going to flow upstream. For the 5% that will >>flow upstream, only a small portion of those will need repair, so >>it boils down to not even starting. >> >> I like your "Mc" tool below, but then we have all the other exceptions: >> deGalle >> d'Angello >> de la Cruz >> and on... >> >> In this project, better not to data condition at all. I have my answer. >> >> Thx >> >> Jonathan >> >> >> >>> If you are to make proper() on names you would probably have to make >>> exceptions... >>> >>> McDuck >>> >>> case( left( $lastname; 2 ) = "mc" ; proper( left( $lastname; 2 ) ) & >>> proper( middle( $lastname; 3; -1 ) ); >>> /* misc other exceptions */ >>> proper( $lastname ) >>> ) >>> >>> ggt >>> >>> 2009/12/5 Jonathan Schwartz : >>>> Hi Folks, >>>> >>>> To data condition or not data condition. That is the question >>>> >>>> This is a philosophical question, I believe. >>>> >>>> Up until now, most of my projects have dealt with collecting records where >>>> 100% of the records would be used later in the client's FileMaker systems. >>>> It made sense to apply capitalization and phone number formatting and such >>>> to have the data comply with existing data standards. >>>> >>>> In a new project, however, records are being submitted that will be stored >>>> in a remote database and undergo a series of reviews before potentially >>>> being accepted and copied to the main database. Perhaps 5% will make it. >>>> >>>> Because.. >>>> - Data conditioning isn't a perfect process >>>> - It costs time to develop >>>> - It costs cycles to run >>>> - It "taints" the original data entry. (What would ee >>>>cummings think >>>> about having his name be capitalized?) >>>> - Only a small number of records will emerge from the process >>>> >>>> ...does it makes sense to perform this step? >>>> >>>> Also, is this a question best left to the client? >>>> >>>> Would appreciate the insight of folks who have dealt with >>>>this....except Bob >>>> of course. ;-) >>>> >>>> Jonathan >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list > > >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From tim at nicheit.com.au Sun Dec 6 13:07:18 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Sun Dec 6 13:07:26 2009 Subject: [FX.php List] To data condition or not data condition. That is the question In-Reply-To: References: Message-ID: <643F8AD3-013D-4E65-8D20-81699BCDBA7C@nicheit.com.au> On 06/12/2009, at 11:14 PM, Gjermund Gusland Thorsen wrote: > If you are to make proper() on names you would probably have to make > exceptions... > > McDuck > > case( left( $lastname; 2 ) = "mc" ; proper( left( $lastname; 2 ) ) & > proper( middle( $lastname; 3; -1 ) ); > /* misc other exceptions */ > proper( $lastname ) One of my cricket team mates is a Mclaine and gets very annoyed when his name gets propered like above... Cheers Webko From jsfmp at earthlink.net Mon Dec 7 16:11:14 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Dec 7 16:11:17 2009 Subject: [FX.php List] [OFF] https per page? Message-ID: Hi all What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? OS X Server 10.6 TIA, -Joel From dbengston at tds.net Mon Dec 7 16:34:30 2009 From: dbengston at tds.net (Dale Bengston) Date: Mon Dec 7 16:34:37 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: Message-ID: Hi Joel, With relative links, you're looking at all-or-nothing unless you make them absolute. If there isn't any harm in having the whole site be https, why not just go for it? Dale On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: > Hi all > > What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? > > I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. > > Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? > > OS X Server 10.6 > > TIA, > -Joel > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Mon Dec 7 16:37:34 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Dec 7 16:37:52 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: Message-ID: Thanks for the reply, Dale. Won't having the whole site run under https slow things down considerably? -Joel On Dec 7, 2009, at 3:34 PM, Dale Bengston wrote: > Hi Joel, > > With relative links, you're looking at all-or-nothing unless you > make them absolute. If there isn't any harm in having the whole site > be https, why not just go for it? > > Dale > > On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: > >> Hi all >> >> What's the best way to use an SSL cert on only certain pages (e.g. >> login & checkout)? >> >> I'd like to keep my links 'local' (e.g. detail.php?id=123 instead >> of http://server/detail.php?id=123) but have certain pages always >> use https. >> >> Is there an easy setup in Apache or something, or do I need to >> check at the top of the PHP and redirect if it's the wrong protocol? >> >> OS X Server 10.6 >> >> TIA, >> -Joel >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From 1265 at lucerneblvd.org Mon Dec 7 16:43:16 2009 From: 1265 at lucerneblvd.org (david weiner) Date: Mon Dec 7 16:43:22 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: Message-ID: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> I've set up a sub-domain for this, i.e. mysite.com and secure.mysite.com then generated the cert. for the sub-domain and have your dns written so both domains work for the all the pages and then move back and forth as needed. Any form submission scripts will use the https so your information transfer will always happen under SSL but you won't have the extra burden of transmitting every page securely. - david On Dec 7, 2009, at 3:34 PM, Dale Bengston wrote: > Hi Joel, > > With relative links, you're looking at all-or-nothing unless you make them absolute. If there isn't any harm in having the whole site be https, why not just go for it? > > Dale > > On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: > >> Hi all >> >> What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? >> >> I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. >> >> Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? >> >> OS X Server 10.6 >> >> TIA, >> -Joel >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Mon Dec 7 16:51:44 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Dec 7 16:51:48 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> References: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> Message-ID: <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> Thanks David By "have your dns written so both domains work for the all the pages" do you mean that: mysite.com/page.php and secure.mysite.com/page.php both point to the same page? Also, to get to secure.mysite.com pages, are you using the full URL (https...) in your links? Or are you just *submitting* to https pages via forms' "action="? -Joel On Dec 7, 2009, at 3:43 PM, david weiner wrote: > I've set up a sub-domain for this, i.e. mysite.com and > secure.mysite.com then generated the cert. for the sub-domain and > have your dns written so both domains work for the all the pages and > then move back and forth as needed. Any form submission scripts will > use the https so your information transfer will always happen under > SSL but you won't have the extra burden of transmitting every page > securely. > > - david > > > On Dec 7, 2009, at 3:34 PM, Dale Bengston wrote: > >> Hi Joel, >> >> With relative links, you're looking at all-or-nothing unless you >> make them absolute. If there isn't any harm in having the whole >> site be https, why not just go for it? >> >> Dale >> >> On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: >> >>> Hi all >>> >>> What's the best way to use an SSL cert on only certain pages (e.g. >>> login & checkout)? >>> >>> I'd like to keep my links 'local' (e.g. detail.php?id=123 instead >>> of http://server/detail.php?id=123) but have certain pages always >>> use https. >>> >>> Is there an easy setup in Apache or something, or do I need to >>> check at the top of the PHP and redirect if it's the wrong protocol? >>> >>> OS X Server 10.6 >>> >>> TIA, >>> -Joel >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Mon Dec 7 17:09:34 2009 From: bob at patin.com (Bob Patin) Date: Mon Dec 7 17:09:51 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: Message-ID: <896F5D27-CC4B-4203-AA81-FD50D1DD13CA@patin.com> Joel, I come in and out of an SSL cert by using explicit URLs; however, I would concur with Dale. If using long URLs is an issue, why not go into the cert at the beginning of the transaction, and pop out at the end. I've done that with a couple of sites and the clients don't seem to notice the difference. On a positive note, they seem to like that warm feeling of knowing they're on secure pages... FWIW... :) I don't think there is an Apache setup to take care of this, since browsers trigger the use of the SSL cert by having the "https" at the head of the URL. No way around it that I know of. So the only way to get out is to revert to "http://..." But of course, I could be wrong... :) BP On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: > What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? > > I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. > > Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? > > OS X Server 10.6 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091207/2b35bece/attachment.html From 1265 at lucerneblvd.org Mon Dec 7 17:15:07 2009 From: 1265 at lucerneblvd.org (david weiner) Date: Mon Dec 7 17:15:14 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> References: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> Message-ID: <3F15A49E-F58F-4FAD-B41E-2356EA0980DD@lucerneblvd.org> Yes, both domains point to the same directory. I'm doing all the submitting via https, but you can do it either way. The thing about loading the page (say from a menu link) under https is that the user could come from anywhere so you can't control the protocol, but you can control the submit button. - David On Dec 7, 2009, at 3:51 PM, Joel Shapiro wrote: > Thanks David > > By "have your dns written so both domains work for the all the pages" do you mean that: > mysite.com/page.php and secure.mysite.com/page.php both point to the same page? > > Also, to get to secure.mysite.com pages, are you using the full URL (https...) in your links? Or are you just *submitting* to https pages via forms' "action="? > > -Joel > > > On Dec 7, 2009, at 3:43 PM, david weiner wrote: > >> I've set up a sub-domain for this, i.e. mysite.com and secure.mysite.com then generated the cert. for the sub-domain and have your dns written so both domains work for the all the pages and then move back and forth as needed. Any form submission scripts will use the https so your information transfer will always happen under SSL but you won't have the extra burden of transmitting every page securely. >> >> - david >> >> >> On Dec 7, 2009, at 3:34 PM, Dale Bengston wrote: >> >>> Hi Joel, >>> >>> With relative links, you're looking at all-or-nothing unless you make them absolute. If there isn't any harm in having the whole site be https, why not just go for it? >>> >>> Dale >>> >>> On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: >>> >>>> Hi all >>>> >>>> What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? >>>> >>>> I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. >>>> >>>> Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? >>>> >>>> OS X Server 10.6 >>>> >>>> TIA, >>>> -Joel >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Mon Dec 7 17:19:01 2009 From: dbengston at tds.net (Dale Bengston) Date: Mon Dec 7 17:19:07 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: Message-ID: <6724CCCB-A086-4308-ACB8-03DDD3E5161F@tds.net> Joel, I don't think the slow-down is "considerable." There is additional overhead with SSL, but I think it would affect lots of little requests more than whole-page reloads. It's not as though it's twice as slow or anything. For a little perspective, pulling XML out of FileMaker is a pretty big bottleneck. I would reconsider its use in a high-volume web site long before I'd worry about SSL. Dale On Dec 7, 2009, at 5:37 PM, Joel Shapiro wrote: > Thanks for the reply, Dale. > > Won't having the whole site run under https slow things down considerably? > > -Joel > > > On Dec 7, 2009, at 3:34 PM, Dale Bengston wrote: > >> Hi Joel, >> >> With relative links, you're looking at all-or-nothing unless you make them absolute. If there isn't any harm in having the whole site be https, why not just go for it? >> >> Dale >> >> On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: >> >>> Hi all >>> >>> What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? >>> >>> I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. >>> >>> Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? >>> >>> OS X Server 10.6 >>> >>> TIA, >>> -Joel >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From headhoncho at customikesolutions.com Mon Dec 7 17:25:53 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Mon Dec 7 17:26:04 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: Message-ID: Hi Joel, I've done both the "pop in/pop out" and "all in" under one site. I prefer the popin/popout, but use the all in when it is ajax driven, so the user can see the "lock" icon, however, the overhead doesn't seem to slow things down much, if at all. Hope this helps, somewhat. On 08/12/2009, at 10:11 AM, Joel Shapiro wrote: > Hi all > > What's the best way to use an SSL cert on only certain pages (e.g. > login & checkout)? > > I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) > but have certain pages always use https. > > Is there an easy setup in Apache or something, or do I need to check > at the top of the PHP and redirect if it's the wrong protocol? > > OS X Server 10.6 > > TIA, > -Joel > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Regards Michael Ward -- Head Honcho CustoMike Solutions Member, FileMaker Business Alliance Member, FileMaker Technical Network FileMaker 7 Certified Developer FileMaker 8 Certified Developer FileMaker 9 Certified Developer FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From tcmeyers at troymeyers.com Mon Dec 7 17:29:27 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon Dec 7 17:29:31 2009 Subject: [FX.php List] [OFF] https per page? Message-ID: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> > ...The thing about loading the page (say from a menu link) under https is > that the user could come from anywhere... On our site I use a Rewrite Rule to force every page to be https regardless of how it's approached. When we switched to this there was no noticeable slowdown. For us it's a good idea because every page has a little log in box (just so you can log in from any page an stay on the same page) and some users want their username prefilled in the box, and I don't want to be sending anything like that out in the clear. AND, as Bob said, people seem to like that "warm feeling" of already being secure. -Troy From jsfmp at earthlink.net Mon Dec 7 17:45:50 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Dec 7 17:46:28 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> References: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> Message-ID: <5D49FED5-DE1E-49D0-A8BF-257F91157402@earthlink.net> Thanks everybody It's good to hear that SSL doesn't really slow things down too much. I think I'll make the links to the login & checkout pages full https... links, and then let users stay in https via relative links to other pages on the site. FWIW: I had been thinking of checking in the PHP, via something like this: Best, -Joel On Dec 7, 2009, at 4:29 PM, Troy Meyers wrote: >> ...The thing about loading the page (say from a menu link) under >> https is >> that the user could come from anywhere... > > On our site I use a Rewrite Rule to force every page to be https > regardless of how it's approached. > > When we switched to this there was no noticeable slowdown. For us > it's a good idea because every page has a little log in box (just so > you can log in from any page an stay on the same page) and some > users want their username prefilled in the box, and I don't want to > be sending anything like that out in the clear. AND, as Bob said, > people seem to like that "warm feeling" of already being secure. > > -Troy > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Mon Dec 7 18:44:09 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Dec 7 18:44:12 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <5D49FED5-DE1E-49D0-A8BF-257F91157402@earthlink.net> References: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> <5D49FED5-DE1E-49D0-A8BF-257F91157402@earthlink.net> Message-ID: <15C7E2CD-A2D4-428F-A6CB-0365DB3448B8@earthlink.net> Hi again Having full https... links makes it difficult to have a copy of the site on my development machine and be able to just copy pages over to the client's server (href="https://localhost/login.php" vs href="https://client.com/login.php ") Using the php script from that link below seems to work really well. Can anybody see any reasons why it might be a bad/unsafe idea to use it? This way, I can keep all my links relative, and the login and checkout pages will still *always* be https. (I suppose I could use a variable for the domain with https links, but I kinda like this script) -Joel On Dec 7, 2009, at 4:45 PM, Joel Shapiro wrote: > Thanks everybody > > It's good to hear that SSL doesn't really slow things down too > much. I think I'll make the links to the login & checkout pages > full https... links, and then let users stay in https via relative > links to other pages on the site. > > FWIW: I had been thinking of checking in the PHP, via something like > this: > > > > Best, > -Joel > > > > On Dec 7, 2009, at 4:29 PM, Troy Meyers wrote: > >>> ...The thing about loading the page (say from a menu link) under >>> https is >>> that the user could come from anywhere... >> >> On our site I use a Rewrite Rule to force every page to be https >> regardless of how it's approached. >> >> When we switched to this there was no noticeable slowdown. For us >> it's a good idea because every page has a little log in box (just >> so you can log in from any page an stay on the same page) and some >> users want their username prefilled in the box, and I don't want to >> be sending anything like that out in the clear. AND, as Bob said, >> people seem to like that "warm feeling" of already being secure. >> >> -Troy >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Mon Dec 7 19:32:56 2009 From: dbengston at tds.net (Dale Bengston) Date: Mon Dec 7 19:33:03 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <15C7E2CD-A2D4-428F-A6CB-0365DB3448B8@earthlink.net> References: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> <5D49FED5-DE1E-49D0-A8BF-257F91157402@earthlink.net> <15C7E2CD-A2D4-428F-A6CB-0365DB3448B8@earthlink.net> Message-ID: <658D687E-2298-45B5-84C1-AE1188771E54@tds.net> I handle this problem by including a config file at the top of my pages that toggles a whole bunch of constants. These constants include http vs https, data source, default ports, domain names, default page (for testing) vs. none (controlled by Apache on live server), etc. I build all my urls from these constants - everything uses absolute references, even JavaScript includes, AJAX calls, image references and CSS files. I am currently developing a site that runs on my laptop using MySQL and http, and when I put the pages live, it "knows" to do https and use MS SQL Server. No interaction necessary... which is good because I used to forget to change *something* every time. I toggle a lot of other things in this config too, like error reporting, debugging feedback, and so on. This was a bit of a hassle to get set up, but it was definitely worth the effort. Toggling this way not only allows you to work on different servers, but also different platforms and with different data sources by flipping a few environment variables. I recently adapted it to work with SQL Server (yes, FX.php too) so I can spin in yet another direction. Dale On Dec 7, 2009, at 7:44 PM, Joel Shapiro wrote: > Hi again > > Having full https... links makes it difficult to have a copy of the site on my development machine and be able to just copy pages over to the client's server (href="https://localhost/login.php" vs href="https://client.com/login.php") > > Using the php script from that link below seems to work really well. > > Can anybody see any reasons why it might be a bad/unsafe idea to use it? This way, I can keep all my links relative, and the login and checkout pages will still *always* be https. > > if ($_SERVER['SERVER_PORT']!=443) > { > $url = "https://". $_SERVER['SERVER_NAME'] . ":443".$_SERVER['REQUEST_URI']; > header("Location: $url"); > } > ?> > > (I suppose I could use a variable for the domain with https links, but I kinda like this script) > > -Joel > > > On Dec 7, 2009, at 4:45 PM, Joel Shapiro wrote: > >> Thanks everybody >> >> It's good to hear that SSL doesn't really slow things down too much. I think I'll make the links to the login & checkout pages full https... links, and then let users stay in https via relative links to other pages on the site. >> >> FWIW: I had been thinking of checking in the PHP, via something like this: >> >> >> Best, >> -Joel >> >> >> >> On Dec 7, 2009, at 4:29 PM, Troy Meyers wrote: >> >>>> ...The thing about loading the page (say from a menu link) under https is >>>> that the user could come from anywhere... >>> >>> On our site I use a Rewrite Rule to force every page to be https regardless of how it's approached. >>> >>> When we switched to this there was no noticeable slowdown. For us it's a good idea because every page has a little log in box (just so you can log in from any page an stay on the same page) and some users want their username prefilled in the box, and I don't want to be sending anything like that out in the clear. AND, as Bob said, people seem to like that "warm feeling" of already being secure. >>> >>> -Troy >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Mon Dec 7 21:17:33 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Dec 7 21:17:37 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <658D687E-2298-45B5-84C1-AE1188771E54@tds.net> References: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> <5D49FED5-DE1E-49D0-A8BF-257F91157402@earthlink.net> <15C7E2CD-A2D4-428F-A6CB-0365DB3448B8@earthlink.net> <658D687E-2298-45B5-84C1-AE1188771E54@tds.net> Message-ID: Thanks Dale. I can definitely see the value in that approach. I've never needed to be that flexible, but it's something to work towards. Out of curiosity, do you choose to use absolute references for everything specifically because of this method, or is there some other reason you find them preferable to relative references? -Joel On Dec 7, 2009, at 6:32 PM, Dale Bengston wrote: > I handle this problem by including a config file at the top of my > pages that toggles a whole bunch of constants. These constants > include http vs https, data source, default ports, domain names, > default page (for testing) vs. none (controlled by Apache on live > server), etc. I build all my urls from these constants - everything > uses absolute references, even JavaScript includes, AJAX calls, > image references and CSS files. > > I am currently developing a site that runs on my laptop using MySQL > and http, and when I put the pages live, it "knows" to do https and > use MS SQL Server. No interaction necessary... which is good because > I used to forget to change *something* every time. I toggle a lot of > other things in this config too, like error reporting, debugging > feedback, and so on. > > This was a bit of a hassle to get set up, but it was definitely > worth the effort. Toggling this way not only allows you to work on > different servers, but also different platforms and with different > data sources by flipping a few environment variables. I recently > adapted it to work with SQL Server (yes, FX.php too) so I can spin > in yet another direction. > > Dale > > > On Dec 7, 2009, at 7:44 PM, Joel Shapiro wrote: > >> Hi again >> >> Having full https... links makes it difficult to have a copy of the >> site on my development machine and be able to just copy pages over >> to the client's server (href="https://localhost/login.php" vs href="https://client.com/login.php >> ") >> >> Using the php script from that link below seems to work really well. >> >> Can anybody see any reasons why it might be a bad/unsafe idea to >> use it? This way, I can keep all my links relative, and the login >> and checkout pages will still *always* be https. >> >> > if ($_SERVER['SERVER_PORT']!=443) >> { >> $url = "https://". $_SERVER['SERVER_NAME'] . ":443". >> $_SERVER['REQUEST_URI']; >> header("Location: $url"); >> } >> ?> >> >> (I suppose I could use a variable for the domain with https links, >> but I kinda like this script) >> >> -Joel >> >> >> On Dec 7, 2009, at 4:45 PM, Joel Shapiro wrote: >> >>> Thanks everybody >>> >>> It's good to hear that SSL doesn't really slow things down too >>> much. I think I'll make the links to the login & checkout pages >>> full https... links, and then let users stay in https via relative >>> links to other pages on the site. >>> >>> FWIW: I had been thinking of checking in the PHP, via something >>> like this: >>> >> > >>> >>> Best, >>> -Joel >>> >>> >>> >>> On Dec 7, 2009, at 4:29 PM, Troy Meyers wrote: >>> >>>>> ...The thing about loading the page (say from a menu link) under >>>>> https is >>>>> that the user could come from anywhere... >>>> >>>> On our site I use a Rewrite Rule to force every page to be https >>>> regardless of how it's approached. >>>> >>>> When we switched to this there was no noticeable slowdown. For us >>>> it's a good idea because every page has a little log in box (just >>>> so you can log in from any page an stay on the same page) and >>>> some users want their username prefilled in the box, and I don't >>>> want to be sending anything like that out in the clear. AND, as >>>> Bob said, people seem to like that "warm feeling" of already >>>> being secure. >>>> >>>> -Troy >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Mon Dec 7 22:06:46 2009 From: dbengston at tds.net (Dale Bengston) Date: Mon Dec 7 22:06:52 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> <5D49FED5-DE1E-49D0-A8BF-257F91157402@earthlink.net> <15C7E2CD-A2D4-428F-A6CB-0365DB3448B8@earthlink.net> <658D687E-2298-45B5-84C1-AE1188771E54@tds.net> Message-ID: <2E45E235-1BF8-4A27-A08B-F088ECDC9FD9@tds.net> The absolute references started because I had clients with weird requirements for where files got stored. With absolute references, you can pretty-much put your parent page(s) anywhere and all the includes will still work. It was the only way I could get my code framework to function across all my clients' environments. On Dec 7, 2009, at 10:17 PM, Joel Shapiro wrote: > Thanks Dale. I can definitely see the value in that approach. I've never needed to be that flexible, but it's something to work towards. > > Out of curiosity, do you choose to use absolute references for everything specifically because of this method, or is there some other reason you find them preferable to relative references? > > -Joel > > > On Dec 7, 2009, at 6:32 PM, Dale Bengston wrote: > >> I handle this problem by including a config file at the top of my pages that toggles a whole bunch of constants. These constants include http vs https, data source, default ports, domain names, default page (for testing) vs. none (controlled by Apache on live server), etc. I build all my urls from these constants - everything uses absolute references, even JavaScript includes, AJAX calls, image references and CSS files. >> >> I am currently developing a site that runs on my laptop using MySQL and http, and when I put the pages live, it "knows" to do https and use MS SQL Server. No interaction necessary... which is good because I used to forget to change *something* every time. I toggle a lot of other things in this config too, like error reporting, debugging feedback, and so on. >> >> This was a bit of a hassle to get set up, but it was definitely worth the effort. Toggling this way not only allows you to work on different servers, but also different platforms and with different data sources by flipping a few environment variables. I recently adapted it to work with SQL Server (yes, FX.php too) so I can spin in yet another direction. >> >> Dale >> >> >> On Dec 7, 2009, at 7:44 PM, Joel Shapiro wrote: >> >>> Hi again >>> >>> Having full https... links makes it difficult to have a copy of the site on my development machine and be able to just copy pages over to the client's server (href="https://localhost/login.php" vs href="https://client.com/login.php") >>> >>> Using the php script from that link below seems to work really well. >>> >>> Can anybody see any reasons why it might be a bad/unsafe idea to use it? This way, I can keep all my links relative, and the login and checkout pages will still *always* be https. >>> >>> >> if ($_SERVER['SERVER_PORT']!=443) >>> { >>> $url = "https://". $_SERVER['SERVER_NAME'] . ":443".$_SERVER['REQUEST_URI']; >>> header("Location: $url"); >>> } >>> ?> >>> >>> (I suppose I could use a variable for the domain with https links, but I kinda like this script) >>> >>> -Joel >>> >>> >>> On Dec 7, 2009, at 4:45 PM, Joel Shapiro wrote: >>> >>>> Thanks everybody >>>> >>>> It's good to hear that SSL doesn't really slow things down too much. I think I'll make the links to the login & checkout pages full https... links, and then let users stay in https via relative links to other pages on the site. >>>> >>>> FWIW: I had been thinking of checking in the PHP, via something like this: >>>> >>>> >>>> Best, >>>> -Joel >>>> >>>> >>>> >>>> On Dec 7, 2009, at 4:29 PM, Troy Meyers wrote: >>>> >>>>>> ...The thing about loading the page (say from a menu link) under https is >>>>>> that the user could come from anywhere... >>>>> >>>>> On our site I use a Rewrite Rule to force every page to be https regardless of how it's approached. >>>>> >>>>> When we switched to this there was no noticeable slowdown. For us it's a good idea because every page has a little log in box (just so you can log in from any page an stay on the same page) and some users want their username prefilled in the box, and I don't want to be sending anything like that out in the clear. AND, as Bob said, people seem to like that "warm feeling" of already being secure. >>>>> >>>>> -Troy >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Mon Dec 7 22:09:37 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Dec 7 22:10:09 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <2E45E235-1BF8-4A27-A08B-F088ECDC9FD9@tds.net> References: <2E4DE388.23F2.40CA.843B.459645F047E9@102.1070242> <5D49FED5-DE1E-49D0-A8BF-257F91157402@earthlink.net> <15C7E2CD-A2D4-428F-A6CB-0365DB3448B8@earthlink.net> <658D687E-2298-45B5-84C1-AE1188771E54@tds.net> <2E45E235-1BF8-4A27-A08B-F088ECDC9FD9@tds.net> Message-ID: Got it. Thanks Dale! -Joel On Dec 7, 2009, at 9:06 PM, Dale Bengston wrote: > The absolute references started because I had clients with weird > requirements for where files got stored. With absolute references, > you can pretty-much put your parent page(s) anywhere and all the > includes will still work. It was the only way I could get my code > framework to function across all my clients' environments. > > > On Dec 7, 2009, at 10:17 PM, Joel Shapiro wrote: > >> Thanks Dale. I can definitely see the value in that approach. >> I've never needed to be that flexible, but it's something to work >> towards. >> >> Out of curiosity, do you choose to use absolute references for >> everything specifically because of this method, or is there some >> other reason you find them preferable to relative references? >> >> -Joel >> >> >> On Dec 7, 2009, at 6:32 PM, Dale Bengston wrote: >> >>> I handle this problem by including a config file at the top of my >>> pages that toggles a whole bunch of constants. These constants >>> include http vs https, data source, default ports, domain names, >>> default page (for testing) vs. none (controlled by Apache on live >>> server), etc. I build all my urls from these constants - >>> everything uses absolute references, even JavaScript includes, >>> AJAX calls, image references and CSS files. >>> >>> I am currently developing a site that runs on my laptop using >>> MySQL and http, and when I put the pages live, it "knows" to do >>> https and use MS SQL Server. No interaction necessary... which is >>> good because I used to forget to change *something* every time. I >>> toggle a lot of other things in this config too, like error >>> reporting, debugging feedback, and so on. >>> >>> This was a bit of a hassle to get set up, but it was definitely >>> worth the effort. Toggling this way not only allows you to work on >>> different servers, but also different platforms and with different >>> data sources by flipping a few environment variables. I recently >>> adapted it to work with SQL Server (yes, FX.php too) so I can spin >>> in yet another direction. >>> >>> Dale >>> >>> >>> On Dec 7, 2009, at 7:44 PM, Joel Shapiro wrote: >>> >>>> Hi again >>>> >>>> Having full https... links makes it difficult to have a copy of >>>> the site on my development machine and be able to just copy pages >>>> over to the client's server (href="https://localhost/login.php" >>>> vs href="https://client.com/login.php") >>>> >>>> Using the php script from that link below seems to work really >>>> well. >>>> >>>> Can anybody see any reasons why it might be a bad/unsafe idea to >>>> use it? This way, I can keep all my links relative, and the >>>> login and checkout pages will still *always* be https. >>>> >>>> >>> if ($_SERVER['SERVER_PORT']!=443) >>>> { >>>> $url = "https://". $_SERVER['SERVER_NAME'] . ":443". >>>> $_SERVER['REQUEST_URI']; >>>> header("Location: $url"); >>>> } >>>> ?> >>>> >>>> (I suppose I could use a variable for the domain with https >>>> links, but I kinda like this script) >>>> >>>> -Joel >>>> >>>> >>>> On Dec 7, 2009, at 4:45 PM, Joel Shapiro wrote: >>>> >>>>> Thanks everybody >>>>> >>>>> It's good to hear that SSL doesn't really slow things down too >>>>> much. I think I'll make the links to the login & checkout pages >>>>> full https... links, and then let users stay in https via >>>>> relative links to other pages on the site. >>>>> >>>>> FWIW: I had been thinking of checking in the PHP, via something >>>>> like this: >>>>> >>>> > >>>>> >>>>> Best, >>>>> -Joel >>>>> >>>>> >>>>> >>>>> On Dec 7, 2009, at 4:29 PM, Troy Meyers wrote: >>>>> >>>>>>> ...The thing about loading the page (say from a menu link) >>>>>>> under https is >>>>>>> that the user could come from anywhere... >>>>>> >>>>>> On our site I use a Rewrite Rule to force every page to be >>>>>> https regardless of how it's approached. >>>>>> >>>>>> When we switched to this there was no noticeable slowdown. For >>>>>> us it's a good idea because every page has a little log in box >>>>>> (just so you can log in from any page an stay on the same page) >>>>>> and some users want their username prefilled in the box, and I >>>>>> don't want to be sending anything like that out in the clear. >>>>>> AND, as Bob said, people seem to like that "warm feeling" of >>>>>> already being secure. >>>>>> >>>>>> -Troy >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Tue Dec 8 08:08:15 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 8 08:08:19 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <3F15A49E-F58F-4FAD-B41E-2356EA0980DD@lucerneblvd.org> References: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> <3F15A49E-F58F-4FAD-B41E-2356EA0980DD@lucerneblvd.org> Message-ID: Why do you bother having http when you have https? I would use apache redirect from the http to https... ggt 2009/12/8 david weiner <1265@lucerneblvd.org>: > Yes, both domains point to the same directory. > I'm doing all the submitting via https, but you can do it either way. The thing about loading the page (say from a menu link) under https is that the user could come from anywhere so you can't control the protocol, but you can control the submit button. > > - David > > > On Dec 7, 2009, at 3:51 PM, Joel Shapiro wrote: > >> Thanks David >> >> By "have your dns written so both domains work for the all the pages" do you mean that: >> mysite.com/page.php and secure.mysite.com/page.php both point to the same page? >> >> Also, to get to secure.mysite.com pages, are you using the full URL (https...) in your links? ?Or are you just *submitting* to https pages via forms' "action="? >> >> -Joel >> >> >> On Dec 7, 2009, at 3:43 PM, david weiner wrote: >> >>> I've set up a sub-domain for this, i.e. mysite.com and secure.mysite.com then generated the cert. for the sub-domain and have your dns written so both domains work for the all the pages and then move back and forth as needed. Any form submission scripts will use the https so your information transfer will always happen under SSL but you won't have the extra burden of transmitting every page securely. >>> >>> - david >>> >>> >>> On Dec 7, 2009, at 3:34 PM, Dale Bengston wrote: >>> >>>> Hi Joel, >>>> >>>> With relative links, you're looking at all-or-nothing unless you make them absolute. If there isn't any harm in having the whole site be https, why not just go for it? >>>> >>>> Dale >>>> >>>> On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: >>>> >>>>> Hi all >>>>> >>>>> What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? >>>>> >>>>> I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. >>>>> >>>>> Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? >>>>> >>>>> OS X Server 10.6 >>>>> >>>>> TIA, >>>>> -Joel >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Tue Dec 8 08:32:23 2009 From: bob at patin.com (Bob Patin) Date: Tue Dec 8 08:32:31 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> References: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> Message-ID: <17FFA7FA-04A7-4C0F-BC45-A1A14F1008DB@patin.com> Another thing about popping in and out of the SSL cert is the issue of session variables; if you write a session variable and then go into the cert, you become a different entity to the server, and your old session var won't be in play. For that reason, I write sites lately where I enter the cert early in the process and stay inside it for the duration, until my "thank you" page, at which point I spill the user back into the general population. ... BP Bob Patin Longterm Solutions LLC P.O. Box 3408 Brentwood, TN 37024 bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin Twitter: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- Skipped content of type multipart/related From dbengston at tds.net Tue Dec 8 08:35:44 2009 From: dbengston at tds.net (Dale Bengston) Date: Tue Dec 8 08:35:50 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: References: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> <3F15A49E-F58F-4FAD-B41E-2356EA0980DD@lucerneblvd.org> Message-ID: <9184D2D8-6EBB-423C-B680-281ED46C05B1@tds.net> This is where I'm at too. I just use the web server to redirect http to https and put the entire site under SSL. Dale On Dec 8, 2009, at 9:08 AM, Gjermund Gusland Thorsen wrote: > Why do you bother having http when you have https? > > I would use apache redirect from the http to https... > > ggt > > 2009/12/8 david weiner <1265@lucerneblvd.org>: >> Yes, both domains point to the same directory. >> I'm doing all the submitting via https, but you can do it either way. The thing about loading the page (say from a menu link) under https is that the user could come from anywhere so you can't control the protocol, but you can control the submit button. >> >> - David >> >> >> On Dec 7, 2009, at 3:51 PM, Joel Shapiro wrote: >> >>> Thanks David >>> >>> By "have your dns written so both domains work for the all the pages" do you mean that: >>> mysite.com/page.php and secure.mysite.com/page.php both point to the same page? >>> >>> Also, to get to secure.mysite.com pages, are you using the full URL (https...) in your links? Or are you just *submitting* to https pages via forms' "action="? >>> >>> -Joel >>> >>> >>> On Dec 7, 2009, at 3:43 PM, david weiner wrote: >>> >>>> I've set up a sub-domain for this, i.e. mysite.com and secure.mysite.com then generated the cert. for the sub-domain and have your dns written so both domains work for the all the pages and then move back and forth as needed. Any form submission scripts will use the https so your information transfer will always happen under SSL but you won't have the extra burden of transmitting every page securely. >>>> >>>> - david >>>> >>>> >>>> On Dec 7, 2009, at 3:34 PM, Dale Bengston wrote: >>>> >>>>> Hi Joel, >>>>> >>>>> With relative links, you're looking at all-or-nothing unless you make them absolute. If there isn't any harm in having the whole site be https, why not just go for it? >>>>> >>>>> Dale >>>>> >>>>> On Dec 7, 2009, at 5:11 PM, Joel Shapiro wrote: >>>>> >>>>>> Hi all >>>>>> >>>>>> What's the best way to use an SSL cert on only certain pages (e.g. login & checkout)? >>>>>> >>>>>> I'd like to keep my links 'local' (e.g. detail.php?id=123 instead of http://server/detail.php?id=123) but have certain pages always use https. >>>>>> >>>>>> Is there an easy setup in Apache or something, or do I need to check at the top of the PHP and redirect if it's the wrong protocol? >>>>>> >>>>>> OS X Server 10.6 >>>>>> >>>>>> TIA, >>>>>> -Joel >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From leo at finalresort.org Tue Dec 8 08:36:01 2009 From: leo at finalresort.org (Leo R. Lundgren) Date: Tue Dec 8 08:36:06 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <17FFA7FA-04A7-4C0F-BC45-A1A14F1008DB@patin.com> References: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> <17FFA7FA-04A7-4C0F-BC45-A1A14F1008DB@patin.com> Message-ID: <33858E64-C7BF-4FB8-86E0-2ED5E90024C0@finalresort.org> I don't think this is a problem when the domain stays the same, for example with http://www.yada.com and https://www.yada.com. But when/if one has www.yada.com and secure.yada.com, then it might be different. I usually enable HTTP and HTTPS for the same domain, I don't see a reason to seperate them? 8 dec 2009 kl. 16.32 skrev Bob Patin: > Another thing about popping in and out of the SSL cert is the issue > of session variables; if you write a session variable and then go > into the cert, you become a different entity to the server, and your > old session var won't be in play. > > For that reason, I write sites lately where I enter the cert early > in the process and stay inside it for the duration, until my "thank > you" page, at which point I spill the user back into the general > population. > > ... > > BP > > Bob Patin > > > > Longterm Solutions LLC > P.O. Box 3408 > Brentwood, TN 37024 > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > iChat: bobpatin > Twitter: bobpatin > FileMaker 10 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -------------------------- > FileMaker hosting and consulting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091208/0a527bcb/attachment.html From bob at patin.com Tue Dec 8 09:05:29 2009 From: bob at patin.com (Bob Patin) Date: Tue Dec 8 09:05:39 2009 Subject: [FX.php List] [OFF] https per page? In-Reply-To: <33858E64-C7BF-4FB8-86E0-2ED5E90024C0@finalresort.org> References: <6278C5A6-8500-419F-A0E0-C2C25080D681@lucerneblvd.org> <0DAECD29-0815-477D-9513-98A1EFA02BC1@earthlink.net> <17FFA7FA-04A7-4C0F-BC45-A1A14F1008DB@patin.com> <33858E64-C7BF-4FB8-86E0-2ED5E90024C0@finalresort.org> Message-ID: <1C8F3C56-5284-4EE8-917F-863AEE9B38A4@patin.com> You're probably right; on my servers, I provide an SSL cert for each web server, and my clients can use it without having to have their own. So when they go into it, the domain name changes--so that explains why the session var issue has occurred here... hadn't realized that if they had their own cert it would behave differently. Makes sense. BP On Dec 8, 2009, at 9:36 AM, Leo R. Lundgren wrote: > I don't think this is a problem when the domain stays the same, for example with http://www.yada.com and https://www.yada.com. But when/if one has www.yada.com and secure.yada.com, then it might be different. > > I usually enable HTTP and HTTPS for the same domain, I don't see a reason to seperate them? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091208/bbb6b726/attachment.html From tcmeyers at troymeyers.com Tue Dec 8 09:26:32 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Tue Dec 8 09:26:35 2009 Subject: [FX.php List] [OFF] https per page? Message-ID: <25D06149.6C0D.482A.B56F.992F84DFE54D@102.1070267> As I said before I just force any http access to become an https access. I do it using an Apache rewrite rule. Here's the top part (later stuff isn't relevant to the discussion) of the .htaccess file at the root level of web server docs (Documents folder): ................................................................... # this file is /.htaccess at the root level of web server docs # Turn engine on first for any of the below RewriteEngine On # First make sure /fmi/ stuff isn't changed in any way, including no force to SSL RewriteRule ^fmi/.*$ - [L] # Redirect any http: to https: RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,NE,L] # The following stuff is the normal stuff.... ................................................................... -Troy From andersm at alamark.com Tue Dec 8 13:04:37 2009 From: andersm at alamark.com (Anders Monsen) Date: Tue Dec 8 13:04:40 2009 Subject: [FX.php List] AND plus OR search Message-ID: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> I think my mysql background is clouding my FX attempts... Is it possible to search for something where the conditions are as follows: where field A contains value 'X' and field B contains value 'Y' or field C contains value 'X' I believe a pure OR search would find across A or B or C having the values, but I want to have field A and then one of the other two fields. -- Thanks, Anders Monsen From steve at bluecrocodile.co.nz Tue Dec 8 13:09:49 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Dec 8 13:09:55 2009 Subject: [FX.php List] AND plus OR search In-Reply-To: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> References: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> Message-ID: <3CC69DD5-54B5-45ED-897B-411D7965F775@bluecrocodile.co.nz> Hi Anders, Short answer: No Long anser: No...! Well, there is a slightly longer answer... What you need to do is figure out which query will return the smallest set of results, then use PHP to do the second aspect of the query. In pseduo code... Assuming that a search for B = Y OR C = X will return the smallest found set; foreach($result) if(A = X) do something Alternatively, if A = X returns the smallest found set, then you need to; foreach($result) if(B = Y OR C = X) do that thing Hope this helps... Cheers Steve On 8 Dec 2009, at 20:04, Anders Monsen wrote: > I think my mysql background is clouding my FX attempts... > > Is it possible to search for something where the conditions are as follows: > > where field A contains value 'X' > and > > field B contains value 'Y' > or > field C contains value 'X' > > I believe a pure OR search would find across A or B or C having the values, but I want to have field A and then one of the other two fields. > > -- > Thanks, > Anders Monsen > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091208/c9aed8cc/attachment-0001.html From tim at nicheit.com.au Tue Dec 8 13:12:02 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Tue Dec 8 13:12:08 2009 Subject: [FX.php List] AND plus OR search In-Reply-To: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> References: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> Message-ID: <6D330A20-89A7-45F5-A61B-0578E2CA18E0@nicheit.com.au> On 09/12/2009, at 7:04 AM, Anders Monsen wrote: > I think my mysql background is clouding my FX attempts... > > Is it possible to search for something where the conditions are as > follows: > > where field A contains value 'X' > and > > field B contains value 'Y' > or > field C contains value 'X' > > I believe a pure OR search would find across A or B or C having the > values, but I want to have field A and then one of the other two > fields. I have had trouble with compound searches - here may well be a better technique, but I end up creating calc fields for the OR clauses - B_C_calc = fieldB & " " & fieldC Now search on fieldA and B_C_calc I don't like this answer all that much, but it works Webko From andersm at alamark.com Tue Dec 8 15:21:24 2009 From: andersm at alamark.com (Anders Monsen) Date: Tue Dec 8 15:21:27 2009 Subject: [FX.php List] AND plus OR search In-Reply-To: <3CC69DD5-54B5-45ED-897B-411D7965F775@bluecrocodile.co.nz> References: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> <3CC69DD5-54B5-45ED-897B-411D7965F775@bluecrocodile.co.nz> Message-ID: <9B4ED257-9CEA-47AB-A2FB-00F0CA12D5E7@alamark.com> Hi Steve, That's what I feared. A second query does seem to be acceptable. Thanks, Anders On Dec 8, 2009, at 2:09 PM, Steve Winter wrote: > Hi Anders, > > Short answer: No > > Long anser: No...! > > Well, there is a slightly longer answer... > > What you need to do is figure out which query will return the > smallest set of results, then use PHP to do the second aspect of the > query. In pseduo code... > > Assuming that a search for B = Y OR C = X will return the smallest > found set; > foreach($result) > if(A = X) > do something > > Alternatively, if A = X returns the smallest found set, then you > need to; > foreach($result) > if(B = Y OR C = X) > do that thing > > Hope this helps... > > Cheers > Steve > > > On 8 Dec 2009, at 20:04, Anders Monsen wrote: > >> I think my mysql background is clouding my FX attempts... >> >> Is it possible to search for something where the conditions are as >> follows: >> >> where field A contains value 'X' >> and >> >> field B contains value 'Y' >> or >> field C contains value 'X' >> >> I believe a pure OR search would find across A or B or C having the >> values, but I want to have field A and then one of the other two >> fields. >> >> -- >> Thanks, >> Anders Monsen >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court, Channel Way > Ocean Village, Southampton SO14 3GR > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091208/329e621a/attachment.html From ggt667 at gmail.com Tue Dec 8 16:52:28 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Dec 8 16:52:32 2009 Subject: [FX.php List] AND plus OR search In-Reply-To: <9B4ED257-9CEA-47AB-A2FB-00F0CA12D5E7@alamark.com> References: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> <3CC69DD5-54B5-45ED-897B-411D7965F775@bluecrocodile.co.nz> <9B4ED257-9CEA-47AB-A2FB-00F0CA12D5E7@alamark.com> Message-ID: Whatever you do, do not forget about http://php.net/manual/en/function.array-merge-recursive.php as you might want to combine the two results. ggt 2009/12/8 Anders Monsen : > Hi Steve, > That's what I feared. > A second query does seem to be acceptable. > Thanks, > Anders > On Dec 8, 2009, at 2:09 PM, Steve Winter wrote: > > Hi Anders, > Short answer: No > Long anser: No...! > Well, there is a slightly longer answer... > What you need to do is figure out which query will return the smallest set > of results, then use PHP to do the second aspect of the query. In pseduo > code... > Assuming that a search for B = Y OR C = X will return the smallest found > set; > foreach($result) > if(A = X) > do something > Alternatively, if A = X returns the smallest found set, then you need to; > foreach($result) > if(B = Y OR C = X) > do that thing > Hope this helps... > Cheers > Steve > > On 8 Dec 2009, at 20:04, Anders Monsen wrote: > > I think my mysql background is clouding my FX attempts... > > Is it possible to search for something where the conditions are as follows: > > where field A contains value 'X' > and > > field B contains value 'Y' > or > field C contains value 'X' > > I believe a pure OR search would find across A or B or C having the values, > but I want to have field A and then one of the other two fields. > > -- > Thanks, > Anders Monsen > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > Steve Winter > steve@bluecrocodile.co.nz > m: +44 77 7852 4776 > 3 Calshot Court,?Channel Way > Ocean?Village,?Southampton?SO14 3GR > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From headhoncho at customikesolutions.com Tue Dec 8 19:30:16 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Tue Dec 8 19:30:21 2009 Subject: [FX.php List] AND plus OR search In-Reply-To: References: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> <3CC69DD5-54B5-45ED-897B-411D7965F775@bluecrocodile.co.nz> <9B4ED257-9CEA-47AB-A2FB-00F0CA12D5E7@alamark.com> Message-ID: <7DAAC031-A3F3-4083-8C69-A38EE0436795@customikesolutions.com> Hi all, It's been a while since I did FX.php.. .but the API for PHP copes well with this with it's compoundFind(). Works in a "FileMaker" way... treating each 'find' as a new request. Just my 2c worth. On 09/12/2009, at 10:52 AM, Gjermund Gusland Thorsen wrote: > Whatever you do, do not forget about > http://php.net/manual/en/function.array-merge-recursive.php > > as you might want to combine the two results. > > ggt > > 2009/12/8 Anders Monsen : >> Hi Steve, >> That's what I feared. >> A second query does seem to be acceptable. >> Thanks, >> Anders >> On Dec 8, 2009, at 2:09 PM, Steve Winter wrote: >> >> Hi Anders, >> Short answer: No >> Long anser: No...! >> Well, there is a slightly longer answer... >> What you need to do is figure out which query will return the >> smallest set >> of results, then use PHP to do the second aspect of the query. In >> pseduo >> code... >> Assuming that a search for B = Y OR C = X will return the smallest >> found >> set; >> foreach($result) >> if(A = X) >> do something >> Alternatively, if A = X returns the smallest found set, then you >> need to; >> foreach($result) >> if(B = Y OR C = X) >> do that thing >> Hope this helps... >> Cheers >> Steve >> >> On 8 Dec 2009, at 20:04, Anders Monsen wrote: >> >> I think my mysql background is clouding my FX attempts... >> >> Is it possible to search for something where the conditions are as >> follows: >> >> where field A contains value 'X' >> and >> >> field B contains value 'Y' >> or >> field C contains value 'X' >> >> I believe a pure OR search would find across A or B or C having the >> values, >> but I want to have field A and then one of the other two fields. >> >> -- >> Thanks, >> Anders Monsen >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> Steve Winter >> steve@bluecrocodile.co.nz >> m: +44 77 7852 4776 >> 3 Calshot Court, Channel Way >> Ocean Village, Southampton SO14 3GR >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Regards Michael Ward -- Head Honcho CustoMike Solutions Member, FileMaker Business Alliance Member, FileMaker Technical Network FileMaker 7 Certified Developer FileMaker 8 Certified Developer FileMaker 9 Certified Developer FileMaker 10 Certified Developer 10 Wandoo Crt Wheelers Hill, 3150 ph 0414 562 501 headhoncho@customikesolutions.com From bob at patin.com Tue Dec 8 21:07:57 2009 From: bob at patin.com (Bob Patin) Date: Tue Dec 8 21:08:03 2009 Subject: [FX.php List] AND plus OR search In-Reply-To: <7DAAC031-A3F3-4083-8C69-A38EE0436795@customikesolutions.com> References: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com> <3CC69DD5-54B5-45ED-897B-411D7965F775@bluecrocodile.co.nz> <9B4ED257-9CEA-47AB-A2FB-00F0CA12D5E7@alamark.com> <7DAAC031-A3F3-4083-8C69-A38EE0436795@customikesolutions.com> Message-ID: <4331BB31-5732-4145-A4E5-A062F1234476@patin.com> Yes, that's definitely one area where the API shines. I usually figure out a way around this limitation, but it's something I could've used in a few projects. BP Bob Patin Longterm Solutions LLC P.O. Box 3408 Brentwood, TN 37024 bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin Twitter: bobpatin FileMaker 10 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -------------------------- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Dec 8, 2009, at 8:30 PM, Head Honcho wrote: > It's been a while since I did FX.php.. .but the API for PHP copes well with this with it's compoundFind(). > > Works in a "FileMaker" way... treating each 'find' as a new request. > > Just my 2c worth. -------------- next part -------------- Skipped content of type multipart/related From andersm at alamark.com Wed Dec 9 09:02:12 2009 From: andersm at alamark.com (Anders Monsen) Date: Wed Dec 9 09:02:16 2009 Subject: [FX.php List] AND plus OR search In-Reply-To: <7DAAC031-A3F3-4083-8C69-A38EE0436795@customikesolutions.com> References: <0E0D7063-6B97-4E9B-B85B-3A02186C4A5F@alamark.com><3CC69DD5-54B5-45ED-897B-411D7965F775@bluecrocodile.co.nz><9B4ED257-9CEA-47AB-A2FB-00F0CA12D5E7@alamark.com> <7DAAC031-A3F3-4083-8C69-A38EE0436795@customikesolutions.com> Message-ID: I will have to check that method. Ideally I was looking for one find action, expressed in plain English as: select all from tableName where X = 'blah' and (Y = 'this' or Z = 'that') For now I have found a way to combine Y and Z into another flag field so there is just one query. -- Anders Monsen On Dec 8, 2009, at 8:30 PM, Head Honcho wrote: > Hi all, > > It's been a while since I did FX.php.. .but the API for PHP copes > well with this with it's compoundFind(). > > Works in a "FileMaker" way... treating each 'find' as a new request. > > Just my 2c worth. > > On 09/12/2009, at 10:52 AM, Gjermund Gusland Thorsen wrote: > >> Whatever you do, do not forget about >> http://php.net/manual/en/function.array-merge-recursive.php >> >> as you might want to combine the two results. >> >> ggt >> >> 2009/12/8 Anders Monsen : >>> Hi Steve, >>> That's what I feared. >>> A second query does seem to be acceptable. >>> Thanks, >>> Anders >>> On Dec 8, 2009, at 2:09 PM, Steve Winter wrote: >>> >>> Hi Anders, >>> Short answer: No >>> Long anser: No...! >>> Well, there is a slightly longer answer... >>> What you need to do is figure out which query will return the >>> smallest set >>> of results, then use PHP to do the second aspect of the query. In >>> pseduo >>> code... >>> Assuming that a search for B = Y OR C = X will return the smallest >>> found >>> set; >>> foreach($result) >>> if(A = X) >>> do something >>> Alternatively, if A = X returns the smallest found set, then you >>> need to; >>> foreach($result) >>> if(B = Y OR C = X) >>> do that thing >>> Hope this helps... >>> Cheers >>> Steve >>> >>> On 8 Dec 2009, at 20:04, Anders Monsen wrote: >>> >>> I think my mysql background is clouding my FX attempts... >>> >>> Is it possible to search for something where the conditions are as >>> follows: >>> >>> where field A contains value 'X' >>> and >>> >>> field B contains value 'Y' >>> or >>> field C contains value 'X' >>> >>> I believe a pure OR search would find across A or B or C having >>> the values, >>> but I want to have field A and then one of the other two fields. >>> >>> -- >>> Thanks, >>> Anders Monsen >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> Steve Winter >>> steve@bluecrocodile.co.nz >>> m: +44 77 7852 4776 >>> 3 Calshot Court, Channel Way >>> Ocean Village, Southampton SO14 3GR >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 > > Regards > > Michael Ward > -- > Head Honcho > CustoMike Solutions > Member, FileMaker Business Alliance > Member, FileMaker Technical Network > FileMaker 7 Certified Developer > FileMaker 8 Certified Developer > FileMaker 9 Certified Developer > FileMaker 10 Certified Developer > 10 Wandoo Crt > Wheelers Hill, 3150 > ph 0414 562 501 > headhoncho@customikesolutions.com > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From kmccoy at supportgroup.com Thu Dec 10 08:45:19 2009 From: kmccoy at supportgroup.com (Karstyn McCoy) Date: Thu Dec 10 08:45:22 2009 Subject: [FX.php List] Memory Error In-Reply-To: <2F08C5A9-8D14-4AE3-84AF-AA645BA0E5AC@tds.net> References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> <898d01b70912031718q59fd6075r5c8bd531a4bd5cae@mail.gmail.com> <2F08C5A9-8D14-4AE3-84AF-AA645BA0E5AC@tds.net> Message-ID: <898d01b70912100745h6ec7ccdcvbfd5bb637fc25566@mail.gmail.com> Thought I would get back and say what the problem turned out to be. The web page was a long registration form that updated a bunch of FM portals - which ended up being the issue. The errors were sporadic in that if one portal and/or a document upload section were commented out then the page worked fine. It didn't seem to matter what portal section was commented out, just that one or more were. The errors could be different as well, and the memory allocation in the error message never jived with the php.ini or phpinfo settings - so a bit of a red herring there. So changing the design to just go to a base layout to work through, instead of working through portals, settled everything down. Thanks for all the suggestions! --Karstyn On Thu, Dec 3, 2009 at 6:24 PM, Dale Bengston wrote: > Another way to have this happen is to accidentally retrieve all the records out of a table. If you submit a query to FX that has no search terms, it's like doing a findall. I found this out the hard way on a table with 300K line items. > > Dale > > On Dec 3, 2009, at 7:18 PM, Karstyn McCoy wrote: > >> Thanks Guys. >> >> I'll do some more debugging to check for endless loops or a >> malfunctioning part of the script. >> >> Thanks, >> >> --Karstyn >> >> >> >> On Thu, Dec 3, 2009 at 5:11 PM, Jonathan Schwartz wrote: >>> Kartsyn, >>> >>> While you *could* have a script that requires more memory than has been >>> allocated, a more common source of the problem is an endless loop of a >>> script that normally doesn't need extra memory. >>> >>> Is the problem attributed to just one script? ?Is it a new script? Are you >>> doing operations similar to other scripts that have no memory issues? >>> >>> If the answer to these questions is "Yes", than look for a malfunctionaing >>> script rather than a memory issue. >>> >>> Hope that helps, >>> >>> Jonthan >>> >>> >>>> Not strictly an FX question but definitly PHP - so thought I try this >>>> list for some good ideas. >>>> >>>> Here is the issue: >>>> I get a following error when I execute a php script >>>> Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to >>>> allocate 89727 bytes) >>>> >>>> I have normally fixed this by doing the following >>>> - Increase the memory size in php.ini file >>>> - added a line ini_set('memory_limit', -1) >>>> - restarting the web server and checking phpinfo to validate the change >>>> >>>> But I still get the error. >>>> >>>> --Karstyn >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Thu Dec 10 09:20:47 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Dec 10 09:20:51 2009 Subject: [FX.php List] Memory Error In-Reply-To: <898d01b70912100745h6ec7ccdcvbfd5bb637fc25566@mail.gmail.com> References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> <898d01b70912031718q59fd6075r5c8bd531a4bd5cae@mail.gmail.com> <2F08C5A9-8D14-4AE3-84AF-AA645BA0E5AC@tds.net> <898d01b70912100745h6ec7ccdcvbfd5bb637fc25566@mail.gmail.com> Message-ID: Are you running Apache? Here is the parameter you are looking for. $ cat /etc/php4/apache2/php.ini |grep memory_limit memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) ggt 2009/12/10 Karstyn McCoy : > Thought I would get back and say what the problem turned out to be. > > The web page was a long registration form that updated a bunch of FM > portals - which ended up being the issue. The errors were sporadic in > that if one portal and/or a document upload section were commented out > then the page worked fine. It didn't seem to matter what portal > section was commented out, just that one or more were. The errors > could be different as well, and the memory allocation in the error > message never jived with the php.ini or phpinfo settings - so a bit of > a red herring ?there. > > So changing the design to just go to a base layout to work through, > instead of working through portals, settled everything down. > > Thanks for all the suggestions! > > --Karstyn > > > > On Thu, Dec 3, 2009 at 6:24 PM, Dale Bengston wrote: >> Another way to have this happen is to accidentally retrieve all the records out of a table. If you submit a query to FX that has no search terms, it's like doing a findall. I found this out the hard way on a table with 300K line items. >> >> Dale >> >> On Dec 3, 2009, at 7:18 PM, Karstyn McCoy wrote: >> >>> Thanks Guys. >>> >>> I'll do some more debugging to check for endless loops or a >>> malfunctioning part of the script. >>> >>> Thanks, >>> >>> --Karstyn >>> >>> >>> >>> On Thu, Dec 3, 2009 at 5:11 PM, Jonathan Schwartz wrote: >>>> Kartsyn, >>>> >>>> While you *could* have a script that requires more memory than has been >>>> allocated, a more common source of the problem is an endless loop of a >>>> script that normally doesn't need extra memory. >>>> >>>> Is the problem attributed to just one script? ?Is it a new script? Are you >>>> doing operations similar to other scripts that have no memory issues? >>>> >>>> If the answer to these questions is "Yes", than look for a malfunctionaing >>>> script rather than a memory issue. >>>> >>>> Hope that helps, >>>> >>>> Jonthan >>>> >>>> >>>>> Not strictly an FX question but definitly PHP - so thought I try this >>>>> list for some good ideas. >>>>> >>>>> Here is the issue: >>>>> I get a following error when I execute a php script >>>>> Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to >>>>> allocate 89727 bytes) >>>>> >>>>> I have normally fixed this by doing the following >>>>> - Increase the memory size in php.ini file >>>>> - added a line ini_set('memory_limit', -1) >>>>> - restarting the web server and checking phpinfo to validate the change >>>>> >>>>> But I still get the error. >>>>> >>>>> --Karstyn >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > 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 Thu Dec 10 09:53:43 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Dec 10 09:53:51 2009 Subject: [FX.php List] Fun with time zones Message-ID: <54BF9A9C-6008-4BC6-A313-6B4D1E5DA553@exit445.com> This is s new one for me. Wondering how others handle servers in multiple time zones.... I just launched a project that involved three different servers, each in a different time zone. Problems started cropping up when session handling kicked in. Users that were supposed to get an hour before session expiring were getting kicked off before then. The decision to use multiple server locations was last minute in an effort to improve hardware to handle anticipated load. Once the initial launch traffic slows down, the solution will probably be consolidated back to a single location. So the question is, how to best handle time zones in this situation? In this case, the fmp record creation said 12:00 when the confirmation email said 11:00 and so on. I know that the answer is that it is just date math, but there are some baseline practices to follow, it appears. Any words of wisdom? Jonathan Schwartz Exit 445 Group 415-370-5011 From jsfmp at earthlink.net Thu Dec 10 11:28:23 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Dec 10 11:28:26 2009 Subject: [FX.php List] Memory Error In-Reply-To: <898d01b70912100745h6ec7ccdcvbfd5bb637fc25566@mail.gmail.com> References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> <898d01b70912031718q59fd6075r5c8bd531a4bd5cae@mail.gmail.com> <2F08C5A9-8D14-4AE3-84AF-AA645BA0E5AC@tds.net> <898d01b70912100745h6ec7ccdcvbfd5bb637fc25566@mail.gmail.com> Message-ID: <547B75B8-3C96-404F-BD62-190AB523E524@earthlink.net> hmm... just a thought... If you were editing lots of records through portals with one FMEdit call, I wonder if this could have had anything to do with record locking, since I believe the main/parent record can't be committed if any of the related records are open by another user. I'm not sure what would happen in that case, but it's what popped into my head when I read your description. -Joel On Dec 10, 2009, at 7:45 AM, Karstyn McCoy wrote: > Thought I would get back and say what the problem turned out to be. > > The web page was a long registration form that updated a bunch of FM > portals - which ended up being the issue. The errors were sporadic in > that if one portal and/or a document upload section were commented out > then the page worked fine. It didn't seem to matter what portal > section was commented out, just that one or more were. The errors > could be different as well, and the memory allocation in the error > message never jived with the php.ini or phpinfo settings - so a bit of > a red herring there. > > So changing the design to just go to a base layout to work through, > instead of working through portals, settled everything down. > > Thanks for all the suggestions! > > --Karstyn > > > > On Thu, Dec 3, 2009 at 6:24 PM, Dale Bengston > wrote: >> Another way to have this happen is to accidentally retrieve all the >> records out of a table. If you submit a query to FX that has no >> search terms, it's like doing a findall. I found this out the hard >> way on a table with 300K line items. >> >> Dale >> >> On Dec 3, 2009, at 7:18 PM, Karstyn McCoy wrote: >> >>> Thanks Guys. >>> >>> I'll do some more debugging to check for endless loops or a >>> malfunctioning part of the script. >>> >>> Thanks, >>> >>> --Karstyn >>> >>> >>> >>> On Thu, Dec 3, 2009 at 5:11 PM, Jonathan Schwartz >> > wrote: >>>> Kartsyn, >>>> >>>> While you *could* have a script that requires more memory than >>>> has been >>>> allocated, a more common source of the problem is an endless loop >>>> of a >>>> script that normally doesn't need extra memory. >>>> >>>> Is the problem attributed to just one script? Is it a new >>>> script? Are you >>>> doing operations similar to other scripts that have no memory >>>> issues? >>>> >>>> If the answer to these questions is "Yes", than look for a >>>> malfunctionaing >>>> script rather than a memory issue. >>>> >>>> Hope that helps, >>>> >>>> Jonthan >>>> >>>> >>>>> Not strictly an FX question but definitly PHP - so thought I try >>>>> this >>>>> list for some good ideas. >>>>> >>>>> Here is the issue: >>>>> I get a following error when I execute a php script >>>>> Fatal error: Allowed memory size of 12582912 bytes exhausted >>>>> (tried to >>>>> allocate 89727 bytes) >>>>> >>>>> I have normally fixed this by doing the following >>>>> - Increase the memory size in php.ini file >>>>> - added a line ini_set('memory_limit', -1) >>>>> - restarting the web server and checking phpinfo to validate the >>>>> change >>>>> >>>>> But I still get the error. >>>>> >>>>> --Karstyn >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> -- >>>> Jonathan Schwartz >>>> Exit 445 Group >>>> jonathan@exit445.com >>>> http://www.exit445.com >>>> 415-370-5011 >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From kmccoy at supportgroup.com Thu Dec 10 11:34:57 2009 From: kmccoy at supportgroup.com (Karstyn McCoy) Date: Thu Dec 10 11:35:01 2009 Subject: [FX.php List] Memory Error In-Reply-To: <547B75B8-3C96-404F-BD62-190AB523E524@earthlink.net> References: <898d01b70912031701l48e1dfdcrcaebff7aa5c5a417@mail.gmail.com> <898d01b70912031718q59fd6075r5c8bd531a4bd5cae@mail.gmail.com> <2F08C5A9-8D14-4AE3-84AF-AA645BA0E5AC@tds.net> <898d01b70912100745h6ec7ccdcvbfd5bb637fc25566@mail.gmail.com> <547B75B8-3C96-404F-BD62-190AB523E524@earthlink.net> Message-ID: <898d01b70912101034pa89376cufc6c6cfb14f3692@mail.gmail.com> This was code originated by someone else - and the original methodology was to first delete all portal records, then add them back in so edits where captured. I know, not exactly a best practice! I'm aware the record locking could have or would have come into play. But I think for the testing it was not part of the equation as no one else 'should' have been on any of the records. --Karstyn On Thu, Dec 10, 2009 at 10:28 AM, Joel Shapiro wrote: > hmm... just a thought... ?If you were editing lots of records through > portals with one FMEdit call, I wonder if this could have had anything to do > with record locking, since I believe the main/parent record can't be > committed if any of the related records are open by another user. ?I'm not > sure what would happen in that case, but it's what popped into my head when > I read your description. > > -Joel > > > On Dec 10, 2009, at 7:45 AM, Karstyn McCoy wrote: > >> Thought I would get back and say what the problem turned out to be. >> >> The web page was a long registration form that updated a bunch of FM >> portals - which ended up being the issue. The errors were sporadic in >> that if one portal and/or a document upload section were commented out >> then the page worked fine. It didn't seem to matter what portal >> section was commented out, just that one or more were. The errors >> could be different as well, and the memory allocation in the error >> message never jived with the php.ini or phpinfo settings - so a bit of >> a red herring ?there. >> >> So changing the design to just go to a base layout to work through, >> instead of working through portals, settled everything down. >> >> Thanks for all the suggestions! >> >> --Karstyn >> >> >> >> On Thu, Dec 3, 2009 at 6:24 PM, Dale Bengston wrote: >>> >>> Another way to have this happen is to accidentally retrieve all the >>> records out of a table. If you submit a query to FX that has no search >>> terms, it's like doing a findall. I found this out the hard way on a table >>> with 300K line items. >>> >>> Dale >>> >>> On Dec 3, 2009, at 7:18 PM, Karstyn McCoy wrote: >>> >>>> Thanks Guys. >>>> >>>> I'll do some more debugging to check for endless loops or a >>>> malfunctioning part of the script. >>>> >>>> Thanks, >>>> >>>> --Karstyn >>>> >>>> >>>> >>>> On Thu, Dec 3, 2009 at 5:11 PM, Jonathan Schwartz >>>> wrote: >>>>> >>>>> Kartsyn, >>>>> >>>>> While you *could* have a script that requires more memory than has been >>>>> allocated, a more common source of the problem is an endless loop of a >>>>> script that normally doesn't need extra memory. >>>>> >>>>> Is the problem attributed to just one script? ?Is it a new script? Are >>>>> you >>>>> doing operations similar to other scripts that have no memory issues? >>>>> >>>>> If the answer to these questions is "Yes", than look for a >>>>> malfunctionaing >>>>> script rather than a memory issue. >>>>> >>>>> Hope that helps, >>>>> >>>>> Jonthan >>>>> >>>>> >>>>>> Not strictly an FX question but definitly PHP - so thought I try this >>>>>> list for some good ideas. >>>>>> >>>>>> Here is the issue: >>>>>> I get a following error when I execute a php script >>>>>> Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to >>>>>> allocate 89727 bytes) >>>>>> >>>>>> I have normally fixed this by doing the following >>>>>> - Increase the memory size in php.ini file >>>>>> - added a line ini_set('memory_limit', -1) >>>>>> - restarting the web server and checking phpinfo to validate the >>>>>> change >>>>>> >>>>>> But I still get the error. >>>>>> >>>>>> --Karstyn >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> -- >>>>> Jonathan Schwartz >>>>> Exit 445 Group >>>>> jonathan@exit445.com >>>>> http://www.exit445.com >>>>> 415-370-5011 >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 Thu Dec 10 15:44:21 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Dec 10 15:44:42 2009 Subject: [FX.php List] Fun with time zones In-Reply-To: <54BF9A9C-6008-4BC6-A313-6B4D1E5DA553@exit445.com> References: <54BF9A9C-6008-4BC6-A313-6B4D1E5DA553@exit445.com> Message-ID: Hi Jonathan, Presumably these servers are all in the US...? so could you just pick a timezone, synchronise all of the servers to that timezone, and then tell everyone in the emails/records etc that it's 11:00 PDT (or whichever timezone you selected...?) Random thought while on a train at the end of a really long day...! Cheers Steve On 10 Dec 2009, at 16:53, Jonathan Schwartz wrote: > This is s new one for me. Wondering how others handle servers in multiple time zones.... > > I just launched a project that involved three different servers, each in a different time zone. Problems started cropping up when session handling kicked in. Users that were supposed to get an hour before session expiring were getting kicked off before then. > > The decision to use multiple server locations was last minute in an effort to improve hardware to handle anticipated load. Once the initial launch traffic slows down, the solution will probably be consolidated back to a single location. > > So the question is, how to best handle time zones in this situation? > > In this case, the fmp record creation said 12:00 when the confirmation email said 11:00 and so on. > > I know that the answer is that it is just date math, but there are some baseline practices to follow, it appears. > > Any words of wisdom? > > Jonathan Schwartz > Exit 445 Group > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter steve@bluecrocodile.co.nz m: +44 77 7852 4776 3 Calshot Court, Channel Way Ocean Village, Southampton SO14 3GR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091210/934f260b/attachment.html From tim at nicheit.com.au Thu Dec 10 20:18:46 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Thu Dec 10 20:18:50 2009 Subject: [FX.php List] [OT] Bizarre comment behaviour Message-ID: <5E16A1C7-C6F4-4A3D-A5C9-91789B34BAE3@nicheit.com.au> Dear All, I have been a given a server to play with. It does something very odd: It will choke on a script if it has any sort of single line commenting, either // or # It will run a script if you use the /* multi-line commenting */ format though. Included files are not affected by this behaviour - even if they have a // comment in them, they perform as expected. Any ideas? Cheers Webko Tim 'Webko' Booth :: Niche IT Pty Ltd, Sydney, Australia [e] tim@nicheit.com.au :: [m] 0418 993 306 From tim at nicheit.com.au Thu Dec 10 20:35:00 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Thu Dec 10 20:35:09 2009 Subject: [FX.php List] [OT] Bizarre comment behaviour In-Reply-To: <5E16A1C7-C6F4-4A3D-A5C9-91789B34BAE3@nicheit.com.au> References: <5E16A1C7-C6F4-4A3D-A5C9-91789B34BAE3@nicheit.com.au> Message-ID: Of course, about 2 minutes after posting, I found the real culprit... > Dear All, > > I have been a given a server to play with. It does something very odd: > > It will choke on a script if it has any sort of single line > commenting, either // or # > > It will run a script if you use the /* multi-line commenting */ > format though. > > Included files are not affected by this behaviour - even if they > have a // comment in them, they perform as expected. Somehow, an errant high ASCII character had crept into the two lines that I use on nearly every php page: include_once('include/db_config.php'); // DataBase Configuration File. include_once('include/FX/FX.php'); // FX.php file Just after the semi-colon - my other Mac servers didn't seem to care, but this Windows server sure does. Tested a bunch of other sites I've doen recently, and this set of code seems the only one affected - very strange, but at least explains why the behaviour went away when I changed it to multi-line commenting - able to use normal commetning again now... Cheers Webko From dbengston at tds.net Thu Dec 10 21:22:24 2009 From: dbengston at tds.net (Dale Bengston) Date: Thu Dec 10 21:22:31 2009 Subject: [FX.php List] [OT] Bizarre comment behaviour In-Reply-To: References: <5E16A1C7-C6F4-4A3D-A5C9-91789B34BAE3@nicheit.com.au> Message-ID: <6FEAF105-0979-4611-9392-70081EAC010C@tds.net> Hmm, I was going to suggest that! I had a similar experience with a "gremlin" choking a Windows server. The script worked fine on Macs. The character was not visible in the script. In November, I had a Windows server choke on a file I'd inadvertently saved as UTF-8 with BOM. That one took a while to figure out. And just today, I was experimenting with character encoding. I changed my charset meta tag from UTF-8 to ISO-8859-1 and it completely killed all my ajax calls. There seems to be no end to the ways I can screw up a file. Dale On Dec 10, 2009, at 9:35 PM, Tim 'Webko' Booth wrote: > Of course, about 2 minutes after posting, I found the real culprit... > >> Dear All, >> >> I have been a given a server to play with. It does something very odd: >> >> It will choke on a script if it has any sort of single line commenting, either // or # >> >> It will run a script if you use the /* multi-line commenting */ format though. >> >> Included files are not affected by this behaviour - even if they have a // comment in them, they perform as expected. > > Somehow, an errant high ASCII character had crept into the two lines that I use on nearly every php page: > > include_once('include/db_config.php'); // DataBase Configuration File. > include_once('include/FX/FX.php'); // FX.php file > > Just after the semi-colon - my other Mac servers didn't seem to care, but this Windows server sure does. Tested a bunch of other sites I've doen recently, and this set of code seems the only one affected - very strange, but at least explains why the behaviour went away when I changed it to multi-line commenting - able to use normal commetning again now... > > Cheers > > Webko > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tim at nicheit.com.au Fri Dec 11 00:24:16 2009 From: tim at nicheit.com.au (Tim 'Webko' Booth) Date: Fri Dec 11 00:24:25 2009 Subject: [FX.php List] [OT] Bizarre comment behaviour In-Reply-To: <6FEAF105-0979-4611-9392-70081EAC010C@tds.net> References: <5E16A1C7-C6F4-4A3D-A5C9-91789B34BAE3@nicheit.com.au> <6FEAF105-0979-4611-9392-70081EAC010C@tds.net> Message-ID: <111AC81B-63E9-4A75-990C-836D61CB9C48@nicheit.com.au> On 11/12/2009, at 3:22 PM, Dale Bengston wrote: > Hmm, I was going to suggest that! I had a similar experience with a > "gremlin" choking a Windows server. The script worked fine on Macs. > The character was not visible in the script. Yep - except Zap Gremlins didn;t get this one - but it did show in the Find/Repalce dialogue as a funny little triangle... > > In November, I had a Windows server choke on a file I'd > inadvertently saved as UTF-8 with BOM. That one took a while to > figure out. > > And just today, I was experimenting with character encoding. I > changed my charset meta tag from UTF-8 to ISO-8859-1 and it > completely killed all my ajax calls. Yep, been there, done that ;-) Cheers Webko From andersm at alamark.com Fri Dec 11 07:34:08 2009 From: andersm at alamark.com (Anders Monsen) Date: Fri Dec 11 07:34:09 2009 Subject: [FX.php List] [OT] Bizarre comment behaviour In-Reply-To: <111AC81B-63E9-4A75-990C-836D61CB9C48@nicheit.com.au> References: <5E16A1C7-C6F4-4A3D-A5C9-91789B34BAE3@nicheit.com.au><6FEAF105-0979-4611-9392-70081EAC010C@tds.net> <111AC81B-63E9-4A75-990C-836D61CB9C48@nicheit.com.au> Message-ID: <5515D361-37E7-4160-8F67-2912B38F4871@alamark.com> Yay BBEdit! I've had weird ASCII character choke some of my XML processes, but never heard of it affecting comments. Very interesting. -- Anders Monsen On Dec 11, 2009, at 1:24 AM, Tim 'Webko' Booth wrote: > > On 11/12/2009, at 3:22 PM, Dale Bengston wrote: > >> Hmm, I was going to suggest that! I had a similar experience with a >> "gremlin" choking a Windows server. The script worked fine on Macs. >> The character was not visible in the script. > > Yep - except Zap Gremlins didn;t get this one - but it did show in > the Find/Repalce dialogue as a funny little triangle... >> >> In November, I had a Windows server choke on a file I'd >> inadvertently saved as UTF-8 with BOM. That one took a while to >> figure out. >> >> And just today, I was experimenting with character encoding. I >> changed my charset meta tag from UTF-8 to ISO-8859-1 and it >> completely killed all my ajax calls. > > Yep, been there, done that ;-) > > Cheers > > Webko > > _______________________________________________ > 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 Dec 11 15:57:49 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 11 15:59:51 2009 Subject: [FX.php List] [OT] Bizarre comment behaviour In-Reply-To: <5515D361-37E7-4160-8F67-2912B38F4871@alamark.com> References: <5E16A1C7-C6F4-4A3D-A5C9-91789B34BAE3@nicheit.com.au><6FEAF105-0979-4611-9392-70081EAC010C@tds. net> <111AC81B-63E9-4A75-990C-836D61CB9C48@nicheit.com.au> <5515D361-37E7-4160-8F67-2912B38F4871@alamark.com> Message-ID: I have problems with code after my cat walks across my keyboard. Wonder if BBEdit has DePaw function. J >Yay BBEdit! > >I've had weird ASCII character choke some of my XML processes, but >never heard of it affecting comments. Very interesting. > >-- >Anders Monsen > >On Dec 11, 2009, at 1:24 AM, Tim 'Webko' Booth wrote: > >> >>On 11/12/2009, at 3:22 PM, Dale Bengston wrote: >> >>>Hmm, I was going to suggest that! I had a similar experience with >>>a "gremlin" choking a Windows server. The script worked fine on >>>Macs. The character was not visible in the script. >> >>Yep - except Zap Gremlins didn;t get this one - but it did show in >>the Find/Repalce dialogue as a funny little triangle... >>> >>>In November, I had a Windows server choke on a file I'd >>>inadvertently saved as UTF-8 with BOM. That one took a while to >>>figure out. >>> >>>And just today, I was experimenting with character encoding. I >>>changed my charset meta tag from UTF-8 to ISO-8859-1 and it >>>completely killed all my ajax calls. >> >>Yep, been there, done that ;-) >> >>Cheers >> >>Webko >> >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >> > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jschwartz at exit445.com Fri Dec 11 18:06:06 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Dec 11 18:06:15 2009 Subject: [FX.php List] Portal Records Message-ID: Hi Folks, Can someone offer wisdom on this portal challenge? I have a form, one field of which offers multiple checkboxes. The checkboxes are displayed from master list of values. Let's say there are 6 colors.. For each value that exists in a related table, I am able to get the check boxes to appear checked. Let's say that 2 are checked. So far so good. Master List Red Blue Green Yellow Brown Black Related table: Red(checked) Yellow(checked) So here's the challenge. When the form is submitted with different boxes checked... What do I need to do to record checkbox changes, as part of an Edit operation for the entire form in fx.php: - Remove a checkmark (should delete a related record) - Add a new checkmark (should add a related record). Do I need to create a separate instance reiteratively comparing the Posted checkmarks with an array of master value lists. Sounds clumsy. Any suggestions? Jonathan -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From ggt667 at gmail.com Sat Dec 12 12:32:13 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sat Dec 12 12:32:17 2009 Subject: [FX.php List] Portal Records In-Reply-To: References: Message-ID: Make sure you keep track of the respective recids from the slave table(s) ggt 2009/12/12 Jonathan Schwartz : > Hi Folks, > > Can someone offer wisdom on this portal challenge? > > I have a form, one field of which offers multiple checkboxes. > > The checkboxes are displayed from master list of values. ?Let's say there > are 6 colors.. > > For each value that exists in a related table, I am able to get the check > boxes to appear checked. Let's say that 2 are checked. ?So far so good. > > Master List ? ? ? ? ? ? Red ? ? Blue ? ?Green ? Yellow ?Brown ? Black > > Related table: ? ? ? ? ?Red(checked) ? ? ? ? ? ? ? ? ? ?Yellow(checked) > > So here's the challenge. > > When the form is submitted with different boxes checked... > > What do I need to do to record checkbox changes, as part of an Edit > operation for the entire form in fx.php: > ? ? ? ?- Remove a checkmark (should delete a related record) > ? ? ? ?- Add a new checkmark (should add a related record). > > Do I need to create a separate instance ?reiteratively comparing the Posted > checkmarks with an array of master value lists. ?Sounds clumsy. > > Any suggestions? > > Jonathan > > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From martinmoraleshdz at hotmail.com Sat Dec 12 12:32:23 2009 From: martinmoraleshdz at hotmail.com (martinmoraleshdz@hotmail.com) Date: Sat Dec 12 12:32:29 2009 Subject: [FX.php List] =?iso-8859-1?q?Respuesta_autom=E1tica?= In-Reply-To: <20091212193220.364183CC201@mail.iviking.org> Message-ID: An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20091212/8cf9fed7/attachment.html From jschwartz at exit445.com Sat Dec 12 13:32:52 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sat Dec 12 13:34:10 2009 Subject: [FX.php List] Portal Records In-Reply-To: References: Message-ID: I gave up on the portal method. I'm perform the primary edit query in the first operation, and then head off to perform a second query to handle the related records. The really involved part is working through the entire list of possible checkbox values and editing each to reflect the newly posted checkbox values. You can't just process the posted values because POSt doesn't show values that were unchecked during the form edit. Its taking an embarrassing amount of time to get this seemingly simple form item done. It looks like 5 minutes work of work. I'm on my second day. Argh J >Make sure you keep track of the respective recids from the slave table(s) > >ggt > >2009/12/12 Jonathan Schwartz : >> Hi Folks, >> >> Can someone offer wisdom on this portal challenge? >> >> I have a form, one field of which offers multiple checkboxes. >> >> The checkboxes are displayed from master list of values. Let's say there >> are 6 colors.. >> >> For each value that exists in a related table, I am able to get the check >> boxes to appear checked. Let's say that 2 are checked. So far so good. >> >> Master List Red Blue Green Yellow Brown Black >> >> Related table: Red(checked) Yellow(checked) >> >> So here's the challenge. >> >> When the form is submitted with different boxes checked... >> >> What do I need to do to record checkbox changes, as part of an Edit >> operation for the entire form in fx.php: >> - Remove a checkmark (should delete a related record) >> - Add a new checkmark (should add a related record). >> >> Do I need to create a separate instance reiteratively comparing the Posted >> checkmarks with an array of master value lists. Sounds clumsy. >> >> Any suggestions? >> >> Jonathan >> >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jschwartz at exit445.com Sun Dec 13 12:14:40 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Dec 13 12:17:31 2009 Subject: [FX.php List] Portal Records Message-ID: Here's an update... I gave up on the related record idea altogether. After struggling with it for another couple of hours, I simply created 20 new fields in the parent record and used the brute force method. Sigh J >Make sure you keep track of the respective recids from the slave table(s) > >ggt > >2009/12/12 Jonathan Schwartz : >> Hi Folks, >> >> Can someone offer wisdom on this portal challenge? >> >> I have a form, one field of which offers multiple checkboxes. >> >> The checkboxes are displayed from master list of values. Let's say there >> are 6 colors.. >> >> For each value that exists in a related table, I am able to get the check >> boxes to appear checked. Let's say that 2 are checked. So far so good. >> >> Master List Red Blue Green Yellow Brown Black >> >> Related table: Red(checked) Yellow(checked) >> >> So here's the challenge. >> >> When the form is submitted with different boxes checked... >> >> What do I need to do to record checkbox changes, as part of an Edit >> operation for the entire form in fx.php: >> - Remove a checkmark (should delete a related record) >> - Add a new checkmark (should add a related record). >> >> Do I need to create a separate instance reiteratively comparing the Posted >> checkmarks with an array of master value lists. Sounds clumsy. >> >> Any suggestions? >> >> Jonathan >> >> >> >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From steve at bluecrocodile.co.nz Sun Dec 13 13:10:07 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Sun Dec 13 13:09:48 2009 Subject: [FX.php List] Portal Records In-Reply-To: References: Message-ID: <9BAEBABB-8175-45E0-B5C4-BF30B28E026A@bluecrocodile.co.nz> You didn't...! That's bordering on a hanging offence!! Cheers Steve Sent from my iPhone On 13 Dec 2009, at 19:14, Jonathan Schwartz wrote: > Here's an update... > > I gave up on the related record idea altogether. > > After struggling with it for another couple of hours, I simply > created 20 new fields in the parent record and used the brute force > method. > > Sigh > > J > > > > >> Make sure you keep track of the respective recids from the slave >> table(s) >> >> ggt >> >> 2009/12/12 Jonathan Schwartz : >>> Hi Folks, >>> >>> Can someone offer wisdom on this portal challenge? >>> >>> I have a form, one field of which offers multiple checkboxes. >>> >>> The checkboxes are displayed from master list of values. Let's >>> say there >>> are 6 colors.. >>> >>> For each value that exists in a related table, I am able to get >>> the check >>> boxes to appear checked. Let's say that 2 are checked. So far so >>> good. >>> >>> Master List Red Blue Green Yellow Brown >>> Black >>> >>> Related table: Red(checked) Yellow >>> (checked) >>> >>> So here's the challenge. >>> >>> When the form is submitted with different boxes checked... >>> >>> What do I need to do to record checkbox changes, as part of an Edit >>> operation for the entire form in fx.php: >>> - Remove a checkmark (should delete a related record) >>> - Add a new checkmark (should add a related record). >>> >>> Do I need to create a separate instance reiteratively comparing >>> the Posted >>> checkmarks with an array of master value lists. Sounds clumsy. >>> >>> Any suggestions? >>> >>> Jonathan >>> >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Sun Dec 13 13:16:29 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Sun Dec 13 13:16:32 2009 Subject: =?UTF-8?Q?Re=3A_=5BFX=2Ephp_List=5D_Respuesta_autom=C3=A1tica?= In-Reply-To: References: <20091212193220.364183CC201@mail.iviking.org> Message-ID: Ehh... I received your mail, informs me shortly. thanks = 2009/12/12 : > Recibi tu correo, en breve me comunicare. gracias > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From jschwartz at exit445.com Sun Dec 13 13:51:16 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Sun Dec 13 13:51:42 2009 Subject: [FX.php List] Portal Records In-Reply-To: <9BAEBABB-8175-45E0-B5C4-BF30B28E026A@bluecrocodile.co.nz> References: <9BAEBABB-8175-45E0-B5C4-BF30B28E026A@bluecrocodile.co.nz> Message-ID: Let me provide background... 1) The solution HAS to work NOW. 2) There is the opportunity to upgrade as soon as I work through the solution. 3) I've been "15 minutes away from being done" for the past 2 days 4) I'm in West Palm Beach Florida visiting my Mom on her 91st birthday. Oy. 5) My flight takes off back to California in an hour...although the flight DOES have Internet. (Wahoo!). I think that fx.PHP Discipline Board would understand. ;-) J At 8:10 PM +0000 12/13/09, Steve Winter wrote: >You didn't...! That's bordering on a hanging offence!! > >Cheers >Steve > >Sent from my iPhone > >On 13 Dec 2009, at 19:14, Jonathan Schwartz wrote: > >>Here's an update... >> >>I gave up on the related record idea altogether. >> >>After struggling with it for another couple of hours, I simply >>created 20 new fields in the parent record and used the brute force >>method. >> >>Sigh >> >>J >> >> >> >>>Make sure you keep track of the respective recids from the slave table(s) >>> >>>ggt >>> >>>2009/12/12 Jonathan Schwartz : >>>>Hi Folks, >>>> >>>>Can someone offer wisdom on this portal challenge? >>>> >>>>I have a form, one field of which offers multiple checkboxes. >>>> >>>>The checkboxes are displayed from master list of values. Let's say there >>>>are 6 colors.. >>>> >>>>For each value that exists in a related table, I am able to get the check >>>>boxes to appear checked. Let's say that 2 are checked. So far so good. >>>> >>>>Master List Red Blue Green Yellow Brown >>>>Black >>>> >>>>Related table: Red(checked) Yellow(checked) >>>> >>>>So here's the challenge. >>>> >>>>When the form is submitted with different boxes checked... >>>> >>>>What do I need to do to record checkbox changes, as part of an Edit >>>>operation for the entire form in fx.php: >>>> - Remove a checkmark (should delete a related record) >>>> - Add a new checkmark (should add a related record). >>>> >>>>Do I need to create a separate instance reiteratively comparing the Posted >>>>checkmarks with an array of master value lists. Sounds clumsy. >>>> >>>>Any suggestions? >>>> >>>>Jonathan >>>> >>>> >>>> >>>>-- >>>>Jonathan Schwartz >>>>Exit 445 Group >>>>jonathan@exit445.com >>>>http://www.exit445.com >>>>415-370-5011 >>>>_______________________________________________ >>>>FX.php_List mailing list >>>>FX.php_List@mail.iviking.org >>>>http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>_______________________________________________ >>>FX.php_List mailing list >>>FX.php_List@mail.iviking.org >>>http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list >>-- >>Jonathan Schwartz >>Exit 445 Group >>jonathan@exit445.com >>http://www.exit445.com >>415-370-5011 >>_______________________________________________ >>FX.php_List mailing list >>FX.php_List@mail.iviking.org >>http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From steve at bluecrocodile.co.nz Sun Dec 13 14:01:01 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Sun Dec 13 14:00:38 2009 Subject: [FX.php List] Portal Records In-Reply-To: References: <9BAEBABB-8175-45E0-B5C4-BF30B28E026A@bluecrocodile.co.nz> Message-ID: <180EE921-E6B2-4681-9A62-8C418B793F6C@bluecrocodile.co.nz> lol maybe we could let you off with that, just this once, and based purely on extenuating circumstances ;) Happy flying (and happy birthday mum) Cheers Steve Sent from my iPhone On 13 Dec 2009, at 20:51, Jonathan Schwartz wrote: > Let me provide background... > > 1) The solution HAS to work NOW. > 2) There is the opportunity to upgrade as soon as I work through the > solution. > 3) I've been "15 minutes away from being done" for the past 2 days > 4) I'm in West Palm Beach Florida visiting my Mom on her 91st > birthday. Oy. > 5) My flight takes off back to California in an hour...although the > flight DOES have Internet. (Wahoo!). > > I think that fx.PHP Discipline Board would understand. > > ;-) > > J > > > > At 8:10 PM +0000 12/13/09, Steve Winter wrote: >> You didn't...! That's bordering on a hanging offence!! >> >> Cheers >> Steve >> >> Sent from my iPhone >> >> On 13 Dec 2009, at 19:14, Jonathan Schwartz >> wrote: >> >>> Here's an update... >>> >>> I gave up on the related record idea altogether. >>> >>> After struggling with it for another couple of hours, I simply >>> created 20 new fields in the parent record and used the brute >>> force method. >>> >>> Sigh >>> >>> J >>> >>> >>> >>>> Make sure you keep track of the respective recids from the slave >>>> table(s) >>>> >>>> ggt >>>> >>>> 2009/12/12 Jonathan Schwartz : >>>>> Hi Folks, >>>>> >>>>> Can someone offer wisdom on this portal challenge? >>>>> >>>>> I have a form, one field of which offers multiple checkboxes. >>>>> >>>>> The checkboxes are displayed from master list of values. Let's >>>>> say there >>>>> are 6 colors.. >>>>> >>>>> For each value that exists in a related table, I am able to get >>>>> the check >>>>> boxes to appear checked. Let's say that 2 are checked. So far >>>>> so good. >>>>> >>>>> Master List Red Blue Green Yellow Brown >>>>> Black >>>>> >>>>> Related table: Red(checked) Yellow >>>>> (checked) >>>>> >>>>> So here's the challenge. >>>>> >>>>> When the form is submitted with different boxes checked... >>>>> >>>>> What do I need to do to record checkbox changes, as part of an >>>>> Edit >>>>> operation for the entire form in fx.php: >>>>> - Remove a checkmark (should delete a related record) >>>>> - Add a new checkmark (should add a related record). >>>>> >>>>> Do I need to create a separate instance reiteratively comparing >>>>> the Posted >>>>> checkmarks with an array of master value lists. Sounds clumsy. >>>>> >>>>> Any suggestions? >>>>> >>>>> Jonathan >>>>> >>>>> >>>>> >>>>> -- >>>>> Jonathan Schwartz >>>>> Exit 445 Group >>>>> jonathan@exit445.com >>>>> http://www.exit445.com >>>>> 415-370-5011 >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> -- >>> Jonathan Schwartz >>> Exit 445 Group >>> jonathan@exit445.com >>> http://www.exit445.com >>> 415-370-5011 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From someone at gagayaya.com Mon Dec 14 08:38:42 2009 From: someone at gagayaya.com (Someone) Date: Mon Dec 14 08:38:58 2009 Subject: [FX.php List] [OFF] connection_aborted on IIS Message-ID: <4D53ADF9-7C2F-41C5-9822-668AC9357A97@gagayaya.com> Hi, Does any one know if connection_aborted function works on IIS (Microsoft-IIS/7.0) / Windows Server 2008 I'm trying to do a force down a file (exe) and record if download was completed It works on Apache/ OS X Thanks Frank Here's the script --------------------------------------------------- $filename = $_GET['file']; // required for IE, otherwise Content-disposition is ignored if(ini_get('zlib.output_compression')) ini_set ('zlib.output_compression', 'Off'); $file_extension = strtolower(substr(strrchr($filename,"."),1)); if( $filename == "" ) { //echo "eLouai's Download ScriptERROR: download file NOT SPECIFIED. USE force-download.php?file=filepath"; exit; } elseif ( ! file_exists( $filename ) ) { //echo "eLouai's Download ScriptERROR: File not found. USE force-download.php?file=filepath"; exit; }; switch( $file_extension ) { case "pdf": $ctype="application/pdf"; break; case "exe": $ctype="application/octet-stream"; break; case "zip": $ctype="application/zip"; break; case "doc": $ctype="application/msword"; break; case "xls": $ctype="application/vnd.ms-excel"; break; case "ppt": $ctype="application/vnd.ms-powerpoint"; break; case "gif": $ctype="image/gif"; break; case "png": $ctype="image/png"; break; case "jpeg": case "jpg": $ctype="image/jpg"; break; default: $ctype="application/force-download"; } header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); // required for certain browsers header("Content-Type: $ctype"); // change, added quotes to allow spaces in filenames, by Rajkumar Singh header("Content-Disposition: attachment; filename=\"".basename ($filename)."\";" ); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($filename)); $bytes_send = 0; $size = filesize($filename); $file = fopen($filename,"rb"); if(isset($_SERVER['HTTP_RANGE'])) fseek($file, $range); while(!feof($file) ){ // if we haven't got to the End Of File $buffer = fread($file, 1024*8); print($buffer);//read 8k from the file and send to the user flush();//force the previous line to send its info $bytes_send += strlen($buffer); if (connection_aborted()){ //check the connection, if it has ended... fclose($file);//close the file die(); //kill the script } } if( connection_aborted() ) die(); fclose($file);//close the file if( $size == $bytes_send){ // record download was completed } exit; --------------------------------------------------- From dbengston at tds.net Mon Dec 14 12:11:23 2009 From: dbengston at tds.net (Dale Bengston) Date: Mon Dec 14 12:11:29 2009 Subject: [FX.php List] [OFF] connection_aborted on IIS In-Reply-To: <4D53ADF9-7C2F-41C5-9822-668AC9357A97@gagayaya.com> References: <4D53ADF9-7C2F-41C5-9822-668AC9357A97@gagayaya.com> Message-ID: <11CFFE77-25B2-469B-BB52-8B65D438E2D7@tds.net> Hi Frank, Here's how I force a download x-plat. Content type doesn't matter. You want the browser to think it's not something it can load in a browser window. header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='. basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length:' . filesize($file)); ob_clean(); flush(); readfile($file); exit; I have not tried it on .exe files. That might be a security thing that IIS is preventing. Dale On Dec 14, 2009, at 9:38 AM, Someone wrote: > Hi, > Does any one know if connection_aborted function works on IIS (Microsoft-IIS/7.0) / Windows Server 2008 > > I'm trying to do a force down a file (exe) and record if download was completed > > It works on Apache/ OS X > > Thanks > Frank > > Here's the script > --------------------------------------------------- > $filename = $_GET['file']; > > // required for IE, otherwise Content-disposition is ignored > if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression', 'Off'); > > $file_extension = strtolower(substr(strrchr($filename,"."),1)); > > if( $filename == "" ) { > //echo "eLouai's Download ScriptERROR: download file NOT SPECIFIED. USE force-download.php?file=filepath"; > exit; > } elseif ( ! file_exists( $filename ) ) { > //echo "eLouai's Download ScriptERROR: File not found. USE force-download.php?file=filepath"; > exit; > }; > switch( $file_extension ) > { > case "pdf": $ctype="application/pdf"; break; > case "exe": $ctype="application/octet-stream"; break; > case "zip": $ctype="application/zip"; break; > case "doc": $ctype="application/msword"; break; > case "xls": $ctype="application/vnd.ms-excel"; break; > case "ppt": $ctype="application/vnd.ms-powerpoint"; break; > case "gif": $ctype="image/gif"; break; > case "png": $ctype="image/png"; break; > case "jpeg": > case "jpg": $ctype="image/jpg"; break; > default: $ctype="application/force-download"; > } > > header("Pragma: public"); // required > header("Expires: 0"); > header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); > header("Cache-Control: private",false); // required for certain browsers > header("Content-Type: $ctype"); > // change, added quotes to allow spaces in filenames, by Rajkumar Singh > header("Content-Disposition: attachment; filename=\"".basename($filename)."\";" ); > header("Content-Transfer-Encoding: binary"); > header("Content-Length: ".filesize($filename)); > > $bytes_send = 0; > $size = filesize($filename); > $file = fopen($filename,"rb"); > if(isset($_SERVER['HTTP_RANGE'])) fseek($file, $range); > while(!feof($file) ){ // if we haven't got to the End Of File > $buffer = fread($file, 1024*8); > print($buffer);//read 8k from the file and send to the user > flush();//force the previous line to send its info > $bytes_send += strlen($buffer); > if (connection_aborted()){ //check the connection, if it has ended... > fclose($file);//close the file > die(); //kill the script > } > } > if( connection_aborted() ) die(); > > fclose($file);//close the file > > if( $size == $bytes_send){ > // record download was completed > } > exit; > --------------------------------------------------- > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From someone at gagayaya.com Mon Dec 14 13:45:40 2009 From: someone at gagayaya.com (Someone) Date: Mon Dec 14 13:45:55 2009 Subject: [FX.php List] [OFF] connection_aborted on IIS In-Reply-To: <11CFFE77-25B2-469B-BB52-8B65D438E2D7@tds.net> References: <4D53ADF9-7C2F-41C5-9822-668AC9357A97@gagayaya.com> <11CFFE77-25B2-469B-BB52-8B65D438E2D7@tds.net> Message-ID: <2DC086FE-A606-43BD-A2F5-702260382DD5@gagayaya.com> Hi Dale, Where do you your database action if download is successful On Dec 14, 2009, at 2:11 PM, Dale Bengston wrote: > Hi Frank, > > Here's how I force a download x-plat. Content type doesn't matter. > You want the browser to think it's not something it can load in a > browser window. > > header('Content-Description: File Transfer'); > header('Content-Type: application/octet-stream'); > header('Content-Disposition: attachment; filename='. basename > ($file)); > header('Content-Transfer-Encoding: binary'); > header('Expires: 0'); > header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); > header('Pragma: public'); > header('Content-Length:' . filesize($file)); > ob_clean(); > flush(); > readfile($file); > exit; > > I have not tried it on .exe files. That might be a security thing > that IIS is preventing. > > Dale > > > On Dec 14, 2009, at 9:38 AM, Someone wrote: > >> Hi, >> Does any one know if connection_aborted function works on IIS >> (Microsoft-IIS/7.0) / Windows Server 2008 >> >> I'm trying to do a force down a file (exe) and record if download >> was completed >> >> It works on Apache/ OS X >> >> Thanks >> Frank >> >> Here's the script >> --------------------------------------------------- >> $filename = $_GET['file']; >> >> // required for IE, otherwise Content-disposition is ignored >> if(ini_get('zlib.output_compression')) ini_set >> ('zlib.output_compression', 'Off'); >> >> $file_extension = strtolower(substr(strrchr($filename,"."),1)); >> >> if( $filename == "" ) { >> //echo "eLouai's Download ScriptERROR: >> download file NOT SPECIFIED. USE force-download.php?file=filepath> body>"; >> exit; >> } elseif ( ! file_exists( $filename ) ) { >> //echo "eLouai's Download ScriptERROR: >> File not found. USE force-download.php?file=filepath"; >> exit; >> }; >> switch( $file_extension ) >> { >> case "pdf": $ctype="application/pdf"; break; >> case "exe": $ctype="application/octet-stream"; break; >> case "zip": $ctype="application/zip"; break; >> case "doc": $ctype="application/msword"; break; >> case "xls": $ctype="application/vnd.ms-excel"; break; >> case "ppt": $ctype="application/vnd.ms-powerpoint"; break; >> case "gif": $ctype="image/gif"; break; >> case "png": $ctype="image/png"; break; >> case "jpeg": >> case "jpg": $ctype="image/jpg"; break; >> default: $ctype="application/force-download"; >> } >> >> header("Pragma: public"); // required >> header("Expires: 0"); >> header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); >> header("Cache-Control: private",false); // required for certain >> browsers >> header("Content-Type: $ctype"); >> // change, added quotes to allow spaces in filenames, by Rajkumar >> Singh >> header("Content-Disposition: attachment; filename=\"".basename >> ($filename)."\";" ); >> header("Content-Transfer-Encoding: binary"); >> header("Content-Length: ".filesize($filename)); >> >> $bytes_send = 0; >> $size = filesize($filename); >> $file = fopen($filename,"rb"); >> if(isset($_SERVER['HTTP_RANGE'])) fseek($file, $range); >> while(!feof($file) ){ // if we haven't got to the End Of File >> $buffer = fread($file, 1024*8); >> print($buffer);//read 8k from the file and send to the user >> flush();//force the previous line to send its info >> $bytes_send += strlen($buffer); >> if (connection_aborted()){ //check the connection, if it has >> ended... >> fclose($file);//close the file >> die(); //kill the script >> } >> } >> if( connection_aborted() ) die(); >> >> fclose($file);//close the file >> >> if( $size == $bytes_send){ >> // record download was completed >> } >> exit; >> --------------------------------------------------- >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at tds.net Mon Dec 14 18:48:21 2009 From: dbengston at tds.net (Dale Bengston) Date: Mon Dec 14 21:25:48 2009 Subject: [FX.php List] [OFF] connection_aborted on IIS In-Reply-To: <2DC086FE-A606-43BD-A2F5-702260382DD5@gagayaya.com> References: <4D53ADF9-7C2F-41C5-9822-668AC9357A97@gagayaya.com> <11CFFE77-25B2-469B-BB52-8B65D438E2D7@tds.net> <2DC086FE-A606-43BD-A2F5-702260382DD5@gagayaya.com> Message-ID: <6D653ECC-E7A8-4B30-9AA1-377A82BB5F3D@tds.net> I'm not sure I understand your question. On Dec 14, 2009, at 2:45 PM, Someone wrote: > Hi Dale, > Where do you your database action if download is successful > > On Dec 14, 2009, at 2:11 PM, Dale Bengston wrote: > >> Hi Frank, >> >> Here's how I force a download x-plat. Content type doesn't matter. You want the browser to think it's not something it can load in a browser window. >> >> header('Content-Description: File Transfer'); >> header('Content-Type: application/octet-stream'); >> header('Content-Disposition: attachment; filename='. basename($file)); >> header('Content-Transfer-Encoding: binary'); >> header('Expires: 0'); >> header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); >> header('Pragma: public'); >> header('Content-Length:' . filesize($file)); >> ob_clean(); >> flush(); >> readfile($file); >> exit; >> >> I have not tried it on .exe files. That might be a security thing that IIS is preventing. >> >> Dale >> >> >> On Dec 14, 2009, at 9:38 AM, Someone wrote: >> >>> Hi, >>> Does any one know if connection_aborted function works on IIS (Microsoft-IIS/7.0) / Windows Server 2008 >>> >>> I'm trying to do a force down a file (exe) and record if download was completed >>> >>> It works on Apache/ OS X >>> >>> Thanks >>> Frank >>> >>> Here's the script >>> --------------------------------------------------- >>> $filename = $_GET['file']; >>> >>> // required for IE, otherwise Content-disposition is ignored >>> if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression', 'Off'); >>> >>> $file_extension = strtolower(substr(strrchr($filename,"."),1)); >>> >>> if( $filename == "" ) { >>> //echo "eLouai's Download ScriptERROR: download file NOT SPECIFIED. USE force-download.php?file=filepath"; >>> exit; >>> } elseif ( ! file_exists( $filename ) ) { >>> //echo "eLouai's Download ScriptERROR: File not found. USE force-download.php?file=filepath"; >>> exit; >>> }; >>> switch( $file_extension ) >>> { >>> case "pdf": $ctype="application/pdf"; break; >>> case "exe": $ctype="application/octet-stream"; break; >>> case "zip": $ctype="application/zip"; break; >>> case "doc": $ctype="application/msword"; break; >>> case "xls": $ctype="application/vnd.ms-excel"; break; >>> case "ppt": $ctype="application/vnd.ms-powerpoint"; break; >>> case "gif": $ctype="image/gif"; break; >>> case "png": $ctype="image/png"; break; >>> case "jpeg": >>> case "jpg": $ctype="image/jpg"; break; >>> default: $ctype="application/force-download"; >>> } >>> >>> header("Pragma: public"); // required >>> header("Expires: 0"); >>> header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); >>> header("Cache-Control: private",false); // required for certain browsers >>> header("Content-Type: $ctype"); >>> // change, added quotes to allow spaces in filenames, by Rajkumar Singh >>> header("Content-Disposition: attachment; filename=\"".basename($filename)."\";" ); >>> header("Content-Transfer-Encoding: binary"); >>> header("Content-Length: ".filesize($filename)); >>> >>> $bytes_send = 0; >>> $size = filesize($filename); >>> $file = fopen($filename,"rb"); >>> if(isset($_SERVER['HTTP_RANGE'])) fseek($file, $range); >>> while(!feof($file) ){ // if we haven't got to the End Of File >>> $buffer = fread($file, 1024*8); >>> print($buffer);//read 8k from the file and send to the user >>> flush();//force the previous line to send its info >>> $bytes_send += strlen($buffer); >>> if (connection_aborted()){ //check the connection, if it has ended... >>> fclose($file);//close the file >>> die(); //kill the script >>> } >>> } >>> if( connection_aborted() ) die(); >>> >>> fclose($file);//close the file >>> >>> if( $size == $bytes_send){ >>> // record download was completed >>> } >>> exit; >>> --------------------------------------------------- >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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 someone at gagayaya.com Tue Dec 15 07:34:55 2009 From: someone at gagayaya.com (Someone) Date: Tue Dec 15 07:35:11 2009 Subject: [FX.php List] [OFF] connection_aborted on IIS In-Reply-To: <6D653ECC-E7A8-4B30-9AA1-377A82BB5F3D@tds.net> References: <4D53ADF9-7C2F-41C5-9822-668AC9357A97@gagayaya.com> <11CFFE77-25B2-469B-BB52-8B65D438E2D7@tds.net> <2DC086FE-A606-43BD-A2F5-702260382DD5@gagayaya.com> <6D653ECC-E7A8-4B30-9AA1-377A82BB5F3D@tds.net> Message-ID: Hi Dale, What happens if the internet goes down in the middle of a download, how do you capture this and log it. On Dec 14, 2009, at 8:48 PM, Dale Bengston wrote: > I'm not sure I understand your question. > > On Dec 14, 2009, at 2:45 PM, Someone wrote: > >> Hi Dale, >> Where do you your database action if download is successful >> >> On Dec 14, 2009, at 2:11 PM, Dale Bengston wrote: >> >>> Hi Frank, >>> >>> Here's how I force a download x-plat. Content type doesn't >>> matter. You want the browser to think it's not something it can >>> load in a browser window. >>> >>> header('Content-Description: File Transfer'); >>> header('Content-Type: application/octet-stream'); >>> header('Content-Disposition: attachment; filename='. basename >>> ($file)); >>> header('Content-Transfer-Encoding: binary'); >>> header('Expires: 0'); >>> header('Cache-Control: must-revalidate, post-check=0, pre- >>> check=0'); >>> header('Pragma: public'); >>> header('Content-Length:' . filesize($file)); >>> ob_clean(); >>> flush(); >>> readfile($file); >>> exit; >>> >>> I have not tried it on .exe files. That might be a security thing >>> that IIS is preventing. >>> >>> Dale >>> >>> >>> On Dec 14, 2009, at 9:38 AM, Someone wrote: >>> >>>> Hi, >>>> Does any one know if connection_aborted function works on IIS >>>> (Microsoft-IIS/7.0) / Windows Server 2008 >>>> >>>> I'm trying to do a force down a file (exe) and record if >>>> download was completed >>>> >>>> It works on Apache/ OS X >>>> >>>> Thanks >>>> Frank >>>> >>>> Here's the script >>>> --------------------------------------------------- >>>> $filename = $_GET['file']; >>>> >>>> // required for IE, otherwise Content-disposition is ignored >>>> if(ini_get('zlib.output_compression')) ini_set >>>> ('zlib.output_compression', 'Off'); >>>> >>>> $file_extension = strtolower(substr(strrchr($filename,"."),1)); >>>> >>>> if( $filename == "" ) { >>>> //echo "eLouai's Download Script</ >>>> title><body>ERROR: download file NOT SPECIFIED. USE force- >>>> download.php?file=filepath</body></html>"; >>>> exit; >>>> } elseif ( ! file_exists( $filename ) ) { >>>> //echo "<html><title>eLouai's Download Script</ >>>> title><body>ERROR: File not found. USE force-download.php? >>>> file=filepath</body></html>"; >>>> exit; >>>> }; >>>> switch( $file_extension ) >>>> { >>>> case "pdf": $ctype="application/pdf"; break; >>>> case "exe": $ctype="application/octet-stream"; break; >>>> case "zip": $ctype="application/zip"; break; >>>> case "doc": $ctype="application/msword"; break; >>>> case "xls": $ctype="application/vnd.ms-excel"; break; >>>> case "ppt": $ctype="application/vnd.ms-powerpoint"; break; >>>> case "gif": $ctype="image/gif"; break; >>>> case "png": $ctype="image/png"; break; >>>> case "jpeg": >>>> case "jpg": $ctype="image/jpg"; break; >>>> default: $ctype="application/force-download"; >>>> } >>>> >>>> header("Pragma: public"); // required >>>> header("Expires: 0"); >>>> header("Cache-Control: must-revalidate, post-check=0, pre- >>>> check=0"); >>>> header("Cache-Control: private",false); // required for certain >>>> browsers >>>> header("Content-Type: $ctype"); >>>> // change, added quotes to allow spaces in filenames, by >>>> Rajkumar Singh >>>> header("Content-Disposition: attachment; filename=\"".basename >>>> ($filename)."\";" ); >>>> header("Content-Transfer-Encoding: binary"); >>>> header("Content-Length: ".filesize($filename)); >>>> >>>> $bytes_send = 0; >>>> $size = filesize($filename); >>>> $file = fopen($filename,"rb"); >>>> if(isset($_SERVER['HTTP_RANGE'])) fseek($file, $range); >>>> while(!feof($file) ){ // if we haven't got to the End Of File >>>> $buffer = fread($file, 1024*8); >>>> print($buffer);//read 8k from the file and send to the user >>>> flush();//force the previous line to send its info >>>> $bytes_send += strlen($buffer); >>>> if (connection_aborted()){ //check the connection, if it has >>>> ended... >>>> fclose($file);//close the file >>>> die(); //kill the script >>>> } >>>> } >>>> if( connection_aborted() ) die(); >>>> >>>> fclose($file);//close the file >>>> >>>> if( $size == $bytes_send){ >>>> // record download was completed >>>> } >>>> exit; >>>> --------------------------------------------------- >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/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 dbengston at tds.net Tue Dec 15 09:30:08 2009 From: dbengston at tds.net (Dale Bengston) Date: Tue Dec 15 09:30:16 2009 Subject: [FX.php List] [OFF] connection_aborted on IIS In-Reply-To: <DE825F39-B69E-442F-8EFB-DB4F63F71CDA@gagayaya.com> References: <4D53ADF9-7C2F-41C5-9822-668AC9357A97@gagayaya.com> <11CFFE77-25B2-469B-BB52-8B65D438E2D7@tds.net> <2DC086FE-A606-43BD-A2F5-702260382DD5@gagayaya.com> <6D653ECC-E7A8-4B30-9AA1-377A82BB5F3D@tds.net> <DE825F39-B69E-442F-8EFB-DB4F63F71CDA@gagayaya.com> Message-ID: <1027FB2B-6F7D-43C6-9A3F-C46A171BB557@tds.net> I'm out of my pay grade when it comes to web servers and their log files. I have gone as far as logging the user's intent to download something, but I am not capturing success or failure of the actual transmission. Hmm, well, turning my Speculator on full-blast, I'll give it a try: I'm not sure once the download is handed off to the browser that it's possible to log success or failure. You could capture the success of initiating a download, but after that it's the user's browser driving things. Also, I'm not sure how you'd capture a connection failure. If the user quits the browser in the middle of the download, does that look the same to a web server as a connection failure due to squirrels gnawing on one's wires?* Anyone else have experience with this? Dale * This actually happened to me. On Dec 15, 2009, at 8:34 AM, Someone wrote: > Hi Dale, > What happens if the internet goes down in the middle of a download, how do you capture this and log it. > > On Dec 14, 2009, at 8:48 PM, Dale Bengston wrote: > >> I'm not sure I understand your question. >> >> On Dec 14, 2009, at 2:45 PM, Someone wrote: >> >>> Hi Dale, >>> Where do you your database action if download is successful >>> >>> On Dec 14, 2009, at 2:11 PM, Dale Bengston wrote: >>> >>>> Hi Frank, >>>> >>>> Here's how I force a download x-plat. Content type doesn't matter. You want the browser to think it's not something it can load in a browser window. >>>> >>>> header('Content-Description: File Transfer'); >>>> header('Content-Type: application/octet-stream'); >>>> header('Content-Disposition: attachment; filename='. basename($file)); >>>> header('Content-Transfer-Encoding: binary'); >>>> header('Expires: 0'); >>>> header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); >>>> header('Pragma: public'); >>>> header('Content-Length:' . filesize($file)); >>>> ob_clean(); >>>> flush(); >>>> readfile($file); >>>> exit; >>>> >>>> I have not tried it on .exe files. That might be a security thing that IIS is preventing. >>>> >>>> Dale >>>> >>>> >>>> On Dec 14, 2009, at 9:38 AM, Someone wrote: >>>> >>>>> Hi, >>>>> Does any one know if connection_aborted function works on IIS (Microsoft-IIS/7.0) / Windows Server 2008 >>>>> >>>>> I'm trying to do a force down a file (exe) and record if download was completed >>>>> >>>>> It works on Apache/ OS X >>>>> >>>>> Thanks >>>>> Frank >>>>> >>>>> Here's the script >>>>> --------------------------------------------------- >>>>> $filename = $_GET['file']; >>>>> >>>>> // required for IE, otherwise Content-disposition is ignored >>>>> if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression', 'Off'); >>>>> >>>>> $file_extension = strtolower(substr(strrchr($filename,"."),1)); >>>>> >>>>> if( $filename == "" ) { >>>>> //echo "<html><title>eLouai's Download ScriptERROR: download file NOT SPECIFIED. USE force-download.php?file=filepath"; >>>>> exit; >>>>> } elseif ( ! file_exists( $filename ) ) { >>>>> //echo "eLouai's Download ScriptERROR: File not found. USE force-download.php?file=filepath"; >>>>> exit; >>>>> }; >>>>> switch( $file_extension ) >>>>> { >>>>> case "pdf": $ctype="application/pdf"; break; >>>>> case "exe": $ctype="application/octet-stream"; break; >>>>> case "zip": $ctype="application/zip"; break; >>>>> case "doc": $ctype="application/msword"; break; >>>>> case "xls": $ctype="application/vnd.ms-excel"; break; >>>>> case "ppt": $ctype="application/vnd.ms-powerpoint"; break; >>>>> case "gif": $ctype="image/gif"; break; >>>>> case "png": $ctype="image/png"; break; >>>>> case "jpeg": >>>>> case "jpg": $ctype="image/jpg"; break; >>>>> default: $ctype="application/force-download"; >>>>> } >>>>> >>>>> header("Pragma: public"); // required >>>>> header("Expires: 0"); >>>>> header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); >>>>> header("Cache-Control: private",false); // required for certain browsers >>>>> header("Content-Type: $ctype"); >>>>> // change, added quotes to allow spaces in filenames, by Rajkumar Singh >>>>> header("Content-Disposition: attachment; filename=\"".basename($filename)."\";" ); >>>>> header("Content-Transfer-Encoding: binary"); >>>>> header("Content-Length: ".filesize($filename)); >>>>> >>>>> $bytes_send = 0; >>>>> $size = filesize($filename); >>>>> $file = fopen($filename,"rb"); >>>>> if(isset($_SERVER['HTTP_RANGE'])) fseek($file, $range); >>>>> while(!feof($file) ){ // if we haven't got to the End Of File >>>>> $buffer = fread($file, 1024*8); >>>>> print($buffer);//read 8k from the file and send to the user >>>>> flush();//force the previous line to send its info >>>>> $bytes_send += strlen($buffer); >>>>> if (connection_aborted()){ //check the connection, if it has ended... >>>>> fclose($file);//close the file >>>>> die(); //kill the script >>>>> } >>>>> } >>>>> if( connection_aborted() ) die(); >>>>> >>>>> fclose($file);//close the file >>>>> >>>>> if( $size == $bytes_send){ >>>>> // record download was completed >>>>> } >>>>> exit; >>>>> --------------------------------------------------- >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Fri Dec 18 04:05:35 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Dec 18 04:05:32 2009 Subject: [FX.php List] Error 802 occasionally occuring, 2-3 times pr day of several thousand Message-ID: Error 802 occasionally occuring, 2-3 times pr day of several thousand Anyone got a clue to why 802 occurs? ggt667 From dbengston at tds.net Fri Dec 18 06:21:19 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 18 06:21:16 2009 Subject: [FX.php List] Error 802 occasionally occuring, 2-3 times pr day of several thousand In-Reply-To: References: Message-ID: <725D11B3-050A-436A-881B-2484BDDA7FF7@tds.net> Error 802 is "unable to open file." In an otherwise healthy system, I would say it's a temporary connection failure. That doesn't narrow it down very much - what do the logs say? FMS? Apache? PHP? Dale On Dec 18, 2009, at 5:05 AM, Gjermund Gusland Thorsen wrote: > Error 802 occasionally occuring, 2-3 times pr day of several thousand > > Anyone got a clue to why 802 occurs? > > ggt667 > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Fri Dec 18 08:52:30 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Dec 18 08:52:23 2009 Subject: [FX.php List] Error 802 occasionally occuring, 2-3 times pr day of several thousand In-Reply-To: <725D11B3-050A-436A-881B-2484BDDA7FF7@tds.net> References: <725D11B3-050A-436A-881B-2484BDDA7FF7@tds.net> Message-ID: There is 1 gbit connection between the webserver that receives this error and the FMSA... I have never been able to reproduce the error myself, and I have not found anything in the logs, so a temporary connection failure is probable. ggt 2009/12/18 Dale Bengston : > Error 802 is "unable to open file." In an otherwise healthy system, I would say it's a temporary connection failure. That doesn't narrow it down very much - what do the logs say? FMS? Apache? PHP? > > Dale > > > On Dec 18, 2009, at 5:05 AM, Gjermund Gusland Thorsen wrote: > >> Error 802 occasionally occuring, 2-3 times pr day of several thousand >> >> Anyone got a clue to why 802 occurs? >> >> ggt667 >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From dbengston at tds.net Fri Dec 18 13:23:23 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Dec 18 13:23:19 2009 Subject: [FX.php List] Error 802 occasionally occuring, 2-3 times pr day of several thousand In-Reply-To: References: <725D11B3-050A-436A-881B-2484BDDA7FF7@tds.net> Message-ID: <8DDE9461-376B-414D-95FB-D066CCF58547@tds.net> Intermittent problems are devilish to track down, unless something fails outright and makes it easy on you. You could try moving the FMS and web servers to different ports on your hub/switch/router thing. Or stick a new network cable on each. With luck, maybe it's an easy, cheap thing to fix and not a faling NIC or something. Dale On Dec 18, 2009, at 9:52 AM, Gjermund Gusland Thorsen wrote: > There is 1 gbit connection between the webserver that receives this > error and the FMSA... > > I have never been able to reproduce the error myself, and I have not > found anything in the logs, > so a temporary connection failure is probable. > > ggt > > 2009/12/18 Dale Bengston : >> Error 802 is "unable to open file." In an otherwise healthy system, I would say it's a temporary connection failure. That doesn't narrow it down very much - what do the logs say? FMS? Apache? PHP? >> >> Dale >> >> >> On Dec 18, 2009, at 5:05 AM, Gjermund Gusland Thorsen wrote: >> >>> Error 802 occasionally occuring, 2-3 times pr day of several thousand >>> >>> Anyone got a clue to why 802 occurs? >>> >>> ggt667 >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/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