简体   繁体   English

我可以使用哪个版本的PHP连接到SQL Server 2000数据库?

[英]What version of PHP can I use to connect to a SQL Server 2000 database?

I had a set up for connecting to a SQL Server database, but when I tested it on a SQL Server I came to find out that my current method will not work because the SQL Server version is out dated (2000), IT has no interest in updating so it makes it hard for me to do anything but use older versions. 我已经建立了用于连接到SQL Server数据库的设置,但是当我在SQL Server上对其进行测试时,我发现我的当前方法将不起作用,因为SQL Server版本已过期(2000),IT对此没有兴趣。进行更新,因此除了使用较旧的版本外,我很难做任何事情。

I was wondering what version of PHP I could use so that I can connect to that server? 我想知道可以使用哪个版本的PHP,以便可以连接到该服务器? I have 5.4 right now and I'm running the version that uses sqlsrv_connect. 我现在有5.4,并且正在运行使用sqlsrv_connect的版本。 I'm wondering if going to a version that uses mssql_connect would work instead and what versions would be able to? 我想知道是否可以改用使用mssql_connect的版本,并且可以使用哪些版本?

Thanks! 谢谢!

http://www.php.net/manual/en/intro.mssql.php http://www.php.net/manual/zh/intro.mssql.php

"This extension is not available anymore on Windows with PHP 5.3 or later." “此扩展名在带有PHP 5.3或更高版本的Windows上不再可用。”

So anything 5.2.x and below. 所以5.2.x及以下版本。 However you should note that 5.2 and lower is no longer supported and won't even get security fixes. 但是,您应该注意,不再支持5.2及更低版本,甚至不会获得安全修复程序。

Ideally you really should look into upgrading your 13 year old SQL server, it is not supported by Microsoft any more. 理想情况下,您确实应该考虑升级具有13年历史的SQL Server,Microsoft不再支持它。 I'd try and push IT on this. 我会尽力推动IT的发展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM