title: pgAdmin III can connect to Heroku Postgresql. PDO can't connect to same database. Why?
body: <p>i'm new here and I apologize if I'm doing something wrong for post my question.</p>
  
  <p>My question is quite simple:
  From my machine I can connect pgAdmin III to a remote postgreSql (provide by Heroku). I can read/write my database without problems.</p>
  
  <p>Unfortunately, <strong>from the same machine</strong>, I can't connect a PHP page using PDO extension (it  work perfectly). The error it give to me is:</p>
  
  <blockquote>
    <p>SQLSTATE[08006] [7] FATAL: no pg_hba.conf entry for host "x.x.x.x", user "username", database "myDatabase", SSL off</p>
  </blockquote>
  
  <p>I should edit "pg_hba.conf" for resolve, but unfortunately I can't edit it on Heroku (or maybe I don't know how to do).</p>
  
  <p>I don't understand why pgAdmin III can connect but my PHP page can't.</p>
  
  <p>Thanks in advance.</p>