Jump to content

Saving settings to file


doddsey_65

Recommended Posts

I have a settings.php file which contains an array like so:

 

$settings['board_name'] = 'A Simple Forum';
$settings['board_short_name'] = 'ASF';

 

But now i have come to the admin part where these settings can be changed i am wondering if this is the best way of handling settings. When the admin chooses to modify one of these settings i would have to open the file, find the line of the setting they want changing and overwrite that line with the new setting. I could store these settings in the database however, which would mean an easier job of replacing settings. Does anyone have any ideas as to which method is best? or if there are any other methods?

 

 

Link to comment
https://forums.phpfreaks.com/topic/243705-saving-settings-to-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.