Home >Backend Development >PHP Tutorial > php 读配置文件解决思路

php 读配置文件解决思路

WBOY
WBOYOriginal
2016-06-13 12:46:02876browse

php 读配置文件
用的是ThinkPHP 框架
有一个config.php的文件 
内容如下:
return array(
'server'=>'localhost',
'user'=>'root'

用C()方法读取的时候却读不到
读取的语句是这样写的:C("server")
是什么原因,各位大侠指教下,小弟不甚感激!

Statement:
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