Creating a config file in PHP

前端 未结 10 2112
难免孤独
难免孤独 2020-11-27 10:36

I want to create a config file for my PHP project, but I\'m not sure what the best way to do this is.

I have 3 ideas so far.

1-Use Variable<

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 11:09

    If you think you'll be using more than 1 db for any reason, go with the variable because you'll be able to change one parameter to switch to an entirely different db. I.e. for testing , autobackup, etc.

提交回复
热议问题