How would i go about doing a list a directories in a directory.
I need to display this list in a table.
thx
$dirstr = "dir/"; $dir = opendir($dirstr); while ($entry = readdir ($dirstr)) { if (is_dir($dirstr . $entry)) echo "<tr><td>" . $entry . "</td></tr>"; } closedir ($dir);
not tested
I did that,,, with $dirstr = "../Administration/General/";
but i get the folowing error...
Warning: readdir(): supplied argument is not a valid Directory resource in c:\intranet\bcl\siteadmin\upload2.php on line 128
anyone know why ?
uhh, sorry about that, use just $dir :rolleyes: