note 86715 deleted from function.parse-ini-file by danbrown
| From: | danbrown@php.net | Date: | Sun, 23 Jan 2011 17:08:52 +0000 |
| Subject: | note 86715 deleted from function.parse-ini-file by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176153@lists.php.net to get a copy of this message | ||
Note Submitter: bas at muer dot nl
----
In response to juampii_4 at hotmail dot com (10-Jul-2008 05:24):
You're parsing the ini file every time someone requests a variable. You'd have a better
performing class if you were to parse it once, then store the resulting array. Requests for a value
from the ini should be taken from that stored array, not by reparsing the ini over and over.