note 79561 added to function.mssql-connect
| From: | edortizq at gmail dot com | Date: | Mon, 03 Dec 2007 15:41:27 +0000 |
| Subject: | note 79561 added to function.mssql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132768@lists.php.net to get a copy of this message | ||
For connecting Linux + Apache + SQLEXPRESS 2005 take care about it:
- Don´t use the standard MS-SQL port (1433), use the MS-SQL dinamic port under SQL Server
Configuration Manager -> SQL Express Protocols -> TCP/IP properties -> IP Adresses ->
IPAll
- You can do a direct connection (without FreeTDS) using the following statemt:
$db=mssql_connect('192.168.xxx.xxx:1541','usrxxxx','pwdxxxx');
-You can use FreeTDS configuring the freetds.conf file as follow:
[connect2k5]
host = 192.168.xxx.xxx
port = 1541
tds version = 8.0
With the following PHP statement:
$db=mssql_connect('connect2k5','usrxxxx','pwdxxxx');
----
Server IP: 69.147.83.197
Probable Submitter: 200.41.11.254
----
Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php
Edit -- https://master.php.net/note/edit/79561
Del: integrated -- https://master.php.net/note/delete/79561/integrated
Del: useless -- https://master.php.net/note/delete/79561/useless
Del: bad code -- https://master.php.net/note/delete/79561/bad+code
Del: spam -- https://master.php.net/note/delete/79561/spam
Del: non-english -- https://master.php.net/note/delete/79561/non-english
Del: in docs -- https://master.php.net/note/delete/79561/in+docs
Del: other reasons-- https://master.php.net/note/delete/79561
Reject -- https://master.php.net/note/reject/79561
Search -- https://master.php.net/manage/user-notes.php