user269867
user269867

Reputation: 3952

which binary for php5.3 to download?

Referring following link

http://www.php.net/manual/en/mongo.installation.php#mongo.installation.windows

There are thread-safe, non-thread safe and with this it is also prefixed with VC6,VC8,VC9.

I have window 7 Ent and I am not able to understand which binary (.dll) I should download from here.

How am I suppose to know which dll I have to download ?

How to identify which VC compiler + thread safe or non-thread safe combination to choose ?.

Upvotes: 1

Views: 580

Answers (3)

bob-the-destroyer
bob-the-destroyer

Reputation: 3154

To tell which PHP install you have, from the command line, run this command:

php -i | more

This will dump phpinfo page by page. On the second page or so, you should see a "Zend Extension Build" and/or a "PHP Extension Build" key under the "System" section. Maybe it will display something like "API###, TS, VC9". TS stands for "thread safe" (which actually also shows as enabled/disabled in the "Thread Safety" key just a bit below that). "VC9" stands for... VC9. You already know you have PHP5.3 installed. This means you want to install the PHP5.3 Threadsafe VC9 version of Mongo.

Also, this is an example of when user provided comments in the PHP manual page are very helpful. Check the first comment by Andrey 01-Jun-2011 11:54.

Upvotes: 2

webspy
webspy

Reputation: 726

On http://windows.php.net/download/ there's a 'Which version do I choose?' section on the left.

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

Do NOT use VC9 version with apache.org binaries

VC9 versions of Apache can be fetched at Apache Lounge. We use their binaries to build the Apache SAPIs.

Upvotes: 2

Shamim Hafiz - MSFT
Shamim Hafiz - MSFT

Reputation: 22104

Since you are running Windows 7, downloading VC9 would be ideal.

If your App needs to be thread safe, then download Thread safe one. If you are not sure if your application needs to be Thread Safe, you probably won't need Thread Safe Version anyway.

Upvotes: 0

Related Questions