RE: [PHP] PHP5 & FreeTDS

From: Date: Thu, 13 Jan 2005 15:32:56 +0000
Subject: RE: [PHP] PHP5 & FreeTDS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206295@lists.php.net to get a copy of this message
Craig Donnelly wrote: > On the page where I connect to the MSSQL server I get the following > error: > > Warning: mssql_connect() [function.mssql-connect]: Unable to connect > to server: 172.16.xx.xxx in > /var/ftpusers/tarot/tarot/admin/sqltest.php on line 4 A couple of things to try: (1) Try defining a TDSDUMP file before the connection attempt and see if it provides any hints as to why it failed. I normally do this via: putenv("TDSDUMP=/tmp/tdsdump"); before the connection attempt. Make sure to remove this after you're done testing, this file can get very big very quickly. (2) Install Sqsh (http://www.sqsh.org/) and see if you can connect with it. If not, it may give you more information on the connection failure than PHP does (just guessing here)... HTH

« previous php.general (#206295) next »