I have a file that holds an assortment of script settings/variables/arrays. I want to read some, if not all into an editable html form so an administrator can edit the settings, and then update the file via the web, without having to download/upload the configuration.php file every time.
The file has lots of comments as well, for manual editing. Is there an easy way to do this? I can do it with a database with no problem, but the flat file configuration is a little new to me. The script does not use a database.
Example: configure.php
<?
// comments
// more comments
$variable1 = "whatever";
// change this if you want
$variable2 = "other";
// some array
$array1 = array (
"1",
"2",
"3");
?>
Any help would be appreciated. Thanks!