今天终于配好PHP网站手机版测试环境了,但在运行时却提示:
ThinkPHP 3.1.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]
1.首先开启ThinkPHP的debug调试模式,
如:define('APP_DEBUG', true);
2.重点检查网站config配置文件里的设置是否正确.(多数问题出在这里)!
'DB_TYPE' => 'mysql',
'DB_HOST' => 'localhost',
'DB_NAME' => 'tb_abc',
'DB_USER' => 'root',
'DB_PWD' => '123456',
'DB_PORT' => '3306',
'DB_PREFIX' => 'hzh_',