Click to See Complete Forum and Search --> : ssi $LAST_MODIFIED doesn't work


jens1701
10-09-2007, 09:06 AM
Hello everybody, :)

i want to use the $LAST_MODIFIED ssi-directive to add the modification date of the actual xhtml site to my site info at the bottom of my site.

<ol class="siteInfo">
<li>©2007 <a href="./pages/contact.html">Jens</a> | </li>
<li><a href="./pages/impressum.html">Impressum</a> | </li>
<li><a href="./pages/siteMap.html">Site Map</a> | </li>
<li>last update: <!--#echo var="$LAST_MODIFIED" --></li>
</ol>

But in the browser i only get a <none> back, so the ssi is working but the var has no value. I've read that environment variables return a <none> if they are undefined. So this points to a server problem, but that there is a bug in a common feature like this is most unlikely.

Maybe it's my testing environment. I'm writing on a xaamp setup my web files are stored in htdocs.

Well, don't know! I hope someone can provide me a clue, or two. :)

Greets :)

Jens

LeeU
10-09-2007, 10:40 AM
Lose the "$" sign:

<!--#echo var="LAST_MODIFIED"-->

TJ111
10-09-2007, 10:47 AM
Just out of curiousity, how does this differ from this (if at all)>

<?echo date ("F d Y g:i:s a", getlastmod()); ?>

LeeU
10-09-2007, 10:56 AM
Just out of curiousity, how does this differ from this (if at all)>

<?echo date ("F d Y g:i:s a", getlastmod()); ?>

That one is using PHP; the other one is using the Apache mod_include module.

jens1701
10-09-2007, 12:18 PM
Ah, thanks that's it.

By the way, it's obvious i haven't fully understood the syntax of the ssi. Where can i read about that. The source about ssi i have found so far are quite basic, and don't go into the detail.

The best reference i found is this one:
http://www.w3.org/Jigsaw/Doc/User/SSI.html

greets :)

Jens

LeeU
10-09-2007, 12:56 PM
Here are a few good links:

http://www.webreference.com/programming/ssi/intro/
http://bignosebird.com/ssi.shtml
http://www.zytrax.com/tech/web/ssi.htm
http://www.apacheweek.com/features/ssi
http://httpd.apache.org/docs/2.0/howto/ssi.html