Answer the question
In order to leave comments, you need to log in
How to connect to Postgresql in php?
As a result of the execution
$db = pg_connect("/* параметры для подключения */");
$stat = pg_connection_status($db);
if ($stat === PGSQL_CONNECTION_OK) {
echo 'Статус соединения: доступно';
} else {
echo 'Статус соединения: разорвано';
}
Answer the question
In order to leave comments, you need to log in
https://www.ruby-forum.com/topic/209605
There is an opinion that you are knocking on the wrong port where postgesql hangs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question