File Directories  : return date("m-d-y g:i:sa", $tstamp);

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Using basdename key word</title>
</head>
<body text="#FFFF00" bgcolor="#000080">
<?php
//C:\Apache2\htdocs\php5\tutorials_example\file_directories\basename
/* Convert timestamp to desired format. */
function tstamp_to_date($tstamp) {
return date("m-d-y g:i:sa", $tstamp);
}
$file = "C:/Apache2/htdocs/php5/tutorials_example/file_directories/custom_statistics/visit_stat.php";
/* Open the file */
$fh = fopen($file, "r");
/* Retrieve file information */
$fileinfo = fstat($fh);
/* Output some juicy information about the file. */
echo "Filename: ".basename($file)."<br />";
echo "Filesize: ".round(($fileinfo["size"]/1024), 2)." kb <br />";
echo "Last accessed: ".tstamp_to_date($fileinfo["atime"])."<br />";
echo "Last modified: ".tstamp_to_date($fileinfo["mtime"])."<br />";
?>
</body></html>