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.

Example

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">filectime</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token keyword">echo</span> <span class="token string double-quoted-string">"Last change: "</span> <span class="token operator">.</span> <span class="token function">date</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"F d YH:i:s."</span> <span class="token punctuation">,</span> <span class="token function">filetime</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Output:

 1138609592
Last change: January 30 2006 09:26:32.
Similar Functions
  • Lightweight consultation file locking flock

    flock

    Lightweightconsultat
  • Read characters from file pointer fgetc

    fgetc

    Readcharactersfromfi
  • Open process file pointer popen

    popen

    Openprocessfilepoint
  • Give information about a file or symbol connection lstat

    lstat

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

    is_file

    Determinewhethertheg
  • Determine whether the given file name is executable is_executable

    is_executable

    Determinewhethertheg
  • Get file size filesize

    filesize

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

    is_link

    Determinewhethertheg
Popular Articles