Click to See Complete Forum and Search --> : how to read a subfolder content?


method
02-08-2006, 09:37 AM
Hi all. Here i have a small script that reads content of a folder and prints it name out. But the problem is that if i have a subfolder like this /mp3/andy/ it does not read and print the content of that folder. Is there a way to over come this problem?Thanks


<?php
$folder=dir("./mp3");

while($folderEntry=$folder->read()){
echo $folderEntry."<br>";
}

$folder->close();

?>