Prev Up Next
Go backward to 4.2 CGI Introduction to Perl Topic
Go up to 4 Major Topics
Go forward to 4.4 CGI Introduction to Perl Topic #2

4.3 CGI Server Side Include Topic

Server side includes let you us a file that is mostly standard HTML but still have some variability in your document. This is often more convenient than writing a a CGI program to produce all of the document.

4.3.1 Preperation

Please read the following:
  1. CGI Programming by Gundavaram On the web at O'Reilly. Chapter 5. Server Side Includes page 87-100.

4.3.2 Group Task

Create a HTML (/public_html/name.shtml) page that uses several server side include directives.
  1. Printout, with some surrounding text, the IP name of the browser.
  2. A link to your first html file (4.1.2) that shows both the size of the file in bytes (use config sizefmt="bytes") and when the the file was last modified.
  3. Create (or copy from the examples, see CGI Programming by Gundavaram On the web at O'Reilly page 95) a counter.pl program that will count the number of time the page has been accessed. Use this program someplace on your page.
  4. Print out the time on the local server in "European" format. ( yyyy/mm/dd hh:mm where the hh for hours is between 0 and 23.)
  5. Create a "boiler plate" for the end of your documents that includes: Include this file at the end of your shtml file.
  6. Optional, something else that you might want to try. Please note that the "exec cmd" does not appear to be enabled on "cgi".

Please test your page with a web browser.

4.3.3 Report

e-mail your group's report (only one copy please) as follows: Please hand-in a printout of your page.
Instructor: ltaber@pima.edu** Red's Home page** The Pima College Site

Prev Up Next