I have a process I want to run in the background of a page. The process will take a while to run, lets say a few minutes.
I have it set up so that from the page I ca
With just PHP you'll pretty much end up doing polling. You'll need to spawn your long-running process in the background, and for example write to a database of file what it's progress is.
The browser can then call a different php script every x seconds, which reports back with this status.
Polling sucks though, but that's what you're stuck with, with PHP.