Re: long running php script won't complete :(

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

 



On Mon, Jun 4, 2012 at 5:57 PM, rene7705 <rene7705@xxxxxxxxx> wrote:
> Hi.
>
> I've got a piece of code that builds up a multi-meg test array for my
> opensourced http://mediabeez.ws/products/htmlMicroscope var_dump()
> improvement, and when I run it for longer than about 20 minutes, the
> browser just calls it quits.. :( Firefox, and chrome.
>
> I'd like to do this with a browser call, if all else fails I suppose I
> can run the generation of the test array from the commandline, but I
> prefer calling from the browser..
>
> So, I'm doing ob_start(), then start the main loop which does echo
> '.'; ob_flush(); flush();.
>
> I've got my KeepAliveTime set to 25 seconds, as per
> http://www.pctools.com/guides/registry/detail/891/
>
> And I'm calling this from my browser to the domain name that points
> back to the machine I run the browser on, latest wampserver on windows
> 7.
> Calling via localhost doesn't work somehow.
>
> Is there anything obvious I've missed?
>

Just to be sure, have you checked the Apache error logs for anything
obvious? (eg. out of memory?)
In case the browser closes the connection, you could use
ignore_user_abort [1] to be sure the script continues, though the
browser won't receive the result.

- Matijn

[1] www.php.net/manual/en/function.ignore-user-abort.php

-- 
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