If I launch a PHP daemon in Windows with popen from a PHP script how do I check in a second time if that script is still running from a PHP script?
I'm with Apache, php as module
UPDATE: process it's started with
popen('start /b php process.php', 'r');
Once this is launched in windows a php.exe process is started. How do I get that process PID to later check (it runs for hours) from another PHP script if that process is still running?
I read this proc_open which is supposed to give the PID of the process launched along with proc_get_status but with that same command I use with popen nothing happens
UPDATE: I noticed with the same command and proc_open a php.exe process does start but it closes just after the script that launched it ends and the PID returned by proc_get_status doesn't correspond to the Windows PID