RE: "last motified" of webpage?

  • From: "Holdsworth, Lynn" <Lynn.Holdsworth@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 5 Jun 2009 09:10:47 +0100

Here's how I do it in php:

<?php
...
$page = "/var/www/html" . $PHP_SELF;
$change = date("d/m/Y G:m:s",filemtime($page));
echo "<p>Page last modified: $change</p>\n";
...
?>

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall
Sent: 05 June 2009 02:08
To: programmingblind@xxxxxxxxxxxxx
Subject: "last motified" of webpage?

Hi all,
How do people do that cool thing where a line in a webpage says "page
last updated: [date] [time]"? Is that manual, or is there a script that
can extract the information and put it there?

Have a great day,
Alex
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind



-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk



This message has been scanned for viruses by Websense Hosted Security - 
http://www.websense.com/content/HostedEmailSecurity.aspx

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: