As an experiment I wrote a simple C program that invokes
PHP using system(), but I'm getting an error "No input file
specified.".
What I do is:
setenv ("REQUEST_METHO D", "GET", 1);
setenv ("QUERY_STRING" , "abc=123", 1);
and then I invoke PHP thus:
system "/usr/local/bin/php myfile.php < dummyfile > foo";
where dummyfile is either empty or just contains the line
"abc=123".
Yet, I get this error. No finnagling is fix it.
Can anyone explain why this is happening?
Thanks,
333
Comment