Bo Larsson's Internet Server Software
All Contents Copyright 1997-2020 by Bo Larsson - Send questions or comments to: firstname.lastname@example.org
Table of Contents
Last updated 18 Jan 97
Perl CGI Scripts
guestbook 970118 NEW!
Links to Other Sites
Fisher's CGI Talk NEW!
This applet is a page access counter implemented in java and perl. The applet opens a connection to a cgi script to retrieve the number of accesses and paints this number to its window. The cgi script written in perl takes one parameter, the page id. It reads the number of current accesses from a file, increments it, returns it to the calling java applet and updates the file with the new number. The perl script is a simple script using a file name based on the passed parameter to provide counters for multiple pages(based on the passed page id).
What does it demonstrate?
This example demonstrates the ability of a java applet on a page to communicate with a cgi script on the server.