#!/usr/local/bin/perl -w # # news.cgi # # Logs click-throughs on URLS of the form: # http://sitename/news.cgi?msgid=20000415 # where the number at the end is a unique id used to # find and display a web page. use strict; use CGI qw/:standard/; # Build and return the url to the user my $msgid = param('msgid'); my $url = "http://sitename/$msgid.html"; print redirect($url); # Add to the log file my $hostname = remote_host(); my $logfile = '/full/path/to/logfile.txt'; open LOG, ">>$logfile" or die "news.cgi: Unable to open $logfile\n"; print LOG "$hostname - $msgid\n"; close LOG;
Spread the Word with Mailing Lists (Web Techniques, June 2000)
Email is the most powerful communication tool available on the Internet today, which makes mailing lists a prime marketing tool. Nearly everyone online receives email, and most people read it regularly. Messages are easy to create and inexpensive to deliver, even to people with low-bandwidth connections.Related Reading
More Insights
INFO-LINK
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. | |