Click to See Complete Forum and Search --> : Settings Files -[RESOLVED]-
Electroman
Nov 15th, 2004, 04:49 PM
Rather than store all the settings for my site on the database I thought it'll be better to put some of the more common ones in files. Is there any easy way to do this or is the only choice doing it in plian text and parsing it myself. If so whats the standard functions to edit files?
visualAd
Nov 16th, 2004, 03:30 AM
Have you looked at the parse_ini_file() (http://www.php.net/parse_ini_file) function.
I made a config class, which I use to parse my config files. But I have not written any documentation for yet, so you are on your own working out how to use it. ;)
It uses the httpd.conf file format, not the ini file format.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.