How can I list files in a directory

I am trying to create a slide show that randomly shows the pictures in a directory. Is there any way of listing all the pictures and putting them into a JavaScript array (for example) using HTML/CSS/JavaScript. I want to do this entirely on the client side without using PHP or any other programming. (Once they are in an array I know how to display them.)

Client side has no access to the directory. You need something running on the server to read the list of files in the directory to pass it to the client.

2 Likes

Thanks, just as I feared!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.