Yes: AJAX.
That's the only way to do kind of a "hey, are you done yet?" call & response system with PHP that I know of. anything else could get ugly pretty fast.
Essentially you'd want an AJAX page to send a request to your PHP script, and your AJAX updater would constantly wait for the 200 - Status code or whatever response from the server saying it's done. If it's not done, show a "loading" or "processing" image or whatever, and when it's done, hide that info and display the result.
There are literally hundreds upon thousands of tutorials on how to do exactly this. Just google for it.