title: Unable to connect to PostgreSQL server: missing "=" after "Resource"
body: <p>Can anybody help me with this error? I'm try to connect my <code>PHP 7.0.8</code> to <code>PostgreSQL 9.6</code>.</p>
  
  <p>pg_connect(): Unable to connect to PostgreSQL server: missing "=" after "Resource" in connection info string </p>
  
  <p><code>$db = pg_connect("host=localhost port=5432 dbname=xxx user=postgres password=xxx") or die('connection failed');</code></p>