ThinkPHP 动态批改config.php中的配置信息

WBOY
Release: 2016-06-13 13:12:47
Original
971 people have browsed it

ThinkPHP 动态修改config.php中的配置信息
我希望通过后台代码动态修改config.php中的配置信息,使用C('test','haha');页面中显示修改了,但是config.php中的test没有改变!请问该如何做? 我主要是想将把网站版权之类的信息放到config.php里面,方便读取

------解决方案--------------------
目录权限问题?
755试试?
再不行就chown
------解决方案--------------------
可以选择 数据库储存+后台操作+缓存方式呀 为什么一定要写在配置文件

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template