ms sql connect
| From: | Sommai Fongnamthip | Date: | Mon, 06 Aug 2001 07:45:19 +0000 |
| Subject: | ms sql connect | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-11087@lists.php.net to get a copy of this message | ||
Hello,
I'd like to use MS SQL 6.5 on NT from PHP-4.0.6 from Linux. I was config FreeTDS (use ver 4.2) and setup interfaces file already. I'm still cannot login to MS SQL 6.5. Here is my config.
- Linux Red Hat 6.2 (use different IP with NT-Box)
- Apache 1.3.20
- PHP 4.0.6
- FreeTDS 0.51 (config ver 4.2)
- NT 4.0 (service pack 5)
- MS SQL 6.5
interface file in /usr/local/freetds
myserver
query tcp tds4.2 127.0.0.1 1433
master tcp tds4.2 127.0.0.1 1433
php code<? $host = "myserver"; $myuser = "sa"; $mypass = ""; $numero=mssql_connect($host, $myuser, $mypass) or die ("Unable to connect to database."); echo ("ConnectID: $numero<br>\n"); ?> Regards, Sommai Fongnamthip