Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- "No input file specified."
- Bush is a Fascist
July 21, 2005, 2:04 pm
rate this thread
As an experiment I wrote a simple C program that invokes
PHP using system(), but I'm getting an error "No input file
What I do is:
setenv ("REQUEST_METHOD", "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
Yet, I get this error. No finnagling is fix it.
Can anyone explain why this is happening?