Jason's PERL Archive - jawhatschanged.pl

Navigation
Jason's Homepage | Main Perl Page | One Stop Search Site

Notice
To be able to use any perl scripts you will need to have cgi-bin access. Some service providers only allow cgi access to their business customers. So check first.

The first line of any perl script point to the location of the Perl program on the file server which varies on different servers. You will need to contact your service provider for this location and change the first line of the script accordingly.

When you upload the script to your service provider ensure you transfer in ASCII mode as this will convert the file to the correct format. If your pages are on a UNIX server you will need to change the rights to the file using chmod to 755 or -rwxr-xr-x.

Details
jawhatschanged.pl requires two parameters:
  • base is the complete path to the directory your html files are stored relative to the web server. Note: You will need to ask your service provider for this information as it differs from one ISP to the next.

    On my web pages base is /var/www/docs/www.aquapal.co.uk/public_html

  • rbase is the URL of your html directory.

    On my web pages rbase is http://www.aquapal.co.uk

it also accepts the following optional parameters:
  • ndays is the number of days to check for changes in. Defaults to 7 days
  • sortmode, 0 doesn't sort, 1 sorts in date order, 2 sorts in reverse date order (defaults to date order)
  • dirs is a list of directories seperated by ; which need to be searched ie /dir1;/dir2;/dir3 (only these directories will be searched.)
  • dosub if set to "no" will not search sub-directories.
See the source code for jawhatschanged.pl

<FORM METHOD="GET" ACTION="/cgi-bin/jawhatschanged.pl">
<INPUT TYPE="hidden" NAME="base" VALUE="/var/www/docs/www.aquapal.co.uk/public_html">   
<INPUT TYPE="hidden" NAME="rbase" VALUE="http://www.aquapal.co.uk">
<INPUT TYPE="submit" VALUE="Whats changed in the last 7 days">
</FORM>

Perl References / Books on Perl?
Why not visit BookPages and order all the books you need to get started in Perl?

Find any british book you want with BookPages

Or for other pre-made scripts look at ScriptSearch

www.ScriptSearch.com - CGI-JAVA-PERL and Much More.

Rate this Script @ The CGI Resource Index

Copyright and Contact Information
Copyright © 1997 Jason Anthony, janthony@aquapal.co.uk
Last Updated: 9th Jun 1998