Page 1 of 1

Get all Filenames from a folder

Posted: Tue Jan 15, 2008 8:58 pm
by mhonnphp
guys i got a problem.
how can i get all the filenames from the specific folder.

Example:
The "C:\Documents and Settings\Information\My Documents\" have 4 files inside.
what i want to do is to display all the files inside C:\Documents and Settings\Information\My Documents\ using the browser.
This System will run standalone.

Please help!
Thanks and God bless

Re: Get all Filenames from a folder

Posted: Tue Jan 15, 2008 9:21 pm
by s.dot
Have a look at opendir() and readdir() or if you wish, glob().

Re: Get all Filenames from a folder

Posted: Tue Jan 15, 2008 9:37 pm
by mhonnphp
Oh.. thanks scottayy!
i used glod()