I am trying to get the last modification date of all files in a directory using PHP.
I am using this:
foreach($dir as $file) { $mod_date=date(\"F d
Rather than use glob function, why not use scandir function. Secondly, you could easily get the date format you want by using date("Y-m-d H:i:s", filemtime($file))
glob
scandir
date("Y-m-d H:i:s", filemtime($file))