note 99424 added to function.parse-ini-file

From: Date: Mon, 16 Aug 2010 21:55:42 +0000
Subject: note 99424 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-171741@lists.php.net to get a copy of this message
Can someone tell me, what exactly is the advantage of parsing ini files to following way for example: <?php return array(' 'section'=>array( 'something'=>1234, 'something_else'=>4321 ) '); // some sections, values, etc. ?> And then getting the configuration in that way: <?php $config = require_once('config.php'); // where config.php is the file above ?> I think that this method is running faster and is more secure.. am I right? ---- Server IP: 89.190.194.18 Probable Submitter: 84.40.122.118 ---- Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php Edit -- https://master.php.net/note/edit/99424 Del: integrated -- https://master.php.net/note/delete/99424/integrated Del: useless -- https://master.php.net/note/delete/99424/useless Del: bad code -- https://master.php.net/note/delete/99424/bad+code Del: spam -- https://master.php.net/note/delete/99424/spam Del: non-english -- https://master.php.net/note/delete/99424/non-english Del: in docs -- https://master.php.net/note/delete/99424/in+docs Del: other reasons-- https://master.php.net/note/delete/99424 Reject -- https://master.php.net/note/reject/99424 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171741) next »