Re: "No input file specified."



>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
.



Relevant Pages

  • "No input file specified."
    ... As an experiment I wrote a simple C program that invokes ... PHP using system, but I'm getting an error "No input file ... Prev by Date: ...
    (comp.lang.php)
  • Re: Resource data
    ... Each test is derived from a single line in a txt input file. ... perhaps can you insert the text file via php or something like that? ... function newTest() { ... I appreciate your suggestion, but I think I should master Javascript first, ...
    (comp.lang.javascript)
  • Re: nginx+fastcgi+php gets "No input file specified."
    ... from "No input file specified." ... I've tried every solution on the Internet but nothing worked. ... but if i access a file which isn't a *.php file, ... Jerry Stuckle ...
    (comp.lang.php)
  • Re: sendmail smrsh symlinks not working against php scripts
    ... I am trying to forward the e-mails received to one address towards a php ... No input file specified. ... However, if I put a hardlink instead of the symlink, all works fine! ... a Sendmail newsgroup not a php newsgroup. ...
    (comp.mail.sendmail)
  • Re: PHP guy turned ASP needs pointers
    ... legacy and it's preferred to use classes, user controls or web controls. ... I'm used to using many of my PHP tricks ... > and was hoping that many of them have ASP counterparts. ... > and then specify a script file and it will include all the code in the ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)