Set the date and time for a file
You can use the touch
function to set the last modified date:
touch("path/to/my-image-file.jpg", $someTimestamp);
To retrieve this in PHP, use filemtime
.
You can use the touch
function to set the last modified date:
touch("path/to/my-image-file.jpg", $someTimestamp);
To retrieve this in PHP, use filemtime
.