Hello Jim, You will need to do some low level ajax coding from the client side with the onreadychange event. If you're using jquery 1.3 then you can create your own XHR object with the xhr callback handler. To learn more about the ready state check out this link: http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html You might find what you're looking for with the following ready state: "3 - Interactive Downloading, responseText holds the partial data. " Raymond Irving Create Rich PHP Web Apps Today! Raxan PDI - http://raxanpdi.com/ --- On Thu, 3/26/09, jim white <jbw2003@xxxxxxxxxxxxx> wrote: > From: jim white <jbw2003@xxxxxxxxxxxxx> > Subject: flushing AJAX scripts > To: php-general@xxxxxxxxxxxxx > Date: Thursday, March 26, 2009, 4:01 PM > I am using jQuery AJAX request to run > a script that can take several minutes to create a report. I > want to start the script and immediately echo a response to > close the connection and then let the script complete a > report which I can get later. I have tried several thing > such as > > ob_start(); > echo json_encode(array("time"=>$now, > "message"=>"Report has started running!")); > ob_end_flush(); > > However, the script does not respond and (I suppose close > the connection) until the report is complete. How can I fix > this behaviour? > > Jim > > > -- James (Jim) B. White > tel: (919)-380-9615 > homepage: http://jimserver.net/ > > -- PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php