Ask a question »

Date of last modification made on a webpage

June 2013


[PHP] Date of last modification made on a webpage



With PHP it is possible to automatically display the last modification of the current page:

<? 
setlocal(LC_ALL,'english');  
echo "Last modification made on ".date("l j F Y at H:i", filemtime($SCRIPT_FILENAME)); 
?> 


Alternatively you can use:

<? 
setlocal(LC_ALL,'english');  
echo " Last modification made on ".date("l j F Y at H:i", getlastmod()); 
?> 

See also

Knowledge communities.

Published by jak58
This document entitled « Date of last modification made on a webpage » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.
Receive our newsletter

health.kioskea.net

PHP - How to display the IP address of a visitor?
PHP - Last day of the month/Number of days in the month