note 51285 rejected from function.opendir by nlopess
| From: | nlopess@php.net | Date: | Sat, 26 Mar 2005 10:03:23 +0000 |
| Subject: | note 51285 rejected from function.opendir by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-87011@lists.php.net to get a copy of this message | ||
Note Submitter: admin at bigblueplanet dot net
----
is there a way to make the following list in ABC order?
<?php
$path = "../FileVault/T2Maps";
// Open the folder
$dir_handle = @opendir($path) or die("Unable to open $path");
// Loop through the files
while ($file = readdir($dir_handle)) {
if($file == "." || $file == ".." || $file == "index.php" || $file ==
"*.gif")
continue;
$date = fileatime("../FileVault/T2Maps/$file");
echo "<table align=\"center\" width=\"98%\" border=\"1\"
bordercolor=\"#3399cc\" cellspacing=\"1\" cellpadding=\"1\"
valign=\"top\">
<tr>
<td height=\"20\" bgcolor=#336699 valign=\"center\"><font
face=\"verdana\" size=\"2\">
<strong> $file.</strong></font></td>
</tr>
<tr>
<td valign=\"top\"> <font face=\"verdana\" color=\"#bccbdc\"
size=\"1.5\">";
echo "Size:";
echo filesize("../FileVault/T2Maps/$file");
echo "<br>Last Updated:";
echo date("D d M Y g:i A", $date);
echo "<BR>Click <a href=\"http://www.bigblueplanet.net/filevault/t2maps/$file\">
HERE</a> To Download $file.<br>";
echo"<BR>
</font></td>
</tr>
</table>
<br>";
}
closedir($dir_handle);
?>