I am currently editing a script and I need it to go into /images/ and then return the filenames of the five images that are located there. I need the filenames to be named within the script as image1, image2, image3, image4 and image5.
PHP Help: Retrieving File Names from folder
1
I am currently editing a script and I need it to go into /images/ and then return the filenames of the five images that are located there.
I need the filenames to be named within the script as image1, image2, image3, image4 and image5.
While the general order will not matter, I do need some way of choosing which image will be set as image1. I could name the file 1imagename.jpg and then remove the 1 later.
I am by no means a PHP expert but I'm pretty resourceful and if anyone can throw me a bone I should be able to knock something together myself.
I need the filenames to be named within the script as image1, image2, image3, image4 and image5.
While the general order will not matter, I do need some way of choosing which image will be set as image1. I could name the file 1imagename.jpg and then remove the 1 later.
I am by no means a PHP expert but I'm pretty resourceful and if anyone can throw me a bone I should be able to knock something together myself.
- WilliamBlah
Next Topics on Trending Feed
-
1