php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10485 "no input file specified" when running as a CGI
Submitted: 2001-04-25 02:19 UTC Modified: 2002-01-02 13:53 UTC
From: chulinn at gmx dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: HP-UX 11
Private report: No CVE-ID: None
 [2001-04-25 02:19 UTC] chulinn at gmx dot de
I am running PHP4 4.0.4pl1 on HP-UX11 (64 bit) and
Apache 1.3.11. I compiled PHP4 with gcc and did not
specify any options except --with-mysql.

When I try to execute simple scripts like:
#!/opt/php4/php -q
echo "foobar";

I always get "No input file specified." If I leave out
the option -q my scripts work, but I always get
as a first line "#!/opt/php4/php" which prevents me
from using cookies :-(

It is hardly possible to compile PHP on HP-UX, so I
cannot (and do not want to) use PHP as an Apache module.
I would be extremely happy to use PHP via CGI, but I am
still running into this annoying bug which should be
fixed long ago. At least the usenet is full of descriptions
"No input file specified" when using PHP via CGI and
I never encountered a solution. I have got it running
on Apache and Windows 2000 without problems (since there
was no need to compile anything :-), but this is
not a suitable webserver.

Cheers,

Mark

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-12 08:28 UTC] yohgaki@php.net
Could you try 4.1.0? to see if it helps?
 [2002-01-02 13:53 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 20:01:25 2019 UTC