Current Location: Home> Function Categories> fileatime

fileatime

Get the last access time of the file
Name:fileatime
Category:File system
Programming Language:php
One-line Description:Returns the last access time of the file.

Definition and usage

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

This function returns the last time the file was accessed. If an error occurs, it returns false. Time is returned as a Unix timestamp.

Example

 <?php
echo fileatime ( "test.txt" ) ;
echo "Last access: " . date ( "F d YH:i:s." , fileatime ( "test.txt" ) ) ;
?>

Output:

 1140684501
Last access: February 23 2006 09:48:21.

grammar

 fileatime ( filename )
parameter describe
filename Required. Specify documents to be inspected.
Similar Functions
  • Change file mode chmod

    chmod

    Changefilemode
  • Get file information through the opened file pointer fstat

    fstat

    Getfileinformationth
  • Read the entire file into an array file

    file

    Readtheentirefileint
  • Determine whether the file exists and is readable is_readable

    is_readable

    Determinewhetherthef
  • Parse a configuration file parse_ini_file

    parse_ini_file

    Parseaconfigurationf
  • Determine whether the given file name is a symbolic connection is_link

    is_link

    Determinewhethertheg
  • Delete directory rmdir

    rmdir

    Deletedirectory
  • Determine whether the given file name is a normal file is_file

    is_file

    Determinewhethertheg
Popular Articles