Jump to content

Recommended Posts

Hi people...
I'm trying to create a cms to run a site of mine and have come across a problem. I have a file called settings.php that contains a bunch of settings in the following format. I example of how the file looks follows:

[code=php:0]
<?php
$SETTINGS_PATH = "/home/public_html/settings";
$TEMPLATE_PATH = "/home/public_html/templates";
$ATEMPLATE_PATH = "/home/public_html/templates";
$DB_NEWSTAB="newszv";
$LANGUAGE_FILE="en_language";
?>
[/code]

What I would like to know is what the best method would be for editing these settings via http within a admincp. I'm just starting with php so a simple and effective method would be appreciated. If anyone could show me a tutorial or provide me with some code that does this for me that would be great as this is something I would really like to add.
Link to comment
https://forums.phpfreaks.com/topic/6784-settings-for-a-script/
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.