Re: PHP - CGI Version

From: Date: Wed, 07 Feb 2001 19:27:56 +0000
Subject: Re: PHP - CGI Version
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38607@lists.php.net to get a copy of this message
The solution ended up being the need to re-compile php with the "--enable-discard-path" configure option. This removed the "#!/usr/local/bin/php" line from the top of the file. Thanks for the feedback. Tim Tim Livers wrote: > I have installed the CGI version of PHP and customized Apache's > httpd.conf. (Had to use CGI for this instance). > > Since I only need (and want) a few php scripts to be available on this > server, I added the following line to httpd.conf in order to get my > script to work. > > ScriptAlias /myfile.php /location/myfile.php > > Then I added the following to "myfile.php" > > #!/usr/local/bin/php > > <? > phpinfo() > ?> > > Everything works fine except that I get "X-Powered-By: PHP/4.0.4pl1 > Content-type: text/html #!/usr/local/bin/php" at the top of the page. > > Any Ideas on how to get rid of this stuff in the output? I have looked > through the php.ini file, and php.net but couldn't find anything. > > Thanks in advance > > Tim > > -- > 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

« previous php.general (#38607) next »