Guest User

Untitled

a guest
Jul 28th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2. error_reporting('E_ALL');
  3.  
  4. $pgcon = pg_codnnect('host=127.0.0.1 port=5432 dbname=postgis user=postegres password=xxxx');
  5.  
  6. $stat = pg_connection_status($pgcon);
  7. if ($stat === PGSQL_CONNECTION_OK) {
  8. echo 'Verbindungsstatus ok';
  9. } else {
  10. echo 'Verbindungsstatus bad';
  11. }
Add Comment
Please, Sign In to add comment