Fastest way to store easily editable config data in PHP?

后端 未结 7 1356
借酒劲吻你
借酒劲吻你 2020-12-01 03:46

What is the fastest way to store config data in PHP so that it is easily changeable (via PHP)? First I thought about having config.php file, but I can\'t edit it on fly with

相关标签:
7条回答
  • 2020-12-01 04:41

    If you use require instead of include for the config file you will gain a little bit of performance. You can do this if you know that the config file will always be in place, or when you have your own mechanism for checking if it exists.

    0 讨论(0)
提交回复
热议问题