I have some PHP:
PHP Code:
<?php
$dir = "/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo $file;
echo "<br />";
}
closedir($dh);
}
}
?>
It checks all the files in a directory then list each file on a new line.
Is there eny way of formatting each line for example the first line bg is grey the second is white the third is then grey and so on. How is this done???