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); } But it does not seem to work well. Any suggestion? Regards Alessandro