stephan_pieri Posted December 18, 2007 Share Posted December 18, 2007 Hiya guys. Im new to this forum and also to the PHP world. So far, what i am looking for is a way to read the properties of a folder on my server to find the last-modified' date. In the end, i would like to display a date and time on my page saying something like "this album was last modified on DD/MM/YYYY HH:MM AM/PM" I have done loads of searching, but so far i have only found how to check a files properties, which i tried to change a bit for use with directories...but failed miserably. If somebody could please post a bit of code for me, or even point me in the right direction in search terms i would much appreciate it. i appologise if this is in the wrong section Stephan Quote Link to comment Share on other sites More sharing options...
chigley Posted December 18, 2007 Share Posted December 18, 2007 Perhaps the filemtime() function?? Quote Link to comment Share on other sites More sharing options...
lemmin Posted December 18, 2007 Share Posted December 18, 2007 The directory will be seen as a file, you can use the filesystem functions on it. http://www.php.net/manual/en/ref.filesystem.php chingley has the function you are looking for. Quote Link to comment Share on other sites More sharing options...
stephan_pieri Posted December 18, 2007 Author Share Posted December 18, 2007 Excellent, thank you very much, i'l have a look at them when i get a chance. On a side note...those are the quickest replies i have ever seen. Thanks guys Quote Link to comment Share on other sites More sharing options...
chigley Posted December 18, 2007 Share Posted December 18, 2007 chingley has the function you are looking for. Chigley!!! I must get called Chingley every other day LOL. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.