Re: Making a page loop with header('Location: ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10 Jun 2005, at 00:36, Joe Harman wrote:

I've ran into a little bit of a snag with php execution time... so, i
need to execute the page a few times so that I can split the operation
up into multiple parts... my other option would be to make a
javascript reload

A more elegant solution is to split the process so that you can handle it asynchronously. Create a server-side process that does your long operation, then make your page refresh monitor it, using a simple page refresh. This way you completely avoid timeout issues - you can have operations that go on continuously for days at a time. This article I wrote might help:

http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20977409.html

Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@xxxxxxxxxxxxxxxxxx | http://www.synchromedia.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux