By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,831 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,831 IT Pros & Developers. It's quick & easy.

parse_ini_file yes/no aware?

P: n/a
Hello group,

as far as i found out, parse_ini_file maps yes/no to php reserverd
values.
This is not what i need. Is there any way to disable this behaviour?

I write some code to modify 3rd party ini files. everything is fine,
but not the
handling of "yes/no". Or, does anybody know a good open source class,
which implements this behaviour?

Regards,

Dirk

Apr 23 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dirk Laurenz wrote:
as far as i found out, parse_ini_file maps yes/no to php reserverd
values. This is not what i need. Is there any way to disable this
behaviour?
No way to change that behaviour. You're going to need to write your own
INI-parsing implementation. There are a few examples of how to do this in
the PHP manual on the parse_ini_file page, in the comments at the bottom.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.