Non-blocking process in PHP [duplicate]

0

A little help. I have the following code.

$output = shell_exec("php /sites/empresa/php/faturamento/gerar_fat_simulado.php ".$cliente.' '.$mes.' '.$ano.' '.$tipo);

It runs through the shell a rather time-consuming routine that locks the entire system until it completes. I know PHP does not work with Threads. Is there any way to prevent this from blocking the rest of the system? Thank you.

    
asked by anonymous 01.02.2017 / 12:48

0 answers