I am trying to add SSI into one of my sites, and have run across a small problem. The code I am using works just fine on my sites that are hosted on Unix servers, but it seems to throw up on my Windows server.
I am simply trying to dynamically generate the Last_Modified date, rather than having to type it in manually to each page. Here is the code I am using:
I use this code to set the variable:
Code:
<!--#config timefmt="%A %B %d, %Y" -->
<!--#set var="modified" value="$LAST_MODIFIED" -->
I use this code to call that variable:
Code:
<!--#echo var="modified" -->
And here is the error that I keep getting:
Quote:
|
Variable 'modified' cannot be found
|
When I view the source of the page, after everything's been included, it seems that it has not processed the line that sets the variable. That line still appears in the source of the page, rather than having been processed by the server side includes.
If you want to look at it, you can go to
http://www.septiclean.com/main.shtml
The two files that I include in there are
http://www.septiclean.com/SeptiTop.html and
http://www.septiclean.com/SeptiBottom.shtml