Jump to content

Php Show Last Modified Date - Ultiama Modifcare A Site-Ului


Recommended Posts


Cu ajutorul codului php de mai jos, puteti afisa pe site-ul/pagina dumneavoastra data ultimei modificari a acestuia/acesteia:

//where the main page you want to display for modification
$last_modified = filemtime("thepageyouwant.php");
//print it all out
print("Page Last Edited");
print(date("m/j/y h:i", $last_modified));


$last_modified = filemtime("page.php");- this tells the browser what page you want to monitor or show when changes were last made to it. (Replace "page.php" to the page you add the code to.)

//print it all out print("Page Last Edited");- tells the browser what to place in front of the date. (You may change "Page Last Edited" to whatever you'd like.)

print(date("m/j/y h:i", $last_modified));- prints or displays the date for which the page was last modified.


This page was last updated on 09/29/09 07:42

Succes :pct2:

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.