RE: [PHP] read/write ini file
| From: | John W. Holmes | Date: | Tue, 15 Apr 2003 01:48:07 +0000 |
| Subject: | RE: [PHP] read/write ini file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143859@lists.php.net to get a copy of this message | ||
> hi there i am considering of using the db/ini file to store global
> settings
> which some values will get stored into constants , how can i possible
read
> write from the ini blocks like so
Reading is easy, just use parse_ini_file().
Writing isn't that difficult, either. I wrote a simple class that'll
read and write ini files by replacing the
Variable = value
Lines with text boxes and wrapping a form tag around them all. Let me
know if you'd like to see it.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/