{"id":68072,"date":"2018-01-30T10:38:15","date_gmt":"2018-01-30T02:38:15","guid":{"rendered":"http:\/\/www.xiaoyebailong.com\/?p=68072"},"modified":"2018-01-30T10:38:15","modified_gmt":"2018-01-30T02:38:15","slug":"%e3%80%90php%e9%85%8d%e7%bd%ae%e3%80%91%e7%94%a8php5-6-5%e8%bf%9e%e6%8e%a5sqlserver2008%e5%8a%a0%e5%85%a5%e9%a9%b1%e5%8a%a8%e5%90%8e%e7%9c%8b%e4%b8%8d%e5%88%b0sqlsrv%e6%89%a9%e5%b1%95","status":"publish","type":"post","link":"http:\/\/www.xiaoyebailong.com\/index.php\/2018\/01\/30\/68072.htm","title":{"rendered":"\u3010php\u914d\u7f6e\u3011\u7528php5.6.5\u8fde\u63a5sqlserver2008\u52a0\u5165\u9a71\u52a8\u540e\u770b\u4e0d\u5230sqlsrv\u6269\u5c55"},"content":{"rendered":"<p>\u914d\u7f6e\u670d\u52a1\u5668\u9700\u8981\u7528php\u548cSqlserver2008\u6570\u636e\u5e93\uff0c\u7f51\u4e0a\u627e\u4e86\u4e00\u4e9b\u8d44\u6599\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u8bf4\u9700\u8981\u4e0b\u8f7d\u5fae\u8f6f\u7684\u9a71\u52a8\u653e\u5728ext\u6587\u4ef6\u5939\u540e\uff0c\u518d\u5728php.ini\u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a<br \/>\n[PHP_PDO_SQLSRV]<br \/>\nextension=php_pdo_sqlsrv_56_ts.dll<br \/>\n[PHP_SQLSRV]<br \/>\nextension=php_sqlsrv_56_ts.dll<br \/>\n\u6700\u540e\u91cd\u542f\u670d\u52a1\u5668\u5373\u53ef\uff0c\u4f46\u6211\u91cd\u542f\u4e86apache\u4e4b\u540e\u5728phpinfo\u4e2d\u8fd8\u662f\u6ca1\u6709\u770b\u5230sqlsrv\u7684\u6269\u5c55\uff0c\u540e\u6765\u5728\u767e\u5ea6\u8d34\u5427<a rel=\"nofollow\" href=\"http:\/\/tieba.baidu.com\/p\/3214930266\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/tieba.baidu.com\/p\/3214930266<\/a>\u4e2d\u627e\u5230\u4e86\u95ee\u9898\u5173\u952e\uff1a<\/p>\n<p>\u539f\u6765\u5fae\u8f6f\u5b98\u65b9\u63d0\u4f9b\u7684microsoft drivers 3.2 for php for sql server\u5e76\u4e0d\u652f\u630164\u4f4d\u7684php\u7248\u672c,\u4e00\u4e9b\u975e\u5b98\u65b9\u76843.0.2.2\u5012\u662f\u5355\u72ec\u63d0\u4f9b\u4e8664\u4f4d\u7248\u672c\u7684\u7f16\u8bd1\uff0c[url]http:\/\/\u94fe\u63a5\uff1a<a rel=\"nofollow\" href=\"http:\/\/robsphp.blogspot.co.uk\/2012\/06\/unofficial-microsoft-sql-server-driver.html[\/url]\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/robsphp.blogspot.co.uk\/2012\/06\/unofficial-microsoft-sql-server-driver.html[\/url]<\/a>\uff08\u8fd9\u4e2a\u5728\u5899\u5916\u6253\u4e0d\u5f00\uff09\uff0c<br \/>\n\u4e0d\u8fc7\u8fd8\u597d\u6709\u70ed\u5fc3\u7f51\u53cb\u63d0\u4f9b\u4e86\u767e\u5ea6\u7684\u5206\u4eab\uff0c<a rel=\"nofollow\" href=\"http:\/\/pan.baidu.com\/s\/1dDIRpJF\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/pan.baidu.com\/s\/1dDIRpJF<\/a>\uff0c<br \/>\n\u8fd9\u5c31\u662f\u6700\u7ec8\u6bd4\u8f83\u5b8c\u7f8e\u7684\u89e3\u51b3\u65b9\u6848\u4e86\uff0c\u4e0b\u8f7d\u597d\uff0c\u91cc\u9762\u4f1a\u670932\u4f4d\u548c64\u4f4d\u7684\u6269\u5c55\uff0c\u89e3\u538b\u5bf9\u5e94php\u7248\u672c\u9700\u8981\u7684\u6269\u5c55\uff0c\u7136\u540e\u5728php.ini\u4e2d\u6dfb\u52a0extension=php_sqlsrv_\u7248\u672c\u53f7_\u7ebf\u7a0b\u5b89\u5168\u7248\u672c\u53f7.dll\uff0c\u6bd4\u5982extension=php_sqlsrv_56_ts.dll\uff0c64\u4f4dphp\u4eb2\u6d4b\u53ef\u884c\uff0c\u5982\u679c\u662f32\u4f4d\u7684\u8fd8\u662f\u5efa\u8bae\u4f7f\u7528\u5fae\u8f6f\u5b98\u65b9\u63d0\u4f9b\u76843.2ctp\u7248\u7684<a rel=\"nofollow\" href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=20098\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=20098<\/a><\/p>\n<p>\u540c\u65f6\u5927\u5bb6\u53ef\u4ee5\u53c2\u8003\u201c\u563flinux\u201d\u535a\u5ba2\uff1a<br \/>\n<a rel=\"nofollow\" href=\"http:\/\/heilinux.blog.51cto.com\/6123663\/1584281\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/heilinux.blog.51cto.com\/6123663\/1584281<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u914d\u7f6e\u670d\u52a1\u5668\u9700\u8981\u7528php\u548cSqlserver2008\u6570\u636e\u5e93\uff0c\u7f51\u4e0a\u627e\u4e86\u4e00\u4e9b\u8d44\u6599\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u8bf4\u9700\u8981\u4e0b\u8f7d\u5fae\u8f6f\u7684\u9a71\u52a8\u653e\u5728ext\u6587\u4ef6\u5939\u540e\uff0c\u518d\u5728php.ini\u4e2d\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\uff1a [PHP_PDO_SQLSRV] extension=php_pdo_sqls&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[384,25,385],"topic":[],"class_list":["post-68072","post","type-post","status-publish","format-standard","hentry","category-server","tag-mssql","tag-php","tag-385"],"_links":{"self":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/68072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/comments?post=68072"}],"version-history":[{"count":1,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/68072\/revisions"}],"predecessor-version":[{"id":68073,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/posts\/68072\/revisions\/68073"}],"wp:attachment":[{"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/media?parent=68072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/categories?post=68072"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/tags?post=68072"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/www.xiaoyebailong.com\/index.php\/wp-json\/wp\/v2\/topic?post=68072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}