note 105139 modified in function.mssql-connect by danbrown
| From: | danbrown@php.net | Date: | Fri, 29 Jul 2011 21:28:16 +0000 |
| Subject: | note 105139 modified in function.mssql-connect by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182003@lists.php.net to get a copy of this message | ||
Tried to connect to MS SQL 2005 for weeks and used everything in these comments. It finally worked
when using the external IP address. However, must use "fsockopen" before connecting using
mssql.
<?php
fsockopen('ip', 'port');
$mssql = mssql_connect( 'ip', "userId", "pwd");
?>
--was--
Tried to connect to MS SQL 2005 for weeks and used everything in these comments. It finally worked
when using the external IP address. However, must use "fsockopen" before connecting using
mssql.
fsockopen('ip', 'port');
$mssql = mssql_connect( 'ip', "userId", "pwd");
http://php.net/manual/en/function.mssql-connect.php