Php obtains the file creation time, modification time. php obtains the file creation time, modification time. filemtime (stringfilename) returns the last modification time of the file, and FALSE if an error occurs. Time is returned in Unix timestamp format and can be used for date (). Example: $ a = filemtime ("log.txt ");???? Php obtains the file creation time and modification time.
Php obtains the file creation time and modification time.
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", $ )."
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", $ )."
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", $ )."