<?php
declare(strict_types=1);
session_start();

const PARAMS = [
    "HOST" => 'localhost',
    "USER" => 'integ_user',
    "PASSWORD" => '323446',
    "DB" => 'web_prog_task_15',
    "CHARSET" => 'utf8mb4'
];

const MEDIA_ROOT = __DIR__ . "/media/";

$dsn = "mysql:host=" . PARAMS['HOST'] . ";dbname=" . PARAMS['DB'] . ";charset=" . PARAMS['CHARSET'];

$pdoOptions = [
    PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
    PDO::ATTR_EMULATE_PREPARES => false
];