PDA

Click to See Complete Forum and Search --> : Files in folder [Resolved]


FES Germany
Jul 9th, 2006, 07:27 AM
I have a question.
I want to have like a picture gallery included in my homepage. Since there are no comments but only pictures i'm looking for a method to create a page with just a table and the pictures in it.

the easiest way would be (or at least i think it would) if i can read out the file names of the files in a folder into an array.
like i put all pictures from a gallery into a folder (theyre already sorted that way) but the file names are totally mixed up. so is there any php function which gives me the file names of all files in a certain folder???

plz help


FES_Germany

penagate
Jul 9th, 2006, 07:57 AM
scandir() (php.net/manual/en/function.scandir.php)

FES Germany
Jul 10th, 2006, 08:16 AM
thanks a lot!!!!