Home > Backend Development > PHP Tutorial > ThinkPHP database configuration file config.php-tuniu blog, _PHP tutorial

ThinkPHP database configuration file config.php-tuniu blog, _PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-12 08:56:00
Original
1137 people have browsed it

ThinkPHP database configuration file config.php - Tuniu Blog,

I found a general ThinkPHP database configuration file, which is used to connect to the database. It is relatively simple and suitable for corporate sites. , there are very few parameters to configure, so you can use it directly when building small websites such as enterprise type, as shown below.

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,
);
?>

Placing it in our ThinkPHP config.php file is ok.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1113824.htmlTechArticleThinkPHP database configuration file config.php-Tuniu Blog, I found a general ThinkPHP database configuration file, use To connect to the database, it is relatively simple and suitable for corporate sites. Configuration...
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
Latest Issues
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
thinkphp versions supported by php6
From 1970-01-01 08:00:00
0
0
0
thinkphp upload files
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template