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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -