There are multiple ways to save application settings/configurations in PHP. You can save them in INI, XML or PHP files as well as a database table. I prefer a combination of the latter two; saving the database connection details in a PHP file and the rest in a database table.
I have had a few times when coding where I get the error PHP Notice: Undefined Index, I found the below solution to this issue which is an extremely simple fix!
Ok so today i was doing some PHP coding and get the dreaded header error caused me a bit of a headache as i needed to redirect some pages. After a bit of searching i managed to find an alternative to using:
So to get rid of the error that this produces simply change it to any of the below:
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=success.php">';
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=retry.php">';
i used the last option as i found this worked best compared to the others with my program however they may all work well for your application