On Sat, 29 Jun 2002 12:44:27 +0800 Ronald Wiplinger <ronald@elmit.com> wrote:
That sounds good! Do you have any starting index.cgi handy? Thanks!
Well I got a rudimentary method going. Here it is. I'm sorry, but you will need to take it from here. There are so many details with the server etc., that you must deal with. I edited my httpd.conf to add the following: <Files index.html> Options +ExecCGI SetHandler cgi-script </Files> You may be able to put this in an .htaccess file instead of editing the httpd.conf, it depends on how restrictive your httpd.conf is setup. I renamed the index.html to index1.html. Then I put the following cgi script in there as "index.html" ###################################################### #!/usr/bin/perl use warnings; use strict; use CGI; my $homepage = 'http://zentara.zentara.net/~zentara/index1.html'; my $ipaddy=$ENV{'REMOTE_ADDR'}; my $time = localtime(); open (AL,"+>>indexaccess.log"); print AL "$ipaddy\t$time\n"; close AL; print "Location: $homepage\n\n"; ###################################################### You will have to choose a way to view the indexaccesslog, you probably can read it by entering it's url thru a browser and refreshing as often as needed. Good luck, -- use Perl; #powerful programmable prestidigitation