On my site I have included a setup.ini file which contains all my settings for the entire site, now I want to make it dynamic so I can make changes from the net through a browser. But the problem I am having is I can't pin point updating just certain parts of the file, it seems to want to update the entire thing each time and causing errors.
Example on the page I have the following settings:
// database directories and paths
$DB_Name = "dbname";
$DB_Host = "dbhost";
$DB_User = "dbuser";
$DB_Password = "dbpassword";
// site description and paths
$Site_Name = "sitename";
$SERVER_NAME = "servername";
$URL_ADMIN = "adminurl";
But when I just want to update the changes for the database, with out updating the entire pages settings this is what I get:
$DB_Name = "dbname";
$DB_Host = "dbhost";
$DB_User = "dbuser";
$DB_Password = "dbpassword";
It removes any other settings that I had on the page. One work around I figured out was to just update the entire page each time, but that is time consuming as there are serveral other settings that are on the page that is mentioned in the example.
What am I missing ... Or is it not possible?