Re: [PHP] PostTrack Updates

2008-04-05 Thread Robert Cummings
On Sat, 2008-04-05 at 22:54 -0400, [EMAIL PROTECTED] wrote: > $stfu = true; > if($stfu == true) { >stop_posting( ); > }else{ >post( ); > } > ?> Please don't top-post. It makes it hard to follow the discussion :B Cheers, Rob. -- http://www.interjinn.com Application and Templating Framew

Re: [PHP] PostTrack Updates

2008-04-05 Thread [EMAIL PROTECTED]
Original Message: - From: Robert Cummings [EMAIL PROTECTED] Date: Sat, 05 Apr 2008 22:14:44 -0400 To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], php-general@lists.php.net Subject: Re: [PHP] PostTrack Updates On Sat, 2008-04-0

Re: [PHP] APC & FastCGI != upload progress ?

2008-04-05 Thread Manuel Lemos
Hello, on 04/04/2008 03:16 AM steve said the following: > FastCGI is *the* way to run PHP, but I think Apache is not the > platform for it anymore. If need more than one server, Apache pre-forked model may limited. Otherwise it is just fine. Other than that, I think there are some features that o

Re: [PHP] PostTrack Updates

2008-04-05 Thread Robert Cummings
On Sat, 2008-04-05 at 21:54 -0400, Daniel Brown wrote: > $enough = 'enough'; > ?> Hmmm... Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Robert Cummings
On Sat, 2008-04-05 at 16:19 -0700, Jim Lucas wrote: > Robert Cummings wrote: > >> > >> - Taking away the unnecessary fseek() made the script execute in 63 seconds > >> - Using a buffer system, (reading in 1Mb of the text file at a time and > >> then > >> looping through the string in memory) made

Re: [PHP] PostTrack Updates

2008-04-05 Thread Daniel Brown
On Sat, Apr 5, 2008 at 7:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Sat, Apr 5, 2008 at 12:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > >Top-posting because I don't care. > > > >I knew it would cause a lot of this up front, but eventually it > > could be potentially useful,

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Jim Lucas
Robert Cummings wrote: On Sat, 2008-04-05 at 19:09 +0100, Steve McGill wrote: "Richard Heyes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Thanks for the heads up on fgetc() incrementing by one. I hadn't actually tested that code yet, I was using the original fseek($handle,$pos).

Re: [PHP] PostTrack Updates

2008-04-05 Thread Nathan Nobbe
On Sat, Apr 5, 2008 at 12:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: >Top-posting because I don't care. > >I knew it would cause a lot of this up front, but eventually it > could be potentially useful, once the monkeys realize that throwing > poop isn't as much fun as it looked like on

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Steve McGill
So the only variation on a theme that I didn't test is the one that performs the best by an order of magnitude... nice. Many thanks for your time everyone. "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Sat, 2008-04-05 at 19:09 +0100, Steve McGill wrote: >>

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Robert Cummings
On Sat, 2008-04-05 at 19:09 +0100, Steve McGill wrote: > "Richard Heyes" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> Thanks for the heads up on fgetc() incrementing by one. I hadn't actually > >> tested that code yet, I was using the original fseek($handle,$pos). > >> > >>

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Steve McGill
"Richard Heyes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Thanks for the heads up on fgetc() incrementing by one. I hadn't actually >> tested that code yet, I was using the original fseek($handle,$pos). >> >> strpos would be ideal but it needs to work on a string and not a fi

Re: [PHP] PostTrack Updates

2008-04-05 Thread Daniel Brown
Top-posting because I don't care. I knew it would cause a lot of this up front, but eventually it could be potentially useful, once the monkeys realize that throwing poop isn't as much fun as it looked like on television. ;-P By the way, if you guys have ideas for improvement, feel f

Re: [PHP] PostTrack Updates

2008-04-05 Thread Robert Cummings
On Sat, 2008-04-05 at 07:21 -0700, Casey wrote: > On Apr 5, 2008, at 6:23 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > > On Apr 5, 2008, at 1:48 AM, Robert Cummings wrote: > > > >> > >> On Fri, 2008-04-04 at 22:39 -0700, Jim Lucas wrote: > >>> Robert Cummings wrote: > \n" ?> > >>

Re: [PHP] PostTrack Updates

2008-04-05 Thread Robert Cummings
On Sat, 2008-04-05 at 09:23 -0400, Jason Pruim wrote: > On Apr 5, 2008, at 1:48 AM, Robert Cummings wrote: > > > > > On Fri, 2008-04-04 at 22:39 -0700, Jim Lucas wrote: > >> Robert Cummings wrote: > >>> >>> \n" ?> > >>> Some changes take effect with the PostTrack metrics > >>> \n" ?> > >>> sy

Re: [PHP] PostTrack Updates

2008-04-05 Thread Casey
On Apr 5, 2008, at 6:23 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: On Apr 5, 2008, at 1:48 AM, Robert Cummings wrote: On Fri, 2008-04-04 at 22:39 -0700, Jim Lucas wrote: Robert Cummings wrote: \n" ?> Some changes take effect with the PostTrack metrics \n" ?> system with this week (will s

Re: [PHP] everything as classes

2008-04-05 Thread Larry Garfield
On Thursday 03 April 2008, robert wrote: > Along the lines of a previous post "How to get a code review", I am > curious if it is overkill to create everything in classes. For > example, a movie website where there is a class for the movie > datatype, class for getting/adding/deleting/updating movi

Re: [PHP] PostTrack Updates

2008-04-05 Thread Jason Pruim
On Apr 5, 2008, at 1:48 AM, Robert Cummings wrote: On Fri, 2008-04-04 at 22:39 -0700, Jim Lucas wrote: Robert Cummings wrote: \n" ?> Some changes take effect with the PostTrack metrics \n" ?> system with this week (will show up in next week's \n" ?> report). There's one bug fix and a ne

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Richard Heyes
Thanks for the heads up on fgetc() incrementing by one. I hadn't actually tested that code yet, I was using the original fseek($handle,$pos). strpos would be ideal but it needs to work on a string and not a file - I don't want to load a 100Mb file into memory if I don't have to. Perhaps I shou

Re: [PHP] How to jump to line number in large file

2008-04-05 Thread Steve McGill
Thanks for the heads up on fgetc() incrementing by one. I hadn't actually tested that code yet, I was using the original fseek($handle,$pos). strpos would be ideal but it needs to work on a string and not a file - I don't want to load a 100Mb file into memory if I don't have to. Perhaps I shoul