hello im trying to make a script were it outputs only directories no other file, and ive tryed everything and cant get it to work, can sum1 please help
below is my code
function list_files($where,$url,$height,$width,$border,$target)
{
if(is_dir($where))
{
$thisdir = dir($where);
while($entry=$thisdir->read())
{
if(($entry!='.')&&($entry!='..')&&($entry!=".txt")&&($entry!=".jpg"))
{
$result.= "<a href=$where/$entry>$entry</a><br>'";
}
}
}
return $result;
}
echo list_files("/home/virtual/site28/fst/var/www/html/Game Cube/Media/Videos","http://ncubed.federationstudios.net/Game Cube/Media/Videos","100","100","0","_self");