[PHP] Show Results one at a time ?

2004-01-29 Thread Dave Carrera
Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time. --- Test Function Code --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10); $i=0; while($i =count($cnt)){ set_time_limit(2); echo

RE: [PHP] Show Results one at a time ?

2004-01-29 Thread Ford, Mike [LSS]
On 29 January 2004 12:51, Dave Carrera wrote: Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time. --- Test Function Code --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10);

RE: [PHP] Show Results one at a time ?

2004-01-29 Thread Dave Carrera
:12 To: 'Dave Carrera'; [EMAIL PROTECTED] Subject: RE: [PHP] Show Results one at a time ? On 29 January 2004 12:51, Dave Carrera wrote: Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time

Re: [PHP] Show Results one at a time ?

2004-01-29 Thread Rob Adams
If you're using the command line, ignore this comment. Dave Carrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- updated with Sleep() --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10); $i=0; while($i =count($cnt)){ //sleep(1); set_time_limit(2); //sleep(1);

Re: [PHP] Show Results one at a time ?

2004-01-29 Thread John W. Holmes
From: Dave Carrera [EMAIL PROTECTED] Wherever I put sleep(1), notice the comments, in the func all it dose is wait 10 seconds then shows the full output and not each result 1 at a time to the screen. Are you running this over the web or on the command line? Even though your script is

Re: [PHP] Show Results one at a time ?

2004-01-29 Thread Brian Tully
on 1/29/04 7:50 AM, Dave Carrera at [EMAIL PROTECTED] wrote: Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time. --- Test Function Code --- function TestFunc(){ $cnt =