Easy Tutorial
❮ Php Filter Advanced Func String Str Repeat ❯

PHP fileatime() Function



Definition and Usage

The fileatime() function returns the last access time of the specified file.

If successful, the function returns the last access time of the file as a Unix timestamp. If it fails, it returns FALSE.

Syntax

Parameter Description
filename Required. Specifies the file to check.

Tips and Notes

Note: The result of this function is cached. Use clearstatcache() to clear the cache.

Note: The access time of a file should be changed whenever the data blocks of the file are being read. Some Unix systems turn off access time updates due to the performance impact when an application frequently accesses a large number of files. Disabling access time updates can improve performance for such programs. USENET news spool is a common example. On such file systems, this function is useless.


Example

The above code will output:


❮ Php Filter Advanced Func String Str Repeat ❯