Re: continue working after finishing up with the http client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Worster schrieb:
> what options are there to do the following:
> 
> 1. receive request from client (including post data)
> 
> 2. do some work, update the db, prepare output for client
> 
> 3. send output and finish up with the client
> 
> 4. do some more work that might take considerable time, updating the db some
> more

| <?php
| function callback($buffer) {
|     header('Content-Length: '.strlen($buffer));
|     header('Transfer-Encoding : identity');
|     header('Connection: close');
|     return($buffer);
| }
| ob_start('callback');
|
| /*
|  * Steps 1-3
|  */
|
| while (@ob_end_flush());
|
| /*
|  * Step 4
|  */
| ?>

Regards,
Carsten


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux