diff --git a/index.php b/index.php index 097c521..5052eca 100644 --- a/index.php +++ b/index.php @@ -1,21 +1,23 @@ 🌍 WebGIS Subdomain is Live!"; -echo "

Current Server: " . $_SERVER['SERVER_NAME'] . "

"; -echo "

PHP Version: " . phpversion() . "

"; +try { + $dsn = "pgsql:host=$host;port=5432;dbname=$db;"; + $pdo = new PDO($dsn, $user, $pass, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); -// Check for common GIS extensions (optional but helpful) -$extensions = ['gd', 'intl', 'bcmath', 'pdo_pgsql']; -echo "

GIS Extension Check:

"; - -echo "
"; -echo "

If you see this, your Nginx → PHP-FPM bridge is working perfectly over HTTPS.

"; -?> +?> \ No newline at end of file