Student Of Fortune

PHP Script to display Date Last Update File

Share on :
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.

1 comments:

company formation in cyprus said... March 13, 2011 at 9:54 PM

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

 
Recommended Post Slide Out For Blogger

Recent Comments

My Rank