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
last modification time of the included files
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: last modification time of the included files
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
http://us.php.net/manual/en/ref.filesystem.php
(#10850)