Forum Moderators: phranque

Message Too Old, No Replies

Last modified date/time on pages

any standard for it / any function except informing the user?

         

captainhannes

9:31 pm on Dec 5, 2003 (gmt 0)

10+ Year Member



Hi all!

I'm not sure if this is the right forum to ask, but ...

I just added the "last modified date/time" to 2 of my sites with PHP:
<? echo "Last modified: \$Date: " . date ("Y/m/d H:i:s", filemtime(__FILE__))." $";?>

The output:
Last modified: $Date: 2003/12/05 22:10:44 $

I see this format pretty often, but I wonder if there is any standard for this?
Furthermore do the search engines recognize it? If so, which format?

Thanks a lot in advance!

Cheers,
Hannes in Austria

DaveAtIFG

3:58 pm on Dec 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A copy of the HTTP 1.1 Protocol spec is available at ftp://ftp.isi.edu/in-notes/rfc2616.txt

captainhannes

5:00 pm on Dec 6, 2003 (gmt 0)

10+ Year Member



Thanks Dave!

I just saw that I didn't make clear that I do not send it as header information, but I include it in the content of the document - actually near the footer of the document.

In the first place as information for the user visiting a particular page.

Anyway, I will use the format as shown in the RFC for my pages.

Cheers,
Hannes.