|
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-
Navigation:
[Reply to this message]
|