From b87ffe00b00d9d473db15ebd251553b17a5eff94 Mon Sep 17 00:00:00 2001 From: filippo.bertilotti <filippobertilotti@gmail.com> Date: Mon, 20 May 2024 09:46:24 +0200 Subject: [PATCH] inizializzazione .env e classe apposita che la gestisce (parte 110) --- index.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/index.php b/index.php index a907bc1..d97f727 100644 --- a/index.php +++ b/index.php @@ -6,6 +6,10 @@ require "src/". str_replace("\\", "/", $class). ".php"; }); +$dotenv = new Framework\Dotenv; +$dotenv->load(".env"); +print_r($_ENV); + set_error_handler("Framework\ErrorHandler::handleError"); set_exception_handler("Framework\ErrorHandler::handleException"); -- Gitblit v1.8.0