I need help with this error in the screenshot below
I am using PHP 7.2 and a 3rd party composer - "composer require vlucas/phpdotenv" v4.1.4.
I define the base path but there is an error in the screenshot
Below is the _env.php code that define my base path
<?php
# define base path
define('BASE_PATH', realpath(__DIR__.'/../../'));
#require the 3rd party tool - composer autoload file
require_once __DIR__.'/../../vendor/autoload.php';
$dotEnv = Dotenv\Dotenv::create(BASE_PATH); -----ERRO IN THIS PARENTHESIS
$dotEnv->load();
?>
I changed the code to the one below but the error remain the same
<?php
# define base path
define('BASE_PATH', realpath(__DIR__.'/../../'));
#require the 3rd party tool - composer autoload file
require_once __DIR__.'/../../vendor/autoload.php';
$dotEnv = new Dotenv\Dotenv(BASE_PATH);
$dotEnv->load();
?>