RE: running php as cgi script

From: Date: Sat, 16 Nov 2002 18:03:05 +0000
Subject: RE: running php as cgi script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125030@lists.php.net to get a copy of this message
Change your ISP. For an ISP to be forcing you under this way is unrealistic. There are plenty of really good ISP's listed on the php site that all have the latest versions of php and have good setup packages. -----Original Message----- From: Scott [mailto:gildedpage@comcast.net] Sent: Friday, November 15, 2002 7:53 PM To: php-general Subject: running php as cgi script I'm trying to run a simple test php script as a cgi script on my ISP's server and haven't been able to get it to work, although according them it is possible. I have an example from a book which gives the following steps: 1. Put the script in the cgi-bin 2. run chmod 755 3. include "#!/usr/bin/php" at the top. (I have checked that this is the correct location of php on the server) The test script they give looks like this: #!/usr/bin/php echo "This is a small CGI program." Doesn't look like the usual php syntax to me, but I guess this is different. Anyway I've tried it a bunch of different ways and it hasn't worked and I haven't been able to find much on the subject from Google. Can someone tell me where I'm going wrong? Thanks, SW

« previous php.general (#125030) next »