Run to the end long-running processes

0

I'm having trouble with my application running until the end, which shows the whole process in real time on the screen using XMLHttpRequest | onprogress and after about 2hrs running the browser simply stops. >

My script looks like this:

@ini_set('zlib.output_compression', 0);
@ini_set('output_buffering', 0);
@apache_setenv('no-gzip', 1);
ignore_user_abort(true);
set_time_limit(0);


while (ob_get_level()) ob_end_clean();
ob_implicit_flush();

// vários processos
echo "process..."

I've researched a lot about PHP and a lot of CLI , I tested it with shell_exec but it does not display in real-time as above processes.

Has anyone ever gone through this? have any solutions?

    
asked by anonymous 10.11.2015 / 00:07

0 answers