Re: Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)
| From: | Andre Polykanine | Date: | Sun, 03 Apr 2011 20:35:08 +0000 |
| Subject: | Re: Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?) | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312233@lists.php.net to get a copy of this message | ||
Hello Peter,
Thanks a lot! And is there a way to set (write) custom values in files
other than php.ini? Sorry, didn't find such a function.
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion
------------ Original message ------------
From: Peter Lind <peter.e.lind@gmail.com>
To: Andre Polykanine
Date created: , 10:44:31 PM
Subject: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of
complexity?)
On 3 April 2011 21:41, Andre Polykanine <andre@oire.org> wrote:
> Hello Peter,
>
> Just because you mentioned config files.
> What would you suggest me as better format for them? Database is not
> available yet since I need to make a config file before creating a
> database.
For config files I would suggest plain text config files - in the style of
key = value
php has built-in functions for reading those, so parsing them is very
fast and easy. See
http://dk2.php.net/manual/en/function.parse-ini-file.php
Regards
Peter
--
<hype>
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
</hype>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php