How can i ascertain database connection info for php mysqli from drupal files?
I have full access to ftp and even phpmyadmin remotely for a project but i am implementing a separate php module for site and I therefore need to connect to the database with mysql statements in php.
All I see in drupal files to connect with is a url.
I don't know drupal but I have a very good knowledge on php.
开发者_运维技巧Help?
The URL ($db_url
variable) in your sites/default/settings.php file is broken down like this:
protocol://username:password@server/databasename
You should be able to apply that to your own $db_url
and get the connection details.
精彩评论