Write a PHP script to get last modified information of a file.
<?php $current_file_name = basename($_SERVER['PHP_SELF']); $file_last_modified = filemtime($current_file_name); echo "Last modified " . date("l, dS F, Y, h:ia", $file_last_modified)."\n"; ?>
Sample Output:
Last modified Monday, 26th June, 2017, 02:06pm
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output: