title: "php fatal error" using pg_connect
body: <p>I have installed php5 and php5-pgsql on my ubuntu(linux mint). And i can not get result of query in php script:</p>
  
  <pre><code>$db = pg_connect("host=localhost port=5432 dbname=test user=user")
  or die("Could not connect: test db\n"); 
  $part = $db-&gt;query("SELECT * FROM app_settings");
  </code></pre>
  
  <p>This query works right, running in pg_admin and all db connection attributes are right!</p>
  
  <p>But i got this error:</p>
  
  <pre><code>PHP Fatal error:  Call to a member function pg_query() on a non-object in
  </code></pre>
  
  <p>What's the problem, help pls!</p>