Rumah > Artikel > pembangunan bahagian belakang > ThinkPHP框架配置
ThinkPHP框架配置
<br>
<?php <br>
define(APP_DEBUG, True); <br>
require"../thinkPHP/thinkPHP.php"; <br>
?> <br>
<code><span>//数据库配置信息</span><span>'DB_TYPE'</span> => <span>'mysql'</span>, <span>// 数据库类型</span><span>'DB_HOST'</span> => <span>'localhost'</span>, <span>// 服务器地址</span><span>'DB_NAME'</span> => <span>'thinkphp'</span>, <span>// 数据库名</span><span>'DB_USER'</span> => <span>'root'</span>, <span>// 用户名</span><span>'DB_PWD'</span> => <span>'123456'</span>, <span>// 密码</span><span>'DB_PORT'</span> => <span>3306</span>, <span>// 端口</span><span>'DB_PREFIX'</span> => <span>'think_'</span>, <span>// 数据库表前缀 </span><span>'DB_CHARSET'</span>=> <span>'utf8'</span>, <span>// 字符集</span><span>'DB_DEBUG'</span> => <span>TRUE</span>, <span>// 数据库调试模式 开启后可以记录SQL日志 3.2.3新增</span></code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就介绍了ThinkPHP框架配置,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。