From 3410b9ad4104aad00a313c8e12076e7511710157 Mon Sep 17 00:00:00 2001 From: luptmoor Date: Wed, 15 Apr 2026 09:20:17 +0200 Subject: [PATCH] test message for postgis connect --- index.php | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) 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