Re: PHP Counter?

From: Date: Sun, 26 Sep 2004 20:23:38 +0000
Subject: Re: PHP Counter?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197903@lists.php.net to get a copy of this message
Nick Wilson wrote:
Hi all, I have a script that at the present just outputs '$count .'<br />'' after each iteration of a foreach() loop. I have set implicit_flush so that this works. That's clearly monkey poo though eh? :-) Do I have to get into unkown waters and try and make PHP talk to JS to achieve a kind of 'hit counter' like effect or is there some easier way? ::explanation It should print the $count var after each iteration *replacing* the last $count Im stumped. A little guidance would be much appreciated...
Either JS or Refresh header with some timeout. With JS you can use a input textbox styled to not have any borders. Refresh header will refresh the whole page.

« previous php.general (#197903) next »