NYCPHP Meetup

NYPHP.org

[nycphp-talk] Local File versus DB-based configuration setting strategy

Kenneth Downs ken at secdat.com
Sat Jul 8 09:46:23 EDT 2006


Cliff Hirsch wrote:

> My config file (mainly constants and global arrays) has grown 
> significantly as I have shifted more and more potentially dynamic info 
> out of the code. However, this has opened another can of worms. I now 
> realize that if I migrate beyond one server, it would be very 
> difficult to keep the config information in synch using local files.

What kind of config settings?  Is your migration to multiple servers 
imminent or hoped-for?

>  
> Obviously the database info can't be kept in the database, but beyond 
> that, most everything can. I have avoided this presuming that it would 
> be a huge performance hit, but perhaps not with caching.

What do you mean by database info?

>  
> What are the implementation possibilities and the pros and cons of 
> each strategy? Do I need to create fields in a DB for each setting or 
> should some sort of config setting object be serialized into/out of 
> the database? What are the performance and coherency issues? Other 
> concerns?
>  
> Regards,
> Cliff Hirsch
> _______________________________
> *Pinestream Communications, Inc.*
> 52 Pine Street, Weston, MA 02493 USA
> Tel: 781.647.8800, Fax: 781.647.8825
> http://www.pinestream.com <http://www.pinestream.com/>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>New York PHP Community Talk Mailing List
>http://lists.nyphp.org/mailman/listinfo/talk
>New York PHP Conference and Expo 2006
>http://www.nyphpcon.com
>Show Your Participation in New York PHP
>http://www.nyphp.org/show_participation.php
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060708/c41faa93/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 186 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060708/c41faa93/attachment.vcf>


More information about the talk mailing list