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

From: Date: Fri, 19 Oct 2001 21:04:02 +0000
Subject: PHP/CGI problem: #!/path/php at top of CGI script appears in output
Groups: php.general php.install 
Request: Send a blank email to php-general+get-71628@lists.php.net to get a copy of this message
Hi, 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 : ---- #!/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 ? Thanks for your help Philippe

« previous php.general (#71628) next »