directory listing with array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Davide

    #1

    directory listing with array

    Hi all,

    I need to wiev in a php page the listing of one on my directory in the
    webserver.

    can someone help me to understand how?

    for every file in thw directory I need a row in a html file..

    directory: /opt/dir

    result:

    file1
    file2
    file3
    ...

    Really thanx

  • Daniel Tryba

    #2
    Re: directory listing with array

    Davide <davide.papagno @gmail.com> wrote:[color=blue]
    > Hi all,
    >
    > I need to wiev in a php page the listing of one on my directory in the
    > webserver.
    >
    > can someone help me to understand how?[/color]

    That is a simple RTFM, http://nl3.php.net/readdir contains all examples
    you need to know how to handle this.

    Comment

    • Davide

      #3
      Re: directory listing with array

      IT WORKS!

      Cheers :)

      Comment

      • Chung Leong

        #4
        Re: directory listing with array

        For the lazy: http://fi.php.net/glob/

        Comment

        Working...