Posted by C. on 05/11/07 22:05
On 10 May, 20:46, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> Gilles Ganault wrote:
> > Is there a way to send empty, fake data to keep the browser happy
> > while the code is running on the server?
>
> Schraalhans Keukenmeester's point is an important one: the browser is not
> the only thing with a timeout -- mod_php has its own timeout too.
>
A better solution might be to run asynchronously in a seperate program
group (running something in the background of a webserver process is
not a good idea). It's quite easy on Linux/Unix:
$cmd='/path/to/php/script';
`at now php $cmd`;
I've heard that `start php $cmd` will give similar results on MS
platforms but you'd need to investigate further.
C.
[Back to original message]
|