Many Files (admin.php, automate.php ,etc) have db config inside them. So if we want to change some configuration (say password or db name or something), we will have to open all files and do them one by one.
Its better to make a seperate config file and include this in all the others.
Many Files (admin.php, automate.php ,etc) have db config inside them. So if we want to change some configuration (say password or db name or something), we will have to open all files and do them one by one. Its better to make a seperate config file and include this in all the others.
Eg: https://github.com/OSDG-IIITH/courier/blob/master/admin.php#L3-8 https://github.com/OSDG-IIITH/courier/blob/master/automate.php#L3-9 https://github.com/OSDG-IIITH/courier/blob/master/delete.php#L2-8
and many more