我是 php 的初学者,我的问题是,在网站的后端管理时,我们是否必须设计 config.php、database.php 和通用 php 文件,或者我们可以从 php 使用它图书馆???
最佳答案
您只需要配置config.php
,其中您必须根据您的网站更改以下内容。
define('DB_NAME', 'database_name'); //Your database name here
define('DB_USER', 'root'); //Your name of user
define('DB_PASSWORD', 'admin');//password of your phpmyadmin
注意: 上述更改适用于虚拟用户,您必须根据您的凭据进行更改。
关于php - 我们是否必须设计 config.php、database.php 和通用 php 文件,或者我们可以从 php 库使用它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18555804/