Skip to Content.
Sympa Menu

freetds - Re: help: access ms sql server 7 with php3

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Dan Lukes" <dan AT fio.cz>
  • To: freetds
  • Subject: Re: help: access ms sql server 7 with php3
  • Date: Thu, 18 May 2000 12:13:54


> if I want to connect to computer next to me
> (10.21.1.71) then what command should I issue ??
> btw: in mysql I've just did $db=mysql_connect("10.21.1.71","user","pass")
> but in freetds..

Replace mysql_* to mssql_* in your code.
FreeTDS doesn't use the IP adress as the first argument of
_connect/_pconnect . You should create $SYBASE/interface file, for
example:
-------------
MYTESTSERVER
query tcp ether address.private.com 5000

OTHERTESTSERVER
query tcp ether 10.21.1.71 5000
-------------
then call $db=mssql_connect("OTHERTESTSERVER","user",password")

Hope this help.

Dan




Archive powered by MHonArc 2.6.24.

Top of Page