I want my main PHP script to kick off another subscript and continue running. I don't care about the subscript and I don't need any feedback from it. I just wnat to run it. I cannot use exec() since that waits for the subscript to finish. I cannot use pcntl_fork() because I'm on Windows. I tried to use proc_open() as in the below example but it's still waiting for the subscript to complete before continuing the main script execution. How do I do this?
$descriptorspec = array(
0 => array("pipe", "r"), // stdin
1 => array("pipe", "w"), // stdout
2 => array("pipe", "w") // stderr
$process = proc_open('php c:\webroot\watchdog\run_the_subscript.php', $descriptorspec, $pipes);
echo "keep running main script";