On Sat, 1 Jul 2000, Ralf Semroch wrote:
:is there a possibilty (maybe a perl- or php3-script) to show all
:subscr1bers mailadresses on a html-page?
If your list just consists of email addresses, the following will
trivially do it (assuming a UN*X server):
#!/usr/bin/perl -Tw
#
# convert list of email addresses to html
#
# usage: list2html <listfile >htmlfile
print <<EOH;
<html><head><title>Subscriber List</title></head>
EOH
while (<>) {
s|(.+\@.+)|<a href="mailto:$1">$1</a>|;
print;
}
print <<EOH;
</body></html>
EOH
This script just creates an html page from your list. If you have names
in the file, it's a tad bit more complicated, as it would be if you wanted
to display the page on the fly.
BUT, whatever you do, make sure that the page is password protected and
that access is limited to list members; otherwise (as Dan Liston has said
in response to your question) you're violating the privacy rights of your
list members.
Patrick
References:
|
|