configuration files

From: Date: Thu, 11 Nov 2004 16:07:24 +0000
Subject: configuration files
Groups: php.db 
Request: Send a blank email to php-db+get-37235@lists.php.net to get a copy of this message
I thought it would be a good idea to use parse_ini_file instead of doing require_once("config.ini"). However, what do I do about arrays that i had in my config file, cos parse_ini_file() does not like them. eg: [foods] favFoods = array('this','that','other',) I notice my php.ini file is arranged in a similar format, and where there are multiple options they are separated by a colon, like include_dir = ./:../ or something similar. Rgds Malcolm

« previous php.db (#37235) next »