| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Php Sleep Function|
The sleep function does not work as I expect
I have a list of users and I want to display each one ONE SECOND after the last.
So I use the sleep() function, and what happend is, that it sleep the total amount of all records and then displays all of them of a sudden.
Ej. If I have 20 users, the sistem last 20 seconds and show all of them suddenly, no one by one.
or you can flush [php.net] the information upon each iteration after the sleep().
Thank you coopster, the flush() worked fine.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved