mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 16:23:01 +05:30
18 lines
387 B
PHP
Executable File
18 lines
387 B
PHP
Executable File
<?php
|
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
|
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../');
|
|
$dotenv->load();
|
|
|
|
$host = $_ENV['DB_HOST'];
|
|
$user = $_ENV['DB_USER'];
|
|
$pass = $_ENV['DB_PASS'];
|
|
$db = $_ENV['DB_NAME'];
|
|
|
|
$conn = mysqli_connect($host, $user, $pass, $db);
|
|
if (!$conn) {
|
|
die("Database connection error: " . mysqli_connect_error());
|
|
}
|
|
?>
|