do they make mongodb php extension for visual studio 2010 (on a win7 32bt operating system) and php version 5.2?
i've seen sites that have the dll for download. (sites listed at the end of this text).
but, looking a the different dlls, i only see them for vc9 and vc11. does that mean that isn't mongo/php extension for my version of visual studio?
any info would be greatly appreciated. thank you.
https://github.com/mongodb/mongo-php-driver/downloads
https://s3.amazonaws.com/drivers.mongodb.org/php/index.html
If you're going to download and use a precompiled PHP extension for MongoDB, the important details to match up are: your version of PHP, what compiler was used, and whether it is 32-bit or 64-bit.
You can get this information from the phpinfo() details or by running php -i from a commmand line.
Look for a "PHP Extension Build" line similar to:
PHP Extension Build => API20100525,TS,VC9
You should then download the latest MongoDB driver DLL zip and find the appropriate DLL to install (matching PHP version, TS vs NTS, and VC version).
For example, with the above output from my 64-bit PHP 5.4 install I would use the php_mongo-1.4.x-5.4-vc9-x86_64.dll.
If your PHP extensions require something other than VC9 or VC11 (which is what the current versions are built with) you can try older driver versions, or ideally update your PHP to a newer version.
Related
I want to use MongoDB with PHP Version 5.6.3. I am running XAMPP with these versions:
API : Apache 2.0 Handler
Compiler : MSVC11 (Visual C++ 2012)
Architecture : x86Handler
When I run XAMPP server there's a warning sign next to libsasl.dll is missing from your computer. I'm not getting which php_mongo.dll would work with my version?
It looks like you can download Mongo extensions from PECL. If you are in doubt which version to go for, select the latest stable, which at the time of writing is 1.5.8.
This will save you the trouble of compiling your own on Windows, which is usually a great deal harder than on *nix-like systems.
I installed WAMPP web server, and now after configuring php.ini to use Netbeans for PHP coding (following this), I had to restart the Apache and MySQL servers. I actually stopped them and tried to start again, and I am getting this error:
PHP Startup: Unable to load dynamic library 'C:xampp\php\ext\php_intl.dll' - %1 is not a valid Wind32 application.
I am on a 64 bit Windows 7 OS.
I installed XAMPP v1.8.3 (got from www.apachefriends.org)
My PHP version (got from phpinfo() is PHP version 5.5.11.
I have tried solutions to the questions addressing the same issue.
1. I tried to copy all the icu*.dll's to apache>bin directory, no joy. They were already there. I did not replace them.
2. I have my extension=php_intl.dll uncommented and points to the right directory. To no gain.
3. I added the directory of icu*.dll files to my system environment variables, did not help.
4. My php_pdo_firebird.dll in php.ini is already commented out.
Now, not a valid win32 application makes me think I have something for 64bit OS and it should be for 32bit OS.. But what is it? What do I do about it?
Please help me resolve this error.
You have to install Miscrosoft Visual C++ Redistributable.
Use x86 version if you use 32bit PHP.
Use x64 version if you use 64bit PHP.
If you are not sure which PHP you use, install both versions of Miscrosoft Visual C++ Redistributable. Nothing will break.
For PHP 7.2, PHP 7.3 and PHP 7.4 you need version 2017 (VC15).
Download Visual C++ Redistributable for Visual Studio 2017
Older versions (2015 or 2012) are not needed if you install this one.
For PHP 7.0 and PHP 7.1 you need version 2015 (VC14).
Download Visual C++ Redistributable for Visual Studio 2015.
For PHP 5.6 you need version 2012 (VC11).
Download Visual C++ Redistributable for Visual Studio 2012
Change/Add env variable for PATH to your php version
Download Visual C++ will resolve
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 ?.
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.
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.
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.
I've worked with Visual Studio 2008(visual c) to create a php extension, so after writing the c code and compiling the whole project, A dll file has been generated in the debug folder.
I copied this dll file to the php /ext folder ( extensions folder) and I added this line in php.ini
extension=php_talkphp.dll (php_talkphp.dll is the dll name)
then I restart apache server to initialise php extensions. but an error has occured : and this is the error message:
I know that this is due to the compiler version, but How can I use the Vc6 version in a VS2008?
thank you
You need to use the extensions built with the same compiler as your PHP install.
In this case - you are using an installation of PHP built with Visual C++ 6, which is an incredibly old compiler. Your extension is built with Visual C++ 9.0, which is much newer.
You can not mix extensions and PHP installs built with different VC compilers.
Possible solutions:
Get the TalkPHP extension built with Visual C++ 6, and build your own with VC6. You probably will have a hard time getting this since it's an unsupported, unavailable compiler.
or
Install a version of PHP built with Visual C++ 9.0. This will introduce different problems however:
You will either need to switch to using IIS or use a version of apache built with Visual C++ 9.0. Apache Lounge has them.
You will have to install the Visual C++ 9.0 Runtime if you don't already have it.
I recently setup a server using the latest version of XAMPP for Windows. With it came PHP 5.3. I'm now looking for a memcache.dll file that works with PHP 5.3 I've used some of the previous .dll files and recieved an error message:
"PHP Startup: memcache: Unable t initialize module.
Module compiled with module API=20060613
PHP compiled with module api=20090626
These options need to match"
Any links to a PHP 5.3 memcache.dll file would be greatly appreciated.
Thanks for the help!
If you are using php 5.3 from within xampp 1.7.2/1.7.3, this distribution works fine:
http://shikii.net/blog/downloads/php_memcache-cvs-20090703-5.3-VC6-x86.zip
It's a real pity that windows.php.net is still not up yet with PECL windows binaries.
Links are not working any more. But you can use following SVN repository to download the file.
http://zhiliansns.googlecode.com/svn-history/r4/trunk/software/php_memcache-cvs-20090703-5.3-VC6-x86.zip
There are compiled extension available from http://downloads.php.net/pierre/
Amongst those, you'll find :
php_memcache-cvs-20090703-5.3-VC6-x86.zip (2009-07-03 05:30 -0700)
php_memcache-cvs-20090703-5.3-VC9-x64.zip (2009-07-03 05:45 -0700)
php_memcache-cvs-20090703-5.3-VC9-x86.zip (2009-07-03 06:11 -0700)
php_memcache-cvs-20090703-5.3-nts-VC6-x86.zip (2009-07-03 05:29 -0700)
php_memcache-cvs-20090703-5.3-nts-VC9-x64.zip (2009-07-03 05:35 -0700)
php_memcache-cvs-20090703-5.3-nts-VC9-x86.zip (2009-07-03 06:07 -0700)
Depending on the version of PHP 5.3 you are using, one of those might do ;-)
If you don't know which one you should choose, take a look at the "Which version do I choose?" block on the left of http://windows.php.net/ (quoting) :
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
Maybe one day, extensions will be on this site too (as pecl4win is down)... Would be nice, actually ^^
Found this blog which has a PHP 5.3 version that worked for me:
http://shikii.net/blog/installing-memcached-for-php-5-3-on-windows-7/
You should download this extension from code.google.com:
php client for php 5.3(VC6) in xampp
I have php 5.3.13 and in my case the link which seven provided didn't work. But this one did: http://downloads.php.net/pierre/php_memcache-2.2.6-5.3-vc9-x86.zip