thinkphp-02

1. 建立项目路径App

2.建立index.php文件为主入口文件

define("APP_DEBUG",true);
require "../ThinkPHP.php";

3.配置文件写入数据库配置

    // 添加数据库配置信息
'DB_TYPE'   => 'mysql', // 数据库类型
'DB_HOST'   => 'localhost', // 服务器地址
'DB_NAME'   => 'thinkphp', // 数据库名
'DB_USER'   => 'root', // 用户名
'DB_PWD'    => 'root', // 密码
'DB_PORT'   => 3306, // 端口
'DB_PREFIX' => 'think_', // 数据库表前缀
);

 

posted on 2014-05-29 15:25  老李的菜园  阅读(95)  评论(0编辑  收藏  举报

导航