Getting the last updated time of the file in PHP
This function filemtime() uses the server file system so it works for local systems only, we can't use this function to get the modified time of any remote file system.
Here is the code to get the last modified date of any file. We are checking for a existing file ( test.php)
The above code will display the modified date in month/day/year format.
Note that we have used date function to convert the Unix Timestamp time returned by filemtime() function.
Subscribe to our YouTube Channel here
This article is written by plus2net.com team. https://www.plus2net.com