How can I dynamiclly fill
FILE_AND_OR_DIRECTORY_NAME_HERE | seen below in use :
| 1 |
Title 1 |
20.2.2006 |
92 |
Description 1 |
1.8.2005 |
x |
Using the following php code :
$dirmsg /$dir
Parent Directory
";
# Blockquote used for displaying purposes
#echo"
";
$directory = @opendir("$rootdir$dir");
if ($directory == "") {
print "Error Reading Directory
";
} else {
while( $file = readdir( $directory ) )
{
$file_array[] = $file;
}
echo"
";
if ($dir == ".") {
$dir = "";
} else {
$dir = "$dir/";
}
foreach( $file_array as $file )
{
if( $file == ".." || $file == "." )
{
continue;
}
if (eregi("\.", $file)) {
echo"- $file
";
} else {
echo"- /$file
";
}
$count++;
}
echo"
";
#echo"
";
closedir($directory);
}
echo"
There are $count Files In this Directory
";
?>