I am writing a php-program that needs to be able to start off another program (test.py) and having this running in the background without halting the initial php-program. I also need to control the python program running in the background and be able to kill it at any time (need the process ID of the python program)
In my attemt so far i have succeeded to fork of a python program running in the background without halting the php-program.
My code for this is as follows:
Code: Select all
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run('python test.py', 3, false);(I am using Windows XP)
Hope someone can halp me with my problem
Regards