Forum Moderators: phranque
I want to find the most effective way to realize this function.
Any help will be appreciated!
I can tell you that most Web users do not "wait" for anything. If they do not get some response from your Web site within one-half second of their request, many will leave. After five seconds, almost all will have left and gone somewhere else. Therefore, this plan is not a good one, and you should re-assess *why* you think you need to lock the script for that length of time. You should look into separating the process that takes such a long time from the actual rendering of the page, and give all users something to look at while the process completes.
With more information about exactly what you are doing during that long time period, it's likely that someone in our PHP forum could suggest an alternate design that avoids this long delay, and avoids "locking" the page for any user. Do not rush into implementation details when the requirements and design phases are not finished yet.
Jim