Filemtime (stringfilename) returns the time when the file was last modified, and FALSE if an error occurs. Time is returned in Unix timestamp format and can be used for date (). Example: paiafilemtime("log.txt & quot ;);
Filemtime (string filename) returns the time when the file was last modified. If an error occurs, FALSE is returned. Time is returned in Unix timestamp format and can be used for date (). Example: $ a = filemtime ("log.txt"); echo "Modification time :". date ("Y-m-d H: I: s", $ a); filectime (string filename) returns the time when the last inode of the file was modified. If an error occurs, FALSE is returned. Time is returned in Unix timestamp format. Example: $ a = filectime ("log.txt"); echo "creation time :". date ("Y-m-d H: I: s", $ a); fileatime (string filename) returns the time when the object was last accessed. If an error occurs, FALSE is returned. Time is returned in Unix timestamp format. Example: $ a = fileatime ("log.txt"); echo "Modification time:". date ("Y-m-d H: I: s", $ );