{php} Last Modified

Example of PHP code.

Moderator: Moderators

{php} Last Modified

Postby MaGic on Fri Mar 10, 2006 10:01 pm

This simple script will shows when a page was editted.

Please add this to where you want the next to be seen.

Code: Select all
$lastmod = filemtime("page.php"); //
echo("page was last modified on: ");
echo(date("m/j/y h:i", $lastmod));

Be sure to edit the page.PHP to the page you want to show when it was last modified.

source: http://cykit.net/viewtopic.php?t=100
MaGic - Your Best Friend
http://cykit.net - Your number one community for coding and gfx.
Registered User
Registered User
Posts: 25
Joined: Wed Feb 22, 2006 9:30 pm

Return to PHP Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest