Setting up the Folder Structure
No database, -you say, so what’s that catch? We need to create some kind of a structure, and in this case it would be the folder structure on the server.
We achieve the goal by setting up the directories in a particular manner. Once you understand the principle you can deviate from the described order, but for now just follow along.
You can create this folder tree on your existing web site or a local virtual directory. In my example folder “Photo” is the web site root directory which can be accessed through http://localhost/photo.
The gallery (represented by the albums folder in web site root directory) may contain an unlimited number of albums each of which is a separate folder inside the albums folder.
Our AJAX application will read and display the content of the folders on the fly.