First of all, I am assuming this is NOT bad practice due to various popular software using this method, such as SMF.
Anyway, so I currently have this code:
<?php
// main visual config
$cfg['lang'] = 'en';
// paths
$path['admin'] = 'index.php?p=admin';
$path['admin2'] = 'zvfpcms/admin';
$path['root'] = 'zvfpcms';
$path['images'] = 'zvfpcms/img';
$path['css'] = 'zvfpcms/css';
$path['js'] = 'zvfpcms/js';
$path['pages'] = 'zvfpcms/pg';
?>
The thing is, I want the $cfg variable(s) to be edited directly via an interface.
How would this be achieved? I cannot think replacing strings would be a good idea especially when there are a very large number of possibilities (or even infinite) for future $cfg variables I create.
Or, will I have to settle for a different method...
Answers appreciated!