Reply to Re: How to handle lengthy operations?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация