My index.php resides on WAMP, and when a start URL is invoked I wish to kick off another PHP process.php script that will run asynchronously. So when this process.php script is invoked my index.php will return and will not be blocked.
Then in the future, when a stop URL is invoked I wish to terminate the process I started.
My index.php contains the following:
$script = "process.php";
$handle = popen ("php $script", "r");
echo $handle;
Both scripts reside in the same directory
The handle then simply prints Resource id #2 but my process.php does not seem to have been invoked.
What am I doing wrong here?