More Clever Stuff

A few more "server side includes" I have incorporated into my page.


File Status

Rather than keep updating the status of your home page, you can have the server get this information for you and include it in your home page. For example, to do the following:

This file last modified .

You would need to add the following line in your home page (if you are looking at the source for this file, note that I have had to use ampersands and "gt" and "lt" for the greater-than and less-than symbols):

This file last modified <!--#echo var="LAST_MODIFIED"-->.


Local Time and Date

Need to tell people what time and date it is where you are? Something like this:

Local time and date is .

You can have the server do this too, by including this line in your home page:

Local time and date is <!--#echo var="DATE_LOCAL"-->.

If you would rather have GMT, use DATE_GMT instead of DATE_LOCAL.


Map of Where You Are

Let's say you want to let people know where you are, geographically. First, you need to know the latitude and longitude of your city. (I got mine for Oxnard, CA, from my Astrology Atlas.) For San Luis Obispo, up the coast from me, you would link in this URL:

http://wings.buffalo.edu/cgi/xeroxgw?San+Luis+Obispo+CA&35&16&120&39

This is really a URL with a search command that includes the City, State, Latitude (degrees and minutes), and Longitude (degrees and minutes). Since I live in Oxnard, I link to:

http://wings.buffalo.edu/cgi/xeroxgw?Oxnard+CA&34&12&119&11


Comments to Mark S. Hutchenreuther, who is
hutch@rain.org