Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.