Update page using Ajax while PHP script is running
Posted on 2007-07-20
I am using PHP to parse XML data, which ultimately gets stored into a database. However, while I am downloading and parsing the XML (which takes about 30 seconds), I would like to give the user status reports.
Since I am on Apache 1.0.33, I cannot do any type of page flushing to force output to the browser.
What I would like is to use Ajax to update the status div element while my script is running.
However, this does not seem to be a very elegant solution. I guess I want more of a event-driven solution.