当前位置:
代码迷
>>
PHP
>> php 读配置文件解决思路
详细解决方案
php 读配置文件解决思路
热度:
321
发布时间:
2013-06-25 23:45:42.0
php 读配置文件
用的是ThinkPHP 框架
有一个config.php的文件
内容如下:
return array(
'server'=>'localhost',
'user'=>'root'
)
用C()方法读取的时候却读不到
读取的语句是这样写的:C("server")
是什么原因,各位大侠指教下,小弟不甚感激!
分享到:
------解决方案--------------------
你的 config.php 没有被加载
查看全文
相关解决方案
企业搬动应用平台-配置文件
dwr 2.0兑现网页消息发送(配置文件)
配置文件(fckconfig.js)中主要配置项目如上
c3p0 配置文件 寄放路径
myEclipse8.5调整SSH详细步骤+配置文件
怎么利用 myeclipse 生成Hibernate 配置文件
ThinkPHP数据模板展示——系统变量、常量、配置文件
ehcache 配置文件: ehcache.xml
Spring 配置文件</bean>详解
Emacs 配置文件
struts2.0 配置文件、常量配置详解
proguard.cfg 配置文件
python config.yaml(配置文件)的使用
[Hacking VIM] 2.定制:配置文件
配置文件 application.yml注意事项(Failed to load property source from location 'classpath:/application.yml)
SpringBoot核心技术-配置文件
IIS 配置文件
Redis 之二:配置文件