Problem with CGI mode

From: Date: Mon, 01 Apr 2002 14:40:10 +0000
Subject: Problem with CGI mode
Groups: php.general 
Request: Send a blank email to php-general+get-90951@lists.php.net to get a copy of this message
Hi I need to run some pages on my site in CGI mode for security reasons. I've put #!/usr/local/bin/php at the top of the script in question, and given it the .cgi extension so that apache treats it as a CGI. The script works, but the first thing it does is print out #!/usr/local/bin/php, because that's the first line of the script. If I remove that line, I get an internal server error, because apache doesn't know where php is located. Does anyone have any ideas? --jaa

« previous php.general (#90951) next »