Bo Larsson's Internet Server Software All Contents Copyright 1997-2020 by Bo Larsson - Send questions or comments to: admin@bliss.seagull.net | |
Table of Contents Last updated 18 Jan 97 Welcome! Perl CGI Scripts
guestbook 970118 NEW! Java Applets
jclock 961204 NEW! Links to Other Sites
Fisher's CGI Talk NEW! |
show me the html source for the example
What it does The rotater script basically returns the next file in a specified directory. It keeps track of the last file name it returns, and makes sure to return the next file in the list. If it has reached the last file in the directory, it returns the first file, and increments from there. What's it good for Say for example that you run a really popular web site, and you want to offer banner advertising to your sponsors. Say also that you want each banner to be displayed on your main page an equal number of times. How do you do this? Check out the example given here. It will show you how by using the rotater script. By the way, you'll need server side includes to do the same thing as demonstrated in this example. |