Home > Backend Development > PHP Tutorial > xampp下php如何连接mssql,并读取数据呀

xampp下php如何连接mssql,并读取数据呀

WBOY
Release: 2016-06-06 20:49:58
Original
1495 people have browsed it

xampp下php如何连接mssql,并读取数据呀?请大家帮帮忙

我现在是extension=php_mssql.dll开启了, 但用phpinfo();看不到呀

回复内容:

xampp下php如何连接mssql,并读取数据呀?请大家帮帮忙

我现在是extension=php_mssql.dll开启了, 但用phpinfo();看不到呀

首先确定是哪儿的问题:

  • 看apache的日志。
  • 看php的ext目录下,有没有 php_mssql.dll

如果没有 php_mssql.dll 则从网上下载一个。

如果日志出现 PHP startup: Unable to load dynamic library './php_mysql.dll 这个问题是最常出现的,解决方法有两个:

  1. 将这些依赖的dll拷贝到 %windir%\system32 下
  2. 或者将PHP的安装目录添加到 %PATH% 中。

如何添加环境变量就不用我写了吧。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template