I have a config.php file which stores values in variables reguards database connections like user, dbname, etc. I have a form for an administrator to change these settings via the form in their browser. I was advised on ##php to take a look at var_export.
So i can pass the values of what the user entered into var_export from an array. for example:
$myarray = array($user, $host, $dbname, $pass);
$u = var_export($myarray, true);
My question is how do i write back the values of var_export to my config.php file? Would i use one of write functions in php perhaps, and how would i go about doing it?