From b8f1c32a22e2d17a8327b1a89b2df9505e6400bd Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Wed, 15 Apr 2026 14:56:44 +0200 Subject: [PATCH] init.php connection to db with ssh --- init.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/init.php b/init.php index e1abea1..b37b392 100644 --- a/init.php +++ b/init.php @@ -1,6 +1,18 @@ false ]; - $dsn = "pgsql:host=$host;dbname=$db;port=5432"; + $dsn = "pgsql:host=$host;dbname=$db;port=$port"; $pdo = new PDO($dsn, $user, $pass, $opt); // Error-Message