<?php
error_reporting(0);
date_default_timezone_set("Asia/Kolkata");

mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$conn = new mysqli("localhost", "root", "", "paycodex_codex");

// Set connection timeout
$conn->options(MYSQLI_OPT_CONNECT_TIMEOUT, 5);

// Check connection
if ($conn->connect_error) {
    die(json_encode(["status" => 0, "msg" => "Database connection failed: " . $conn->connect_error]));
}

$server = $_SERVER["SERVER_NAME"];
?>