I am making a custom CMS in PHP and I want to know what the best way would be to create a config file for it. I want it where I can change the variables from within the admin panel I am going to add. I have not messed with the filesystem functions before or any other file functions so I am not sure what would be the best approach.
Thanks!
I am making a custom CMS in PHP and I want to know what
Share
An
.inifile can be structured quite well and you’ll be able to update just sections of. Compared to a straight PHP configuration it can be edited with an easier syntax.To parse the
.inifile into a PHP array, use the functionparse_ini_file()