freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: syntax for connecting to database with FreeTDS?
- From: "aellist" <aellist AT chg.mc.duke.edu>
- To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
- Subject: RE: syntax for connecting to database with FreeTDS?
- Date: Thu, 14 Dec 2000 16:56:26 -0500
> > Yes - it is set as follows:
> >
> > SYBASE
> > query tcp ether <IP> 5001
> > master tcp ether <IP> 5001
> >
> > with IP replaced, of course.
>
> ...
>
> > > > <?
> > > > if (sybase_connect("$SERVER_IP_PORT","$USER","$PASS")) echo
> > > > "CONNECTED!!!";
> > > > ?>
>
> You need to use the server name as defined in the interfaces file in the
> connect function. In your case, the server name is just "SYBASE".
>
> Tom
Thank you, thank you, thank you! We had no idea that this was the syntax.
Implementing your change did the trick. I have now successfully accessed a
Sybase database through PHP using FreeTDS on a Solaris box. :-)
Thanks again everyone for your help,
Andrew Elliston
-
syntax for connecting to database with FreeTDS?,
aellist, 12/11/2000
- <Possible follow-up(s)>
- RE: syntax for connecting to database with FreeTDS?, Wasson, Tim, 12/11/2000
- RE: syntax for connecting to database with FreeTDS?, aellist, 12/11/2000
- Re: syntax for connecting to database with FreeTDS?, bao nguyen, 12/11/2000
- RE: syntax for connecting to database with FreeTDS?, Tom Samplonius, 12/12/2000
- RE: syntax for connecting to database with FreeTDS?, aellist, 12/14/2000
Archive powered by MHonArc 2.6.24.