Results 1 to 17 of 17

Thread: Get last update

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45

    Get last update

    I want to use a script to show when the page was last updated... how can i do this?

  2. #2
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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!"

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    Doesnt Seem to work...

  4. #4
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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!"

  5. #5

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    Microsoft PWS

  6. #6
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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!"

  7. #7

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    Where can I cet SSI? I dont like PWS at all =\ But I dont want to use some free web server.

  8. #8
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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!"

  9. #9

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    Ok i went anddownloaded it but i cant figure out how to set its root directory with all my page's files....

  10. #10
    Addicted Member csammis's Avatar
    Join Date
    Mar 2001
    Location
    /dev/null
    Posts
    226
    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!"

  11. #11
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    To make PWS work with SSI you'll have to name the file .shtml instead of just .html .

  12. #12

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    K its working now bringing back the date.... is it possible to get the time of day it was lasted edited?

  13. #13
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    Actually, you can do this with JavaScript
    Code:
    <SCRIPT language="JavaScript">
    document.write(document.lastModified)
    </SCRIPT>
    this should be working just fine.

  14. #14

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    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

  15. #15

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    Also I was wondering how to turn the scrolling off i know how to using frames but not from inside the page istelf....

  16. #16
    whygod
    Guest
    _Dark-Hunter_,u have too many questions...

    to hide the scrolling bar,just add "scroll=no" in <body> tag.

  17. #17

    Thread Starter
    Member
    Join Date
    Apr 2001
    Posts
    45
    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
  •  



Click Here to Expand Forum to Full Width