Jump to content

Saving site's settings


elad135

Recommended Posts

I'm kinda new to PHP programming and I'm working on a large project at my university.

Currently I'm working on adding as many choices to the Admin account so he could customize the site to his needs.

All I wanted to know is what is the customary way in most sites to save these customization settings?

Should I just put them in the database? Or maybe save them in a file (XML or some other kind)?

Been scouring Google to find some information but didn't get anything useful so hopefully someone here could help me figure this out.

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

Ok, that was what I thought of doing at first.

So I'll save the settings in the database. Now, what's the best way to pull them and have them available to me on every page?

Should I have a Settings.php that I'll include in every page, with variables that would be initialized to the settings from the database?

Should I store the settings from the database in session variables on user login?

Maybe some other way I haven't thought about?

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.