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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -