I can\'t connect from my local PHP dev server to my PostgreSQL DB on Heroku. This is because Heroku requires me to make that c
I had a very similar problem. I had installed PHP 5.4.28 from the PHP Windows download site, tried to connect to a remote Postgres server in a PHP script, and got the exact same error.
I was able to fix it by:
That did the trick. It looks like the libpq.dll that ships with PHP does't have SSL support compiled in, whereas the one for pgAdmin III does.