zoukankan      html  css  js  c++  java
  • windows下xampp环境php无法访问mssql

    If the mssql extension was loaded in the php.ini, sometimes it comes to access problems when only TCP/IP is used. You can fix that problem with a newer "ntwdblib.dll" from Microsoft. Please replace the older file in "\xampp\apache\bin" and "\xampp\php" with the new one. Because of the license, we can't package a newer version of this file with XAMPP.

    这个是xampp官网的原文
    意思是由于license许可的原因,没有把新版的ntwdblib.dll放到\xampp\apache\bin目录下
    ntwdblib.dll文件可以在mssql的安装盘中找到

    对于php5.3以后的版本,需要下载SQL SERVER Driver for php ,是一个自解压的EXE文件,解压后得到

    php_sqlsrv_53_nts_vc6.dll等等一些文件,还有一个chm格式的说明

    把他们放到PHP的ext目录下,然后在php.ini中加入

    extension=php_sqlsrv_53_nts_vc6.dll

    重启APACHE或IIS就可以了

    如果不行,就换一个dll,直到好使

    mssql_connect等函数不能用了,需要看微软给的那个chm文档。

  • 相关阅读:
    Web 服务器配置
    Web 浏览
    C++ Web 编程
    C++ 多线程
    C++ 信号处理
    C++ 预处理器
    C++ 模板
    C++ 命名空间
    C++ 动态内存
    C++ 异常处理
  • 原文地址:https://www.cnblogs.com/martin1009/p/2417357.html
Copyright © 2011-2022 走看看