View Full Version : Using echo in shtml files
ssg13565
05-31-2009, 01:13 PM
The following line in an .shtml file
Last modified <!--#echo var="LAST_MODIFIED" -->
does not produce any output from the #echo.
This works for me on all other servers where I have ever used it.
Do I have to put anything special in the .htaccess file to get this feature of .shtml to work?
ssg13565
06-06-2009, 06:22 AM
I received a reply that said:
"No I think its ok, just follow the format you use.."
The original post said that I did just that and it did not work.
The answer to making something work that did not work cannot be just do what you did.
Early Out
06-06-2009, 06:25 AM
That was a spam post, and I deleted it. It was just stupid advice, posted with some links to the poster's sites.
ssg13565
06-06-2009, 08:07 AM
I should mention that since posting this question, I have found that a JavaScript method that I use when the file is local seems to work on files served by Bluehost. The Javascript date and time is not formatted as nicely as the one from shtml, but I suppose I can always fix that when I get around to it.
Ironically this never worked on files served by other servers. That date was always the date of the copy of the file that was on the client. That was always the current date and time for all the other servers where I have tried it.
felgall
06-06-2009, 04:35 PM
LAST_MODIFIED is a setting that can be turned on or off on the server. I have come across hosting where it is turned off and you just get the current date and time returned. I haven't come across a situation where the JavaScript and SSI versions returned different values though. Of course the JavaScript version is much easier to format than the SSI one.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.