note 50918 added to function.mssql-connect

From: Date: Mon, 14 Mar 2005 08:57:27 +0000
Subject: note 50918 added to function.mssql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-86384@lists.php.net to get a copy of this message
Connecting to MSSQL with PHP5 I´m trying connect MSSQL on remote server computer thanks to: $spoj = mssql_connect ("10.2.8.2", "user", "user") or die ("Could not connect to database: ".mssql_get_last_message()); mssql_select_db("Energo",$spoj); It returns: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: I have copied php_mssql.dll,php_dbx.dll in winnt/system32 and file ntwdblib.dll from server computer in the same directory. MSSQL server 8.0 run under win XP. Its TCP/IP port is standard 1433. I tried defining port with both comma and colon, but nothing helps. I changed setting for identification in php.ini [MSSQL] mssql.secure_connection = On It doesn´t work too. What is wrong? ---- Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50918 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50918&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50918&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50918&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50918&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50918&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50918&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86384) next »