PDA

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


tony007
Feb 8th, 2006, 09:23 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();

?>

john tindell
Feb 8th, 2006, 11:05 AM
If you have revieved an answer to your question, in another thread or by yourself, could you please mark this thread as resolved.

Thanks