$db_str=<<'mysql',? ? ? ? ? ? ? ? // 數(shù)據(jù)庫類型
'DB_HOST'? ? ? ? ? ? ? =>? '{$data['DB_HOST']}',? ? // 服務(wù)器地址
'DB_NAME'? ? ? ? ? ? ? =>? '{$data['DB_NAME']}',? ? // 數(shù)據(jù)庫名
'DB_USER'? ? ? ? ? ? ? =>? '{$data['DB_USER']}',? ? // 用戶名
'DB_PWD'? ? ? ? ? ? ? ? =>? '{$data['DB_PWD']}',? ? ? // 密碼
'DB_PORT'? ? ? ? ? ? ? =>? '{$data['DB_PORT']}',? ? // 端口
'DB_PREFIX'? ? ? ? ? ? =>? '{$data['DB_PREFIX']}',? // 數(shù)據(jù)庫表前綴
);
php;
// 創(chuàng)建數(shù)據(jù)庫鏈接配置文件
file_put_contents('../../Application/Common/Conf/db.php', $db_str);
@touch('./install.lock'); //生成install.lock 文件