From chris at iViking.org Sat Aug 1 10:16:50 2009 From: chris at iViking.org (Chris Hansen) Date: Sat Aug 1 10:16:54 2009 Subject: [FX.php List] can only create 4 records before timeout In-Reply-To: <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> References: <02754126.98AD.43A9.8271.0736D7F4978F@102.1002736> <0B47CBE7-BBA1-452C-B455-10EA6F03CF4E@exit445.com> Message-ID: David, Jonathan is right on track. Unstored calcs and summary fields especially can add time. Be sure you ONLY have the fields on there that you need. Another thought: you could create the records one at a time, but only populate (and use a layout) with one or two fields, and then use another layout with a portal to edit all of those records with a single query. This may even be a situation where using a FileMaker script (as opposed to doing everything with PHP) would make sense. Note that there are two keys here: 1) FileMaker does the work for all of the fields on any layout you use, whether you do anything with the returned data or not; 2) There is a fair amount of overhead involved with informational XML (header information, if you will) returned for each XML query, so the fewer the queries the better (FYI, the FileMaker API for PHP uses an even MORE verbose schema...) HTH --Chris On Jul 29, 2009, at 3:52 PM, Jonathan Schwartz wrote: > First things first. > > - Reduce layout fields to just those needed for this script. > > - increase timeout setting in php, either in ini or with an ini set > command in the script. > > - Add some logging that tells you where the time is being spent. You > have to log to a file instead if the screen because nothing gets > written to the screen until the script finishes. And if the browser > times out you get nada. > > Hth. > > > > Jonathan Schwartz > Exit 445 Group > 415-370-5011 > > On Jul 29, 2009, at 2:22 PM, Troy Meyers > wrote: > >> David, >> >> If the layout you are referring to during creation has all 200 >> fields (or even just more than you need), then I'd definitely try >> your option (2.) first. Here I have many layouts for different >> purposes, and putting only the fields needed to accomplish the >> purpose makes great speed improvements. >> >> -Troy >> >> >> >>> I am using a loop to create records when they do not exist. As I >>> stated >>> yesterday, it only gets four records created before timeout. >>> >>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker >>> Server 7 >>> is on an adjacent Win2K3 server and both are connected via a local >>> gigabit switch and both are dual processors with adequate RAM. I am >>> trying to find out what is causing the performance hit or latency >>> issues. I can monitor both servers' processor & network %usage >>> and it >>> appears that the FM7 Server is doing some significant number >>> crunching >>> over the processor when I run the script. >>> >>> Should I try: >>> >>> 1. moving FileMaker Server onto the same hardware? >>> >>> 2. performing the FMNew() on a layout with just a few fields? >>> >>> 3. upgrading to a newer version of FileMaker Server? (is there any >>> >>> increase in performance in 9 or 10? I am certain FileMaker will tell >>> me >>> >>> that I need to upgrade. However buget precludes that possibility >>> for >>> now) >>> >>> 4. reducing the number of fields and or relationships in the >>> database? >>> >>> The table I am working in has over 200 fields. >>> >>> Any ideas? >>> >>> Thanks, >>> >>> David Cox >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/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 dw at coredbs.com Tue Aug 4 06:34:32 2009 From: dw at coredbs.com (David Walton) Date: Wed Aug 5 14:30:30 2009 Subject: [FX.php List] FMPS WPE Error 956 Message-ID: I have two servers running FMP Server 9.0.3 -- one Mac OS X 10.5 running Apache, the other Windows IIS. I am running multipe FX.php sites on each. I have recently received 956 errors -- can't make web connection due to maxium web sessions reached. I do not suspect these errors are due to FX.php, as these sites have run flawlessly for several years on these and older OS's. However, I write to see if any forum readers have experienced similar issues or have any good thoughts on the topic. Thank you for your consideration of this post. DSW -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090804/cdd9ff35/attachment.html From jschwartz at exit445.com Wed Aug 5 14:43:37 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Wed Aug 5 14:43:51 2009 Subject: [FX.php List] FMPS WPE Error 956 In-Reply-To: References: Message-ID: What is your setting for Maximum Web Connections in the Web Publishing engines(s). Perhaps it is being exceeded? Jonathan At 8:34 AM -0400 8/4/09, David Walton wrote: >I have two servers running FMP Server 9.0.3 -- one Mac OS X 10.5 >running Apache, the other Windows IIS. > >I am running multipe FX.php sites on each. > >I have recently received 956 errors -- can't make web connection due >to maxium web sessions reached. > >I do not suspect these errors are due to FX.php, as these sites have >run flawlessly for several years on these and older OS's. > >However, I write to see if any forum readers have experienced >similar issues or have any good thoughts on the topic. > >Thank you for your consideration of this post. > >DSW > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From ggt667 at gmail.com Thu Aug 6 03:20:39 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Aug 6 03:20:45 2009 Subject: [FX.php List] FMPS WPE Error 956 In-Reply-To: References: Message-ID: More than 100 simultanious sessions? Would be interesting to see the log... pastebin? ggt 2009/8/5 Jonathan Schwartz : > What is your setting for Maximum Web Connections in the Web Publishing > engines(s). ? ?Perhaps it is being exceeded? > > Jonathan > > > At 8:34 AM -0400 8/4/09, David Walton wrote: >> >> I have two servers running FMP Server 9.0.3 -- one Mac OS X 10.5 running >> Apache, the other Windows IIS. >> >> I am running multipe FX.php sites on each. >> >> I have recently received 956 errors -- can't make web connection due to >> maxium web sessions reached. >> >> I do not suspect these errors are due to FX.php, as these sites have run >> flawlessly for several years on these and older OS's. >> >> However, I write to see if any forum readers have experienced similar >> issues or have any good thoughts on the topic. >> >> Thank you for your consideration of this post. >> >> DSW >> >> _______________________________________________ >> 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 davidcox at wcfs.edu Thu Aug 6 08:27:35 2009 From: davidcox at wcfs.edu (David Cox) Date: Thu Aug 6 10:50:21 2009 Subject: [FX.php List] can only create 4 records before timeout Message-ID: Jonathan, Chris, Leo, Gjermund and anyone else who helped me out: Your help has been immensely appreciated. I was finally able to do what I wanted without the timeout by creating a separate related table. Now that I am working with a much smaller related table, the script flies! What had me baffled is that the timeout still happened when using a layout with only two or three fields. All I can think is that there are a large number of calculation fields in that table which derive data from other relationships and/or other fields in the table. Even though I was only dealing with two or three fields on the layout, FileMaker must have still been doing background work when the record was created. On a separate topic, Dale Bengston mentioned about storing form data into the session and then writing it at a later point. Although I use session variables extensively, I've never thought of using the session as the endpoint for the data storage as a virtual database and then committing it to FileMaker in the background when it has the time. If fully developed and implemented, I think this concept has potential to make web apps fly, reduce workload on FileMaker and turn FileMaker into a data repository which is only accessed at initial login and on logout when the user is finished making changes. I can see how this would radically change the way php interfaces with FileMaker but would also have many potential pitfalls. One would need to make sure that data is indeed written to the database and not discarded by PHP if the user drops off. It would also change the real time interface of PHP with FileMaker - which for many purposes would not matter as long as the data does make it back into FileMaker. Another problem is that one would not be able to take advantage of the FileMaker relational capabilities - however FileMaker could be accessed as needed, but not as much. Am I getting a little carried away with this idea? @ Jonathan: You mentioned about logging time information to a server file. Do you have any sample scripts which I could refer to? Thank you all for your help, David Cox On Sat, Aug 1, 2009 at 12:16 PM, 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: can only create 4 records before timeout > (Gjermund Gusland Thorsen) > 2. Re: can only create 4 records before timeout > (Gjermund Gusland Thorsen) > 3. Re: Shopping Carts - Keep in SessionVars or Add Recordsright > away? (Dale Bengston) > 4. Re: can only create 4 records before timeout (Jonathan Schwartz) > 5. Re: can only create 4 records before timeout (Chris Hansen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 30 Jul 2009 00:46:46 +0200 > From: Gjermund Gusland Thorsen > Subject: Re: [FX.php List] can only create 4 records before timeout > To: "FX.php Discussion List" > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > I name them xmlPurpose > > ggt > > 2009/7/30 Leo R. Lundgren : > > I always use seperate layouts for FX/FMPHPAPI, containing only the needed > > fields without any extra candy. I suffix them with " | XML" but otherwise > > they're named the same as the "normal layouts", so that they're easy to > > track. > > > > > > 29 jul 2009 kl. 23.52 skrev Jonathan Schwartz: > > > >> First things first. > >> > >> - Reduce layout fields to just those needed for this script. > >> > >> - increase timeout setting in php, either in ini or with an ini set > >> command in the script. > >> > >> - Add some logging that tells you where the time is being spent. You > have > >> to log to a file instead if the screen because nothing gets written to > the > >> screen until the script finishes. And if the browser times out you get > nada. > >> > >> Hth. > >> > >> > >> > >> Jonathan Schwartz > >> Exit 445 Group > >> 415-370-5011 > >> > >> On Jul 29, 2009, at 2:22 PM, Troy Meyers > wrote: > >> > >>> David, > >>> > >>> If the layout you are referring to during creation has all 200 fields > (or > >>> even just more than you need), then I'd definitely try your option (2.) > >>> first. Here I have many layouts for different purposes, and putting > only the > >>> fields needed to accomplish the purpose makes great speed improvements. > >>> > >>> -Troy > >>> > >>> > >>> > >>>> I am using a loop to create records when they do not exist. As I > stated > >>>> yesterday, it only gets four records created before timeout. > >>>> > >>>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker Server > 7 > >>>> is on an adjacent Win2K3 server and both are connected via a local > >>>> gigabit switch and both are dual processors with adequate RAM. I am > >>>> trying to find out what is causing the performance hit or latency > >>>> issues. I can monitor both servers' processor & network %usage and it > >>>> appears that the FM7 Server is doing some significant number crunching > >>>> over the processor when I run the script. > >>>> > >>>> Should I try: > >>>> > >>>> 1. moving FileMaker Server onto the same hardware? > >>>> > >>>> 2. performing the FMNew() on a layout with just a few fields? > >>>> > >>>> 3. upgrading to a newer version of FileMaker Server? (is there any > >>>> > >>>> increase in performance in 9 or 10? I am certain FileMaker will tell > >>>> me > >>>> > >>>> that I need to upgrade. However budget precludes that possibility for > >>>> now) > >>>> > >>>> 4. reducing the number of fields and or relationships in the > >>>> database? > >>>> > >>>> The table I am working in has over 200 fields. > >>>> > >>>> Any ideas? > >>>> > >>>> Thanks, > >>>> > >>>> David Cox > >>> > >>> _______________________________________________ > >>> FX.php_List mailing list > >>> FX.php_List@mail.iviking.org > >>> http://www.iviking.org/mailman/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 > > > > > ------------------------------ > > Message: 2 > Date: Thu, 30 Jul 2009 00:47:30 +0200 > From: Gjermund Gusland Thorsen > Subject: Re: [FX.php List] can only create 4 records before timeout > To: "FX.php Discussion List" > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > With FileMaker 5/6 i used the name of the php script that used that laoyut. > > ggt > > 2009/7/30 Gjermund Gusland Thorsen : > > I name them xmlPurpose > > > > ggt > > > > 2009/7/30 Leo R. Lundgren : > >> I always use seperate layouts for FX/FMPHPAPI, containing only the > needed > >> fields without any extra candy. I suffix them with " | XML" but > otherwise > >> they're named the same as the "normal layouts", so that they're easy to > >> track. > >> > >> > >> 29 jul 2009 kl. 23.52 skrev Jonathan Schwartz: > >> > >>> First things first. > >>> > >>> - Reduce layout fields to just those needed for this script. > >>> > >>> - increase timeout setting in php, either in ini or with an ini set > >>> command in the script. > >>> > >>> > >>> Hth. > >>> > >>> > >>> > >>> Jonathan Schwartz > >>> Exit 445 Group > >>> 415-370-5011 > >>> > >>> On Jul 29, 2009, at 2:22 PM, Troy Meyers > wrote: > >>> > >>>> David, > >>>> > >>>> If the layout you are referring to during creation has all 200 fields > (or > >>>> even just more than you need), then I'd definitely try your option > (2.) > >>>> first. Here I have many layouts for different purposes, and putting > only the > >>>> fields needed to accomplish the purpose makes great speed > improvements. > >>>> > >>>> -Troy > >>>> > >>>> > >>>> > >>>>> I am using a loop to create records when they do not exist. As I > stated > >>>>> yesterday, it only gets four records created before timeout. > >>>>> > >>>>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker > Server 7 > >>>>> is on an adjacent Win2K3 server and both are connected via a local > >>>>> gigabit switch and both are dual processors with adequate RAM. I am > >>>>> trying to find out what is causing the performance hit or latency > >>>>> issues. I can monitor both servers' processor & network %usage and > it > >>>>> appears that the FM7 Server is doing some significant number > crunching > >>>>> over the processor when I run the script. > >>>>> > >>>>> Should I try: > >>>>> > >>>>> 1. moving FileMaker Server onto the same hardware? > >>>>> > >>>>> 2. performing the FMNew() on a layout with just a few fields? > >>>>> > >>>>> 3. upgrading to a newer version of FileMaker Server? (is there any > >>>>> > >>>>> increase in performance in 9 or 10? I am certain FileMaker will tell > >>>>> me > >>>>> > >>>>> that I need to upgrade. However budget precludes that possibility > for > >>>>> now) > >>>>> > >>>>> 4. reducing the number of fields and or relationships in the > >>>>> database? > >>>>> > >>>>> The table I am working in has over 200 fields. > >>>>> > >>>>> Any ideas? > >>>>> > >>>>> Thanks, > >>>>> > >>>>> David Cox > >>>> > >>>> _______________________________________________ > >>>> FX.php_List mailing list > >>>> FX.php_List@mail.iviking.org > >>>> http://www.iviking.org/mailman/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 > >> > > > > > ------------------------------ > > Message: 3 > Date: Wed, 29 Jul 2009 20:30:37 -0500 > From: Dale Bengston > Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars or Add > Recordsright away? > To: "FX.php Discussion List" > Message-ID: <022784FF-351D-40D2-BF17-5B6477E0F7EA@tds.net> > Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; > delsp=yes > > I would expect storage of form data in $_SESSION to be faster than > storing it in FileMaker tables. Storing anything in memory is faster > than writing it out, especially if your target for writing is > FileMaker. The marginal speed trade-off of writing records is > acceptable to me... especially since I rarely find myself writing to > FileMaker any more. (Yes, I know. Sniff. Sniff.) > > Dale > > On Jul 29, 2009, at 2:58 PM, Leo R. Lundgren wrote: > > > There is definately a time difference. Unless I misunderstood what > > you mean by session variables. > > > > If you just write thirty variables to the $_SESSION array, there > > only overhead involved is the one when PHP seralizes the values into > > the session storage, which by default is files under /tmp on the > > webserver. But this is isn't noticable for low-traffic hosts. > > > > On the other hand, if you are to write your values to a table in > > FileMaker, you have all the usual overhead involved with > > communicating with said database. > > > > > > 29 jul 2009 kl. 20.45 skrev Bob Patin: > > > >> Here's a question for GGT (or anyone else who may know this): is > >> there any speed difference at all between writing 30 or so session > >> variables versus writing 30 or so fields to 1 or more tables? > >> > >> For the sake of argument, let's say you're writing to two tables-- > >> first is the temp order table, 2nd is the lineitems table. > >> > >> Is the difference in time involved negligible? > >> > >> Best, > >> > >> 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 Jul 29, 2009, at 12:43 PM, Joel Shapiro wrote: > >> > >>> Don't know how long this thread may keep going, but let me put in > >>> my "Thanks Everybody" here & now: > >>> > >>> Thanks Everybody > >>> > >>> Best, > >>> -Joel > >>> > >>> ~~~~~~~~~~~~~~~~~~~~~~~ > >>> Joel Shapiro > >>> FileMaker Pro > >>> database & web design > >>> http://www.jsfmp.com > >>> 415-269-5055 > >>> ~~~~~~~~~~~~~~~~~~~~~~~ > >>> > >>> > >>> On Jul 29, 2009, at 9:43 AM, VanBuskirk, Patricia wrote: > >>> > >>>> As a frequent online shopper, I like this idea. I had over $100 of > >>>> merch in my cart at Khols online, accumulated throughout the day, > >>>> and I > >>>> went away from my pc for a couple of hours to come back to an empty > >>>> cart. I did not try to re-shop, so they lost the business. > >>>> > >>>> > >>>> -----Original Message----- > >>>> From: fx.php_list-bounces@mail.iviking.org > >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale > >>>> Bengston > >>>> Sent: Wednesday, July 29, 2009 12:37 PM > >>>> To: FX.php Discussion List > >>>> Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars > >>>> or Add > >>>> Recordsright away? > >>>> > >>>> I agree that this is a client business rule, but there is very > >>>> little > >>>> penalty for saving records to a table, and keeping them as a status > >>>> that is suppressed by the client-server UI. I am doing this for an > >>>> order site. In my opinion, saving records also makes it easier to > >>>> retrieve a shopping cart if the user quits and relaunches, or in > >>>> another typical, natural way destroys their session. > >>>> > >>>> Dale > >>>> > >>>> > >>>> > >>>> -- > >>>> Dale Bengston > >>>> Streamline Studio, LLC > >>>> www.streamline-studio.com > >>>> > >>>> On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: > >>>> > >>>>> For one client it was a half-hour; this wasn't a cart per se, > >>>>> but a > >>>>> registration site. The issue for the client was to make sure that > >>>>> everyone who completed the process was definitely sent an email > >>>>> confirmation; eventually the other programmer in this project (I > >>>>> was > >>>>> a sub-contractor on this) decided to write a script, and trigger > >>>>> it > >>>>> every 60 seconds. It looks for abandoned registrations, and if > >>>>> it's > >>>>> been more than a half-hour, deletes the temp record. If not, it > >>>>> confirms that there's a credit card payment auth code and if so, > >>>>> it > >>>>> sends the confirmation email. > >>>>> > >>>>> I don't use scripts much at all in web apps, but this was what the > >>>>> other consultant wanted, and it does work pretty well with > >>>>> scheduled > >>>>> script-triggering from Server 10. > >>>>> > >>>>> For this app we use a temp table, but for a smaller app on the > >>>>> same > >>>>> site, where people are signing up for meetings, I store everything > >>>>> in session variables until the end because there's not much to > >>>>> keep > >>>>> track of... > >>>>> > >>>>> BP > >>>>> > >>>>> Bob Patin > >>>>> Longterm Solutions LLC > >>>>> bob@longtermsolutions.com > >>>>> 615-333-6858 > >>>>> http://www.longtermsolutions.com > >>>>> Twitter: bobpatin > >>>>> iChat/AIM: bobpatin > >>>>> FileMaker 10 Certified Developer > >>>>> Member of FileMaker Business Alliance & TechNet > >>>>> -------------------------- > >>>>> FileMaker hosting and consulting for all versions of FileMaker > >>>>> PHP * jQuery * ExpressionEngine > >>>>> Full email services * Free DNS hosting * Colocation * Consulting > >>>>> > >>>>> > >>>>> On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: > >>>>> > >>>>>> What are your criterias for deleting the carts not owned by > >>>>>> anybody? > >>>>>> > >>>>>> ggt > >>>>>> > >>>>>> 2009/7/29 Head Honcho : > >>>>>>> Hi Joel, > >>>>>>> > >>>>>>> I record them immediately, and run a script weekly to "delete" > >>>>>>> non > >>>>>>> purchased > >>>>>>> orders. > >>>>>>> > >>>>>>> It also helps in the reporting to see what people have started > >>>>>>> ordering and > >>>>>>> then dropped out, so to speak. > >>>>>>> > >>>>>>> As Webko said, this also allows for "pausing" an order and > >>>>>>> resuming it > >>>>>>> later. > >>>>>>> > >>>>>>> HTH. > >>>>>>> > >>>>>>> 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 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: > >>>>>>> > >>>>>>>> Thanks Leo > >>>>>>>> > >>>>>>>> That's what I'd been thinking. > >>>>>>>> > >>>>>>>> It's good to see what different people are doing... > >>>>>>>> > >>>>>>>> -Joel > >>>>>>>> > >>>>>>>> > >>>>>>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: > >>>>>>>> > >>>>>>>>> Yeah there's really a question of what features you want. > >>>>>>>>> > >>>>>>>>> The basic approach is to keep the cart in the session as > >>>>>>>>> session > >>>>>>>>> variables. There's really no need to put it all in the > >>>>>>>>> database, > >>>>>>>>> use the > >>>>>>>>> session for what it's worth instead :) > >>>>>>>>> > >>>>>>>>> BUT, keeping the cart inside the DB will allow for certain > >>>>>>>>> things, such > >>>>>>>>> as the client can put some stuff in the cart, mail his > >>>>>>>>> collegue, > >>>>>>>>> and tell > >>>>>>>>> him "hey, look at the stuff I put in our cart", and the > >>>>>>>>> collegue > >>>>>>>>> can do so > >>>>>>>>> from a totally different computer. They can collaborate. > >>>>>>>>> > >>>>>>>>> If that latter example isn't needed, I'd store it in the > >>>>>>>>> session. > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: > >>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: > >>>>>>>>>> > >>>>>>>>>>> Hi all > >>>>>>>>>>> > >>>>>>>>>>> Anybody have any thoughts on *when* in shopping cart > >>>>>>>>>>> functionality it's > >>>>>>>>>>> best to add items as records to the database? > >>>>>>>>>>> > >>>>>>>>>>> My initial thinking is that it would make more sense to just > >>>>>>>>>>> keep items > >>>>>>>>>>> in Session Variable arrays and only add anything to the > >>>>>>>>>>> database at the time > >>>>>>>>>>> of Checkout -- to keep the DB from bulking up with > >>>>>>>>>>> unpurchased > >>>>>>>>>>> items left in > >>>>>>>>>>> the cart. But searching online, it seems that carts often > >>>>>>>>>>> add > >>>>>>>>>>> records to > >>>>>>>>>>> the database as soon as they go into the cart. (Might > >>>>>>>>>>> that be > >>>>>>>>>>> different > >>>>>>>>>>> when using MySQL as opposed to FMP?) > >>>>>>>>>>> > >>>>>>>>>>> FWIW - Users on this site will average 1-4 items per order. > >>>>>>>>>> > >>>>>>>>>> I tend to add them immediately - allows me to also re-show > >>>>>>>>>> previous not > >>>>>>>>>> actually purchased items on request further down the track... > >>>>>>>>>> > >>>>>>>>>> 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 > >>>>>>>> > >>>>>>>> _______________________________________________ > >>>>>>>> FX.php_List mailing list > >>>>>>>> FX.php_List@mail.iviking.org > >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> FX.php_List mailing list > >>>>>>> FX.php_List@mail.iviking.org > >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>>>>> > >>>>>> _______________________________________________ > >>>>>> FX.php_List mailing list > >>>>>> FX.php_List@mail.iviking.org > >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>>> > >>>>> _______________________________________________ > >>>>> FX.php_List mailing list > >>>>> FX.php_List@mail.iviking.org > >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>> > >>>> > >>>> _______________________________________________ > >>>> FX.php_List mailing list > >>>> FX.php_List@mail.iviking.org > >>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>> _______________________________________________ > >>>> FX.php_List mailing list > >>>> FX.php_List@mail.iviking.org > >>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>> > >>> _______________________________________________ > >>> FX.php_List mailing list > >>> FX.php_List@mail.iviking.org > >>> http://www.iviking.org/mailman/listinfo/fx.php_list > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > -| > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > ------------------------------ > > Message: 4 > Date: Fri, 31 Jul 2009 08:50:24 -0700 > From: Jonathan Schwartz > Subject: Re: [FX.php List] can only create 4 records before timeout > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset="us-ascii" ; format="flowed" > > How did that work out for you, David? > > Jonathan > -- > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > http://www.exit445.com > 415-370-5011 > > > ------------------------------ > > Message: 5 > Date: Sat, 1 Aug 2009 10:16:50 -0600 > From: Chris Hansen > Subject: Re: [FX.php List] can only create 4 records before timeout > To: "FX.php Discussion List" > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > David, > > Jonathan is right on track. Unstored calcs and summary fields > especially can add time. Be sure you ONLY have the fields on there > that you need. > > Another thought: you could create the records one at a time, but only > populate (and use a layout) with one or two fields, and then use > another layout with a portal to edit all of those records with a > single query. This may even be a situation where using a FileMaker > script (as opposed to doing everything with PHP) would make sense. > > Note that there are two keys here: > > 1) FileMaker does the work for all of the fields on any layout you > use, whether you do anything with the returned data or not; > > 2) There is a fair amount of overhead involved with informational XML > (header information, if you will) returned for each XML query, so the > fewer the queries the better (FYI, the FileMaker API for PHP uses an > even MORE verbose schema...) > > HTH > > --Chris > > On Jul 29, 2009, at 3:52 PM, Jonathan Schwartz wrote: > > > First things first. > > > > - Reduce layout fields to just those needed for this script. > > > > - increase timeout setting in php, either in ini or with an ini set > > command in the script. > > > > - Add some logging that tells you where the time is being spent. You > > have to log to a file instead if the screen because nothing gets > > written to the screen until the script finishes. And if the browser > > times out you get nada. > > > > Hth. > > > > > > > > Jonathan Schwartz > > Exit 445 Group > > 415-370-5011 > > > > On Jul 29, 2009, at 2:22 PM, Troy Meyers > > wrote: > > > >> David, > >> > >> If the layout you are referring to during creation has all 200 > >> fields (or even just more than you need), then I'd definitely try > >> your option (2.) first. Here I have many layouts for different > >> purposes, and putting only the fields needed to accomplish the > >> purpose makes great speed improvements. > >> > >> -Troy > >> > >> > >> > >>> I am using a loop to create records when they do not exist. As I > >>> stated > >>> yesterday, it only gets four records created before timeout. > >>> > >>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. FileMaker > >>> Server 7 > >>> is on an adjacent Win2K3 server and both are connected via a local > >>> gigabit switch and both are dual processors with adequate RAM. I am > >>> trying to find out what is causing the performance hit or latency > >>> issues. I can monitor both servers' processor & network %usage > >>> and it > >>> appears that the FM7 Server is doing some significant number > >>> crunching > >>> over the processor when I run the script. > >>> > >>> Should I try: > >>> > >>> 1. moving FileMaker Server onto the same hardware? > >>> > >>> 2. performing the FMNew() on a layout with just a few fields? > >>> > >>> 3. upgrading to a newer version of FileMaker Server? (is there any > >>> > >>> increase in performance in 9 or 10? I am certain FileMaker will tell > >>> me > >>> > >>> that I need to upgrade. However budget precludes that possibility > >>> for > >>> now) > >>> > >>> 4. reducing the number of fields and or relationships in the > >>> database? > >>> > >>> The table I am working in has over 200 fields. > >>> > >>> Any ideas? > >>> > >>> Thanks, > >>> > >>> David Cox > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/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 > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > End of FX.php_List Digest, Vol 61, Issue 1 > ****************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090806/1e7d0e5c/attachment-0001.html From ggt667 at gmail.com Thu Aug 6 12:05:30 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Aug 6 12:05:37 2009 Subject: [FX.php List] can only create 4 records before timeout In-Reply-To: References: Message-ID: One of the larger solutions I help support has its own web.fp7 file it only has 2 tables weblog and weberrors The weblog logs all actions of the webusers and barcode users. The weberrors logs every time an errorCode != 0 The rest of that file a layouts from other databases, instansciated in the web.fp7 graph. It helps speed to make one layout for each purpose xmlLogin xmlControlPanelUserData xmlControlPanelSignatureData xmlControlPanelIMData xmlForumMessage and so on The following 3: xmlControlPanelUserData, xmlControlPanelSignatureData, xmlControlPanelIMData would most likely be 3 layouts with different field selections from the same table. ggt667 2009/8/6 David Cox : > Jonathan, Chris, Leo, Gjermund and anyone else who helped me out: > > Your help has been immensely appreciated.? I was finally able to do what I > wanted without the timeout by creating a separate related table.? Now that I > am working with a much smaller related table, the script flies! > > What had me baffled is that the timeout still happened when using a layout > with only two or three fields.? All I can think is that there are a large > number of calculation fields in that table which derive data from other > relationships and/or other fields in the table.? Even though I was only > dealing with two or three fields on the layout, FileMaker must have still > been doing background work when the record was created. > > On a separate topic, Dale Bengston mentioned about storing form data into > the session and then writing it at a later point.? Although I use session > variables extensively, I've never thought of using the session as the > endpoint for the data storage as a virtual database and then committing it > to FileMaker in the background when it has the time.? If fully developed and > implemented, I think this concept has potential to make web apps fly, reduce > workload on FileMaker and turn FileMaker into a data repository which is > only accessed at initial login and on logout when the user is finished > making changes.? I can see how this would radically change the way php > interfaces with FileMaker but would also have many potential pitfalls.? One > would need to make sure that data is indeed written to the database and not > discarded by PHP if the user drops off.? It would also change the real time > interface of PHP with FileMaker - which for many purposes would not matter > as long as the data does make it back into FileMaker.? Another problem is > that one would not be able to take advantage of the FileMaker relational > capabilities - however FileMaker could be accessed as needed, but not as > much.? Am I getting a little carried away with this idea? > > @ Jonathan:? You mentioned about logging time information to a server file. > Do you have any sample scripts which I could refer to? > > > Thank you all for your help, > David Cox > > > > > > On Sat, Aug 1, 2009 at 12:16 PM, > 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: can only create 4 records before timeout >> ? ? ?(Gjermund Gusland Thorsen) >> ? 2. Re: can only create 4 records before timeout >> ? ? ?(Gjermund Gusland Thorsen) >> ? 3. Re: Shopping Carts - Keep in SessionVars or Add ? Recordsright >> ? ? ?away? (Dale Bengston) >> ? 4. Re: can only create 4 records before timeout (Jonathan Schwartz) >> ? 5. Re: can only create 4 records before timeout (Chris Hansen) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Thu, 30 Jul 2009 00:46:46 +0200 >> From: Gjermund Gusland Thorsen >> Subject: Re: [FX.php List] can only create 4 records before timeout >> To: "FX.php Discussion List" >> Message-ID: >> ? ? ? ? >> Content-Type: text/plain; charset=UTF-8 >> >> I name them xmlPurpose >> >> ggt >> >> 2009/7/30 Leo R. Lundgren : >> > I always use seperate layouts for FX/FMPHPAPI, containing only the >> > needed >> > fields without any extra candy. I suffix them with " | XML" but >> > otherwise >> > they're named the same as the "normal layouts", so that they're easy to >> > track. >> > >> > >> > 29 jul 2009 kl. 23.52 skrev Jonathan Schwartz: >> > >> >> First things first. >> >> >> >> - Reduce layout fields to just those needed for this script. >> >> >> >> - increase timeout setting in php, either in ini or with an ini set >> >> command in the script. >> >> >> >> - Add some logging that tells you where the time is being spent. You >> >> have >> >> to log to a file instead if the screen because nothing gets written to >> >> the >> >> screen until the script finishes. And if the browser times out you get >> >> nada. >> >> >> >> Hth. >> >> >> >> >> >> >> >> Jonathan Schwartz >> >> Exit 445 Group >> >> 415-370-5011 >> >> >> >> On Jul 29, 2009, at 2:22 PM, Troy Meyers >> >> wrote: >> >> >> >>> David, >> >>> >> >>> If the layout you are referring to during creation has all 200 fields >> >>> (or >> >>> even just more than you need), then I'd definitely try your option >> >>> (2.) >> >>> first. Here I have many layouts for different purposes, and putting >> >>> only the >> >>> fields needed to accomplish the purpose makes great speed >> >>> improvements. >> >>> >> >>> -Troy >> >>> >> >>> >> >>> >> >>>> I am using a loop to create records when they do not exist. ?As I >> >>>> stated >> >>>> yesterday, it only gets four records created before timeout. >> >>>> >> >>>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. ?FileMaker >> >>>> Server 7 >> >>>> is on an adjacent Win2K3 server and both are connected via a local >> >>>> gigabit switch and both are dual processors with adequate RAM. ?I am >> >>>> trying to find out what is causing the performance hit or latency >> >>>> issues. ?I can monitor both servers' processor & network %usage and >> >>>> it >> >>>> appears that the FM7 Server is doing some significant number >> >>>> crunching >> >>>> over the processor when I run the script. >> >>>> >> >>>> Should I try: >> >>>> >> >>>> 1. moving FileMaker Server onto the same hardware? >> >>>> >> >>>> 2. performing the FMNew() on a layout with just a few fields? >> >>>> >> >>>> 3. upgrading to a newer version of FileMaker Server? ?(is there any >> >>>> >> >>>> increase in performance in 9 or 10? I am certain FileMaker will tell >> >>>> me >> >>>> >> >>>> that I need to upgrade. ?However budget precludes that possibility >> >>>> for >> >>>> now) >> >>>> >> >>>> 4. reducing the number of fields and or relationships in the >> >>>> database? >> >>>> >> >>>> The table I am working in has over 200 fields. >> >>>> >> >>>> Any ideas? >> >>>> >> >>>> Thanks, >> >>>> >> >>>> David Cox >> >>> >> >>> _______________________________________________ >> >>> FX.php_List mailing list >> >>> FX.php_List@mail.iviking.org >> >>> http://www.iviking.org/mailman/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 >> > >> >> >> ------------------------------ >> >> Message: 2 >> Date: Thu, 30 Jul 2009 00:47:30 +0200 >> From: Gjermund Gusland Thorsen >> Subject: Re: [FX.php List] can only create 4 records before timeout >> To: "FX.php Discussion List" >> Message-ID: >> ? ? ? ? >> Content-Type: text/plain; charset=UTF-8 >> >> With FileMaker 5/6 i used the name of the php script that used that >> laoyut. >> >> ggt >> >> 2009/7/30 Gjermund Gusland Thorsen : >> > I name them xmlPurpose >> > >> > ggt >> > >> > 2009/7/30 Leo R. Lundgren : >> >> I always use seperate layouts for FX/FMPHPAPI, containing only the >> >> needed >> >> fields without any extra candy. I suffix them with " | XML" but >> >> otherwise >> >> they're named the same as the "normal layouts", so that they're easy to >> >> track. >> >> >> >> >> >> 29 jul 2009 kl. 23.52 skrev Jonathan Schwartz: >> >> >> >>> First things first. >> >>> >> >>> - Reduce layout fields to just those needed for this script. >> >>> >> >>> - increase timeout setting in php, either in ini or with an ini set >> >>> command in the script. >> >>> >> >>> >> >>> Hth. >> >>> >> >>> >> >>> >> >>> Jonathan Schwartz >> >>> Exit 445 Group >> >>> 415-370-5011 >> >>> >> >>> On Jul 29, 2009, at 2:22 PM, Troy Meyers >> >>> wrote: >> >>> >> >>>> David, >> >>>> >> >>>> If the layout you are referring to during creation has all 200 fields >> >>>> (or >> >>>> even just more than you need), then I'd definitely try your option >> >>>> (2.) >> >>>> first. Here I have many layouts for different purposes, and putting >> >>>> only the >> >>>> fields needed to accomplish the purpose makes great speed >> >>>> improvements. >> >>>> >> >>>> -Troy >> >>>> >> >>>> >> >>>> >> >>>>> I am using a loop to create records when they do not exist. ?As I >> >>>>> stated >> >>>>> yesterday, it only gets four records created before timeout. >> >>>>> >> >>>>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. ?FileMaker >> >>>>> Server 7 >> >>>>> is on an adjacent Win2K3 server and both are connected via a local >> >>>>> gigabit switch and both are dual processors with adequate RAM. ?I am >> >>>>> trying to find out what is causing the performance hit or latency >> >>>>> issues. ?I can monitor both servers' processor & network %usage and >> >>>>> it >> >>>>> appears that the FM7 Server is doing some significant number >> >>>>> crunching >> >>>>> over the processor when I run the script. >> >>>>> >> >>>>> Should I try: >> >>>>> >> >>>>> 1. moving FileMaker Server onto the same hardware? >> >>>>> >> >>>>> 2. performing the FMNew() on a layout with just a few fields? >> >>>>> >> >>>>> 3. upgrading to a newer version of FileMaker Server? ?(is there any >> >>>>> >> >>>>> increase in performance in 9 or 10? I am certain FileMaker will tell >> >>>>> me >> >>>>> >> >>>>> that I need to upgrade. ?However budget precludes that possibility >> >>>>> for >> >>>>> now) >> >>>>> >> >>>>> 4. reducing the number of fields and or relationships in the >> >>>>> database? >> >>>>> >> >>>>> The table I am working in has over 200 fields. >> >>>>> >> >>>>> Any ideas? >> >>>>> >> >>>>> Thanks, >> >>>>> >> >>>>> David Cox >> >>>> >> >>>> _______________________________________________ >> >>>> FX.php_List mailing list >> >>>> FX.php_List@mail.iviking.org >> >>>> http://www.iviking.org/mailman/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 >> >> >> > >> >> >> ------------------------------ >> >> Message: 3 >> Date: Wed, 29 Jul 2009 20:30:37 -0500 >> From: Dale Bengston >> Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars or Add >> ? ? ? ?Recordsright away? >> To: "FX.php Discussion List" >> Message-ID: <022784FF-351D-40D2-BF17-5B6477E0F7EA@tds.net> >> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; >> ? ? ? ?delsp=yes >> >> I would expect storage of form data in $_SESSION to be faster than >> storing it in FileMaker tables. Storing anything in memory is faster >> than writing it out, especially if your target for writing is >> FileMaker. The marginal speed trade-off of writing records is >> acceptable to me... especially since I rarely find myself writing to >> FileMaker any more. (Yes, I know. Sniff. Sniff.) >> >> Dale >> >> On Jul 29, 2009, at 2:58 PM, Leo R. Lundgren wrote: >> >> > There is definately a time difference. Unless I misunderstood what >> > you mean by session variables. >> > >> > If you just write thirty variables to the $_SESSION array, there >> > only overhead involved is the one when PHP seralizes the values into >> > the session storage, which by default is files under /tmp on the >> > webserver. But this is isn't noticable for low-traffic hosts. >> > >> > On the other hand, if you are to write your values to a table in >> > FileMaker, you have all the usual overhead involved with >> > communicating with said database. >> > >> > >> > 29 jul 2009 kl. 20.45 skrev Bob Patin: >> > >> >> Here's a question for GGT (or anyone else who may know this): is >> >> there any speed difference at all between writing 30 or so session >> >> variables versus writing 30 or so fields to 1 or more tables? >> >> >> >> For the sake of argument, let's say you're writing to two tables-- >> >> first is the temp order table, 2nd is the lineitems table. >> >> >> >> Is the difference in time involved negligible? >> >> >> >> Best, >> >> >> >> 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 Jul 29, 2009, at 12:43 PM, Joel Shapiro wrote: >> >> >> >>> Don't know how long this thread may keep going, but let me put in >> >>> my "Thanks Everybody" here & now: >> >>> >> >>> Thanks Everybody >> >>> >> >>> Best, >> >>> -Joel >> >>> >> >>> ~~~~~~~~~~~~~~~~~~~~~~~ >> >>> Joel Shapiro >> >>> FileMaker Pro >> >>> database & web design >> >>> http://www.jsfmp.com >> >>> 415-269-5055 >> >>> ~~~~~~~~~~~~~~~~~~~~~~~ >> >>> >> >>> >> >>> On Jul 29, 2009, at 9:43 AM, VanBuskirk, Patricia wrote: >> >>> >> >>>> As a frequent online shopper, I like this idea. ?I had over $100 of >> >>>> merch in my cart at Khols online, accumulated throughout the day, >> >>>> and I >> >>>> went away from my pc for a couple of hours to come back to an empty >> >>>> cart. ?I did not try to re-shop, so they lost the business. >> >>>> >> >>>> >> >>>> -----Original Message----- >> >>>> From: fx.php_list-bounces@mail.iviking.org >> >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale >> >>>> Bengston >> >>>> Sent: Wednesday, July 29, 2009 12:37 PM >> >>>> To: FX.php Discussion List >> >>>> Subject: Re: [FX.php List] Shopping Carts - Keep in SessionVars >> >>>> or Add >> >>>> Recordsright away? >> >>>> >> >>>> I agree that this is a client business rule, but there is very >> >>>> little >> >>>> penalty for saving records to a table, and keeping them as a status >> >>>> that is suppressed by the client-server UI. I am doing this for an >> >>>> order site. In my opinion, saving records also makes it easier to >> >>>> retrieve a shopping cart if the user quits and relaunches, or in >> >>>> another typical, natural way destroys their session. >> >>>> >> >>>> Dale >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> Dale Bengston >> >>>> Streamline Studio, LLC >> >>>> www.streamline-studio.com >> >>>> >> >>>> On Jul 29, 2009, at 10:46 AM, Bob Patin wrote: >> >>>> >> >>>>> For one client it was a half-hour; this wasn't a cart per se, >> >>>>> but a >> >>>>> registration site. The issue for the client was to make sure that >> >>>>> everyone who completed the process was definitely sent an email >> >>>>> confirmation; eventually the other programmer in this project (I >> >>>>> was >> >>>>> a sub-contractor on this) decided to write a script, and trigger >> >>>>> it >> >>>>> every 60 seconds. It looks for abandoned registrations, and if >> >>>>> it's >> >>>>> been more than a half-hour, deletes the temp record. If not, it >> >>>>> confirms that there's a credit card payment auth code and if so, >> >>>>> it >> >>>>> sends the confirmation email. >> >>>>> >> >>>>> I don't use scripts much at all in web apps, but this was what the >> >>>>> other consultant wanted, and it does work pretty well with >> >>>>> scheduled >> >>>>> script-triggering from Server 10. >> >>>>> >> >>>>> For this app we use a temp table, but for a smaller app on the >> >>>>> same >> >>>>> site, where people are signing up for meetings, I store everything >> >>>>> in session variables until the end because there's not much to >> >>>>> keep >> >>>>> track of... >> >>>>> >> >>>>> BP >> >>>>> >> >>>>> Bob Patin >> >>>>> Longterm Solutions LLC >> >>>>> bob@longtermsolutions.com >> >>>>> 615-333-6858 >> >>>>> http://www.longtermsolutions.com >> >>>>> Twitter: bobpatin >> >>>>> iChat/AIM: bobpatin >> >>>>> FileMaker 10 Certified Developer >> >>>>> Member of FileMaker Business Alliance & TechNet >> >>>>> -------------------------- >> >>>>> FileMaker hosting and consulting for all versions of FileMaker >> >>>>> PHP * jQuery * ExpressionEngine >> >>>>> Full email services * Free DNS hosting * Colocation * Consulting >> >>>>> >> >>>>> >> >>>>> On Jul 29, 2009, at 3:49 AM, Gjermund Gusland Thorsen wrote: >> >>>>> >> >>>>>> What are your criterias for deleting the carts not owned by >> >>>>>> anybody? >> >>>>>> >> >>>>>> ggt >> >>>>>> >> >>>>>> 2009/7/29 Head Honcho : >> >>>>>>> Hi Joel, >> >>>>>>> >> >>>>>>> I record them immediately, and run a script weekly to "delete" >> >>>>>>> non >> >>>>>>> purchased >> >>>>>>> orders. >> >>>>>>> >> >>>>>>> It also helps in the reporting to see what people have started >> >>>>>>> ordering and >> >>>>>>> then dropped out, so to speak. >> >>>>>>> >> >>>>>>> As Webko said, this also allows for "pausing" an order and >> >>>>>>> resuming it >> >>>>>>> later. >> >>>>>>> >> >>>>>>> HTH. >> >>>>>>> >> >>>>>>> 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 >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> On 29/07/2009, at 9:24 AM, Joel Shapiro wrote: >> >>>>>>> >> >>>>>>>> Thanks Leo >> >>>>>>>> >> >>>>>>>> That's what I'd been thinking. >> >>>>>>>> >> >>>>>>>> It's good to see what different people are doing... >> >>>>>>>> >> >>>>>>>> -Joel >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> On Jul 28, 2009, at 4:18 PM, Leo R. Lundgren wrote: >> >>>>>>>> >> >>>>>>>>> Yeah there's really a question of what features you want. >> >>>>>>>>> >> >>>>>>>>> The basic approach is to keep the cart in the session as >> >>>>>>>>> session >> >>>>>>>>> variables. There's really no need to put it all in the >> >>>>>>>>> database, >> >>>>>>>>> use the >> >>>>>>>>> session for what it's worth instead :) >> >>>>>>>>> >> >>>>>>>>> BUT, keeping the cart inside the DB will allow for certain >> >>>>>>>>> things, such >> >>>>>>>>> as the client can put some stuff in the cart, mail his >> >>>>>>>>> collegue, >> >>>>>>>>> and tell >> >>>>>>>>> him "hey, look at the stuff I put in our cart", and the >> >>>>>>>>> collegue >> >>>>>>>>> can do so >> >>>>>>>>> from a totally different computer. They can collaborate. >> >>>>>>>>> >> >>>>>>>>> If that latter example isn't needed, I'd store it in the >> >>>>>>>>> session. >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> 29 jul 2009 kl. 01.14 skrev Tim 'Webko' Booth: >> >>>>>>>>> >> >>>>>>>>>> >> >>>>>>>>>> On 29/07/2009, at 9:11 AM, Joel Shapiro wrote: >> >>>>>>>>>> >> >>>>>>>>>>> Hi all >> >>>>>>>>>>> >> >>>>>>>>>>> Anybody have any thoughts on *when* in shopping cart >> >>>>>>>>>>> functionality it's >> >>>>>>>>>>> best to add items as records to the database? >> >>>>>>>>>>> >> >>>>>>>>>>> My initial thinking is that it would make more sense to just >> >>>>>>>>>>> keep items >> >>>>>>>>>>> in Session Variable arrays and only add anything to the >> >>>>>>>>>>> database at the time >> >>>>>>>>>>> of Checkout -- to keep the DB from bulking up with >> >>>>>>>>>>> unpurchased >> >>>>>>>>>>> items left in >> >>>>>>>>>>> the cart. ?But searching online, it seems that carts often >> >>>>>>>>>>> add >> >>>>>>>>>>> records to >> >>>>>>>>>>> the database as soon as they go into the cart. ?(Might >> >>>>>>>>>>> that be >> >>>>>>>>>>> different >> >>>>>>>>>>> when using MySQL as opposed to FMP?) >> >>>>>>>>>>> >> >>>>>>>>>>> FWIW - Users on this site will average 1-4 items per order. >> >>>>>>>>>> >> >>>>>>>>>> I tend to add them immediately - allows me to also re-show >> >>>>>>>>>> previous not >> >>>>>>>>>> actually purchased items on request further down the track... >> >>>>>>>>>> >> >>>>>>>>>> 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 >> >>>>>>>> >> >>>>>>>> _______________________________________________ >> >>>>>>>> FX.php_List mailing list >> >>>>>>>> FX.php_List@mail.iviking.org >> >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >>>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> _______________________________________________ >> >>>>>>> FX.php_List mailing list >> >>>>>>> FX.php_List@mail.iviking.org >> >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >>>>>>> >> >>>>>> _______________________________________________ >> >>>>>> FX.php_List mailing list >> >>>>>> FX.php_List@mail.iviking.org >> >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >>>>> >> >>>>> _______________________________________________ >> >>>>> FX.php_List mailing list >> >>>>> FX.php_List@mail.iviking.org >> >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >>>> >> >>>> >> >>>> _______________________________________________ >> >>>> FX.php_List mailing list >> >>>> FX.php_List@mail.iviking.org >> >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >>>> _______________________________________________ >> >>>> FX.php_List mailing list >> >>>> FX.php_List@mail.iviking.org >> >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >>> >> >>> _______________________________________________ >> >>> FX.php_List mailing list >> >>> FX.php_List@mail.iviking.org >> >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > >> > >> > -| >> > >> > _______________________________________________ >> > FX.php_List mailing list >> > FX.php_List@mail.iviking.org >> > http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> ------------------------------ >> >> Message: 4 >> Date: Fri, 31 Jul 2009 08:50:24 -0700 >> From: Jonathan Schwartz >> Subject: Re: [FX.php List] can only create 4 records before timeout >> To: "FX.php Discussion List" >> Message-ID: >> Content-Type: text/plain; charset="us-ascii" ; format="flowed" >> >> How did that work out for you, ?David? >> >> Jonathan >> -- >> Jonathan Schwartz >> Exit 445 Group >> jonathan@exit445.com >> http://www.exit445.com >> 415-370-5011 >> >> >> ------------------------------ >> >> Message: 5 >> Date: Sat, 1 Aug 2009 10:16:50 -0600 >> From: Chris Hansen >> Subject: Re: [FX.php List] can only create 4 records before timeout >> To: "FX.php Discussion List" >> Message-ID: >> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes >> >> David, >> >> Jonathan is right on track. ?Unstored calcs and summary fields >> especially can add time. ?Be sure you ONLY have the fields on there >> that you need. >> >> Another thought: you could create the records one at a time, but only >> populate (and use a layout) with one or two fields, and then use >> another layout with a portal to edit all of those records with a >> single query. ?This may even be a situation where using a FileMaker >> script (as opposed to doing everything with PHP) would make sense. >> >> Note that there are two keys here: >> >> 1) FileMaker does the work for all of the fields on any layout you >> use, whether you do anything with the returned data or not; >> >> 2) There is a fair amount of overhead involved with informational XML >> (header information, if you will) returned for each XML query, so the >> fewer the queries the better (FYI, the FileMaker API for PHP uses an >> even MORE verbose schema...) >> >> HTH >> >> --Chris >> >> On Jul 29, 2009, at 3:52 PM, Jonathan Schwartz wrote: >> >> > First things first. >> > >> > - Reduce layout fields to just those needed for this script. >> > >> > - increase timeout setting in php, either in ini or with an ini set >> > command in the script. >> > >> > - Add some logging that tells you where the time is being spent. You >> > have to log to a file instead if the screen because nothing gets >> > written to the screen until the script finishes. And if the browser >> > times out you get nada. >> > >> > Hth. >> > >> > >> > >> > Jonathan Schwartz >> > Exit 445 Group >> > 415-370-5011 >> > >> > On Jul 29, 2009, at 2:22 PM, Troy Meyers >> > wrote: >> > >> >> David, >> >> >> >> If the layout you are referring to during creation has all 200 >> >> fields (or even just more than you need), then I'd definitely try >> >> your option (2.) first. Here I have many layouts for different >> >> purposes, and putting only the fields needed to accomplish the >> >> purpose makes great speed improvements. >> >> >> >> -Troy >> >> >> >> >> >> >> >>> I am using a loop to create records when they do not exist. ?As I >> >>> stated >> >>> yesterday, it only gets four records created before timeout. >> >>> >> >>> IIS 6 & the FM7 WPE is on a dedicated Win2K3 server. ?FileMaker >> >>> Server 7 >> >>> is on an adjacent Win2K3 server and both are connected via a local >> >>> gigabit switch and both are dual processors with adequate RAM. ?I am >> >>> trying to find out what is causing the performance hit or latency >> >>> issues. ?I can monitor both servers' processor & network %usage >> >>> and it >> >>> appears that the FM7 Server is doing some significant number >> >>> crunching >> >>> over the processor when I run the script. >> >>> >> >>> Should I try: >> >>> >> >>> 1. moving FileMaker Server onto the same hardware? >> >>> >> >>> 2. performing the FMNew() on a layout with just a few fields? >> >>> >> >>> 3. upgrading to a newer version of FileMaker Server? ?(is there any >> >>> >> >>> increase in performance in 9 or 10? I am certain FileMaker will tell >> >>> me >> >>> >> >>> that I need to upgrade. ?However budget precludes that possibility >> >>> for >> >>> now) >> >>> >> >>> 4. reducing the number of fields and or relationships in the >> >>> database? >> >>> >> >>> The table I am working in has over 200 fields. >> >>> >> >>> Any ideas? >> >>> >> >>> Thanks, >> >>> >> >>> David Cox >> >> >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/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 >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> End of FX.php_List Digest, Vol 61, Issue 1 >> ****************************************** > > > _______________________________________________ > 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 Aug 6 19:19:23 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Aug 6 19:19:29 2009 Subject: [FX.php List] [OFF] Luhn validation for Credit Card? Message-ID: <5F1BAE1B-DA2C-41BC-8E6D-98B7C73AD14C@earthlink.net> Hi all I've inherited a project that validates a basic credit card number within FMP using the Luhn algorithm ("The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers..." http://en.wikipedia.org/wiki/Luhn_algorithm ) I'd rather check this in the PHP before submission to FMP. Googling brings up many PHP code options, but I wanted to check if anyone here has one that they've used and like. (Note, in this project the client manually processes all credit card orders after they come into FMP. They just want to weed out definitely-fake cc #s) TIA, -Joel From jschwartz at exit445.com Thu Aug 6 19:45:24 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Aug 6 19:47:29 2009 Subject: [FX.php List] [OFF] Luhn validation for Credit Card? In-Reply-To: <5F1BAE1B-DA2C-41BC-8E6D-98B7C73AD14C@earthlink.net> References: <5F1BAE1B-DA2C-41BC-8E6D-98B7C73AD14C@earthlink.net> Message-ID: Hey Joel, I'll email the script that I use. J At 6:19 PM -0700 8/6/09, Joel Shapiro wrote: >Hi all > >I've inherited a project that validates a basic credit card number >within FMP using the Luhn algorithm > >("The Luhn algorithm or Luhn formula, also known as the "modulus 10" >or "mod 10" algorithm, is a simple checksum formula used to validate >a variety of identification numbers, such as credit card numbers..." >http://en.wikipedia.org/wiki/Luhn_algorithm ) > >I'd rather check this in the PHP before submission to FMP. > >Googling brings up many PHP code options, but I wanted to check if >anyone here has one that they've used and like. > >(Note, in this project the client manually processes all credit card >orders after they come into FMP. They just want to weed out >definitely-fake cc #s) > >TIA, >-Joel >_______________________________________________ >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 headhoncho at customikesolutions.com Thu Aug 6 23:49:58 2009 From: headhoncho at customikesolutions.com (Head Honcho) Date: Thu Aug 6 23:50:06 2009 Subject: [FX.php List] [OFF] Luhn validation for Credit Card? In-Reply-To: <5F1BAE1B-DA2C-41BC-8E6D-98B7C73AD14C@earthlink.net> References: <5F1BAE1B-DA2C-41BC-8E6D-98B7C73AD14C@earthlink.net> Message-ID: <4172D9F4-D953-44C4-BF5B-0F8787DA7CDD@customikesolutions.com> Hi Joel, On 07/08/2009, at 11:19 AM, Joel Shapiro wrote: > Hi all > > I've inherited a project that validates a basic credit card number > within FMP using the Luhn algorithm > > ("The Luhn algorithm or Luhn formula, also known as the "modulus 10" > or "mod 10" algorithm, is a simple checksum formula used to validate > a variety of identification numbers, such as credit card numbers..." > http://en.wikipedia.org/wiki/Luhn_algorithm ) > > I'd rather check this in the PHP before submission to FMP. I check this with javascript before it gets sent to the server. I also have a php check script if jonathan's doesn't suffice. HTH. 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 Fri Aug 7 08:10:00 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Aug 7 08:12:36 2009 Subject: [FX.php List] [OFF] Luhn validation for Credit Card? In-Reply-To: <4172D9F4-D953-44C4-BF5B-0F8787DA7CDD@customikesolutions.com> References: <5F1BAE1B-DA2C-41BC-8E6D-98B7C73AD14C@earthlink.net> <4172D9F4-D953-44C4-BF5B-0F8787DA7CDD@customikesolutions.com> Message-ID: Question for Michael... It is said that you can not rely on javascript working 100% of the time. Do you agree? If so, do you have a backup for dealing with that event...such as running a php script instead, for instance? Thx Jonathan At 3:49 PM +1000 8/7/09, Head Honcho wrote: >Hi Joel, > >On 07/08/2009, at 11:19 AM, Joel Shapiro wrote: > >>Hi all >> >>I've inherited a project that validates a basic credit card number >>within FMP using the Luhn algorithm >> >>("The Luhn algorithm or Luhn formula, also known as the "modulus >>10" or "mod 10" algorithm, is a simple checksum formula used to >>validate a variety of identification numbers, such as credit card >>numbers..." >>http://en.wikipedia.org/wiki/Luhn_algorithm ) >> >>I'd rather check this in the PHP before submission to FMP. > >I check this with javascript before it gets sent to the server. I >also have a php check script if jonathan's doesn't suffice. > >HTH. > >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 -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 From jsfmp at earthlink.net Fri Aug 7 11:21:11 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Aug 7 11:21:17 2009 Subject: [FX.php List] [OFF] Luhn validation for Credit Card? In-Reply-To: References: <5F1BAE1B-DA2C-41BC-8E6D-98B7C73AD14C@earthlink.net> <4172D9F4-D953-44C4-BF5B-0F8787DA7CDD@customikesolutions.com> Message-ID: <9EB649D1-A8EE-4724-AC39-2910202DEBF9@earthlink.net> Thanks Jonathan and Michael I'm not Michael, but... It's possible for anyone to disable JavaScript on her/his browser, and people on this list have stated that some large corporations or institutions disable JavaScript on all their users' workstations. Whenever I use JavaScript for any kind of form validation I still do the same checks a second time in PHP. JavaScript can be nice because, being client-side, it's immediate for the user. PHP, being server-side, happens after form-submission but is important because it can never be circumvented by the user. -Joel On Aug 7, 2009, at 7:10 AM, Jonathan Schwartz wrote: > Question for Michael... > > It is said that you can not rely on javascript working 100% of the > time. Do you agree? If so, do you have a backup for dealing with > that event...such as running a php script instead, for instance? > > Thx > > Jonathan > > At 3:49 PM +1000 8/7/09, Head Honcho wrote: >> Hi Joel, >> >> On 07/08/2009, at 11:19 AM, Joel Shapiro wrote: >> >>> Hi all >>> >>> I've inherited a project that validates a basic credit card >>> number within FMP using the Luhn algorithm >>> >>> ("The Luhn algorithm or Luhn formula, also known as the "modulus >>> 10" or "mod 10" algorithm, is a simple checksum formula used to >>> validate a variety of identification numbers, such as credit card >>> numbers..." >>> http://en.wikipedia.org/wiki/Luhn_algorithm ) >>> >>> I'd rather check this in the PHP before submission to FMP. >> >> I check this with javascript before it gets sent to the server. I >> also have a php check script if jonathan's doesn't suffice. >> >> HTH. >> >> 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 > > > -- > 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 dness at bondedbuilders.com Wed Aug 12 14:15:39 2009 From: dness at bondedbuilders.com (David Ness) Date: Wed Aug 12 14:15:46 2009 Subject: [FX.php List] DevCon Activities? In-Reply-To: <9EB649D1-A8EE-4724-AC39-2910202DEBF9@earthlink.net> References: <9EB649D1-A8EE-4724-AC39-2910202DEBF9@earthlink.net> Message-ID: So, did I miss any final decisions? What are the DEVCON activities that this fxPHP group has organized that I wouldn't want to miss? David Allen Ness Database Systems Programmer Web Applications Developer From andy at fmpug.com Wed Aug 12 14:40:02 2009 From: andy at fmpug.com (Andy Gaunt) Date: Wed Aug 12 14:40:10 2009 Subject: [FX.php List] DevCon Activities? In-Reply-To: References: <9EB649D1-A8EE-4724-AC39-2910202DEBF9@earthlink.net> Message-ID: <4EE8B974-3347-4E0A-82FA-A962FEAF3B33@fmpug.com> David, Check out http://fmpug.com/devcon/uncons.php for this and other unconference sessions Cheers and have a great DevCon Andy Gaunt T: 321-206-3658 andy@fmpug.com http://www.fmpug.com FMPug.com: A Developer's best Friend! Follow us today at http://twitter.com/fmpug FindFileMakerDevelopers.com - The #1 listings engine for FileMaker Professionals Follow us today at http://twitter.com/findfmdevs On Aug 12, 2009, at 4:15 PM, David Ness wrote: > So, did I miss any final decisions? What are the DEVCON activities > that > this fxPHP group has organized that I wouldn't want to miss? > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090812/63aa0580/attachment-0001.html From dness at bondedbuilders.com Wed Aug 12 14:50:08 2009 From: dness at bondedbuilders.com (David Ness) Date: Wed Aug 12 14:50:12 2009 Subject: [FX.php List] DevCon Activities? In-Reply-To: <4EE8B974-3347-4E0A-82FA-A962FEAF3B33@fmpug.com> References: <9EB649D1-A8EE-4724-AC39-2910202DEBF9@earthlink.net> <4EE8B974-3347-4E0A-82FA-A962FEAF3B33@fmpug.com> Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 12953 bytes Desc: image001.gif Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090812/9e6c0448/attachment-0001.gif From steve at bluecrocodile.co.nz Wed Aug 12 22:48:25 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Aug 12 22:48:35 2009 Subject: [FX.php List] DevCon Activities? In-Reply-To: References: <9EB649D1-A8EE-4724-AC39-2910202DEBF9@earthlink.net> Message-ID: Hi David, I'm going to be at the 4pm session tomorrow, doing a little bit of show and tell, and I don't think I'm included in the 6 'yeses' on the FMPug list, so that's another warm body there :-) Cheers Steve On 12 Aug 2009, at 13:15, David Ness wrote: > So, did I miss any final decisions? What are the DEVCON activities > that > this fxPHP group has organized that I wouldn't want to miss? > > > David Allen Ness > Database Systems Programmer > Web Applications Developer > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list 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/20090812/4e5184e8/attachment.html From ernest.cunningham at gmail.com Thu Aug 13 02:15:27 2009 From: ernest.cunningham at gmail.com (Ernest Cunningham) Date: Thu Aug 13 02:15:39 2009 Subject: [FX.php List] DevCon Activities? In-Reply-To: References: <9EB649D1-A8EE-4724-AC39-2910202DEBF9@earthlink.net> Message-ID: Make sure you all check out the new Reactor Plugin from Digital Fusion @ DevCon this week and say Hi to all the Kiwi's there. Amongst them will of course be the Digital Fusion team (my old workplace) and Aaron from Particle Systems, makers of Streamtime. Kind regards, Ernest Cunningham __________________________________________________________ FileMaker Database and iPhone Software Developer Nelson, New Zealand Ernest Cunningham Mobile: +64-21-40 66 75 Web Site: www.ging.co.nz __________________________________________________________ On 13/08/2009, at 4:48 PM, Steve Winter wrote: > Hi David, > > I'm going to be at the 4pm session tomorrow, doing a little bit of > show and tell, and I don't think I'm included in the 6 'yeses' on > the FMPug list, so that's another warm body there :-) > > Cheers > Steve > > > On 12 Aug 2009, at 13:15, David Ness wrote: > >> So, did I miss any final decisions? What are the DEVCON activities >> that >> this fxPHP group has organized that I wouldn't want to miss? >> >> >> David Allen Ness >> Database Systems Programmer >> Web Applications Developer >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > 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/20090813/d260b852/attachment.html From jsfmp at earthlink.net Tue Aug 18 00:56:52 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Aug 18 00:57:00 2009 Subject: [FX.php List] [OFF] CodeWorks - php|architect? Message-ID: <70135172-1124-45C6-B8A6-5BE2BE152302@earthlink.net> Hi all Does anybody have any thoughts about php|architect magazine and/or their CodeWorks conference? (is php|architect a worthwhile/ respectable mag?) http://cw.mtacon.com/ TIA, -Joel p.s. It was great seeing those of you who came to DevCon From andersm at alamark.com Tue Aug 18 07:37:43 2009 From: andersm at alamark.com (Anders Monsen) Date: Tue Aug 18 07:37:50 2009 Subject: [FX.php List] [OFF] CodeWorks - php|architect? In-Reply-To: <70135172-1124-45C6-B8A6-5BE2BE152302@earthlink.net> References: <70135172-1124-45C6-B8A6-5BE2BE152302@earthlink.net> Message-ID: I've read a few issues. I know Jonathan Stark has written some stuff there in the past about FileMaker and PHP. Been a while though since I've read an issue, but they did have interesting articles. -- Anders On Aug 18, 2009, at 1:56 AM, Joel Shapiro wrote: > Hi all > > Does anybody have any thoughts about php|architect magazine and/or > their CodeWorks conference? (is php|architect a worthwhile/ > respectable mag?) > http://cw.mtacon.com/ > > TIA, > -Joel > > p.s. It was great seeing those of you who came to DevCon > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From jschwartz at exit445.com Tue Aug 18 08:05:40 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Tue Aug 18 08:10:43 2009 Subject: [FX.php List] [OFF] CodeWorks - php|architect? In-Reply-To: <70135172-1124-45C6-B8A6-5BE2BE152302@earthlink.net> References: <70135172-1124-45C6-B8A6-5BE2BE152302@earthlink.net> Message-ID: Hi Joel, I subscribe. The articles seem to be dealing with an environment far from our own. Alot of Zend, framework, enterprise focus. Call me for more details. J At 11:56 PM -0700 8/17/09, Joel Shapiro wrote: >Hi all > >Does anybody have any thoughts about php|architect magazine and/or >their CodeWorks conference? (is php|architect a >worthwhile/respectable mag?) >http://cw.mtacon.com/ > >TIA, >-Joel > >p.s. It was great seeing those of you who came to DevCon >_______________________________________________ >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 jsfmp at earthlink.net Tue Aug 18 12:32:30 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Aug 18 12:32:34 2009 Subject: [FX.php List] [OFF] CodeWorks - php|architect? In-Reply-To: References: <70135172-1124-45C6-B8A6-5BE2BE152302@earthlink.net> Message-ID: <473F31EB-D3C7-4EEF-97D2-0462AD26FB1C@earthlink.net> Thanks Anders and Jonathan If I go to the conference and get any really great tips maybe I'll share some here ;-) -Joel On Aug 18, 2009, at 6:37 AM, Anders Monsen wrote: > I've read a few issues. I know Jonathan Stark has written some > stuff there in the past about FileMaker and PHP. Been a while > though since I've read an issue, but they did have interesting > articles. > > -- > Anders > > > On Aug 18, 2009, at 1:56 AM, Joel Shapiro wrote: > >> Hi all >> >> Does anybody have any thoughts about php|architect magazine and/or >> their CodeWorks conference? (is php|architect a worthwhile/ >> respectable mag?) >> http://cw.mtacon.com/ >> >> TIA, >> -Joel From ggt667 at gmail.com Tue Aug 18 18:12:35 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Tue Aug 18 18:12:39 2009 Subject: [FX.php List] 956 Maximum number of database sessions exceeded error message In-Reply-To: References: Message-ID: I too have this problem now, however, I see no other reason than a bug or this number probably being the wrong errorcode? ggt 2008/11/17 Gjermund Gusland Thorsen : > I see those problems on FMS9.0A too, > but the same errors are no on the same amount of traffic on the 8.0v4r2 > > ggt667 > > 2008/11/17 Tony White : >> Hi All, >> >> Posted this on FileMaker Techtalk a few days ago and did not get a response. >> Hoping that there is someone here who has a thought on how to fix... >> >> Client is running FileMaker Server Advanced 9.0v3 on an xServe running >> 10.4.10 and getting the message "956 Maximum number of database sessions >> exceeded (returned only by web-published databases)" >> >> Client has gotten this message with increasing frequency and on testing was >> not able to connect at a low usage time of day. >> >> [begin excerpt] >> There is a problem with the FMPRO web client. The Web Client said: Error >> Code 956 occurred on page index.php on Tue, 11 Nov 2008 12:40:12 -0500 for >> ClientsDatabase.fp7, login. >> [end excerpt] >> >> The web publishing is set to allow 100 connections and there are probably 2 >> or 3 real connections at a time. >> >> Running fx.php latest version. >> >> The entire web publishing machine was restarted 1.5 weeks ago. >> >> The web publishing and the FileMaker serving is from the same machine. >> >> The web publishing was working fine for more than 6 months and there have >> been no changes to the hardware or software. >> >> I did not find a resolution to the 956 error in my archives of various >> listServe emails or through Google serve. >> >> Thanks in advance for any suggestions. >> >> All the best, >> >> >> Tony White >> >> Tony White Designs, Inc. >> 118 Remsen Street >> Brooklyn, NY ?11201 >> Tel: 718-797-4175 >> tony_white@twdesigns.com >> http://www.twdesigns.com >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> > From ggt667 at gmail.com Wed Aug 19 00:29:15 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Aug 19 00:29:21 2009 Subject: [FX.php List] Monitoring FM Server 9/10 Advance In-Reply-To: References: <55D3C589-8925-44BB-A379-9839099E5E4D@bluecrocodile.co.nz> Message-ID: I installed FMS10A yesterday and have the following to report on this 956 error This query works: http://127.0.0.1/fmi/xml/FMPXMLRESULT.xml?-dbnames However doing a query where layout is specified gives me 956 error. Did anyone solve this? Is there some new casesensitivity stuff for layout naming? ggt 2009/2/6 John Funk : > Thanks Steve. > I found out that my client wants the MYSQL type data collections where there > is an actual table for server stats. I may end up building a PHP/MySql data > collector and let his third party monitoring app read the tables. Thos IT > guys are really a pain sometimes.... > Thanks for the discussion. > John Funk > > > On 2/5/09 5:28 PM, "Steve Winter" wrote: > > Hi John, > > Here's an example of what I do 'inline'... with the first db call that will > be made to any particular solution... > > Cheers > Steve > > ??$productQuery = new FX($serverIP, $serverPort, $dataSourceType); > ??$productQuery->SetDBUserPass($webUN, $webPW); > ??$productQuery->SetDBData("schedules", "productAreas"); > ??$productQuery->AddSortParam('productSortOrder', 'ascend'); > ??$productQuery->AddDBParam('productAreaDisplay','no','neq'); > ??$productData = $productQuery->FMFind(); > > ??if(isset($productData) && is_array($productData) && > isset($productData['data'])) { > > // do the regular stuff > > ??else { > ?$errorData = $productData; > ??include('assets/includes/errorReporter.php'); > ??} > > Then errorReporter.php says; > > > //display user message > echo '

