Fastest way to store easily editable config data in PHP?

后端 未结 7 1384
借酒劲吻你
借酒劲吻你 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:26

    The way I store configuration is to put some variables in an external .php file and then when I want to use those files, I say:

    And that would allow you to share configuration information across many pages. I am not, however, sure that this is the most efficient method, but it seemed to be the easiest to me.

提交回复
热议问题