Skip to Content.
Sympa Menu

freetds - Re: PHP to Sybase

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <bdog AT ais.org>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: PHP to Sybase
  • Date: Mon, 30 Sep 2002 14:28:05 -0400 (EDT)


Is your sa password really blank? I'm not sure how well PHP/freetds deal
with it, i think it's working (it does for tsql/sqsh), but something to
try.

Brian

On Mon, 30 Sep 2002, Dustin Marquess wrote:

> Brian,
>
> Make sure PATH046 is defined in your /usr/local/etc/freetds.conf file..
>
> -Dustin
>
> Brian Paquin wrote:
> > Looking for a little assistance...
> >
> > Using MacOS X.2, PHP 4.3dev, FreeTDS 0.60, and Sybase ASE 12.5.
> > iSQL and tSQL work great.
> > <? phpinfo()?> works great
> >
> > But how to I connect to Sybase??
> >
> > Using:
> > -----------------------
> > <?php
> > $conn = sybase_connect("PATH046", "sa", "");
> > sybase_select_db("pubs2");
> > $qry = sybase_query("select * from titles", $conn);
> >
> > echo sybase_result($qry, 1, 1);
> >
> > sybase_close($conn);
> > ?>
> > ------------------------
> > will not connect:
> > (*Warning*: Sybase: Unable to connect in*
> > /Library/WebServer/Documents/testconnect.php* on line* 2*)
> >
> > Any ideas??
> >
> > Brian
>
>





Archive powered by MHonArc 2.6.24.

Top of Page