#1 (permalink)  
Old 12-17-2004, 09:18 AM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
Last_Modified, SSI, and Windows Servers

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
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote

  #2 (permalink)  
Old 01-18-2005, 07:04 PM
Registered User
 
Join Date: Jan 2005
Posts: 16
I think SSI (server side includes) are related to mod_ssi, an Apache module. Are you sure it's loaded? If you use PHP, or ASP, you could do this:

Code:
Last modified: <?php echo date("m").date("d").date("Y"); ?>
(From PHP.)

The Terminator
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 04:34 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter