RE: [PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output

From: Date: Sun, 21 Oct 2001 17:18:07 +0000
Subject: RE: [PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-4685@lists.php.net to get a copy of this message
Seems to me that the problems is that you have two instances of PHP going at the same time. The first is the one compiled into Apache and the second is the cgi module. My bet is that the PHP compiled into Apache is catching it first (maybe you told all .cgi files to be parsed by the PHP parser?). In that case, the first line would be treated as HTML output, not PHP. This would be the reason you get that line in all of your scripts. Here's a test: remove that line from your file and then try it. If it continues to work, I would seriously suspect that the built-in Apache-PHP parser is handling your .cgi files. -Brian -----Original Message----- From: Dave Goodrich [mailto:dave@pixelhammer.com] * snip info.cgi #!/usr/local/bin/php <?php phpinfo(); ?>

« previous php.install (#4685) next »