wamp - Invoke php script from another using popen -
my index.php resides on wamp, , when start url invoked wish kick off php process.php script run asynchronously. when process.php script invoked index.php return , not blocked.
then in future, when stop url invoked wish terminate process started.
my index.php contains following:
$script = "process.php"; $handle = popen ("php $script", "r"); echo $handle;
both scripts reside in same directory
the handle prints resource id #2 process.php not seem have been invoked.
what doing wrong here?
Comments
Post a Comment