Sun Oct 26, 2008 8:47 pm
<?php
$dirname = ".";
$dh = opendir($dirname) or die("couldn't open directory");
while (!(($file = readdir($dh)) === false ) ) {
if (is_dir("$dirname/$file")) {
echo "(D) ";
}
echo $file."<br/>";
}
closedir($dh);
?>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.