Current Location: Home> Function Categories> filectime

filectime

Get the inode modification time of the file
Name:filectime
Category:File system
Programming Language:php
One-line Description:Returns the last time the file changed.

Definition and usage

filectime() function returns the last inode modification time of the specified file.

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

Example

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

Output:

 1138609592
Last change: January 30 2006 09:26:32.

grammar

 fileatime ( filename )
parameter describe
filename Required. Specify documents to be inspected.
Similar Functions
  • Positioning in file pointer fseek

    fseek

    Positioninginfilepoi
  • Close an open file pointer fclose

    fclose

    Closeanopenfilepoint
  • Create a new directory mkdir

    mkdir

    Createanewdirectory
  • Establish symbolic connection symlink

    symlink

    Establishsymboliccon
  • Change file mode chmod

    chmod

    Changefilemode
  • Rename a file or directory rename

    rename

    Renameafileordirecto
  • Open process file pointer popen

    popen

    Openprocessfilepoint
  • Test whether the file pointer reaches the end of the file feof

    feof

    Testwhetherthefilepo
Popular Articles