PHP到MSSQL连接 [英] php to mssql connection

查看:86
本文介绍了PHP到MSSQL连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要将我的PHP页面远程连接到mssql.任何人对此都有任何想法.

问题是php页是托管的,数据库位于本地,需要远程连接.

问候,
Shefeek

Hi all,

I need to connect my PHP page to mssql remotely.Any one have any idea about this.

Problem is php page is hosted and database is situated locally,Need remote connection.

regards,
Shefeek

推荐答案

尝试 http://www.connectionstrings.com/ [ ^ ].


首先您需要检查托管服务提供商是否已安装必要的PHP扩展名以连接到mssql数据库(ODBC或mssql扩展名),并允许PHP脚本建立网络连接.接下来,您必须配置mssql服务器和网络,以允许外部Web服务器连接到数据库,同时阻止来自Internet上任何其他计算机的连接.然后,您可以开始计算实际代码.
First you need to check that your hosting provider has installed the necessary PHP extension for connecting to a mssql database (either ODBC or mssql extension) and allows PHP scripts to make network connections. Next you must configure your mssql server and your network to allow the external web server to connect to the database while preventing connections from any other machines on the Internet. Then you can start figuring out the actual code.


这篇关于PHP到MSSQL连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