How to get the modified time and size of any file using PHP?
From php.net http://us.php.net/manual/en/function.stat.php
stat
(PHP 4, PHP 5)
stat - provides file information
SplFileInfo provides a high-level API for the file system:
$file = new SplFileInfo('path/to/file'); echo $file->getMTime(); echo $file->getSize();
you can use this
echo date("m/d/Y",filemtime("latestime.php"));
You can use the filemtimeand functions for this filesize.
filemtime
filesize
More here
Source: https://habr.com/ru/post/1744131/More articles:weird space in IE - any suggestions? - htmlUnit tests and fixtures - unit-testingShared buffer optimization in a multi-threaded producer / consumer environment - performanceHow to find input element id by value? - javascriptOpenGL Cheat Sheet? - pipelineJQuery getScript equivalent in prototype - jqueryHow to get part of attribute value using jquery - javascriptПодтверждение запроса запроса команды для повторных попыток - design-patternsThe problem with the interface builder: when connecting IBOutlet, getting "this class is not a key value compatible with the key code", - iphoneRegularly remove images with style tag from Html - phpAll Articles