html - Most recent created subdirectory in directory (PHP) -


for example - have subdirectory in ftp:

public_html/raports/pdf/ 

and in 'pdf' folder there automatically created folders month , year like: 07.2017, 08.2017, 09.2017 ... etc.

i create href link last created or last modified folder in directory given above. how in php?

thanks!

i suggest can save time stamp , folder name in database table when folder being created , when construct href string can query latest timestamp , folder name match time stamp.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -