473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

parse_ini_file yes/no aware?

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
1 1902
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Morten Dreier | last post by:
Is there a way to get php to do a parse_ini_file() in safe_mode without turning the entire safe_mode off? -- Morten Dreier http://morten.dreier.no/
1
by: Dave Turner | last post by:
has anyone ever put together a list of somewhat-common things/mistakes that PHP coders should be aware of to help ensure that they dont accidentally open up their script to vulnerabilities?
10
by: Michael Foord | last post by:
I'm trying to become 'unicode-aware'... *sigh*. What's that quote - 'a native speaker of ascii will never learn to speak unicode like a native'. The trouble is I think I've been a native speaker of...
1
by: Paul Drummond | last post by:
Hi Guys, Sorry if this is the wrong place to post - is there a pyQt newsgroup? I know there is a mailing list but I hate them! I am using pyQt and BlackAdder which comes with Qt 3.3.3 - it...
11
by: Bob Smith | last post by:
hi all, having some problem with locale. I use an std::string, but seems like not locale aware هنِ = garbage. How do I make the string aware of my scandi-locale? TIA --...
3
by: Ondrej Baudys | last post by:
Hi, After trawling through the archives for a simple quote aware split implementation (ie string.split-alike that only splits outside of matching quote) and coming up short, I implemented a...
0
by: chubbardsr | last post by:
The most recent problem that i am running in to lately is Access being DPI aware with Vista. Has anyone see any fixes to making the database when opened DPI aware to prevent Vista from changing...
5
by: er | last post by:
hi, is anyone aware of a library that generalizes transform, for_each? e.g. transform( vec1.begin(), vec1.end(), vec2.begin(), vec3.begin(),
0
Dormilich
by: Dormilich | last post by:
Hi folks, does anyone know why parse_ini_file() fails (if characters outside ASCII range are present) on text encoded in Latin1 while the same text encoded in UTF8 passes without any problems?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.