thinkphp Database configuration file config.php-blog,
Find a general thinkphp database configuration file, used to connect the database, relatively simple, suitable for enterprise sites, configuration parameters are very few, so in the establishment of small sites such as enterprise type can be used directly, the following code.
if (!defined (' Think_path ')) exit ();
return $array = Array (
' Db_type ' = ' mysql ',
' db_host ' = ' localhost ',
' Db_name ' = ' Hbhongtaizhuangshi ',
' Db_user ' = ' root ',
' Db_pwd ' = ' Meimimaa ',
' Db_port ' = 3306,
' Db_prefix ' = ' zx_ ',
' Db_backup ' = '/data/backup ',
' Url_model ' = 0,
);
?>
It will be OK to place it in our thinkphp config.php file.
http://www.bkjia.com/PHPjc/1113824.html www.bkjia.com true http://www.bkjia.com/PHPjc/1113824.html techarticle thinkphp Database configuration file config.php-blog, find a generic thinkphp database configuration file, used to connect the database, relatively simple, suitable for enterprise sites, configuration ...