From: Joel U. <uck...@no...> - 2005-10-18 10:02:21
|
Thus spake strk: > Hello, I've patched the lib/pgsql.php script > to allow for local (socket-based) connections. > > Required change is at line 45 of that file: > > if ( defined($pg_dbhost) && $pg_dbhost != "" ) $connectstring = $pg_dbh > ost?"host=$pg_dbhost ":""; > > This way you can set pg_dbhost to the empty string and the socket > will be used. So this is against the 1.2 branch? I think that now we're only fixing bugs and security problems in the 1.2 branch. If you have a look at the config.ini for the current release (1.3.11p1), (you can see an example in CVS here: http://cvs.sourceforge.net/viewcvs.py/phpwiki/phpwiki/config/config-dist.ini?rev=1.59&view=markup), you'll see in Part Two how to connect to the database via a socket. -- J. |