"No input file specified."
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

"No input file specified."

From: Bush is a Fascist <z333r@yahoo.com>
Date: Thu Jul 21 2005 - 16:04:53 CEST

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_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
"abc=123".

Yet, I get this error. No finnagling is fix it.

Can anyone explain why this is happening?

Thanks,
333
Received on Mon Oct 17 21:13:50 2005