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

From: Date: Sat, 20 Oct 2001 16:05:16 +0000
Subject: Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output
References: 1  Groups: php.general php.install 
Request: Send a blank email to php-general+get-71685@lists.php.net to get a copy of this message
It's not you. I just built a bare cgi version of php, nothing but './configure' and got the same result. I used this simple script to be sure I was in fact running the cgi binary and it showed I was. info.cgi #!/usr/local/bin/php <?php phpinfo(); ?> I got the correct info page, but with the #!/usr/local/bin/php at the top as you stated. Odd, but I've never used the cgi version so other than confirming your problem I am afraid I'm no help. DAve On Sat, Oct 20, 2001 at 03:31:06PM +0000, Philippe wrote: > Hi, > I'll synthetize the problem with the response I have givven to Curt. > > I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 > I've installed PHP in Apache, it works very well > I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's > > the problem) but I've a problem. > > In CGI mode, the path of PHP is always written at the top of the result > > I'll take for example this script which is in the cgi-bin with the execute > mod (755), the extension is .cgi : > > ---- > #!/usr/local/bin/php > <? > print "Hello World"; > ?> > ---- > > When the file is called by the browser, the result is : > ---- > #!/usr/local/bin/php > Hello World > ---- > > Does someone know the problem and the solution ? > Have I forgotten something ? > > I think that's a misconfiguration in PHP > > Thanks for your help > > Philippe > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -- My other computer is your Windows machine...

« previous php.general (#71685) next »