How can I display the last time the current document was updated in PHP?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If by “current document”, you mean “script that is currently being executed”, you can use something like this :
And the output is like :
Which is the date and time it is right now in France 😉
See
filemtimeto get the last modification date of a file, and date and it’s formatting options to convert the timestamp returned byfilemtimeto something a human-being can understand.