|
-
Jun 15th, 2001, 04:43 PM
#1
Thread Starter
Member
Get last update
I want to use a script to show when the page was last updated... how can i do this?
-
Jun 16th, 2001, 12:31 AM
#2
Addicted Member
If the server you're using has server-side includes (SSI) enabled, it's the matter of one line in your HTML code:
Code:
<p align="left">This page, "index.html" was last updated on <!--#flastmod file="index.html" -->.</p>
The only thing that has to change is the "file="index.html"" part, just change it for each page you have
Things I've Said:
"Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
"Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
"You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"
-
Jun 16th, 2001, 06:04 AM
#3
Thread Starter
Member
-
Jun 16th, 2001, 12:13 PM
#4
Addicted Member
Then your server doesn't have SSI enabled. What are you using as a server?
Things I've Said:
"Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
"Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
"You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"
-
Jun 16th, 2001, 12:45 PM
#5
Thread Starter
Member
-
Jun 16th, 2001, 02:34 PM
#6
Addicted Member
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)
Things I've Said:
"Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
"Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
"You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"
-
Jun 16th, 2001, 02:46 PM
#7
Thread Starter
Member
Where can I cet SSI? I dont like PWS at all =\ But I dont want to use some free web server.
-
Jun 16th, 2001, 11:43 PM
#8
Addicted Member
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.
Things I've Said:
"Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
"Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
"You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"
-
Jun 17th, 2001, 09:21 AM
#9
Thread Starter
Member
Ok i went anddownloaded it but i cant figure out how to set its root directory with all my page's files....
-
Jun 17th, 2001, 12:36 PM
#10
Addicted Member
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.
Things I've Said:
"Life's funny like that...elephants can wear frilly lace panties, and Dubya still looks like a monkey in a big chair"
"Take four goats and strap one to each foot of a llama. Presto, goat-powered llama!"
"You want to get me to work more, get me a Coke. No? Then deal with inferior garbage, I'm not coding another line and your clients can go to......thanks, I'd love a Coke right about now!"
-
Jun 17th, 2001, 02:00 PM
#11
Lively Member
To make PWS work with SSI you'll have to name the file .shtml instead of just .html .
-
Jun 17th, 2001, 03:30 PM
#12
Thread Starter
Member
K its working now bringing back the date.... is it possible to get the time of day it was lasted edited?
-
Jun 17th, 2001, 05:05 PM
#13
Lively Member
Actually, you can do this with JavaScript
Code:
<SCRIPT language="JavaScript">
document.write(document.lastModified)
</SCRIPT>
this should be working just fine.
-
Jun 17th, 2001, 07:04 PM
#14
Thread Starter
Member
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
-
Jun 17th, 2001, 09:04 PM
#15
Thread Starter
Member
Also I was wondering how to turn the scrolling off i know how to using frames but not from inside the page istelf....
-
Jun 18th, 2001, 04:21 AM
#16
_Dark-Hunter_,u have too many questions...
to hide the scrolling bar,just add "scroll=no" in <body> tag.
-
Jun 18th, 2001, 08:02 AM
#17
Thread Starter
Member
o ok i tried using scrolling="no" in the body tag but it didnt work
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|