![]() |
How do I find the most recently uploaded file in a directory?
Hello all,
I would like to use php to find the most recently updated / uploaded files inside of my root directory. I would like to echo the link to the files. I kind of have an idea... PHP Code:
|
1 Attachment(s)
You did well to come up with a concept :-) For that good work by yourself, I have spent a little time writing you up a little function to make it happen. If you have any questions regarding the code, please ask. This way you will learn. I've tried to comment it as best as I could, however. I hope it helps you!
php Code:
|
That's great. I'll implement it here and tell you how it works.
|
| All times are GMT. The time now is 01:27 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0