Thanks for all your great responses ppl. This is why I think the php community is the best there is!!!
laserlight, I was aware of the parse_ini_file(), I wrote my own as I needed some more java like behaviour from it - primarily as Im porting the property files from a j2ee app, also It means it is all nicely encapsulated.
Regarding RDBMS level caching, unfortunately, we only have the ability to use mySQL 3.x, (one of the reasons we're moving from ORA Vs J2ee to PHP Vs MySQL is cost - little plug for the community there!!!) I dont think query caching is available until the 4.x release. (I may be wrong on this - if so please correct me).
I think the real hub of the question, after rethinking a little bit, was;
Scenario:
I parse a property file into memory using (at low level granularity, fopen and fread) parsed into some trivial data structure, lets say for the sake of arguement an assoc array. encapsulated in a nice Property obj.
How do you think, would be my best way of persisting this datastructure (preferrably maintaining its namspace association with the object, altho this is not 100% required.. would just be nice ;-) )
For arguements sake, this object is too large to persist in the session, as it may well contain n000's of key=>val's, and I dont want them kicking around with every user. I really want a nice bit of memory, available across global scope, so that user 1 thru n all has access to the Property obj without having to re-parse the file?? I guess I want a jndi lookup in php!! :-)
I have dabbled with serialising the object but even then to persist it, I go back to IO Vs DB, and regarding serialisation, Ive noticed this implementation in PHP basically sucks, as an awful lot of object integrity is lost :-(
sorry for the long winded response, any ideas graciouslly recieved!!