Re: PHP script as CGI script question

From: Date: Tue, 14 Nov 2000 01:07:10 +0000
Subject: Re: PHP script as CGI script question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25076@lists.php.net to get a copy of this message
on 11/13/00 4:50 PM, Chris Mason (chris@net.ai) wrote: > I would like to replace a perl script accessed by > http://domain.com/cgi-bin/click.pl?referrer=testperson with a > php script > which will strip the key/value pair from th URL and enter them into a > database. I can't changed the URL as has been out there for a while, but I > can not use the perl script and I want to use PHP as I know it and have > other functions I want to add. > How can I do this? Any advice appreciated. If you're under Apache, you could probably do a "ForceType" directive to make the web server treat the click.pl file as a PHP script. Then just put all of your PHP code in the click.pl file. You could also do some work with MOD_REWRITE or with RedirectMatch. Paul ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Paul Burney Webmaster and Internet Developer Educational Technology Unit Graduate School of Education and Information Studies University of California, Los Angeles (310) 825-8365 <webmaster@gseis.ucla.edu> <http://www.gseis.ucla.edu/> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

« previous php.general (#25076) next »