PHP-dede学习:common.ini.php文件

WBOY
Release: 2016-06-23 14:29:42
Original
1061 people have browsed it

upload/include里的common.ini.php文件主要内容:

一,定义常量

DEDEINC的值是:upload/include

DEDEROOT的值是:upload

DEDEDATA 的值是:upload/data

DEDEMEMBER的值是:upload/member

DEDETEMPDIR的值是:upload/templets

二,检查和注册外部提交的变量:包括所有模板页面通过各种方式(get,requst,post)所传过来的变量

三,对系统相关变量进行检测

四,定义保存session路径

五,数据库配置文件:包括用到的数据库,服务器,用户名,登陆密码,表前缀等,源文件在data这个文件夹。

     在后面还要引入数据库操作类,源文件在include文件夹里的dedesql.class.php。

六,剩下的便是些模板的设置,图片,缓存等等的设置。

ps:若对php文件里的某些内容不了解,可以在该php文件所在的文件夹新建一个php文件进行测试。

 

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!