note 69444 rejected from function.parse-ini-file by bobby
| From: | bobby@php.net | Date: | Wed, 06 Sep 2006 14:14:48 +0000 |
| Subject: | note 69444 rejected from function.parse-ini-file by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116757@lists.php.net to get a copy of this message | ||
Note Submitter: arjan dot van dot bremen at gmail dot com
----
.ini example: http://www.future-art.nl/test/example.txt
.php file: http://www.future-art.nl/test/ini_reader.php
I'd like to know the code that is executed when the 'parse_ini' function is used.
I'm trying to parse the .ini file given in the '.ini example' mentioned above. As you
can see in the .ini file, it contains 'true/false' values, like 'globalpath =
false'.
When I'm parsing the .ini file, values like 'true' and 'false' are blanked
out, deleted, as you can see on the above given page (http://www.future-art.nl/test/ini_reader.php).
This is the only thing that's going wrong, how can this problem be solved? (Can someone also
post the php code that creates the standard function 'parse_ini', maybe this code can be
edited or something like that.. just an idea)
Below you can see the PHP-code that I'm using, exactly the same code as given in the example in
the quickref:
<?php
// parse .ini without sections
$ini_array = parse_ini_file("config.ini");
print_r($ini_array);
?>