Results 1 to 2 of 2

Thread: how to read a subfolder content?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Arrow how to read a subfolder content?

    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


    Code:
    <?php 
    $folder=dir("./mp3"); 
    
    while($folderEntry=$folder->read()){ 
    echo $folderEntry."<br>"; 
    } 
    
    $folder->close(); 
    
    ?>

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: how to read a subfolder content?

    If you have revieved an answer to your question, in another thread or by yourself, could you please mark this thread as resolved.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width