Re: [PHP] wait function

2005-02-05 Thread Jochem Maas
Mike wrote: I would write down an efficient WAIT function. The one I did was as follows: function microdelay($delay) { $UNUSED_PORT=31238; @fsockopen("tcp://localhost",$UNUSED_PORT,$errno,$errstr,$delay); } Are you looking for something like sleep()? http://us2.php.net/manual/en/function.sleep.php

RE: [PHP] wait function

2005-02-05 Thread Mike
> I would write down an efficient WAIT function. > The one I did was as follows: > > function microdelay($delay) { > $UNUSED_PORT=31238; > @fsockopen("tcp://localhost",$UNUSED_PORT,$errno,$errstr,$delay); > } > Are you looking for something like sleep()? http://us2.php.net/manual/en/function.s