note 69444 added to function.parse-ini-file
| From: | arjan dot van dot bremen at gmail dot com | Date: | Wed, 06 Sep 2006 13:46:36 +0000 |
| Subject: | note 69444 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116756@lists.php.net to get a copy of this message | ||
.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);
?>
----
Server IP: 194.109.193.119
Probable Submitter: 145.89.180.85
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/69444
Del: integrated -- https://master.php.net/note/delete/69444/integrated
Del: useless -- https://master.php.net/note/delete/69444/useless
Del: bad code -- https://master.php.net/note/delete/69444/bad+code
Del: spam -- https://master.php.net/note/delete/69444/spam
Del: non-english -- https://master.php.net/note/delete/69444/non-english
Del: in docs -- https://master.php.net/note/delete/69444/in+docs
Del: other reasons-- https://master.php.net/note/delete/69444
Reject -- https://master.php.net/note/reject/69444
Search -- https://master.php.net/manage/user-notes.php