Re: [PHP] PHP loop control

2007-10-08 Thread Nathan Nobbe
actually, now that i think about it, the real problem is how to keep the loop alive after the script terminates. hmm; that is a problem. you could have a cli script run in the background. the only way youll be able to get data to it from the scripts that send output to the browser is through som

Re: [PHP] PHP loop control

2007-10-08 Thread Nathan Nobbe
On 10/8/07, David Peters <[EMAIL PROTECTED]> wrote: > > I'm looking for some ideas on the best way to perform the following. > 1. Give the user a webpage that allows him/her to start/stop a loop. > 2. Open a socket to a device. > 3. Issue commands to the device a read the results. > 4. Process

[PHP] PHP loop control

2007-10-08 Thread David Peters
I'm looking for some ideas on the best way to perform the following. 1. Give the user a webpage that allows him/her to start/stop a loop. 2. Open a socket to a device. 3. Issue commands to the device a read the results. 4. Process the results. 5. If the user selected 'Stop', exit the loop or g