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.
Thanks,
Dave
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