From 7d4bdd8f7ee234401c8f9ae979667c1beb8fe0cf Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Thu, 24 Nov 2022 20:14:53 +0100 Subject: [PATCH] config.php update --- Sources/php_script/script/config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/php_script/script/config.php b/Sources/php_script/script/config.php index c604963..e2d4c53 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -3,6 +3,10 @@ $username=$_ENV["USER"]; $host=$_ENV["HOST"]; //Get the address IP of the hosting machine $password=$_ENV["PASSWORD"]; //Get the password for the user selected $db_name=$_ENV["DATABASE"]; //Get the name of the database +foreach (getenv() as $key => $value) { + echo $key . ' - ' . $value."
"; +} + try { //Try to connect to the database $connect = mysqli_connect($host, $username, $password, $db_name); //Connecting to database }catch (mysqli_sql_exception){ //If the connection failed