PHP语言中数据库文件的扩展名是什么?扩展名是.inc的文件是什么类型的文件?

2025-05-24 07:27:40
推荐回答(2个)
回答(1):

1)inc通常指的是include的简写,表示这个文件被其他(多个)文件引用.
以数据库连接的配置信息db.inc为例:
$db_host= "localhost ";
$db_user= "用户 ";
$db_password= "密码 ";
$db_name= "uk15f1_db ";
$user_table= "user_table ";
$access_table= "access_table ";
//可以在这里插入其它配置信息
?>

回答(2):

1)inc通常指的是include的简写,表示这个文件被其他(多个)文件引用.
以数据库连接的配置信息db.inc为例:
php
$db_host=
"localhost
";
$db_user=
"用户
";
$db_password=
"密码
";
$db_name=
"uk15f1_db
";
$user_table=
"user_table
";
$access_table=
"access_table
";
//可以在这里插入其它配置信息
?>