Reply to Re: How to handle lengthy operations?

Your name:

Reply:


Posted by Schraalhans Keukenmeester on 05/09/07 22:48

At Thu, 10 May 2007 00:43:26 +0200, Gilles Ganault let his monkeys type:

> Hi
>
> I have a piece of code that can take a couple of minutes to run,
> causing the browser to time out.
>
> Is there a way to send empty, fake data to keep the browser happy
> while the code is running on the server?
>
> Thanks.

Are you sure it's not the server timing out? max_execution_time is a
setting in php.ini, defaults to 30 secs I believe.

You could, during processing, use ob_start() and ob_flush() to send some
stuff to the browser repeatedly.

Sh.

[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

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