Page 1 of 1

last modification time of the included files

Posted: Tue Mar 23, 2010 3:30 am
by lakilevi
Hello.
I need to get in some way the maximum last modification time of my php files. The problem is that in many files I use include or require. So I need to know the last modification date of the included files.

Example:

inlude "config.php"

echo "Last modification time"
// here I should display the maximum last modification time of the actual file, and also of the file "config.php"

Which is the best way to do this? I don't want to change the code of the included files.

Thank you very much

Re: last modification time of the included files

Posted: Tue Mar 23, 2010 11:46 am
by Christopher
Have you checked the manual for PHP's filesystem functions? There seem to be several that will give you various time information about a file:

http://us.php.net/manual/en/ref.filesystem.php