note 49767 deleted from function.mssql-connect by danbrown
| From: | danbrown@php.net | Date: | Thu, 12 Aug 2010 18:06:12 +0000 |
| Subject: | note 49767 deleted from function.mssql-connect by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171624@lists.php.net to get a copy of this message | ||
Note Submitter: senyahnoj
----
When moving the following script from PHP on Win32 to PHP on Linux, I encountered problems:
$c = mssql_connect("SERVER\INSTANCE","UID","PWD");
After much searching, I discovered that 'instances' are just named aliases for port
numbers, so on Linux this should be written:
$c = mssql_connect("SERVER:PORT","UID","PWD");
Please also note that the colon (:) should be used on Linux as the delimiter between servername and
port number, not the comma (,) which only works on Win32 servers.