Display the files/folders like windows explorer

Discussion in 'PHP' started by sugarland, Feb 25, 2009.

  1. #1
    How to display the files/folders under a folder or username on the server just like the windows explorer? Thanks.
     
    sugarland, Feb 25, 2009 IP
  2. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    #2
    in php?

    in linux, you can execute `ls [path]`

    exec('ls /path/to/folder/', $result);
    print_r($result); // or iterate result using foreach

    :)
     
    gapz101, Feb 25, 2009 IP
  3. Scripten

    Scripten Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    OR if you are under windows you can use

    
    system("dir");
    
    PHP:
    or just an indexing script.
     
    Scripten, Feb 26, 2009 IP