Aapache与IIS所选择PHP版本也会不同

最近为了一个项目,而且需要搭建php开发环境,但遇到不少问题,现在把我的搭建过过程与大家分享。主是要有些东西按网上的说话,找到不全,不知为什么。最后到官方网站找到原因

在选择php下载时应注意以下问题,先看官方的提醒,如下:

Which version do I choose?

If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP

If you are using PHP with IIS you should use the VC9 versions of PHP

VC6 Versions are compiled with the legacy Visual Studio 6 compiler

VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed

意译:

该选择什么版本?

如果你使用php+apache1或php+apache2,你需要选择VC6版的php.

如果你用php+iis,你需要选择VC9版的php。

【下略,主要讲为什么要选两者,主要是开发平台,及CPU架构引起的】

所以大家在选择PHP版本时不仅要选择php的版本号,也要选择开发版本号。