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