Popup showing while running php script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eivind
Forum Commoner
Posts: 28
Joined: Tue Apr 19, 2011 7:57 am

Popup showing while running php script

Post by eivind »

Hi,

Anyone knows if there's a way to show the progress of a running php script? Either by showing a progress bar or having a popup showing up with a timeglass spinning as long as the script runs.
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: Popup showing while running php script

Post by oscardog »

Sort of. What you could do is have a javascript function called when the form is submitted / link is clicked which creates the popup. This will show while the PHP script is ran, and then once it's done it will load the next page. It's more of a trick rather than an actual realistic loading screen.

Alternatively, you can use JavaScript and iFrames to have a realistic loading bar (i.e. Like on multiple upload sites).
fugix
Forum Contributor
Posts: 207
Joined: Fri Mar 18, 2011 8:01 pm

Re: Popup showing while running php script

Post by fugix »

found quite a few websites that share their insight on this matter

http://www.google.com/search?q=progress ... rt=10&sa=N
eivind
Forum Commoner
Posts: 28
Joined: Tue Apr 19, 2011 7:57 am

Re: Popup showing while running php script

Post by eivind »

Thanks :)
Post Reply