PHP
How to create a config file for non programming background user
i have a program that i need to create a config file for user.
The purpose of config file is to ease user to change setting of the program
example: user want to change the password to login to the database
This user has no knowledge in programming and the config file must be user friendly
i had created a config file using PHP code which i think is NOT GOOD ENOUGH because this config file require user to have some basic knowledge of PHP
say i have this file
***config.php****
<?php
$to = "admin@admin.com";
?>
***main.php***
function SendMailSTART()
{
require("config.php");
$subject = "hi";
$body = "how are you";
mail($to, $subject, $body);
}
hence the config file above is more into coding.
How can i make a config file that is easy for non programming background user who just want to change the setting?
example
***config.txt***
#change recipient email address
email.to = admin@admin.com
Start Free Trial