Reply to Re: Long sleep() and time-out's

Your name:

Reply:


Posted by David Haynes on 12/18/42 11:50

Andy Jeffries wrote:
> On Fri, 16 Jun 2006 07:08:31 +0200, Vincent Delporte wrote:
>>> If it's a timeout problem in the browser it doesn't matter what language
>>> you use. The problem isn't in anything you can control.
>> I meant that I would rewrite the algo in Delphi instead of a PHP script.
>> That will solve the sleep(rand()) issue. Thanks.
>
> Unless I'm missing something Jerry's answer still stands. If you write a
> server-side CGI exe using Delphi, the browser will still timeout while
> waiting for your random wait.
>
> If you are planning on running the Delphi utility through some other
> method (at, scheduled jobs, etc) then you could do the same thing with PHP
> (using set_time_limit()) and it would work equally fine.
>
> Cheers,
>
>
> Andy
>
You could always respond to the browser before you go into the sleep
loop and redirect it to a 'waiting...' page with a meta-refresh on it.
The waiting page can check whether the fetch from the remote is complete
and either a) display a new page with the details or b) call itself and
loop again.

Maybe a c) if we have looped too many times to say 'the data isn't coming'.

-david-

[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

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