An error has occured

' . > ?????'

An error has occured conneecting to the host database. The site > administrator has been notified. Please try your query again at a later > time.

' . > ?????'

We apologise for this inconvienience
The '.$siteName.' web > team

'; > > > > > > ???// send me an email > > ??require_once('assets/includes/phpMailer/mailer.php'); > ??$staffMailer = new Mailer(); > ??$staffMailer->Subject = $sitename.' site error'; > ??$staffMailer->FromName = $sitename; > ??$staffMailer->From = 'database@matatirosolutions.co.uk'; > ??$staffMailer->Body = '

The '.$sitename.' site is currently reporting an > error

>

The error data is '.showMe($errorData).'

; > ??$staffMailer->isHTML(true); > ??$staffMailer->AddAddress('steve@matatirosolutions.co.uk', 'Steve Winter'); > ??if(!$staffMailer->Send()) $mailError = 'error'; > ??$staffMailer->ClearAddresses(); > ??$staffMailer->ClearAttachments(); > > On 5 Feb 2009, at 23:16, John Funk wrote: > > Thanks Steve, > ?I will check the email on the server part. I do not know if this gives the > detail my customer wants. I may end up reading the FMSA log files(s) > ?A sample PHP script would be nice to see. > ?Thanks again > ?John > > > ?On 2/5/09 5:03 PM, "Steve Winter" wrote: > > > > Hi John, > > ?FMS itself can send automated emails when it detects any issue with the > server situation... > > ?The other thing that I've done is to write a simple php script, which is > then run on a win2k3 server scheduled task every 5 min which attempts to do > a findAny() using fx on a series of database tables which should be > accessible... if it fails on any of those, then that PHP script sends me an > email with the name of the table in the message... I also have similar code > in all of the web solutions I develop such that if a user ever attempts to > connect to a db and that call fails then I get an email which tells me > that... > > ?All of the above email go into an account which my mobile phone also > monitors so that I get notification almost in real time by email and alert > on my mobile... > > ?Hope this helps... if you want code examples let me know... > > ?Cheers > ?Steve > > > ?On 5 Feb 2009, at 22:56, criticalsolution@comcast.net wrote: > > > > Has anybody written or used any kind of script or app to monitor FMSA 9 or > 10? My client wants a pro-acitive solution to tell tech support when there > is trouble (or not) on an FMServer. I thought that there might be some ways > to do this in FX/PHP? > > ?Thank you, > > ?John Funk > ?Critical Solution > ?_______________________________________________ > ?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 > > > > 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 ggt667 at gmail.com Wed Aug 19 00:35:04 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Aug 19 00:35:09 2009 Subject: [FX.php List] Monitoring FM Server 9/10 Advance In-Reply-To: References: <55D3C589-8925-44BB-A379-9839099E5E4D@bluecrocodile.co.nz> Message-ID: http://127.0.0.1:80/fmi/xml/FMPXMLRESULT.xml?-db=Customer&-layoutnames returns 956 As soon as layouts are involved something weird is happening with my FMS10A install. ggt 2009/8/19 Gjermund Gusland Thorsen : > I installed FMS10A yesterday and have the following to report on this 956 error > > This query works: http://127.0.0.1/fmi/xml/FMPXMLRESULT.xml?-dbnames > > However doing a query where layout is specified gives me 956 error. > > Did anyone solve this? Is there some new casesensitivity stuff for > layout naming? > > ggt > > > 2009/2/6 John Funk : >> Thanks Steve. >> I found out that my client wants the MYSQL type data collections where there >> is an actual table for server stats. I may end up building a PHP/MySql data >> collector and let his third party monitoring app read the tables. Thos IT >> guys are really a pain sometimes.... >> Thanks for the discussion. >> John Funk >> >> >> On 2/5/09 5:28 PM, "Steve Winter" wrote: >> >> Hi John, >> >> Here's an example of what I do 'inline'... with the first db call that will >> be made to any particular solution... >> >> Cheers >> Steve >> >> ??$productQuery = new FX($serverIP, $serverPort, $dataSourceType); >> ??$productQuery->SetDBUserPass($webUN, $webPW); >> ??$productQuery->SetDBData("schedules", "productAreas"); >> ??$productQuery->AddSortParam('productSortOrder', 'ascend'); >> ??$productQuery->AddDBParam('productAreaDisplay','no','neq'); >> ??$productData = $productQuery->FMFind(); >> >> ??if(isset($productData) && is_array($productData) && >> isset($productData['data'])) { >> >> // do the regular stuff >> >> ??else { >> ?$errorData = $productData; >> ??include('assets/includes/errorReporter.php'); >> ??} >> >> Then errorReporter.php says; >> >> >> //display user message >> echo '

An error has occured

' . >> ?????'

An error has occured conneecting to the host database. The site >> administrator has been notified. Please try your query again at a later >> time.

' . >> ?????'

We apologise for this inconvienience
The '.$siteName.' web >> team

'; >> >> >> >> >> >> ???// send me an email >> >> ??require_once('assets/includes/phpMailer/mailer.php'); >> ??$staffMailer = new Mailer(); >> ??$staffMailer->Subject = $sitename.' site error'; >> ??$staffMailer->FromName = $sitename; >> ??$staffMailer->From = 'database@matatirosolutions.co.uk'; >> ??$staffMailer->Body = '

The '.$sitename.' site is currently reporting an >> error

>>

The error data is '.showMe($errorData).'

; >> ??$staffMailer->isHTML(true); >> ??$staffMailer->AddAddress('steve@matatirosolutions.co.uk', 'Steve Winter'); >> ??if(!$staffMailer->Send()) $mailError = 'error'; >> ??$staffMailer->ClearAddresses(); >> ??$staffMailer->ClearAttachments(); >> >> On 5 Feb 2009, at 23:16, John Funk wrote: >> >> Thanks Steve, >> ?I will check the email on the server part. I do not know if this gives the >> detail my customer wants. I may end up reading the FMSA log files(s) >> ?A sample PHP script would be nice to see. >> ?Thanks again >> ?John >> >> >> ?On 2/5/09 5:03 PM, "Steve Winter" wrote: >> >> >> >> Hi John, >> >> ?FMS itself can send automated emails when it detects any issue with the >> server situation... >> >> ?The other thing that I've done is to write a simple php script, which is >> then run on a win2k3 server scheduled task every 5 min which attempts to do >> a findAny() using fx on a series of database tables which should be >> accessible... if it fails on any of those, then that PHP script sends me an >> email with the name of the table in the message... I also have similar code >> in all of the web solutions I develop such that if a user ever attempts to >> connect to a db and that call fails then I get an email which tells me >> that... >> >> ?All of the above email go into an account which my mobile phone also >> monitors so that I get notification almost in real time by email and alert >> on my mobile... >> >> ?Hope this helps... if you want code examples let me know... >> >> ?Cheers >> ?Steve >> >> >> ?On 5 Feb 2009, at 22:56, criticalsolution@comcast.net wrote: >> >> >> >> Has anybody written or used any kind of script or app to monitor FMSA 9 or >> 10? My client wants a pro-acitive solution to tell tech support when there >> is trouble (or not) on an FMServer. I thought that there might be some ways >> to do this in FX/PHP? >> >> ?Thank you, >> >> ?John Funk >> ?Critical Solution >> ?_______________________________________________ >> ?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 >> >> >> >> 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 ggt667 at gmail.com Wed Aug 19 00:47:44 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Aug 19 00:47:49 2009 Subject: [FX.php List] 956 Maximum number of database sessions exceeded error message In-Reply-To: References: Message-ID: http://www.fmforums.com/forum/showtopic.php?tid/196444/ ggt 2009/8/19 Gjermund Gusland Thorsen : > I too have this problem now, however, I see no other reason than a bug > or this number probably being the wrong errorcode? > > ggt > > 2008/11/17 Gjermund Gusland Thorsen : >> I see those problems on FMS9.0A too, >> but the same errors are no on the same amount of traffic on the 8.0v4r2 >> >> ggt667 >> >> 2008/11/17 Tony White : >>> Hi All, >>> >>> Posted this on FileMaker Techtalk a few days ago and did not get a response. >>> Hoping that there is someone here who has a thought on how to fix... >>> >>> Client is running FileMaker Server Advanced 9.0v3 on an xServe running >>> 10.4.10 and getting the message "956 Maximum number of database sessions >>> exceeded (returned only by web-published databases)" >>> >>> Client has gotten this message with increasing frequency and on testing was >>> not able to connect at a low usage time of day. >>> >>> [begin excerpt] >>> There is a problem with the FMPRO web client. The Web Client said: Error >>> Code 956 occurred on page index.php on Tue, 11 Nov 2008 12:40:12 -0500 for >>> ClientsDatabase.fp7, login. >>> [end excerpt] >>> >>> The web publishing is set to allow 100 connections and there are probably 2 >>> or 3 real connections at a time. >>> >>> Running fx.php latest version. >>> >>> The entire web publishing machine was restarted 1.5 weeks ago. >>> >>> The web publishing and the FileMaker serving is from the same machine. >>> >>> The web publishing was working fine for more than 6 months and there have >>> been no changes to the hardware or software. >>> >>> I did not find a resolution to the 956 error in my archives of various >>> listServe emails or through Google serve. >>> >>> Thanks in advance for any suggestions. >>> >>> All the best, >>> >>> >>> Tony White >>> >>> Tony White Designs, Inc. >>> 118 Remsen Street >>> Brooklyn, NY ?11201 >>> Tel: 718-797-4175 >>> tony_white@twdesigns.com >>> http://www.twdesigns.com >>> >>> >>> _______________________________________________ >>> 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 Wed Aug 19 00:56:51 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Aug 19 00:57:03 2009 Subject: [FX.php List] 956 Maximum number of database sessions exceeded error message In-Reply-To: References: Message-ID: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> If that really is the problem, and really is the solution, then that's something of a bug...!! It should be perfectly acceptable for two machines to be able to connect via IP without needing to involve DNS at all...!! Steve On 19 Aug 2009, at 07:47, Gjermund Gusland Thorsen wrote: > http://www.fmforums.com/forum/showtopic.php?tid/196444/ > > ggt > > 2009/8/19 Gjermund Gusland Thorsen : >> I too have this problem now, however, I see no other reason than a >> bug >> or this number probably being the wrong errorcode? >> >> ggt >> >> 2008/11/17 Gjermund Gusland Thorsen : >>> I see those problems on FMS9.0A too, >>> but the same errors are no on the same amount of traffic on the >>> 8.0v4r2 >>> >>> ggt667 >>> >>> 2008/11/17 Tony White : >>>> Hi All, >>>> >>>> Posted this on FileMaker Techtalk a few days ago and did not get >>>> a response. >>>> Hoping that there is someone here who has a thought on how to >>>> fix... >>>> >>>> Client is running FileMaker Server Advanced 9.0v3 on an xServe >>>> running >>>> 10.4.10 and getting the message "956 Maximum number of database >>>> sessions >>>> exceeded (returned only by web-published databases)" >>>> >>>> Client has gotten this message with increasing frequency and on >>>> testing was >>>> not able to connect at a low usage time of day. >>>> >>>> [begin excerpt] >>>> There is a problem with the FMPRO web client. The Web Client >>>> said: Error >>>> Code 956 occurred on page index.php on Tue, 11 Nov 2008 12:40:12 >>>> -0500 for >>>> ClientsDatabase.fp7, login. >>>> [end excerpt] >>>> >>>> The web publishing is set to allow 100 connections and there are >>>> probably 2 >>>> or 3 real connections at a time. >>>> >>>> Running fx.php latest version. >>>> >>>> The entire web publishing machine was restarted 1.5 weeks ago. >>>> >>>> The web publishing and the FileMaker serving is from the same >>>> machine. >>>> >>>> The web publishing was working fine for more than 6 months and >>>> there have >>>> been no changes to the hardware or software. >>>> >>>> I did not find a resolution to the 956 error in my archives of >>>> various >>>> listServe emails or through Google serve. >>>> >>>> Thanks in advance for any suggestions. >>>> >>>> All the best, >>>> >>>> >>>> Tony White >>>> >>>> Tony White Designs, Inc. >>>> 118 Remsen Street >>>> Brooklyn, NY 11201 >>>> Tel: 718-797-4175 >>>> tony_white@twdesigns.com >>>> http://www.twdesigns.com >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>> >> > _______________________________________________ > 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/20090819/a9f88ddf/attachment-0001.html From ggt667 at gmail.com Wed Aug 19 03:18:24 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Aug 19 03:18:30 2009 Subject: [FX.php List] 956 Maximum number of database sessions exceeded error message In-Reply-To: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> Message-ID: It did not solve anything for me, however I have just slept since I posted that tip. I will look into it shortly. 956 is definitely not showing up due to overload, the server is behind a firewall and I am the only user keying in XML RPC queries of the simplest sort. ggt 2009/8/19 Steve Winter : > If that really is the problem, and really is the solution, then that's > something of a bug...!! It should be perfectly acceptable for two machines > to be able to connect via IP without needing to involve DNS at all...!! > Steve > > On 19 Aug 2009, at 07:47, Gjermund Gusland Thorsen wrote: > > http://www.fmforums.com/forum/showtopic.php?tid/196444/ > > ggt > > 2009/8/19 Gjermund Gusland Thorsen : > > I too have this problem now, however, I see no other reason than a bug > > or this number probably being the wrong errorcode? > > ggt > > 2008/11/17 Gjermund Gusland Thorsen : > > I see those problems on FMS9.0A too, > > but the same errors are no on the same amount of traffic on the 8.0v4r2 > > ggt667 > > 2008/11/17 Tony White : > > Hi All, > > Posted this on FileMaker Techtalk a few days ago and did not get a response. > > Hoping that there is someone here who has a thought on how to fix... > > Client is running FileMaker Server Advanced 9.0v3 on an xServe running > > 10.4.10 and getting the message "956 Maximum number of database sessions > > exceeded (returned only by web-published databases)" > > Client has gotten this message with increasing frequency and on testing was > > not able to connect at a low usage time of day. > > [begin excerpt] > > There is a problem with the FMPRO web client. The Web Client said: Error > > Code 956 occurred on page index.php on Tue, 11 Nov 2008 12:40:12 -0500 for > > ClientsDatabase.fp7, login. > > [end excerpt] > > The web publishing is set to allow 100 connections and there are probably 2 > > or 3 real connections at a time. > > Running fx.php latest version. > > The entire web publishing machine was restarted 1.5 weeks ago. > > The web publishing and the FileMaker serving is from the same machine. > > The web publishing was working fine for more than 6 months and there have > > been no changes to the hardware or software. > > I did not find a resolution to the 956 error in my archives of various > > listServe emails or through Google serve. > > Thanks in advance for any suggestions. > > All the best, > > > Tony White > > Tony White Designs, Inc. > > 118 Remsen Street > > Brooklyn, NY ?11201 > > Tel: 718-797-4175 > > tony_white@twdesigns.com > > http://www.twdesigns.com > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > 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 > > From rogerkiwi at mac.com Wed Aug 19 03:45:41 2009 From: rogerkiwi at mac.com (Roger Moffat) Date: Wed Aug 19 03:45:45 2009 Subject: [FX.php List] 956 Maximum number of database sessions exceeded error message In-Reply-To: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> Message-ID: <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> When I see this on FileMaker Server 9 it's because something has crashed/quit on the database server machine - I can go to it and open for example a Console log window, so the machine "seems" alive, but yet the Web Publishing Engine machine can't connect to it. I end up having to restart the database server machine. Roger On Aug 19, 2009, at 2:56 AM, Steve Winter wrote: > If that really is the problem, and really is the solution, then > that's something of a bug...!! It should be perfectly acceptable for > two machines to be able to connect via IP without needing to involve > DNS at all...!! > > Steve > > > On 19 Aug 2009, at 07:47, Gjermund Gusland Thorsen wrote: > >> http://www.fmforums.com/forum/showtopic.php?tid/196444/ >> >> ggt >> >> 2009/8/19 Gjermund Gusland Thorsen : >>> I too have this problem now, however, I see no other reason than a >>> bug >>> or this number probably being the wrong errorcode? >>> >>> ggt >>> >>> 2008/11/17 Gjermund Gusland Thorsen : >>>> I see those problems on FMS9.0A too, >>>> but the same errors are no on the same amount of traffic on the >>>> 8.0v4r2 >>>> >>>> ggt667 >>>> >>>> 2008/11/17 Tony White : >>>>> Hi All, >>>>> >>>>> Posted this on FileMaker Techtalk a few days ago and did not get >>>>> a response. >>>>> Hoping that there is someone here who has a thought on how to >>>>> fix... >>>>> >>>>> Client is running FileMaker Server Advanced 9.0v3 on an xServe >>>>> running >>>>> 10.4.10 and getting the message "956 Maximum number of database >>>>> sessions >>>>> exceeded (returned only by web-published databases)" >>>>> >>>>> Client has gotten this message with increasing frequency and on >>>>> testing was >>>>> not able to connect at a low usage time of day. >>>>> >>>>> [begin excerpt] >>>>> There is a problem with the FMPRO web client. The Web Client >>>>> said: Error >>>>> Code 956 occurred on page index.php on Tue, 11 Nov 2008 12:40:12 >>>>> -0500 for >>>>> ClientsDatabase.fp7, login. >>>>> [end excerpt] >>>>> >>>>> The web publishing is set to allow 100 connections and there are >>>>> probably 2 >>>>> or 3 real connections at a time. >>>>> >>>>> Running fx.php latest version. >>>>> >>>>> The entire web publishing machine was restarted 1.5 weeks ago. >>>>> >>>>> The web publishing and the FileMaker serving is from the same >>>>> machine. >>>>> >>>>> The web publishing was working fine for more than 6 months and >>>>> there have >>>>> been no changes to the hardware or software. >>>>> >>>>> I did not find a resolution to the 956 error in my archives of >>>>> various >>>>> listServe emails or through Google serve. >>>>> >>>>> Thanks in advance for any suggestions. >>>>> >>>>> All the best, >>>>> >>>>> >>>>> Tony White >>>>> >>>>> Tony White Designs, Inc. >>>>> 118 Remsen Street >>>>> Brooklyn, NY 11201 >>>>> Tel: 718-797-4175 >>>>> tony_white@twdesigns.com >>>>> http://www.twdesigns.com >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>> >>> >> _______________________________________________ >> 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/20090819/1f0558fa/attachment.html From ggt667 at gmail.com Wed Aug 19 03:56:04 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Aug 19 03:56:08 2009 Subject: [FX.php List] 956 Maximum number of database sessions exceeded error message In-Reply-To: <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> Message-ID: For me this happens on a new install, just rebooted. Some queries work, simple ones where -db is not mentioned, some do not, more complete queries with -db and -lay defined. ggt 2009/8/19 Roger Moffat : > When I see this on FileMaker Server 9 it's because something has > crashed/quit on the database server machine - I can go to it and open for > example a Console log window, so the machine "seems" alive, but yet the Web > Publishing Engine machine can't connect to it. > I end up having to restart the database server machine. > Roger > On Aug 19, 2009, at 2:56 AM, Steve Winter wrote: > > If that really is the problem, and really is the solution, then that's > something of a bug...!! It should be perfectly acceptable for two machines > to be able to connect via IP without needing to involve DNS at all...!! > Steve > > On 19 Aug 2009, at 07:47, Gjermund Gusland Thorsen wrote: > > http://www.fmforums.com/forum/showtopic.php?tid/196444/ > > ggt > > 2009/8/19 Gjermund Gusland Thorsen : > > I too have this problem now, however, I see no other reason than a bug > > or this number probably being the wrong errorcode? > > ggt > > 2008/11/17 Gjermund Gusland Thorsen : > > I see those problems on FMS9.0A too, > > but the same errors are no on the same amount of traffic on the 8.0v4r2 > > ggt667 > > 2008/11/17 Tony White : > > Hi All, > > Posted this on FileMaker Techtalk a few days ago and did not get a response. > > Hoping that there is someone here who has a thought on how to fix... > > Client is running FileMaker Server Advanced 9.0v3 on an xServe running > > 10.4.10 and getting the message "956 Maximum number of database sessions > > exceeded (returned only by web-published databases)" > > Client has gotten this message with increasing frequency and on testing was > > not able to connect at a low usage time of day. > > [begin excerpt] > > There is a problem with the FMPRO web client. The Web Client said: Error > > Code 956 occurred on page index.php on Tue, 11 Nov 2008 12:40:12 -0500 for > > ClientsDatabase.fp7, login. > > [end excerpt] > > The web publishing is set to allow 100 connections and there are probably 2 > > or 3 real connections at a time. > > Running fx.php latest version. > > The entire web publishing machine was restarted 1.5 weeks ago. > > The web publishing and the FileMaker serving is from the same machine. > > The web publishing was working fine for more than 6 months and there have > > been no changes to the hardware or software. > > I did not find a resolution to the 956 error in my archives of various > > listServe emails or through Google serve. > > Thanks in advance for any suggestions. > > All the best, > > > Tony White > > Tony White Designs, Inc. > > 118 Remsen Street > > Brooklyn, NY ?11201 > > Tel: 718-797-4175 > > tony_white@twdesigns.com > > http://www.twdesigns.com > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > 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 ggt667 at gmail.com Wed Aug 19 06:43:09 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Wed Aug 19 06:43:15 2009 Subject: [FX.php List] 956 Maximum number of database sessions exceeded error message In-Reply-To: References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> Message-ID: OK, this solved the 956 error for now, On the top of the admin console there are two sets of green and red buttons. The left most is for filemaker server The next one is for web publishing engine On my third attempt to turn web publishing engine off and on the 956 error vaporized. ggt 2009/8/19 Gjermund Gusland Thorsen : > For me this happens on a new install, just rebooted. > > Some queries work, simple ones where -db is not mentioned, > some do not, more complete queries with -db and -lay defined. > > ggt > > > 2009/8/19 Roger Moffat : >> When I see this on FileMaker Server 9 it's because something has >> crashed/quit on the database server machine - I can go to it and open for >> example a Console log window, so the machine "seems" alive, but yet the Web >> Publishing Engine machine can't connect to it. >> I end up having to restart the database server machine. >> Roger >> On Aug 19, 2009, at 2:56 AM, Steve Winter wrote: >> >> If that really is the problem, and really is the solution, then that's >> something of a bug...!! It should be perfectly acceptable for two machines >> to be able to connect via IP without needing to involve DNS at all...!! >> Steve >> >> On 19 Aug 2009, at 07:47, Gjermund Gusland Thorsen wrote: >> >> http://www.fmforums.com/forum/showtopic.php?tid/196444/ >> >> ggt >> >> 2009/8/19 Gjermund Gusland Thorsen : >> >> I too have this problem now, however, I see no other reason than a bug >> >> or this number probably being the wrong errorcode? >> >> ggt >> >> 2008/11/17 Gjermund Gusland Thorsen : >> >> I see those problems on FMS9.0A too, >> >> but the same errors are no on the same amount of traffic on the 8.0v4r2 >> >> ggt667 >> >> 2008/11/17 Tony White : >> >> Hi All, >> >> Posted this on FileMaker Techtalk a few days ago and did not get a response. >> >> Hoping that there is someone here who has a thought on how to fix... >> >> Client is running FileMaker Server Advanced 9.0v3 on an xServe running >> >> 10.4.10 and getting the message "956 Maximum number of database sessions >> >> exceeded (returned only by web-published databases)" >> >> Client has gotten this message with increasing frequency and on testing was >> >> not able to connect at a low usage time of day. >> >> [begin excerpt] >> >> There is a problem with the FMPRO web client. The Web Client said: Error >> >> Code 956 occurred on page index.php on Tue, 11 Nov 2008 12:40:12 -0500 for >> >> ClientsDatabase.fp7, login. >> >> [end excerpt] >> >> The web publishing is set to allow 100 connections and there are probably 2 >> >> or 3 real connections at a time. >> >> Running fx.php latest version. >> >> The entire web publishing machine was restarted 1.5 weeks ago. >> >> The web publishing and the FileMaker serving is from the same machine. >> >> The web publishing was working fine for more than 6 months and there have >> >> been no changes to the hardware or software. >> >> I did not find a resolution to the 956 error in my archives of various >> >> listServe emails or through Google serve. >> >> Thanks in advance for any suggestions. >> >> All the best, >> >> >> Tony White >> >> Tony White Designs, Inc. >> >> 118 Remsen Street >> >> Brooklyn, NY ?11201 >> >> Tel: 718-797-4175 >> >> tony_white@twdesigns.com >> >> http://www.twdesigns.com >> >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> >> >> _______________________________________________ >> 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 zippyaus at yahoo.com Thu Aug 27 02:58:30 2009 From: zippyaus at yahoo.com (Stephe Pocock) Date: Thu Aug 27 02:58:34 2009 Subject: [FX.php List] Split results into two columns In-Reply-To: References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> Message-ID: <983442.8050.qm@web112007.mail.gq1.yahoo.com> Hi all I have a confession to make. I use this code alot, but I don't actually understand how it works. http://pastebin.com/m7cb20894 $catData) { if($i == $half && $i > 10) { ?> The result is half the found set is in one table row that the other half in another. This works well in most situations, but I have a photobook where I want two columns but I would like the odd records in the left and the even records in the right so that the photo book flows with all the A's then all the B's etc Does this make sense? Is what I want possible? Thanks in advance Stephen __________________________________________________________________________________ Find local businesses and services in your area with Yahoo!7 Local. Get started: http://local.yahoo.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090827/3689d91a/attachment.html From ggt667 at gmail.com Thu Aug 27 04:05:13 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Aug 27 04:05:17 2009 Subject: [FX.php List] Split results into two columns In-Reply-To: <983442.8050.qm@web112007.mail.gq1.yahoo.com> References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> <983442.8050.qm@web112007.mail.gq1.yahoo.com> Message-ID: I did an effort into making it readable, at least to myself: http://pastebin.com/f7981902e And it seems you lack an initial { or I left something out ggt 2009/8/27 Stephe Pocock : > Hi all > > I have a confession to make.? I use this code alot, but I don't actually > understand how it works. > > http://pastebin.com/m7cb20894 > > $i=0; > $half = (int) ($catResult['foundCount']/2 + 0.5); > > foreach ($catResult['data'] as $key => $catData) > { > if($i == $half && $i > 10) > { > ?> > ??? ??? ???



> ??? ? > ??? ??? ??? > } > > ?> > ??? > ??? ??? > ??? ??? > > ??? > $i++; > } > } > ?> > > > > The result is half the found set is in one table row that the other half in > another. > > This works well in most situations, but I have a photobook where I want two > columns but I would like the odd records in the left and the even records in > the right so that the photo book flows with all the A's then all the B's etc > > Does this make sense?? Is what I want possible? > > Thanks in advance > > Stephen > > start: 0000-00-00 end: 0000-00-00 > ________________________________ > Find local businesses and services in your area with Yahoo!7 Local. Get > started. > _______________________________________________ > 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 Aug 27 08:17:45 2009 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Aug 27 08:17:56 2009 Subject: [FX.php List] Split results into two columns In-Reply-To: <983442.8050.qm@web112007.mail.gq1.yahoo.com> References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> <983442.8050.qm@web112007.mail.gq1.yahoo.com> Message-ID: I think the key (no pun) is to create the content first and then display when done. How about this: Option 1: Process the found set with the standard foreach(), test for odd/even records, build the even and odd record tables first and then display them after they are complete. Option 2: Process the found set with a for(), alternating left and right columns by testing for even/odd $key, building them first and then displaying, as above. This is just the broad stroke. J >Hi all > >I have a confession to make. I use this code alot, but I don't >actually understand how it works. > >http://pastebin.com/m7cb20894 > >$i=0; >$half = (int) ($catResult['foundCount']/2 + 0.5); > >foreach ($catResult['data'] as $key => $catData) >{ >if($i == $half && $i > 10) >{ >?> >
> ??? ??? ??? width="120">
> ??? ???
> ??? ???
> ??? ??? Group Short'][0];?> > ??? ???
> > >} > >?> > > > > > >$i++; >} >} >?> > > > >The result is half the found set is in one table row that the other >half in another. > >This works well in most situations, but I have a photobook where I >want two columns but I would like the odd records in the left and >the even records in the right so that the photo book flows with all >the A's then all the B's etc > >Does this make sense? Is what I want possible? > >Thanks in advance > >Stephen > > >start: 0000-00-00 end: 0000-00-00 > >Find local businesses and services in your area with Yahoo!7 Local. >< >http://au.rd.yahoo.com/search/local/mailtagline/*http://local.yahoo.com.au> >Get started. > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list -- Jonathan Schwartz Exit 445 Group jonathan@exit445.com http://www.exit445.com 415-370-5011 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090827/fc2cbcb2/attachment.html From zippyaus at yahoo.com Thu Aug 27 20:49:05 2009 From: zippyaus at yahoo.com (Stephe Pocock) Date: Thu Aug 27 20:49:09 2009 Subject: [FX.php List] Split results into two columns In-Reply-To: References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> <983442.8050.qm@web112007.mail.gq1.yahoo.com> Message-ID: <301579.20965.qm@web112019.mail.gq1.yahoo.com> Hi and thanks for the feedback I was able to achieve the following using the code (thanks to FMWebschool). http://pastebin.com/m7794b15e $catData){ if( ($cell % $cols) == 0 ) { echo "\n"; } ?> \n"; } $cell++; } ?> Hope this helps someone. Cheers ________________________________ From: Jonathan Schwartz To: FX.php Discussion List Sent: Thursday, 27 August, 2009 10:17:45 PM Subject: Re: [FX.php List] Split results into two columns Re: [FX.php List] Split results into two columns I think the key (no pun) is to create the content first and then display when done. How about this: Option 1: Process the found set with the standard foreach(), test for odd/even records, build the even and odd record tables first and then display them after they are complete. Option 2: Process the found set with a for(), alternating left and right columns by testing for even/odd $key, building them first and then displaying, as above. This is just the broad stroke. J Hi all > >>I have a confession to make. I use this code alot, but I don't >actually understand how it works. > >http://pastebin.com/m7cb20894 > >>>$i=0; >>$half = (int) ($catResult['foundCount']/2 + 0.5); > >>foreach ($catResult['data'] as $key => $catData) >>{ >>if($i == $half && $i > 10) >>{ >>?> >> >
>
>
>
> $catData['Calc Group Short'][0];?> >



