connect_error) { $error = "ბაზასთან კავშირის შეცდომა: " . $conn->connect_error; } else { // config.php გენერაცია $config = " '$host',\n" . " 'user' => '$user',\n" . " 'pass' => '$pass',\n" . " 'dbname' => '$db',\n" . " 'port' => 3306,\n" . " 'charset' => 'utf8mb4',\n\n" . " // Additional database configuration (nested for better organization)\n" . " 'db' => [\n" . " 'host' => '$host',\n" . " 'user' => '$user',\n" . " 'pass' => '$pass',\n" . " 'name' => '$db',\n" . " 'port' => 3306,\n" . " 'charset' => 'utf8mb4'\n" . " ],\n\n" . " // ზოგადი პროექტის პარამეტრები\n" . " 'app' => [\n" . " 'base_url' => 'http://localhost/',\n" . " 'debug' => true,\n" . " 'installed' => true,\n" . " 'version' => '1.0.0'\n" . " ]\n];"; file_put_contents(__DIR__ . '/../config.php', $config); header("Location: step3_import.php"); exit; } } ?> ინსტალაცია – ნაბიჯი 2

მონაცემთა ბაზის კონფიგურაცია