kranthi, you are wrong here. popen() will open a pipe to a process.
You must have meant fopen() which doesnt work with pipes, but with
files.
you first popen php (ie execute it)
you then write the code you want php to exec (php is still executing,
reading your input)
at the end you pclose php
popen will allow you to read/write data to a file but not execute the php code.
i am assuming that you want to execute the php script like
include/require does.. if that is the case system() will serve your
purposebut this requires php to be installed as a CLI
?php
$res =
2 matches
Mail list logo