note 46224 modified in ref.mssql by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 May 2009 02:13:55 +0000 |
| Subject: | note 46224 modified in ref.mssql by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155637@lists.php.net to get a copy of this message | ||
If you want to utilize the freetds.conf file db parameters within
mssql_connect() function
<?php
putenv('FREETDSCONF=/etc/freetds.conf');
/*
mssql_connect('MSSQL_8.0' , 'user' , 'pwd');
....
....
*/
?>
FreeTDS conf file
[MSSQL_8.0]
host = 10.254.254.10
port = 1433
tds version = 8.0
--was--
If you want to utilize the freetds.conf file db parameters within
mssql_connect() function
<?
putenv('FREETDSCONF=/etc/freetds.conf');
/*
mssql_connect('MSSQL_8.0' , 'user' , 'pwd');
....
....
*/
?>
FreeTDS conf file
[MSSQL_8.0]
host = 10.254.254.10
port = 1433
tds version = 8.0
http://php.net/manual/en/ref.mssql.php