I have found ftp_nlist() Should suit me perfectly, sorry to trouble!
Bix. ;o) "Bix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all... > > Is there any way of reading the contents of a directory into an array so I > can generate a listing from it? > > I can't see a filesystem function for this, how about with ftp functions? Am > looking around at the moment but would appreciate some help. > > I am looking to read each file in the directory into an array ie: > > $array_files[1] = "foo.jpg" > $array_files[2] = "bar.jpg" > etc... > > So I can then do a foreach and put them all in a drop down box to choose the > image. > > Thanks in advance ;o) > > Bix > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php