Re: [PHP-DEV] How to Connect remote DB server?

[email protected] (Derick Rethans) Wed, 12 Mar 2003 12:31:36 +0100 (CET)
Newsgroups php.dev
Message-ID <[email protected]>
Hello,

please forward user questions to the [email protected]
mailinglist, this list is for development _OF_ PHP, not development
_with_ PHP.

Derick


On Wed, 12 Mar 2003, Patrick LOK wrote:

> It is possible to connect a remote db server using xxxxx_connect? 
> e.g. a PostgreSQL in server PSQLDB, ip=192.168.0.100  and a MSSQL server MSSQLDB, ip=192.168.0.110
> 
> I tried pgsql_connect("psqldb","administrator","") & pgsql_connect("192.168.0.100","administrator","") but failed!
> 
> Error is "Unable to connect to server: psqldb in psqltest.php on line 2" & "Unable to connect to server: 192.168.0.100 in psqltest.php on line 2"
> 
> Can anyone help?
> 
> regards
> ./pl
> 

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
-------------------------------------------------------------------------