Connecting Tech Pros Worldwide Forums | Help | Site Map

directory listing with array

Davide
Guest
 
Posts: n/a
#1: Jul 17 '05
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
Guest
 
Posts: n/a
#2: Jul 17 '05

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.

Davide
Guest
 
Posts: n/a
#3: Jul 17 '05

re: directory listing with array


IT WORKS!

Cheers :)

Chung Leong
Guest
 
Posts: n/a
#4: Jul 17 '05

re: directory listing with array


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

Closed Thread