Skip to Content.
Sympa Menu

freetds - RE: [freetds] PHP and DSN-less Connection Strings

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <bill_d_thompson AT ml.com>
  • To: "Jon Doblados" <jon.doblados AT gmail.com>, "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Cc:
  • Subject: RE: [freetds] PHP and DSN-less Connection Strings
  • Date: Fri, 18 Mar 2005 09:47:53 -0000

Jon,

Yes freetds works in tandem with either unixodbc or iodbc (both odbc
driver managers)

If you want freetds to build the ODBC library, you need to specify where
unixodbc or iodbc is..

--with-unixodbc= ...
or
--with-iodbc=

when you configure freetds.

Bill
-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Jon Doblados
Sent: 18 March 2005 09:22
To: FreeTDS Development Group
Subject: Re: [freetds] PHP and DSN-less Connection Strings


On Fri, 18 Mar 2005 09:32:45 +0100, Joerg Behrens <behrens AT takenet.de>
wrote:

> That means your php version is build without ODBC support or the
extension isnt loaded during
> startup. Most current Linux distributions use shared extensions which
can be enabled in the php.ini
> or loading during runtime with the dl('foo.so') function.
>
> extension_dir= /path/to/extensions
> extension=foo.so

Ah yes, I figured that much. I tried copying
/usr/local/freetds/lib/libtdsodbc.so (from freetds FAQ) to
/usr/lib/php/extensions only to find out that I don't have
libtdsodbc.so, as I only see libtds.so.

> But have you read www.php.net/mssql before starting using ODBC? PHP
have mssql support based on
> freetds. I gives you a bunch of functions like
http://www.irixworld.net/php/overview.php?ext=mssql.
> To check if the extensions available run a phpinfo() and search for
the mssql info table. An example
> can found under http://www.irixworld.net/ (search for mssql).

I'm very much concerned about using PHP's mssql APIs because this will
mean recoding dozens of files. For now, I'm stuck with using
odbc_connect. I also noticed unixODBC on my server. Should freetds
work in tandem with unixODBC or that's an entirely different game?

Thank you so much.

Regards,

Jon

--
t r i g g e r
-------------------------
linux user #345294
kluggers.blogspot.com
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain or
redistribute it. Click here for important additional terms relating to this
e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page