I want to use a script to show when the page was last updated... how can i do this?
Printable View
I want to use a script to show when the page was last updated... how can i do this?
If the server you're using has server-side includes (SSI) enabled, it's the matter of one line in your HTML code:
The only thing that has to change is the "file="index.html"" part, just change it for each page you haveCode:<p align="left">This page, "index.html" was last updated on <!--#flastmod file="index.html" -->.</p>
Doesnt Seem to work...
Then your server doesn't have SSI enabled. What are you using as a server?
Microsoft PWS
I've never used it, so I'd suggest searching in the documentation or around the Web for Microsoft PWS and Server-side Includes. It may not be possible at all, the only time I've used SSI is with Apache as the web server (incidently, I'd recommend using that instead of MS-PWS...it is more configurable, usually)
Where can I cet SSI? I dont like PWS at all =\ But I dont want to use some free web server.
SSI is a part of Apache ( www.apache.org )
It may be *free* (btw, what's wrong with that?) but it runs the majority of the web servers on the Internet, it's well supported and documented.
Ok i went anddownloaded it but i cant figure out how to set its root directory with all my page's files....
It's DocumentRoot or DirectoryRoot or something like that, there's a sample one in "httpd.conf" that points to "[ApacheDir]/htdocs"...I don't have a copy of the config files near me. If those don't work, I'll scrounge one up.
To make PWS work with SSI you'll have to name the file .shtml instead of just .html .
K its working now bringing back the date.... is it possible to get the time of day it was lasted edited?
Actually, you can do this with JavaScript
this should be working just fine.Code:<SCRIPT language="JavaScript">
document.write(document.lastModified)
</SCRIPT>
since i dont know much aout java ive got to ask how to change the date from the 06/17/01 format to the Sunday June 17 2001
Also I was wondering how to turn the scrolling off i know how to using frames but not from inside the page istelf....
_Dark-Hunter_,u have too many questions...
to hide the scrolling bar,just add "scroll=no" in <body> tag.
o ok i tried using scrolling="no" in the body tag but it didnt work :(