I want to get all file names (and path) of files those updated after a date (in directory and subdirectories) using PHP.
like all files updated after 20.08.2017 ,
Below code provide only files from directory, i also need path,
$dir = "opendir(".")";
clearstatcache();
$yesdate = strtotime("-1 days");
while(false != ($file = readdir($dir)))
{
if ( substr($file,-4) == ".php" )
{
if (filemtime($file) >= $yesdate)
{
echo $file;
}
}
}
Thanks