From 52ec509b3db5f52b8e8fb20a944731c81a9a03d9 Mon Sep 17 00:00:00 2001 From: Dorian HODIN Date: Wed, 25 Jan 2023 15:02:37 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Sources/php=5Fscri?= =?UTF-8?q?pt/script/config.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 10e0879..a66cf59 100644 --- a/Sources/php_script/script/config.php +++ b/Sources/php_script/script/config.php @@ -8,6 +8,10 @@ function connection(): bool|int|mysqli $password = $_ENV["PASSWORD"]; //Get the password for the user selected $db_name = $_ENV["DATABASE"]; //Get the name of the database + + + echo $_SERVER['REMOTE_ADDR'] + try { //Try to connect to the database return mysqli_connect($host, $username, $password,$db_name); //Connecting to database