note 86715 added to function.parse-ini-file
| From: | bas at muer dot nl | Date: | Fri, 31 Oct 2008 11:52:12 +0000 |
| Subject: | note 86715 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145992@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 83.137.20.135
Probable Submitter: 213.154.236.226
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/86715
Del: integrated -- https://master.php.net/note/delete/86715/integrated
Del: useless -- https://master.php.net/note/delete/86715/useless
Del: bad code -- https://master.php.net/note/delete/86715/bad+code
Del: spam -- https://master.php.net/note/delete/86715/spam
Del: non-english -- https://master.php.net/note/delete/86715/non-english
Del: in docs -- https://master.php.net/note/delete/86715/in+docs
Del: other reasons-- https://master.php.net/note/delete/86715
Reject -- https://master.php.net/note/reject/86715
Search -- https://master.php.net/manage/user-notes.php