Re: "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

Re: "No input file specified."

From: Gordon Burditt <gordonb.dsqrh@burditt.org>
Date: Thu Jul 21 2005 - 20:08:08 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.

In grepping through the source code of PHP 4.4.0, it seems
that the CGI version of PHP insists on having an absolute path
for the name of the script file, so it can set PATH_TRANSLATED
to an appropriate value.

                                                Gordon L. Burditt
Received on Mon Oct 17 21:14:07 2005