> >From PHP4, how can I get the pg_connect function to negotiate an SSL connection?
>
> I gather from researching the issue that pg_connect uses the same libraries as psql,
> so that
> this should be possible. But I've tried every syntax I can think of... the "options"
> parameter to
> pg_connect is not well documented.
>
> I've played with all varieties of "requiressl" or "ssl", alone or as a boolean,
> e.g.,
> "requiressl=true", etc...
First, are you sure that SSL is linked into PHP? Use phpinfo() if you're
not sure.
Second, what are you using for a connect statement?
Here's a sanitized version of one that works for me:
DB::connect("pgsql://foobar:[EMAIL PROTECTED]/dbnm?requiressl=true");
--
Mike Nolan
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match