Is there a way, with PHP, to get all of the info from a directory?
For example, I have a directory images/news/ on my server with all of the images for my news stories. Is there a way, with PHP, to get a list of each file in that directory?
jbachris wrote: Is there a way, with PHP, to get a list of each file in that directory?
Is there a way, with PHP, to get a list of each file in that directory?
Well if you're using PHP5 you can use scandir otherwise with PHP4 you'll need to write a function that uses opendir and readdir .
Good luck. 🙂
Thanks.