
Go backward to 4.6 Cookies
Go up to 4 Major Topics
Go forward to 4.8 Mail order - extra credit
4.7 Select HTML file
Read pages 44-46 of CGI Programming by Gundavaram
On the web at O'Reilly.
Write a CGI/Perl program that depending on the host,
cgi.wc.pima.edu or cgi.cscwc.pima.edu and the time of day,
even minutes or odd ones, to selects one of four HTML files to copy.
Use "Server Redirection" or copy the files yourself to do this. See
CGI Programming by Gundavaram
On the web at O'Reilly page 44.
The files are:
/~ltaber/cscwc.odd.shtml
/~ltaber/wc.odd.shtml
/~ltaber/cscwc.even.shtml
/~ltaber/wc.even.shtml
These files have server side includes in them. They will display
- A text string that indicates which file.
- HTTP_HOST, the current host/server name.
- DATE_LOCAL, the current time on the server.
- REMOTE_HOST, the name of the client system.
- REMOTE_ADDR, the address of the client system.
e-mail your individual results as follows:
- To: ltaber@pima.edu
- Subject: CSC266 Lab: 4.7: Select File
- Attach: A copy of your Perl file.
- Message text: Suggestions on Lab and URL to your lab
Instructor: ltaber@pima.edu** My new Home on phRed** The Pima College Site** The Mad Dr. G.'s home page on phred.
