directoryiterator.getctime(3) php man page | unix.com

Man Page: directoryiterator.getctime

Operating Environment: php

Section: 3

DIRECTORYITERATOR.GETCTIME(3)						 1					     DIRECTORYITERATOR.GETCTIME(3)

DirectoryIterator::getCTime - Get inode change time of the current DirectoryIterator item

SYNOPSIS
public int DirectoryIterator::getCTime (void )
DESCRIPTION
Get the inode change time for the current DirectoryIterator item.
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns the last change time of the file, as a Unix timestamp.
EXAMPLES
Example #1 DirectoryIterator.getCTime(3) example This example displays the file name and last change time of the files in the directory containing the script. <?php $iterator = new DirectoryIterator(dirname(__FILE__)); foreach ($iterator as $fileinfo) { if ($fileinfo->isFile()) { echo $fileinfo->getFilename() . " changed at " . $fileinfo->getCTime() . " "; } } ?> The above example will output something similar to: apple.jpg changed at 1240398312 banana.jpg changed at 1238605440 index.php changed at 1240398935 pear.jpg changed at 1237423740
SEE ALSO
DirectoryIterator::getATime, DirectoryIterator::getMTime, filectime(3). PHP Documentation Group DIRECTORYITERATOR.GETCTIME(3)
Related Man Pages
finfo_open(3) - php
directoryiterator(3) - php
filesystemiterator(3) - php
splfileinfo(3) - php
splfileobject(3) - php
Similar Topics in the Unix Linux Community
file monitoring
find jpg's mkdir script help
changing a file when the inode modified time of the other file changes
Bulk changing of file names using Terminal in OS X
Ip change SCO UNIX 3.2.4.2