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
  • Rename a file or directory rename

    rename

    Renameafileordirecto
  • Establish symbolic connection symlink

    symlink

    Establishsymboliccon
  • Change the group to which the file belongs chgrp

    chgrp

    Changethegrouptowhic
  • Check if the file or directory exists file_exists

    file_exists

    Checkifthefileordire
  • Read a line from a file pointer fgets

    fgets

    Readalinefromafilepo
  • Returns the normalized absolute path name realpath

    realpath

    Returnsthenormalized
  • Create a hard connection link

    link

    Createahardconnectio
  • alias for fwrite fputs

    fputs

    aliasforfwrite
Popular Articles