Posted by Cal Lidderdale on 11/26/08 11:53
I've got a webpage generated by a PHP script. General flow is:
Start page print some stuff and flush();
setup a loop (about 40x)
start an external process output results to file(s)
flush
repeat
setup second loop counting ext procs
sleep 1
echo "There are ## left to do."
repeat until count = 0
process ext files
display results on screen
---------------
Ok, where I'm waiting for the count to go to 0 I would like to display a
counter, ie:
"There are 26 left"
"There are 22 left"
"There are 17 left"
Warm fuzzies for the user that he "will" get an answer ... some day :-D
Only I'd like to just make the number change with out a newline - ^H
doesn't work. printf ("^H^H^H^H%4d", cnt)
Ideas???????????????/
Thanks
Navigation:
[Reply to this message]
|