Re: "No input file specified."
- From: gordonb.dsqrh@xxxxxxxxxxx (Gordon Burditt)
- Date: Thu, 21 Jul 2005 18:08:08 -0000
>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
.
- References:
- "No input file specified."
- From: Bush is a Fascist
- "No input file specified."
- Prev by Date: Re: Avoid 'GET' method
- Next by Date: Re: anyway to get past browser cache and find out the truth of what is going on?
- Previous by thread: Re: "No input file specified."
- Next by thread: CURL_EXEC
- Index(es):
Relevant Pages
|