Skip to Content.
Sympa Menu

freetds - RE: [freetds] mssql_connect fails with PHP 4.3.4 on RH Linux 9

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] mssql_connect fails with PHP 4.3.4 on RH Linux 9
  • Date: Tue, 2 Dec 2003 10:18:11 -0500

> From: James McGowan [mailto:jmcgowan AT luxurylink.com]
> Sent: December 1, 2003 6:43 PM
>
> I can't get PHP to connect to a local Win2000/MSSQLServer box
> using the following environment:
>
> Apache 1.3.27
...
> PHP 4.3.4
> =========
> (./configure --with-apxs=/usr/sbin/apxs
> --with-mssql=/usr/local/freetds --enable-mssql --enable-debug)
...
> FreeTDS 0.61.2
> ==============
> (./configure --prefix=/usr/local/freetds --enable-msdblib
> -with-tdsver=7.0 --enable-dbmfix)
...
> Please note that TSQL works fine! I can connect to and query
> all hosts listed in freetds.conf. It's PHP that's broken. All
> I get is the wonderfully verbose message:
>
> Warning: mssql_connect(): Unable to connect to server: MSSQL1
> in /var/www/html/test/include/globals.php on line 116...

Does the TDSDUMP log show you're attempting to connect to the same server
that you successfully connected to with tsql? Perhaps the server/user name
is not being correctly provided to PHP?

HTH.

--jkl
-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page