惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Forbes - Security
Forbes - Security
IT之家
IT之家
L
LINUX DO - 最新话题
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
雷峰网
雷峰网
N
News | PayPal Newsroom
The Last Watchdog
The Last Watchdog
V
Visual Studio Blog
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
TaoSecurity Blog
TaoSecurity Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Schneier on Security
Schneier on Security
P
Privacy International News Feed
G
Google Developers Blog
博客园 - 聂微东
博客园 - 叶小钗
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Simon Willison's Weblog
Simon Willison's Weblog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
宝玉的分享
宝玉的分享
H
Hacker News: Front Page
Martin Fowler
Martin Fowler
L
Lohrmann on Cybersecurity
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
T
The Exploit Database - CXSecurity.com
S
Security @ Cisco Blogs
博客园_首页
AWS News Blog
AWS News Blog
P
Proofpoint News Feed
人人都是产品经理
人人都是产品经理
Help Net Security
Help Net Security
Google DeepMind News
Google DeepMind News
T
Threatpost

博客园 - 独孤俊杰

信息系统项目管理师第4版10大管理过程ITO整理 Elastic Stack 6.5安装:一、 在centos7中安装Logstash MySQL 5.7及以上解压缩版本配置安装 Cannot load from mysql.proc. The table is probably corrupted解决办法 Jwplayer播放器:Could not load plugins: File not(转) windbg+vm双机调试 waiting to reconnect 无法连接问题,解决办法 Maximum execution time of 30 seconds exceeded解决办法 php中遇到下列错误 ,Fatal error: Can't use function return value in write context,解决办法 apache服务通常启动,但打不开网页,提示Try using the Win32DisableAcceptEx directive (转) QR码生成原理(转) 安装winamp无法启动mysql,提示 [ERROR] wampmysqld: unknown variable 'table_cache=4100' 刚装的WIN7,用了一下午,记一下备忘 现在没有目标了,不知道该干什么了 电信禁止路由上网的最佳破解方法(转) meta 标签的作用 不同系统开启和关闭fso的方法(转) 安装SQLServer2000时,提示"以前的某个程序安装已在安装计算机上创建挂起的文件操作。运行安装程序之前必须重新启动计算机" - 独孤俊杰 - 博客园 加验证控件无法提交的问题解决方法 希腊字母以及发音
wamp server中配置php访问sqlsever
独孤俊杰 · 2014-05-16 · via 博客园 - 独孤俊杰

wamp server中配置php访问sqlsever

 网上介绍的大部分是对的,关键的几点没写,愁死个人啊

1、windows server 2008 或R2的版本,如果是64位系统也要安wamp server 32位,要不然驱动不好用啊,血的教训啊

2、下面的例子中php5.4要改为php_sqlsrv_54_ts.dll

3、php5.5官方没有,有第三方的,网址:http://www.hmelihkara.com/files/php_sqlsrv_55.rar

4、thinkphp对sqlsever支持不太好,反正感觉坑比较多

下面文章来源网址:http://www.uncletoo.com/html/base/824.html

在WAMP中安装Microsoft SQL Server驱动

       大多数PHP开发人员非常熟悉MySQL数据库,对于SQL Server却用的很少,我们发现甚至在谷歌和php.net官方网站都很少了解关于PHP与SQL Server。本文将介绍如何在32位WAMP及PHP5.3上安装Microsoft SQLServ驱动程序。

1、打开http://www.microsoft.com/en-us/download/details.aspx?id=20098链接下载微软SQL Server PHP驱动程序;

2、下载SQLSRV30.EXE(适用于Windows Vista,Server 2008中,以及Windows 7或以上)或SQLSRV20.EXE(适用server 2003/Windows XP或以下)。

3、运行SQLSRV30.EXE,然后输入你的PHP bin文件夹路径,安装驱动程序的DLL文件,如下图:

4、打开php.ini文件,将下面两句代码前的分号(;)去掉

extension=php_pdo_sqlsrv_53_ts.dll

extension=php_sqlsrv_53_ts.dll

5、重新启动wamp服务,并且使用phpinfo查看pdo_sqlsrv是否启用:

6、创建PHP文件,复制并粘贴下面代码,检查PHP与SQL Server数据库的链接

1

2

3

4

5

6

7

8

9

10

11

<?php

$serverName = "hostname or ip";

$connInfo = array("Database"=>"db_name", "UID"=>"db_username", "PWD"=>"db_password");

$conn = sqlsrv_connect($serverName, $connInfo);

if($conn){

 echo "Database connection established.<br />";

}else{

 echo "Connection could not be established.<br />";

 die( print_r(sqlsrv_errors(), true));

}

?>