Question : php properties file format suggestion

Hello,

I'm working on an application that doesn't have a database and I'm trying to install an image gallery.  I have the gallery working and loading the images for the gallery dynamically but I need to persist information about each image.  Things like caption text, order, is album cover...etc.  What is the best approach here?  I'm unsure if I can create a properties file (key, value pair) ala Java and read that using php. I will then need to read whatever file that is and be able to pick apart each properties (image file) correlated information and display it on an html page.  Any ideas?

Answer : php properties file format suggestion

you can create an ini file and use parse_ini_file() to read the data, where each file would have its own section within the ini file:
http://php.net/manual/en/function.parse-ini-file.php

Other than that you can also create an xml file and use SimpleXML to process the file:
http://us.php.net/manual/en/book.simplexml.php
Random Solutions  
 
programming4us programming4us