Editing an ini file in php
Posted: Wed Jan 20, 2010 12:27 am
I have an ini file called myvalues.ini which I use to store some configuration values. The admin can also change the values in this ini file from front end. How do I write the code in php to edit the ini file.
Following is the structure of myvalues.ini file
myvalues
[Values]
value1=test1
value2=test2
value3=test3
value4=test4
value5=test5
Suppose i want to update the values from test1,test2...test5 to newtest1,newtest2..newtest5. How do I do it using php?
Following is the structure of myvalues.ini file
myvalues
[Values]
value1=test1
value2=test2
value3=test3
value4=test4
value5=test5
Suppose i want to update the values from test1,test2...test5 to newtest1,newtest2..newtest5. How do I do it using php?