Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get latest file in directory

$files = scandir('data', SCANDIR_SORT_DESCENDING);
$newest_file = $files[0];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #latest #file #directory
ADD COMMENT
Topic
Name
8+8 =