Sometimes we need to display a list of files on our website. For example, to display the results uploaded files from users. At this show, we can add helpful information in the form of the date the file was last updated. This can be done easily using PHP. Here scrip PHPnya.
To display the last updated date of a file, we can use filemtime function.
In this example, we want to show the date of last update of the file bambang.php. Following his PHP script.
$last_modified = filemtime("bambang.php");
print("Last Modified ");
print(date("m/j/y h:i", $last_modified));
?>
Hopefully useful.
To display the last updated date of a file, we can use filemtime function.
In this example, we want to show the date of last update of the file bambang.php. Following his PHP script.
$last_modified = filemtime("bambang.php");
print("Last Modified ");
print(date("m/j/y h:i", $last_modified));
?>
Hopefully useful.
1 comments:
The importance to have the Cyprus Company in the Top of your company structure can’t be denied
Post a Comment and Don't Spam!
Dont Spam please