MCslp HomeMCslp Home Contact | About | Help | Legal
Books | Articles | Downloads
News | News Archive
 
 
 
If you manage a website you'll know how much of a problem managing that website can be. Aside from the problems of producing the content, you also have to make sure that the content works, and that the website doesn';t have any bad or missing links. The scripts in this chapter will show you how to check sites on a local, and those on a remote server, as well as tools for down and up synchronisation of a site with a remote service provider.
Download: PC - Unix - Mac - Info
Chapter Script Status

TitleScript NameStatus
HTML Quick Check Module HTMLQC.pm No Change
Checking HTML Validity chkhtml.pl No Change
HTML Support Module SHtML.pm No Change
Verifying Local Links and Images chklinks.pl Bug Fix, 13th Nov 1999
Verifying Remote Links and Images chkrlink.pl No Change
Extracting Form Elements extform.pl No Change
Mirroring a Single Page singmirr.pl No Change
Mirroring an Entire Site sitemirr.pl No Change
Uploading an Entire Web Site Using FTP uplsite.pl No Change
Static Web Log Listing wwwlogs.pl No Change

Verifying Local Links and Images Update

In this script, it fails to pick up an error if you don't supply the correct options on the command line. The problem is in this line:

push(@urls,$ARGV[0]) || die "No URL Specified";

This is essentially nonsence, since the operation is valid, even if
@ARGV
is empty. Instead, you need to replace it with:
die "No URL Specified" unless (@ARGV);
push @urls,$ARGV[0];

This will correctly identify the lack of a root HTML file to start checking for problems.

Download the updated script: PC - Unix - Mac

 PAA Quick Links
 

Book Summary
Book Outline
Chapter Contents
Chapter and Script Details
Download Chapter 4 Free! (PDF, 540k)

 Buy Perl: The Complete Reference
 

Perl the Complete Reference has been superceded by Perl The Complete Reference 2ed...


Website (c) 1998 and beyond Martin C Brown, MCSLP, UK. All other items, including contributed texts, files and information is the copyright of their respective owners.
Contact Us