>> >> > >>>} > >>?> >> >> >> >> > >> >>>$i++; >>} >>} >>?> > > > >>The result is half the found set is in one table row that the other >half in another. > >>This works well in most situations, but I have a photobook where I >want two columns but I would like the odd records in the left and the >even records in the right so that the photo book flows with all the >A's then all the B's etc > >>Does this make sense? Is what I want possible? > >>Thanks in advance > >>Stephen > >>start: 0000-00-00 end: 0000-00-00 ________________________________ Find local businesses and services in >your area with Yahoo!7 Local. Get started. >>_______________________________________________ >>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 __________________________________________________________________________________ Find local businesses and services in your area with Yahoo!7 Local. Get started: http://local.yahoo.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090827/0b0e32c2/attachment-0001.html From ggt667 at gmail.com Fri Aug 28 01:38:03 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Aug 28 01:38:17 2009 Subject: [FX.php List] Split results into two columns In-Reply-To: <301579.20965.qm@web112019.mail.gq1.yahoo.com> References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> <983442.8050.qm@web112007.mail.gq1.yahoo.com> <301579.20965.qm@web112019.mail.gq1.yahoo.com> Message-ID: Does the output validate? ggt 2009/8/28 Stephe Pocock : > Hi and thanks for the feedback > > I was able to achieve the following using the code (thanks to FMWebschool). > > http://pastebin.com/m7794b15e > > $cols = 2;?? // Change value for any number of columns > $cell = 0; > foreach($catResult['data']as $key=>$catData){ > if( ($cell % $cols) == 0 ) { echo "\n"; } > ?> > ??? > ??? > if( (($cell+1) % $cols) == 0 ) { echo "\n"; } > $cell++; > } ?> > > Hope this helps someone. > > Cheers > > ________________________________ > From: Jonathan Schwartz > To: FX.php Discussion List > Sent: Thursday, 27 August, 2009 10:17:45 PM > Subject: Re: [FX.php List] Split results into two columns > > I think the key (no pun) is to create the content first and then display > when done. > How about this: > Option 1: > Process the found set with the standard foreach(), test for odd/even > records, build the even and odd record tables first and then display them > after they are complete. > Option 2: > Process the found set with a for(), alternating left and right columns by > testing for even/odd $key, building them first and then displaying, as > above. > This is just the broad stroke. > J > > Hi all > > I have a confession to make.? I use this code alot, but I don't actually > understand how it works. > > http://pastebin.com/m7cb20894 > > $i=0; > $half = (int) ($catResult['foundCount']/2 + 0.5); > > foreach ($catResult['data'] as $key => $catData) > { > if($i == $half && $i > 10) > { > ?> > ???????????
>> >width="120">$catData['Full Name'][0];?>
>> $catData['UserName'][0];?>
>> $catData['Export Title'][0];?>
>> $catData['Level Number'][0];?> Short'][0];?> >>
width="120">
> ?????
> ?????
> ????? Group Short'][0];?>
> ????? > ??????????? > } > > ?> > ??? > ??????? > ??????? > > ??? > $i++; > } > } > ?> > > > > The result is half the found set is in one table row that the other half in > another. > > This works well in most situations, but I have a photobook where I want two > columns but I would like the odd records in the left and the even records in > the right so that the photo book flows with all the A's then all the B's etc > > Does this make sense?? Is what I want possible? > > Thanks in advance > > Stephen > > start: 0000-00-00 end: 0000-00-00 > > ________________________________ > > Find local businesses and services in your area with Yahoo!7 Local. Get > started. > > _______________________________________________ > 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 > ________________________________ > Find local businesses and services in your area with Yahoo!7 Local. Get > started. > _______________________________________________ > 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 Aug 28 01:45:45 2009 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Fri Aug 28 01:45:48 2009 Subject: [FX.php List] Split results into two columns In-Reply-To: References: <45D28935-55F1-455F-ADA6-EEE4C04C6BF0@bluecrocodile.co.nz> <94E1A0D7-0FCE-44B2-9A8B-D389FB1B8A2B@mac.com> <983442.8050.qm@web112007.mail.gq1.yahoo.com> <301579.20965.qm@web112019.mail.gq1.yahoo.com> Message-ID: I made a php script of your HTML stuff http://pastebin.com/f33798585 2009/8/28 Gjermund Gusland Thorsen : > Does the output validate? > > ggt > > 2009/8/28 Stephe Pocock : >> Hi and thanks for the feedback >> >> I was able to achieve the following using the code (thanks to FMWebschool). >> >> http://pastebin.com/m7794b15e >> >> > $cols = 2;?? // Change value for any number of columns >> $cell = 0; >> foreach($catResult['data']as $key=>$catData){ >> if( ($cell % $cols) == 0 ) { echo "\n"; } >> ?> >> ??? >> ??? >> > if( (($cell+1) % $cols) == 0 ) { echo "\n"; } >> $cell++; >> } ?> >> >> Hope this helps someone. >> >> Cheers >> >> ________________________________ >> From: Jonathan Schwartz >> To: FX.php Discussion List >> Sent: Thursday, 27 August, 2009 10:17:45 PM >> Subject: Re: [FX.php List] Split results into two columns >> >> I think the key (no pun) is to create the content first and then display >> when done. >> How about this: >> Option 1: >> Process the found set with the standard foreach(), test for odd/even >> records, build the even and odd record tables first and then display them >> after they are complete. >> Option 2: >> Process the found set with a for(), alternating left and right columns by >> testing for even/odd $key, building them first and then displaying, as >> above. >> This is just the broad stroke. >> J >> >> Hi all >> >> I have a confession to make.? I use this code alot, but I don't actually >> understand how it works. >> >> http://pastebin.com/m7cb20894 >> >> > $i=0; >> $half = (int) ($catResult['foundCount']/2 + 0.5); >> >> foreach ($catResult['data'] as $key => $catData) >> { >> if($i == $half && $i > 10) >> { >> ?> >> ???????????
> ??????????? width="120">
> ???????
> ???????
> ??????? Group Short'][0];?> > ???????
> width="120">
>> ?????
>> ?????
>> ????? > Group Short'][0];?>
>> ????? >> ??????????? >> > } >> >> ?> >> ??? >> ??????? >> ??????? >> >> ??? >> > $i++; >> } >> } >> ?> >> >> >> >> The result is half the found set is in one table row that the other half in >> another. >> >> This works well in most situations, but I have a photobook where I want two >> columns but I would like the odd records in the left and the even records in >> the right so that the photo book flows with all the A's then all the B's etc >> >> Does this make sense?? Is what I want possible? >> >> Thanks in advance >> >> Stephen >> >> start: 0000-00-00 end: 0000-00-00 >> >> ________________________________ >> >> Find local businesses and services in your area with Yahoo!7 Local. Get >> started. >> >> _______________________________________________ >> 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 >> ________________________________ >> Find local businesses and services in your area with Yahoo!7 Local. Get >> started. >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> > From jsfmp at earthlink.net Fri Aug 28 11:06:01 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Aug 28 11:06:06 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? Message-ID: <4FA992DB-4AD7-47F9-AA59-B0B58CA40F21@earthlink.net> Hi all I recently discovered that the various ereg functions are deprecated in PHP 5.3.x -- and will be removed as of PHP 6.0.0. I know I've got some older scripts that use ereg (or one of its variations), so I thought I'd pass this along to the list: http://us.php.net/manual/en/migration53.deprecated.php As an aside, when do you generally upgrade PHP on your existing sites? As upgrades come out? When required for security? Never? Best, -Joel From rogerkiwi at mac.com Fri Aug 28 11:37:26 2009 From: rogerkiwi at mac.com (Roger Moffat) Date: Fri Aug 28 11:37:29 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: <4FA992DB-4AD7-47F9-AA59-B0B58CA40F21@earthlink.net> References: <4FA992DB-4AD7-47F9-AA59-B0B58CA40F21@earthlink.net> Message-ID: On Aug 28, 2009, at 1:06 PM, Joel Shapiro wrote: > I recently discovered that the various ereg functions are deprecated > in PHP 5.3.x -- and will be removed as of PHP 6.0.0. I know I've > got some older scripts that use ereg (or one of its variations), so > I thought I'd pass this along to the list: > http://us.php.net/manual/en/migration53.deprecated.php > > As an aside, when do you generally upgrade PHP on your existing > sites? As upgrades come out? When required for security? Never? I don't write much of my own original PHP, but I have a set of purchased scripts that I run for a number of genealogy sites. I also run my own server on my Mac Pro, and since the genealogy software requires the GD Library, and Apple doesn't include that I've been using the PHP builds from Entropy.ch on my Mac. I updated I think at 5.2.4 or thereabouts when I got a Mac Pro that came with Mac OS X Leopard, and then went to 5.2.9 when Marc got back into developing his builds. Given the above list of deprecated functions, a move to 5.3.0 might be a while yet. Also of note is that at this early stage there is no Entropy.ch build of PHP for Mac OS X 10.6 Snow Leopard. I don't know what Snow Leopard comes with - I'm patiently awaiting my DVD to arrive "before 3PM" today, so will know later on. Hopefully it won't be long before Marc has a Snow Leopard compatible build ready to go. Roger From dbengston at tds.net Fri Aug 28 12:45:22 2009 From: dbengston at tds.net (Dale Bengston) Date: Fri Aug 28 12:45:35 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: References: <4FA992DB-4AD7-47F9-AA59-B0B58CA40F21@earthlink.net> Message-ID: <3C23925F-1CCA-499C-956A-8B5ECCAB902A@tds.net> I just interrupted reading this post to go sign for my Snow Leopard shipment! Mark L says he doesn't have Snow Leopard yet, but doesn't expect the 10.5.x build to work unchanged on 10.6.x. Dale On Aug 28, 2009, at 12:37 PM, Roger Moffat wrote: > > On Aug 28, 2009, at 1:06 PM, Joel Shapiro wrote: > >> I recently discovered that the various ereg functions are >> deprecated in PHP 5.3.x -- and will be removed as of PHP 6.0.0. I >> know I've got some older scripts that use ereg (or one of its >> variations), so I thought I'd pass this along to the list: >> http://us.php.net/manual/en/migration53.deprecated.php >> >> As an aside, when do you generally upgrade PHP on your existing >> sites? As upgrades come out? When required for security? Never? > > I don't write much of my own original PHP, but I have a set of > purchased scripts that I run for a number of genealogy sites. > > I also run my own server on my Mac Pro, and since the genealogy > software requires the GD Library, and Apple doesn't include that > I've been using the PHP builds from Entropy.ch on my Mac. > > I updated I think at 5.2.4 or thereabouts when I got a Mac Pro that > came with Mac OS X Leopard, and then went to 5.2.9 when Marc got > back into developing his builds. > > Given the above list of deprecated functions, a move to 5.3.0 might > be a while yet. > > Also of note is that at this early stage there is no Entropy.ch > build of PHP for Mac OS X 10.6 Snow Leopard. I don't know what Snow > Leopard comes with - I'm patiently awaiting my DVD to arrive "before > 3PM" today, so will know later on. Hopefully it won't be long before > Marc has a Snow Leopard compatible build ready to go. > > Roger > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From rogerkiwi at mac.com Fri Aug 28 12:59:55 2009 From: rogerkiwi at mac.com (Roger Moffat) Date: Fri Aug 28 12:59:59 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: <3C23925F-1CCA-499C-956A-8B5ECCAB902A@tds.net> References: <4FA992DB-4AD7-47F9-AA59-B0B58CA40F21@earthlink.net> <3C23925F-1CCA-499C-956A-8B5ECCAB902A@tds.net> Message-ID: On Aug 28, 2009, at 2:45 PM, Dale Bengston wrote: > I just interrupted reading this post to go sign for my Snow Leopard > shipment! I've read your post about 10 times, but it didn't make the FedEx truck arrive yet :-( Roger From rogerkiwi at mac.com Fri Aug 28 16:41:38 2009 From: rogerkiwi at mac.com (Roger Moffat) Date: Fri Aug 28 16:41:41 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: <3C23925F-1CCA-499C-956A-8B5ECCAB902A@tds.net> References: <4FA992DB-4AD7-47F9-AA59-B0B58CA40F21@earthlink.net> <3C23925F-1CCA-499C-956A-8B5ECCAB902A@tds.net> Message-ID: <723CBF72-CF31-4188-9E4A-FB7142116918@mac.com> On Aug 28, 2009, at 2:45 PM, Dale Bengston wrote: > I just interrupted reading this post to go sign for my Snow Leopard > shipment! > > Mark L says he doesn't have Snow Leopard yet, but doesn't expect the > 10.5.x build to work unchanged on 10.6.x. I have my Snow Leopard - calling FedEx at 4:45 to ask where it might be prompted it to arrive as I was on hold with Karl while he checked with my local depot.... Snow Leopard has installed PHP 5.3.0, Apache 2.2.11 and MySQL 5.0.5 it seems. Interestingly the PHP 5.3.0 seems to include the GD Library, which I think is the only extra thing I'd ever need Marc Liyanage's Entropy.ch builds for. But right now MySQL isn't running, so I'm working to figure that out. I have some instructions I think from Leopard days about creating a symbolic link for the socket, so will see if that helps - otherwise I'm sure Google is my friend. Roger From vicepresident at comcast.net Sat Aug 29 08:20:49 2009 From: vicepresident at comcast.net (Jon & Jane Montgomery) Date: Sat Aug 29 08:20:55 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: <723CBF72-CF31-4188-9E4A-FB7142116918@mac.com> Message-ID: I just ordered Snow Leopard for my three Mac's in my music department at school, one is a Mac Pro which hosts FMS 9 and one is my MacBook Pro, which is my development machine running FMSA 10. >From following this thread, I would assume that installing Snow Leopard soon might not be the wisest thing to do? I have an web app that will need to be online by November and really cannot afford to have it down or broken and really don't have the time to search for a fix. Your expert advise would be appreciated. My copy of Snow Leopard has been ordered on my end, however, in school purchase order time frame, it might be a month before the actual order is placed. So many HOOPS to jump through to make a purchase! They at least now use a FAX number to order, at my prodding. Still no online ordering yet. Progress is slow in education at times. But I did get rid of my pointer stick in favor of a laser pointer. And the principal says I can keep it if I don't abuse it by pointing it all over the wall and disrupt the class :) Thanks for any words of wisdom on this. Jon Montgomery On 8/28/09 5:41 PM, "Roger Moffat" wrote: > > On Aug 28, 2009, at 2:45 PM, Dale Bengston wrote: > >> I just interrupted reading this post to go sign for my Snow Leopard >> shipment! >> >> Mark L says he doesn't have Snow Leopard yet, but doesn't expect the >> 10.5.x build to work unchanged on 10.6.x. > > I have my Snow Leopard - calling FedEx at 4:45 to ask where it might > be prompted it to arrive as I was on hold with Karl while he checked > with my local depot.... > > Snow Leopard has installed PHP 5.3.0, Apache 2.2.11 and MySQL 5.0.5 it > seems. > > Interestingly the PHP 5.3.0 seems to include the GD Library, which I > think is the only extra thing I'd ever need Marc Liyanage's Entropy.ch > builds for. > > But right now MySQL isn't running, so I'm working to figure that out. > I have some instructions I think from Leopard days about creating a > symbolic link for the socket, so will see if that helps - otherwise > I'm sure Google is my friend. > > Roger > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bkrauss at angelcitydata.com Sat Aug 29 08:21:39 2009 From: bkrauss at angelcitydata.com (bkrauss@angelcitydata.com) Date: Sat Aug 29 08:21:47 2009 Subject: [FX.php List] [out of office] Re: FX.php_List Digest, Vol 61, Issue 10 Message-ID: <20090829142139.16295.qmail@secure14.liveoakhosting.com> An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090829/c84df557/attachment.html From rogerkiwi at mac.com Sat Aug 29 11:13:08 2009 From: rogerkiwi at mac.com (Roger Moffat) Date: Sat Aug 29 11:13:12 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: References: Message-ID: <5E5DB477-8E6A-44FF-A6BD-EA0923B42BE7@mac.com> On Aug 29, 2009, at 10:20 AM, Jon & Jane Montgomery wrote: > I just ordered Snow Leopard for my three Mac's in my music > department at > school, one is a Mac Pro which hosts FMS 9 and one is my MacBook > Pro, which > is my development machine running FMSA 10. > >> > From following this thread, I would assume that installing Snow > Leopard soon > might not be the wisest thing to do? I have an web app that will > need to be > online by November and really cannot afford to have it down or > broken and > really don't have the time to search for a fix. Your expert advise > would be > appreciated. I think it would be wise to wait a few days from now at least until much wiser heads than me have time to see what happens and how to fix it. I do now have PHP and MySQL all working on my MacBook, but this is not the machine that is running as my Web Publishing Engine for FileMaker Server 9 (I have Server 10, but don't have an Intel machine to put it onto), so don't know if there's anything unexpected that might happen with FileMaker Server and Web Publishing. I've written up a kind of a summary of my travails - by no means all of it, and as hinted, even though I got to an answer, it may not necessarily be the best answer and I didn't get there by the best route either I'm sure. I'll be keeping an eye on the forums at http://entropy.ch/ to see what the clever people there come up with before tackling updating my Mac Pro. Roger From bob at patin.com Sun Aug 30 13:19:55 2009 From: bob at patin.com (Bob Patin) Date: Sun Aug 30 13:20:01 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript Message-ID: <82A18A70-E7E7-43EF-A6DF-98C05D62BE99@patin.com> Is it possible to pass a script parameter with PerformFMScript? I'm looking in the docs, but they don't mention it, and I'm wondering if perhaps it was added. Hard to believe, but this is only the 2nd time I've wanted to trigger a FM script from FX.php. Thanks, Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090830/955df1f7/new_logo_idea3_120w-0001.jpg -------------- next part -------------- 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 From bkrauss at angelcitydata.com Sun Aug 30 13:21:55 2009 From: bkrauss at angelcitydata.com (bkrauss@angelcitydata.com) Date: Sun Aug 30 13:22:09 2009 Subject: [FX.php List] [out of office] Re: FX.php_List Digest, Vol 61, Issue 11 Message-ID: <20090830192155.21925.qmail@secure14.liveoakhosting.com> An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090830/21d681a1/attachment.html From steve at bluecrocodile.co.nz Sun Aug 30 13:25:59 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Sun Aug 30 13:26:07 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript In-Reply-To: <82A18A70-E7E7-43EF-A6DF-98C05D62BE99@patin.com> References: <82A18A70-E7E7-43EF-A6DF-98C05D62BE99@patin.com> Message-ID: Hi Bob, IIRC what you need to do is set the script parameter to be a global field, then set the value of the global before you call the script... (untested, sitting on the couch drinking beer, so YMMV ;-) Cheers Steve On 30 Aug 2009, at 22:19, Bob Patin wrote: > Is it possible to pass a script parameter with PerformFMScript? I'm > looking in the docs, but they don't mention it, and I'm wondering if > perhaps it was added. Hard to believe, but this is only the 2nd time > I've wanted to trigger a FM script from FX.php. > > Thanks, > > 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 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/20090830/e57bf2a7/attachment.html From bob at patin.com Sun Aug 30 13:29:20 2009 From: bob at patin.com (Bob Patin) Date: Sun Aug 30 13:29:31 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript In-Reply-To: References: <82A18A70-E7E7-43EF-A6DF-98C05D62BE99@patin.com> Message-ID: <5B1ACACB-4FDD-43F6-8F56-F018E943F7B4@patin.com> So what you're telling me is that you're in a drunken stupor and hardly able to focus... :) Actually, I suspect that's probably not the case. The global thing rings a bell; I'll give 'er a try. Thanks, Steve-O! Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090830/d63e50d2/new_logo_idea3_120w-0001.jpg -------------- next part -------------- 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 Aug 30, 2009, at 2:25 PM, Steve Winter wrote: > IIRC what you need to do is set the script parameter to be a global > field, then set the value of the global before you call the > script... (untested, sitting on the couch drinking beer, so YMMV ;-) > > Cheers > Steve From bkrauss at angelcitydata.com Sun Aug 30 13:31:24 2009 From: bkrauss at angelcitydata.com (bkrauss@angelcitydata.com) Date: Sun Aug 30 13:31:33 2009 Subject: [FX.php List] [out of office] Re: FX.php_List Digest, Vol 61, Issue 12 Message-ID: <20090830193124.25375.qmail@secure14.liveoakhosting.com> An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090830/e444ab12/attachment.html From steve at bluecrocodile.co.nz Sun Aug 30 13:35:44 2009 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Sun Aug 30 13:35:53 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript In-Reply-To: <5B1ACACB-4FDD-43F6-8F56-F018E943F7B4@patin.com> References: <82A18A70-E7E7-43EF-A6DF-98C05D62BE99@patin.com> <5B1ACACB-4FDD-43F6-8F56-F018E943F7B4@patin.com> Message-ID: <958CAA23-C4A1-4C92-BC5B-2B8A83861601@bluecrocodile.co.nz> Well I wouldn't go so far as a drunken stupor, no... what I was trying to say was that it was only a recollection, and I wasn't about to fire up FMP/FX and run a bunch of tests for you ;-) Happy days... Steve On 30 Aug 2009, at 22:29, Bob Patin wrote: > So what you're telling me is that you're in a drunken stupor and > hardly able to focus... :) > > Actually, I suspect that's probably not the case. > > The global thing rings a bell; I'll give 'er a try. > > Thanks, Steve-O! > > > > 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 Aug 30, 2009, at 2:25 PM, Steve Winter wrote: > >> IIRC what you need to do is set the script parameter to be a global >> field, then set the value of the global before you call the >> script... (untested, sitting on the couch drinking beer, so YMMV ;-) >> >> Cheers >> Steve > > _______________________________________________ > 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/20090830/3f10acfc/attachment.html From bob at patin.com Sun Aug 30 13:54:13 2009 From: bob at patin.com (Bob Patin) Date: Sun Aug 30 13:54:23 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript In-Reply-To: <958CAA23-C4A1-4C92-BC5B-2B8A83861601@bluecrocodile.co.nz> References: <82A18A70-E7E7-43EF-A6DF-98C05D62BE99@patin.com> <5B1ACACB-4FDD-43F6-8F56-F018E943F7B4@patin.com> <958CAA23-C4A1-4C92-BC5B-2B8A83861601@bluecrocodile.co.nz> Message-ID: <53A84195-F2AD-4182-B25B-ACC3AFECCEDD@patin.com> Glad to hear that my New Zealand... I mean British... I mean Australian... friend is fully lucid as usual... :) Well, apparently one can't set a global in an FMNew, so I resorted to non-globals, which I'll then grab & use in the script. Thought I'd post it here for future reference... Carry on! 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 Aug 30, 2009, at 2:35 PM, Steve Winter wrote: > Well I wouldn't go so far as a drunken stupor, no... what I was > trying to say was that it was only a recollection, and I wasn't > about to fire up FMP/FX and run a bunch of tests for you ;-) > > Happy days... > Steve > > > > On 30 Aug 2009, at 22:29, Bob Patin wrote: > >> So what you're telling me is that you're in a drunken stupor and >> hardly able to focus... :) >> >> Actually, I suspect that's probably not the case. >> >> The global thing rings a bell; I'll give 'er a try. >> >> Thanks, Steve-O! >> >> >> >> 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 Aug 30, 2009, at 2:25 PM, Steve Winter wrote: >> >>> IIRC what you need to do is set the script parameter to be a >>> global field, then set the value of the global before you call the >>> script... (untested, sitting on the couch drinking beer, so YMMV ;-) >>> >>> Cheers >>> Steve >> >> _______________________________________________ >> 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 -------------- Skipped content of type multipart/related From bkrauss at angelcitydata.com Sun Aug 30 13:57:15 2009 From: bkrauss at angelcitydata.com (bkrauss@angelcitydata.com) Date: Sun Aug 30 13:57:22 2009 Subject: [FX.php List] [out of office] Re: FX.php_List Digest, Vol 61, Issue 13 Message-ID: <20090830195715.1057.qmail@secure14.liveoakhosting.com> An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090830/53d2e950/attachment.html From tcmeyers at troymeyers.com Sun Aug 30 16:00:13 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Sun Aug 30 16:00:16 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript Message-ID: <1B8489CF.A65D.425E.B1AE.A8627CC3F9A4@150.1024512> Bob, Here are some examples I've used: // Pre-sort $ppw_add->PerformFMScriptPresort('WhatNewKeepSpS'); $ppw_add->AddDBParam('-script.presort.param',$userid); // Pre-command $ppw_add->PerformFMScriptPrefind('WhatNewKeepSpF'); $ppw_add->AddDBParam('-script.prefind.param',$userid); // Post-command $ppw_add->PerformFMScript('IPN post-command'); $ppw_add->AddDBParam('-script.param', $_POST['txn_id']); -Troy From bob at patin.com Sun Aug 30 16:08:32 2009 From: bob at patin.com (Bob Patin) Date: Sun Aug 30 16:08:38 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript In-Reply-To: <1B8489CF.A65D.425E.B1AE.A8627CC3F9A4@150.1024512> References: <1B8489CF.A65D.425E.B1AE.A8627CC3F9A4@150.1024512> Message-ID: <23DD15BA-06A9-4D25-9802-DA5DE48721B2@patin.com> Troy, So you ARE passing a parameter then? The docs don't really spell it out too well... I got around it by just writing to a field in the record I was posting, but this is good to know; thanks, Bob Patin -------------- next part -------------- A non-text attachment was scrubbed... Name: new_logo_idea3_120w.jpg Type: image/jpeg Size: 15728 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090830/ccc7f7ce/new_logo_idea3_120w-0001.jpg -------------- next part -------------- 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 Aug 30, 2009, at 5:00 PM, Troy Meyers wrote: > Bob, > > Here are some examples I've used: > > // Pre-sort > $ppw_add->PerformFMScriptPresort('WhatNewKeepSpS'); > $ppw_add->AddDBParam('-script.presort.param',$userid); > > // Pre-command > $ppw_add->PerformFMScriptPrefind('WhatNewKeepSpF'); > $ppw_add->AddDBParam('-script.prefind.param',$userid); > > // Post-command > $ppw_add->PerformFMScript('IPN post-command'); > $ppw_add->AddDBParam('-script.param', $_POST['txn_id']); > > > -Troy > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tcmeyers at troymeyers.com Mon Aug 31 08:26:09 2009 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon Aug 31 08:26:11 2009 Subject: [FX.php List] Passing a script parameter with PerformFMScript Message-ID: Bob, Yes I am. I don't use it much at all, but it seems to work just fine. -Troy > Troy, > > So you ARE passing a parameter then? The docs don't really spell it > out too well... > > I got around it by just writing to a field in the record I was > posting, but this is good to know; thanks, > > Bob Patin From jsfmp at earthlink.net Mon Aug 31 10:32:49 2009 From: jsfmp at earthlink.net (Joel Shapiro) Date: Mon Aug 31 10:32:56 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: <5E5DB477-8E6A-44FF-A6BD-EA0923B42BE7@mac.com> References: <5E5DB477-8E6A-44FF-A6BD-EA0923B42BE7@mac.com> Message-ID: <43093617-6E32-4867-870B-24B1E6650EEE@earthlink.net> Fine... Hijack my thread... ;-) FYI - See the following FM knowledge-base articles re FM & Snow Leopard: http://thefmkb.com/7359 http://thefmkb.com/7350 http://thefmkb.com/7361 -Joel On Aug 29, 2009, at 10:13 AM, Roger Moffat wrote: > > On Aug 29, 2009, at 10:20 AM, Jon & Jane Montgomery wrote: > >> I just ordered Snow Leopard for my three Mac's in my music >> department at >> school, one is a Mac Pro which hosts FMS 9 and one is my MacBook >> Pro, which >> is my development machine running FMSA 10. >> >>> >> From following this thread, I would assume that installing Snow >> Leopard soon >> might not be the wisest thing to do? I have an web app that will >> need to be >> online by November and really cannot afford to have it down or >> broken and >> really don't have the time to search for a fix. Your expert >> advise would be >> appreciated. > > I think it would be wise to wait a few days from now at least until > much wiser heads than me have time to see what happens and how to > fix it. > > I do now have PHP and MySQL all working on my MacBook, but this is > not the machine that is running as my Web Publishing Engine for > FileMaker Server 9 (I have Server 10, but don't have an Intel > machine to put it onto), so don't know if there's anything > unexpected that might happen with FileMaker Server and Web Publishing. > > I've written up a kind of a summary of my travails - by no means > all of it, and as hinted, even though I got to an answer, it may > not necessarily be the best answer and I didn't get there by the > best route either I'm sure. > > I'll be keeping an eye on the forums at http://entropy.ch/ to see > what the clever people there come up with before tackling updating > my Mac Pro. > > Roger > > _______________________________________________ > 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 Aug 31 11:05:23 2009 From: dbengston at tds.net (Dale Bengston) Date: Mon Aug 31 11:12:09 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: <5E5DB477-8E6A-44FF-A6BD-EA0923B42BE7@mac.com> References: <5E5DB477-8E6A-44FF-A6BD-EA0923B42BE7@mac.com> Message-ID: I have rolled the dice and installed 10.6.0 on my laptop. So far, so good. Here's what phpinfo() tells me about the native install of PHP 5.3.0: --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-libxml-dir=/usr --with-openssl=/usr --with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr --enable-calendar --with-curl=/usr --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/BinaryCache/apache_mod_php/apache_mod_php-53~1/Root/ usr/local --with-png-dir=/BinaryCache/apache_mod_php/apache_mod_php-53~1/Root/ usr/local --enable-gd-native-ttf --with-ldap=/usr --with-ldap-sasl=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --with-iodbc=/usr --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xmlrpc --with-iconv-dir=/usr --with-xsl=/usr --with-pcre-regex=/usr No mssql support, which is a bummer for me and my souped-up copy of FX. GD is a nice addition. Snow Leopard also killed MySQL, but a reinstall cured the problem, and I'm migrating my tables back from my other servers. I'm using FileMaker Server 9, but it's not on this Mac. Good thing, because it looks like FMS9 is not supported on 10.6. Beware, if that's what you use. Otherwise, a very nice install. I reclaimed about 9GB of disk space in the process. Dale On Aug 29, 2009, at 12:13 PM, Roger Moffat wrote: > > On Aug 29, 2009, at 10:20 AM, Jon & Jane Montgomery wrote: > >> I just ordered Snow Leopard for my three Mac's in my music >> department at >> school, one is a Mac Pro which hosts FMS 9 and one is my MacBook >> Pro, which >> is my development machine running FMSA 10. >> >>> >> From following this thread, I would assume that installing Snow >> Leopard soon >> might not be the wisest thing to do? I have an web app that will >> need to be >> online by November and really cannot afford to have it down or >> broken and >> really don't have the time to search for a fix. Your expert advise >> would be >> appreciated. > > I think it would be wise to wait a few days from now at least until > much wiser heads than me have time to see what happens and how to > fix it. > > I do now have PHP and MySQL all working on my MacBook, but this is > not the machine that is running as my Web Publishing Engine for > FileMaker Server 9 (I have Server 10, but don't have an Intel > machine to put it onto), so don't know if there's anything > unexpected that might happen with FileMaker Server and Web Publishing. > > I've written up a kind of a summary of my travails - by no means all > of it, and as hinted, even though I got to an answer, it may not > necessarily be the best answer and I didn't get there by the best > route either I'm sure. > > I'll be keeping an eye on the forums at http://entropy.ch/ to see > what the clever people there come up with before tackling updating > my Mac Pro. > > Roger > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From rogerkiwi at mac.com Mon Aug 31 11:27:34 2009 From: rogerkiwi at mac.com (Roger Moffat) Date: Mon Aug 31 11:27:37 2009 Subject: [FX.php List] FYI- Deprecated in PHP 5.3 (incl. ereg...) + PHP upgrades? In-Reply-To: References: <5E5DB477-8E6A-44FF-A6BD-EA0923B42BE7@mac.com> Message-ID: <841669A8-B244-44E7-92EA-B77D843E8005@mac.com> On Aug 31, 2009, at 1:05 PM, Dale Bengston wrote: > I'm using FileMaker Server 9, but it's not on this Mac. Good thing, > because it looks like FMS9 is not supported on 10.6. Beware, if > that's what you use. On associated thing that has bitten me is that I have FileMaker Server 9 running on Mac OS X 10.4.11 on an eMac. But I can't get at it using the FM Admin Console Java application from my MacBook on Snow Leopard - it loads the application and shows me the initial status page, but as soon as I click on anything to see Databases for example the Admin Console reports an error and closes. I guess this is something to do with Java versions - Snow Leopard only shows Java 6 in the Java Preferences Utility now, where Leopard shows J2SE 5 and Java 6, and I have to have J2SE 5 at the top of the list for Java Applications to connect to the Admin Console. But I do see a fix for this is available here http://www.filemaker.com/support/updaters/fms_9.0.3.326_SSL_mac_update.html I'll install that tonight on the eMac and see if that allows me to connect with Java 6. Roger
>> ??????????? > width="120">
>> ???????
>> ???????
>> ??????? > Group Short'][0];?> >> ???????