Re: CGI BIN PHP

From: Date: Wed, 21 Feb 2001 10:01:09 +0000
Subject: Re: CGI BIN PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40922@lists.php.net to get a copy of this message
hey, don't go bald yet :) my web host (communitech.net) has the same setup... is that where you're hosted ? i have a script called 'php4.cgi' in my /cgi-bin which contains: #!/bin/sh #echo -e "Content-type: text/plain\n\n"; #set SCRIPT_NAME=$REDIRECT_URL;export SCRIPT_NAME; SCRIPT_FILENAME=$PATH_TRANSLATED;export SCRIPT_FILENAME; /bin/php4; #set the #ed out commands are for debugging you may not need them. my .htaccess in the documentroot contains : Action application/x-php4-script "/cgi-bin/php4.cgi" AddHandler application/x-php4-script php i hope you can use this. if you have any other problems, reply to the list because i'm sure more people can use this 'technique'. its still under testing, (i made it 2 days ago) so if there are any changes i need to make, i'll post it here. cheers, hrishi

« previous php.general (#40922) next »