"Non-blocking" process in PHP

Asked

Viewed 134 times

0

a 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 fairly time-consuming routine that blocks the entire system until it is completed. I know that PHP does not work with Threads. Is there any way to make it not block the rest of the system? Thank you.

  • http://answall.com/questions/101626/como-executar-um-arquivo-com-php/101795#101795

  • This answer explains the problem when using sessions and how to avoid http://answall.com/a/57827/3635

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.