PHPBuilder - Last Modified



RSS Twitter
Tips Tricks And Hacks

Last Modified

by: Oscar M
|
April 12, 2003

by Oscar M

Often times it's good to keep track of the file's (page) last modified information and display it as part of the published web page.

To display the text below with just one line of code.

Last modified: April 11, 2003 1:24:08 PM EST.


The PHP code would be

<?php echo "Last modified: ".date("F d, Y g:i:s A T.", getlastmod()); ?>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Oscar M

Comment:



Comment:

(Maximum characters: 1200). You have characters left.