PHP Client

<?php $connection = pg_connect("host=host.docker.internal dbname=postgres user=postgres password=postgres serverVersion=13 charset=utf8 options='--client_encoding=UTF8'"); if ($connection) { echo 'connected'; $res = @pg_query($connection, 'SELECT * FROM pg_catalog.pg_tables;'); if ($res) { echo "OK"; } else { echo "ERR"; } } else { echo 'there has been an error connecting'; }