Re: Best/Proper way to process an extension-specific configuration (ini) file.

From: Date: Fri, 13 Feb 2009 21:55:33 +0000
Subject: Re: Best/Proper way to process an extension-specific configuration (ini) file.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-43036@lists.php.net to get a copy of this message
On Fri, Feb 13, 2009 at 7:31 PM, David M. Patterson < dpatterson@dplhenterprises.com> wrote: > I am writing an extension that requires its own configuration file. > > I would prefer to not re-invent the parse a config file wheel and so, have > been trying to use zend_parse_ini_file() function. Unfortunately, I have > been unable to make this work, so far. > > If someone would either provide a code snippet for this or point me to one, > I'd really appreciate it. > The normal way is to use PHP ini-entries. You can find examples in just about every extension out there. Are you sure you need a separate configuration file for your extension? -- Mikko Koppanen

« previous php.internals (#43036) next »