From 9abf9a4a175ba273ac7d885ebb8664afcb98bb56 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Thu, 12 Jan 2023 13:42:33 +0100 Subject: [PATCH] create and use .env file --- .env.dist | 5 +++++ .gitignore | 1 + index.php | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 .env.dist diff --git a/.env.dist b/.env.dist new file mode 100644 index 0000000..c8dcf4f --- /dev/null +++ b/.env.dist @@ -0,0 +1,5 @@ +# DB settings +DB_HOST="localhost" +DB_USERNAME="root" +DB_PASSWORD="abcd" +DB_DBNAME="recettes" diff --git a/.gitignore b/.gitignore index 22d0d82..8b453d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ vendor +.env diff --git a/index.php b/index.php index 2bd3f33..57665cc 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,7 @@ load(); $S_urlADecortiquer = isset($_GET['url']) ? $_GET['url'] : null; $A_postParams = isset($_POST) ? $_POST : null;