Re: working with ini files
| From: | Aleksandar Skodric | Date: | Tue, 28 Feb 2006 18:40:52 +0000 |
| Subject: | Re: working with ini files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231220@lists.php.net to get a copy of this message | ||
May I presume that your ini file is just simple plain text file? Check then how you can use PHP to handle files:
http://nl2.php.net/manual/en/function.file.php
http://nl2.php.net/manual/en/function.fopen.php
http://nl2.php.net/manual/en/function.fwrite.php
Although, I suggest creating such things in database, if you have that option.
Regards,
Aleksandar
Benjamin Adams wrote:
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 how can I do this, I tried using ini_set but its not working. help would be great, Thanks!! Ben