I have a mask detection python program. Whenever we run that, it keeps running continuously and keeps detecting (endless program). I have made a web portal to start off this python program on a button click event using php. Now the issue is that when i start off this program by shell_exec() , it starts. But php waits for the program to finish. Till the time program is running (from shell_exec() ), php just freezes, doesn't even load any other page.
So how to run cmd command from shell_exec() and not wait for it to finish executing?
CODE
$command = escapeshellcmd("start cmd /c python mask_detector.py " );
$output = shell_exec($command);