PHP filemtime filectime fileatime the difference

Source: Internet
Author: User

1, fileatime ()
int fileatime (String filename): the Fileatime () function returns the last time the filename was accessed, where the last access refers to the time when the data block of a file is read, using the UNIX timestamp format , returns False if there is an error.
2, filectime ()
int filectime (String filename): the Filectime () function returns the time that filename was last changed, where the last change is the specified file The inode of filename finally changes the time, where the Inode (index node) is used to store the files and directories of the basic information including time, file name, user and group, using the UNIX timestamp format, error returns false.
(the date is updated when any metadata of the file is changed, including the contents of the permission.) Even if the contents of the file are not changed. )
3, filemtime ()
int filemtime (String filename): the Filemtime () function returns the last modified time of the filename, and the last modification refers to the change in the contents of the file. Uses the UNIX timestamp format, which returns False if there is an error.
(File content modification also includes the content of the file being re-written but the content is not changed but also modified.) )

As for which to see the specific business scenario, I generally use filemtime ()

PHP filemtime filectime fileatime the difference

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.