Shyju KP
Shyju KP

Reputation: 1

Use ini_set functions for [custom].ini files except php.ini settings

I created a custom ini file for keep some array details. Not used for configuration like values. Then I would like to update or remove sections from this files.

Currently I used parse_ini_file function and update the array and save that array to ini file. But my file is a large file and this process may happen every second. So i want to update each sections without file open and save. That means I am looking a function like ini_set.

Some sections from my ini file mention above. How can I edit these each sections by program. I know one solution like; read the sections as an array, make the changes done to the array and save that array to the ini file. Any body have any other idea?

Upvotes: 0

Views: 155

Answers (0)

Related Questions