Jump to content

last modification time of the included files


lakilevi

Recommended Posts

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

Hello.

Thanks for your answer.

 

I have tried already the filemtime function, but if made a change in the included file (config.php) and made an echo filemtime() in the main file, than it took the last modification time of the main file only, not of the included file. :(

Hello.

Thanks for your answer.

 

I have tried already the filemtime function, but if made a change in the included file (config.php) and made an echo filemtime() in the main file, than it took the last modification time of the main file only, not of the included file. :(

 

Then you are passing the wrong file name to the filetime() function.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.