My advice would be to try to avoid any solutions that talk about avoiding the processes that were started during the exit from PHP. Here is a simple example of how to do this using jQuery:
window.setInterval(checkstat, 10000);
If you need to update more than one area on your page, you can make one call, but return JSON or XML, and then fill in the bits as needed.
Enigma plus
source share