RE: [PHP] wait function

From: Date: Sat, 05 Feb 2005 13:04:35 +0000
Subject: RE: [PHP] wait function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208116@lists.php.net to get a copy of this message
> 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 -M

« previous php.general (#208116) next »