php - 在 PHP 中从外部文件加载变量

标签 php variables import external config

如何从外部文件导入变量?我想做的是有一个配置文件,我可以在其中写入我所有的网站设置,然后将这些设置导入每个文件,这样我就可以设置网站皮肤和类似的东西。

我该怎么做?

最佳答案

关于php - 在 PHP 中从外部文件加载变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2608693/

相关文章:

php - 如何从 php-web 页 centos 服务器在后台运行 exec() 命令

javascript - Jquery复选框仅在选中取消选中然后选中时切换

php - 匹配多个列值以获取记录匹配百分比

C、处理可变参数函数

python - Python 模块导入顺序相关性,pylint 错误导入顺序

php - 当 dhtmlx 网格列选择选项更改时需要另一个数据库值更新

php - "Notice: Undefined variable"、 "Notice: Undefined index"、 "Warning: Undefined array key"和 "Notice: Undefined offset"使用 PHP

c - 运行时检查失败 #2-变量 x2 周围的堆栈已损坏

javascript - 巴贝尔,Webpack,ES6, react : Importing module then passing imported module as prop to child

python - 在 Spyder 错误中导入模块