note 111627 added to function.mssql-connect

From: Date: Sun, 10 Mar 2013 09:36:12 +0000
Subject: note 111627 added to function.mssql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-194012@lists.php.net to get a copy of this message
Cent OS - Remote SQL server connection $link = mssql_connect(72.xx.xxx.xxx, username, password); If you are not getting success, please check There is certainly a php-mssql package available in the extras repository so just a yum install php-mssql should sort that out - it pulls in freetds as a dependency too. If you already have those installed but it doesn't seem to be connecting, the one possibility is that you are being blocked by SELinux. To check that run # getsebool -a | grep httpd_can_network_connect httpd_can_network_connect --> on httpd_can_network_connect_db --> on and to enable them if they are not on, do setsebool -P httpd_can_network_connect 1 setsebool -P httpd_can_network_connect_db 1 taken from https://www.centos.org/modules/newbb/print.php?form=1&topic_id=29646&forum=38&order=DESC&start=0 ---- Server IP: 69.147.83.199 Probable Submitter: 124.125.152.107 ---- Manual Page -- http://php.net/manual/en/function.mssql-connect.php Edit -- https://master.php.net/note/edit/111627 Del: integrated -- https://master.php.net/note/delete/111627/integrated Del: useless -- https://master.php.net/note/delete/111627/useless Del: bad code -- https://master.php.net/note/delete/111627/bad+code Del: spam -- https://master.php.net/note/delete/111627/spam Del: non-english -- https://master.php.net/note/delete/111627/non-english Del: in docs -- https://master.php.net/note/delete/111627/in+docs Del: other reasons-- https://master.php.net/note/delete/111627 Reject -- https://master.php.net/note/reject/111627 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194012) next »