GitXplorerGitXplorer
a

Directory-Last-Modified-Timestamp

public
2 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
05efb0b7712f262765eee03458aca02e77f009d4

readme file renamed

aashfame committed 13 years ago
Unverified
506e9ef314c2fe12e213f2c4f73333237dbb0a3a

typo

aashfame committed 13 years ago
Unverified
1ff61acade5905c3fa0f00c96fd80806f2041ca3

changed readme

aashfame committed 13 years ago
Unverified
82f0abef3ab365a2b4cc7a50d04b7142f38d88bf

changed readme

aashfame committed 13 years ago
Unverified
fb3e21b87acac1277c2a6f2e2321fbc06309a7e6

final

aashfame committed 13 years ago
Unverified
9244aa7186af3bc83a12d7f029007552c8ef374c

remove is_file() to read DIR timestamp as it holds the recent timestamp of the last file changed inside it. So we don't need to traverse downhill.

aashfame committed 13 years ago

README

The README file for this repository.

PHP Code to track when was the last time a directory was modified. I needed this to show how long ago was the staging server updated.

Call dlmt() with path as argument to it which you would like to monitor, for eg: themes folder in my case

Normal usage: echo dlmt( '/home/ashfame/www/git/' );

WordPress usage: To monitor theme, drop the code in functions.php & use it like echo dlmt( trailingslashit( dirname( FILE ) );