note 33249 added to function.parse-ini-file
| From: | dshearin at excite dot com | Date: | Fri, 20 Jun 2003 01:47:33 +0000 |
| Subject: | note 33249 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50695@lists.php.net to get a copy of this message | ||
I found another pitfall to watch out for. The key (to the left of the equal sign) can't be the
same as one of the predefined values, like yes, no, on, off, etc. I was working on a script that
read in an ini file that matched the country codes of top level domains to the full name of the
country. I kept getting a parse error everytime it got to the entry for Norway ("no"). I
fixed the problem by sticking a dot in front of each of the country codes.
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33249
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33249&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33249&report=yes