getlastmod

int getlastmod(void) 

Returns the modification date.

Returns:

Date; FALSE on error

Description:

This function returns the last-modified date of the executed PHP script as a UNIX timestamp. This and other related functions may not work correctly in the Win32 version of PHP.

Example:

Display last-modified date
$file = getlastmod(); 
echo "Last Modified: ", date("d/M/Y", $file); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.