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
shahrzad khorrami wrote:
Hi,
I have two php scripts, first one must pass arguments to second(the php
script that will take more time to process for example inserting 100
records to db, data come from first script). I search around web and find
below function:
function
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 =
3 matches
Mail list logo