Click to See Complete Forum and Search --> : Last revised date / time


Anne Vance
09-29-2003, 09:34 AM
I have been made aware of this forum recently so I may have some more questions as a newbie.

Following readymade script only gives the actual date /time of this moment and not the modified time. How come?

<script language="JavaScript" type="text/javascript">
document.write("bijgewerkt tot " + document.lastModified)
</script>

o35_jimmy
09-29-2003, 09:59 AM
Is your page generated by PHP or ASP or other scripting language ? In this case the document date is the time in which php [asp] is called, because the header of html page is created on the fly..

pyro
09-29-2003, 10:12 AM
In which case, if you are using PHP, you'd want to look into getlastmod() (http://us4.php.net/manual/en/function.getlastmod.php), or something similar in other languages.