I have installed freetds on my linux box and recompiled php
Here is the code I used to test the connection to mssql7 server:
<?php
putenv("TDSDUMP=/tmp/tds.log");
putenv("TDSDUMPCONFIG=/tmp/tds_con.txt");
putenv("SYBASE=/usr/local/freetds");
putenv("TDSVER=70");
$numero= mssql_connect("mssql7", "name", "password");
echo ("ConnectID: $numero<br>\n");
mssql_close($numero);
?>
I got this message"Warning: Sybase: Unable to connect ...."
So I took a look into tds.log and also tds_con.txt, I find that the server name has been changed to "ms", user name is "na", pass word is "pa". It seems that the names got truncated.
Does anyone has such problem?
Thanks.