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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.