PHP filectime() Function

The filectime() function returns the last time the specified file was changed.This function checks for the inode changes as well as regular changes. Inode changes is when permissions, owner, group or other metadata is changed.This function returns the last change time as a Unix timestamp on success, FALSE on failure.

int filectime ( string $filename )

Gets the inode change time of a file.

Example -

Note -

Note: In most Unix filesystems, a file is considered changed when its inode data is changed; that is, when the permissions, owner, group, or other metadata from the inode is updated. See also filemtime() (which is what you want to use when you want to create "Last Modified" footers on web pages) and fileatime().Note also that in some Unix texts the ctime of a file is referred to as being the creation time of the file. This is wrong. There is no creation time for Unix files in most Unix filesystems.

ParameterDescription
filenameRequired. Specifies the file to check