php running as cgi problem

Michal Kolesar kolisko na penguin.cz
Čtvrtek Leden 18 15:11:32 CET 2001


Hi all!


I have running php as cgi script.

file phpinfo.php:

!#/usr/local/bin/php.4
<? phpinfo(); ?>

my problem:
[root na quarto bin]# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
get http://www.vykysaly.cz/cgi-bin/vykysaly/phpinfo.php3 HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 18 Jan 2001 14:06:14 GMT
Server: Apache/1.3.6 (Unix)  (Red Hat/Linux) FrontPage/4.0.4.3
X-Powered-By: PHP/4.0.4pl1
Connection: close
Content-Type: text/html

#!/usr/local/bin/php.4
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head><STYLE TYPE="text/css"><!--
A { text-decoration: none; }


when I connect to web i get the string "#!/usr/local/bin/php.4" on first
row. Phpinfo.php site is OK (php translation works) .. but on every php page
is
this row on top of site.

I tried use "#!/usr/local/bin/php.4 -q" - quite mod...

but there is other problem:

[root na quarto bin]# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
get http://www.vykysaly.cz/cgi-bin/vykysaly/phpinfo.php3 HTTP/1.0

HTTP/1.1 200 OK
Date: Thu, 18 Jan 2001 14:02:19 GMT
Server: Apache/1.3.6 (Unix)  (Red Hat/Linux) FrontPage/4.0.4.3
X-Powered-By: PHP/4.0.4pl1
Connection: close
Content-Type: text/html

No input file specified.
Connection closed by foreign host.


I get "No input file specified" ...

Any idea?

Than You for help!
--

S pozdravem,
Michal Kolesar
kolisko na penguin.cz
http://www.egarden.cz
server of free unix services





Další informace o konferenci Linux