endan" <[EMAIL PROTECTED]>
> Do: <[EMAIL PROTECTED]>
> Wyslano: 23 maja 2001 01:54
> Temat: [PHP-WIN] RE:escape loop on timeout
>
> >
> >
> > Zak Greant wrote:
> >
> > > Johan Lundqvist wrote:
> > > > This is a w
>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
AIL PROTECTED]>
Do: <[EMAIL PROTECTED]>
Wyslano: 23 maja 2001 01:54
Temat: [PHP-WIN] RE:escape loop on timeout
>
>
> Zak Greant wrote:
>
> > Johan Lundqvist wrote:
> > > This is a way of doing it:
> > >
> > > $s = time() + 10;
> > >
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
OCK--
-Original Message-
From: Brendan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 23 May 2001 09:55
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] RE:escape loop on timeout
Zak Greant wrote:
> Johan Lundqvist wrote:
> > This is a way of doing it:
> >
> > $s = time() + 10;
> &
Zak Greant wrote:
> Johan Lundqvist wrote:
> > This is a way of doing it:
> >
> > $s = time() + 10;
> > for ($i = time(); $i <= $s; $i++) {
> > print $i;
> > }
> >
> > Will run for about ten seconds...
>
> Did you leave a bit of code out?
> In most cases, this will run for only a fe