/ Published in: PHP

Get modified time of a directory or file. For directories: it gets the modified time of the most recently modified file.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * mtime() Get the modified time of a directory or file. For directories, * it gets the modified time of the most recently modified file. * * @param string $path Full path to directory or file. * @param string $format Date string for use with date() * @return number|string|null */ function mtime ( $path, $format = null ) { $time = null; $temp = mtime($path . '/' . $file); $temp > $time and $time = $temp; } } } } }
Comments
