note 49767 added to function.mssql-connect

From: Date: Tue, 08 Feb 2005 10:09:54 +0000
Subject: note 49767 added to function.mssql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-84654@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49767 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49767&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49767&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49767&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49767&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49767&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49767&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84654) next »