troubleshooting Question

Progress Bar in While Loop

Avatar of spen_lang
spen_lang asked on
PHP
3 Comments1 Solution1864 ViewsLast Modified:
Is there any way to do a while loop with a progress bar?

My idea is for the script to return how many results in the SELECT statement before it does it's while loop - and use the amount of results to divide up a progress bar.

then each time the loop runs it will add a bit more to the progress bar.

This is only what I have thought about in my head - I have no idea if this will work or indeed if this is the best way to do it?

basically I'm trying to stop my script timing out. Because the script takes quite a long time to execute, the browser is timing out - so I need a way of keeping the browser responding for the duration of the while loop.


Any one have any ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros