Click to See Complete Forum and Search --> : how do i use m_uwait?


d-kathy
12-11-2006, 07:31 PM
I made a script that downloads all the diary entries off a SNS site. It seems to be working. But when I try to download lot of entries, the first few loops work but after a while the values returned becomes null. My guess was that the server at the SNS site was restricting me because I was accessing the servers too fast. So I did some research and placed m_uwait(1000);in my for loop. It seems that the results return to the browser without waiting. (because the stuff before m_uwait is executed)
What should I do?

NogDog
12-11-2006, 07:37 PM
m_uwait() is specific to the MCVE (Monetra) Payment Functions (http://www.php.net/manual/en/ref.mcve.php). Perhaps you should try using the usleep() function (http://www.php.net/usleep) instead?