RE: [PHP] working with ini files
| From: | jblanchard at onecallcom dot com | Date: | Tue, 28 Feb 2006 18:36:55 +0000 |
| Subject: | RE: [PHP] working with ini files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-231219@lists.php.net to get a copy of this message | ||
[snip]
I have created my own ini file. I can read the values into an array
fine. but What I want to do is change a value in the ini file. Example
file.ini
dog = 3
cat = 4
fish = 7
altered file.ini
dog = 3
cat = 5
fish = 7
[/snip]
ini_set is for the php.ini, not yours. You will need to open and write
to your ini file. http://www.php.net/fopen