note 104466 added to mssql.setup
| From: | sirio3mil at gmail dot com | Date: | Thu, 16 Jun 2011 14:59:11 +0000 |
| Subject: | note 104466 added to mssql.setup | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180614@lists.php.net to get a copy of this message | ||
I followed all the steps to install in a have mssql on phpinfo but when i try this code:
<?php
// Server in the this format: <computer>\<instance name> or
// <server>,<port> when using a non default port number
$server = '192.xxx.xx.xx';
// Connect to MSSQL
$link = mssql_connect($server, 'sa', 'xxxxxx');
if (!$link) {
die('Wrong');
}
?>
I get this:
Warning: mssql_connect(): Unable to connect to server
I cann´t understand what im doing wrong cuz I can access this server with the official
microsoft's driver from another server with php in windows, but its impossible in linux with
this installation
----
Server IP: 69.147.83.197
Probable Submitter: 80.84.128.82
----
Manual Page -- http://www.php.net/manual/en/mssql.setup.php
Edit -- https://master.php.net/note/edit/104466
Del: integrated -- https://master.php.net/note/delete/104466/integrated
Del: useless -- https://master.php.net/note/delete/104466/useless
Del: bad code -- https://master.php.net/note/delete/104466/bad+code
Del: spam -- https://master.php.net/note/delete/104466/spam
Del: non-english -- https://master.php.net/note/delete/104466/non-english
Del: in docs -- https://master.php.net/note/delete/104466/in+docs
Del: other reasons-- https://master.php.net/note/delete/104466
Reject -- https://master.php.net/note/reject/104466
Search -- https://master.php.net/manage/user-notes.php