Last modified from another file?

Brian Farkas's picture

They have: 1,015 posts

Joined: Apr 1999

Do you know the way to show when a file was last modified from another file? For example if I wanted to say
News: Last updated MM/DD/YY on index.shtml and link that to news.shtml what SSI would I put on index.shtml?

------------------
Web Design - Hosting - Promotion - Programming
InfoStar Web Design - Click Here!

They have: 161 posts

Joined: Dec 1999

The LAST_MODIFIED environment variable can only be used to reflect the date on which the file it appears on was last modified. The syntax is:

Code Sample:<!--#echo var="LAST_MODIFIED"-->

You can also set the date format using:

Code Sample:<!--#config timefmt="..."-->

See the documents on strftime(3) for more information on time format strings.

However, you can use the flastmod SSI directive like so:

Code Sample:<!--#flastmod file="..."-->

or

Code Sample:<!--#flastmod virtual="..."-->

The Apache documentation on these (and other) SSI directives can be found at:
http://java.apache.org/jservssi/traditionalssi.html

------------------
--
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.