RE: [PHP-WIN] RE:escape loop on timeout

2001-05-23 Thread Svensson, B.A.T.
>Have you got any idea what to do when you want to measure the >time but not in the loop? > >Case: you want to limit the time of reading from an open >socket (fread), the other side doesn't answer, you wait and wait... In C/C++ one can set a network timeout counter before one does a network cal

Re: [PHP-WIN] RE:escape loop on timeout

2001-05-22 Thread Zak Greant
Brendan wrote: > Thanks guys > > sorry about the delay .. I am in Australia.. > checking the time each loop would only work if the loops complete correctly > .. if the process locks mid loop php wont reach the criterion break because > it deals with each command linearly. ie > > for (x=0;x!="array

RE: [PHP-WIN] RE:escape loop on timeout

2001-05-22 Thread Ignatius Teo
In that case put the timing loop INSIDE dothisfunction() and rather than breaking out of the loop, execute a return to the calling script. Ignatius Teo Project Manager, Internet Access Services Information Technology Directorate Southern Cross University PO Box 157, Lismore NSW 2480 Email: iteo_a