I am trying to get the filesize and filletime/date using the following code, I have tried everything I can research, but just can't get it to show. Below is the code I am using, can anyone help.
Thank you in advance..
<?
$dirpath = "$userpath";
$dh = opendir($dirpath);
while (false !== ($file = readdir($dh))) {
//Don't list subdirectories
if (!is_dir("$dirpath/$file")) {
echo "<div align=\"center\"><center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"700\">";
echo "<tr><td width=\"50\" align=\"left\"><input type=\"checkbox\" name=\"imgpath\" value=\"$userpath/$file\"></td>";
echo "<td width=\"250\" align=\"left\"><a href=\"$httppath/$file\" target=\"_blank\">$file" . htmlspecialchars(ucfirst(preg_replace('/..*$/', ''))) . "</td>";
echo "<td width=\"100\" align=\"left\"><img src=\"$httppath/$file\" border=\"0\" width=\"75\"></td>";
echo "<td width=\"100\" align=\"left\">Size - bytes</td>";
echo "<td width=\"100\" align=\"left\">Date</td>";
echo "<td width=\"100\" align=\"center\"><form action=\"../edit/index.php\" method=\"POST\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"editDirectory\" value=\"$editDirectory\"><input type=hidden name=\"imageName\" value=\"$file\"><input type=Submit value=Edit-Images></form></td>";
echo "<hr width=\"95%\" color=\"#9999FF\"></tr></table></center></div>";
echo "<div align=\"center\"><center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"700\">";
echo "<tr><td width=\"100%\" align=\"left\">";
echo "URL for image: $file<br><input name=\"textfield\" type=\"text\" size=\"75\" value=\"$httppath/$file\" \" onclick=\"select_all(this)\"><br>";
echo "HTML Code for image: $file<br><input name=\"textfield\" type=\"text\" size=\"75\" value=\"<img src="$httppath/$file"> \" onclick=\"select_all(this)\">";
echo "</td></tr></table></center></div>";
}
}
closedir($dh);
?>