Re: [PHP] how to get names of files...

2002-06-25 Thread Martin Smetak
> (if there's a.gif in the folder then I want $first to be "a.gif", IF > there's also a "na.jpg" then I want then it should be $second .. if you > know what I mean) well, i think you don't want to have variable like $twentyfifth, $hundredandthirtyfirst etc... don't you rather use some array? but

[PHP] how to get names of files...

2002-06-25 Thread tauntz
Hello.. I have a problem: I want to get all the filenames in a folder and put each filename into a variable.. (if there's a.gif in the folder then I want $first to be "a.gif", IF there's also a "na.jpg" then I want then it should be $second .. if you know what I mean) sry for the dumb question