I would like to get some tips on how to implement the following:
I want my users to know about the progress of a task running on my server through AJAX. My server runs a PHP script that downloads the file through a shell command using the popen function. It periodically echoes / prints what happens. I would like to capture this output using AJAX and present it to the user.
I was told in another question that I might need to use a survey or a comet? I would really appreciate any help or guidance on how to achieve this in the simplest and most effective way. Hope I can still use jQuery.
Thanks for taking the time to read this.
PS I was able to achieve this thanks to the stackoverflow community. :)
source
share