I've spent about half of my day trying to figure out how to get PEAR MDB2 to work with MSSQL. I've gotten to the point where I'm missing php_mssql.dll. No idea where to find it or how to get it. What I'm wondering is if anybody can explain, from scratch, how to set up php with PEAR MDB2 to work with MSSQL.
我花了大约一半的时间试图弄清楚如何让PEAR MDB2与MSSQL一起工作。我已经到了我缺少php_mssql.dll的地步。不知道在哪里找到它或如何获得它。我想知道的是,如果有人能够从头开始解释如何使用PEAR MDB2设置php来与MSSQL一起工作。
The results on the internet say things like "use the msi" well the msi doesn't exist for newer versions of php. Then it says "build with [these options]" well how the heck do I do that? Why is it so impossible to use php and MSSQL?
互联网上的结果表明,对于较新版本的PHP,msi不存在“使用msi”这样的东西。然后它说“用[这些选项]构建”以及我该如何做到这一点?为什么使用php和MSSQL是如此不可能?
Or perhaps I'm approaching this the wrong way. Should I abandon PEAR completely? What is the fastest way to get set up with PHP and connecting to a Microsoft SQL database?
或许我正以错误的方式接近这一点。我应该完全抛弃PEAR吗?使用PHP设置并连接到Microsoft SQL数据库的最快方法是什么?
1 个解决方案
#1
0
MDB2 just lays on top of the native php mssql extension. This is what you need first. You probably have the file already in your windows installation, search for it in your php directory.
MDB2只是放在本机php mssql扩展的顶部。这是你首先需要的。您可能已经在Windows安装中使用该文件,在php目录中搜索它。
Then enable it in php.ini
and restart your web server.
然后在php.ini中启用它并重新启动您的Web服务器。
#1
0
MDB2 just lays on top of the native php mssql extension. This is what you need first. You probably have the file already in your windows installation, search for it in your php directory.
MDB2只是放在本机php mssql扩展的顶部。这是你首先需要的。您可能已经在Windows安装中使用该文件,在php目录中搜索它。
Then enable it in php.ini
and restart your web server.
然后在php.ini中启用它并重新启动您的Web服务器。