Preface
This script can be used to allow visitors to add a link to
their own web page. The links page displays each link by
category which makes finding a site of interest easier than
reviewing a single list. A database file is also maintained for
use with Matt's Random Link script.
| Please note that the links.pl script
which accompanies Matt's Free For All Link script is rather vulnerable to bogus or undesirable posts. Some customers have stated that their Free For All Links page became flooded with advertisements. We suspect that someone has written a program to bombard the page in this manner. The Free For All Links
|
Installation Procedure
#!/usr/local/bin/perl
# Set Variables
$filename - The system location of your links.html file
$linksurl - The URL of your links.html file
$linkscgi - The URL to the CGI script
$linkstitle - The desired links page title
$database - The system path to the database file
The first and last variables call for a system path
which is not the same as a URL. If your domain name was
yourdomain.com the system path would be /u/web/yourdo
where "yourdo" is the account userid.
As such, the Set Variables section of the Links script
would follow this format:
# Set Variables
$filename = "/u/web/<userid>/links.html";
$linksurl = "http://www.yourdomain.com/links.html";
$linkscgi = "http://www.yourdomain.com/cgi-local/links.pl";
$linkstitle = "Free For All Link Page";
$database = "/u/web/<userid>/database.txt";
Be sure to substitute your domain name and userid in
the example above. Although Matt's code is accurate, we
recommend using the Perl Script checker within your
account Control Panel when installing any Perl script.
<FORM METHOD="POST" ACTION="/cgi-local/links.pl">
You can test the script by referencing the links.html file via
the web.
Special Notes
Updated: 10/03/98
| E Site Hosting | U Web Design y Marketing | S Servicios Cliente | K Frequently Asked Questions | A Solicítalo Ahora |
Home Sorginetxe |