PHP5.4 add extension error - php

I am having a problem adding an extention to PHP 5.4
I am running XAMPP 3.2.1 on Windows XP with PHP 5.4. Everything runs as expected.
But when I copy the php_dbase.dll to xampp/php/ext and and extension=php_dbase.dll to the php.ini file XAMMP will say:
This application has failed to start because MSVCR110.dll was not found.
PHP Startup: Unable to load dynamic library: 'C.\xampp\php\ext\php_dbase.dll' - The specific module could not be found
I did the same process on Windows 7 and it worked. But I need to do this on Windows XP.
Help please?

You need to install the Visual C++ Redistributable for Visual Studio 2012. Download it here
MSVCR110.dll is the Microsoft Visual C++ Redistributable dll that is needed for projects built with Visual Studio 2011. The dll letters spell this out.
MS = Microsoft, V = Visual, C = C++, R = Redistributable
For Winroy to get started, this file is probably needed.
This error appears when you wish to run a software which require the Microsoft Visual C++ Redistributable 2012. The redistributable can easily be downloaded on the Microsoft website as x86 or x64 edition. Depending on the software you wish to install you need to install either the 32 bit or the 64 bit version. Refer the following link: http://www.microsoft.com/en-us/download/details.aspx?id=30679
-- Yaqub K, Microsoft Support Engineer, 2013-08-20 from answers.microsoft.com

Related

The program can't start because MSVCP110.dll is missing from the computer

I am trying to connect php in apache(xampp v5.6.8) to ms sql server 2012..it keeps giving me the error
'The program can't start because MSVCP110.dll is missing from the
computer. Try reinstalling the program to fix this problem'.
l downloaded and installed the visual c++ re-distributable for visual studio and located the MSVCP110.dll in my xampp php folder. It still gives the same error. Please can someone help.
Let me start by saying that non-PHP DLLs should not reside in PHP directory. They belong in either program's or system's directory.
Make sure you installed the right version of Visual C++ Redistributable for Visual Studio 2012 Update 4, be it 32bit or 64bit. You can try copying that DLL to either System32 or SysWoW64 (depends on your system version) directory of windows on your own risk.
UPDATE:
From your comment I learned that your system is 64bit. The fact that you found that DLL in System32 tells us that you installed 64bit Visual C++ Redistributables.
If your XAMPP is 32bit you should install additionally the same Visual C++ Redistributable for Visual Studio 2012 Update 4 but 32bit so your system has both of them, for 32bit and 64bit apps.
32bit applications don't use 64bit libraries. That should solve your problem.

PHP Error: Unable to load dynamic library php_intl.dll, not a valid win32 application?

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

MSVCR100.dll is missing when running console apps

i have installed Ampps server and Wamp server on my computer in two different drives. Now i am trying to run "yiic" on command prompt but its throwing a popup window saying that "MSVR100.dll is missing try reintalling the program to fix this problem".one thing more i would like to add is that, since i have gone through google to fix the problem of MSVCR100.dll and i have installed all the suggested files (from the microsoft website) installed msvcr100.dll but the problem still exists with me.
I have been wondering around Google and all search engines and I came to result that the problem was in yiic.bat which was something like:
set YII_PATH=%~dp0
if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe
"%PHP_COMMAND%" "%YII_PATH%yiic" %*
#endlocal
I changed the code to following code
set YII_PATH=F:\wamp\www\yii\framework\
if "%PHP_COMMAND%" == "" set PHP_COMMAND=F:\wamp\bin\php\php5.4.16\php.exe
"%PHP_COMMAND%" "%YII_PATH%yiic" %*
#endlocal
Which means
please look into the YII_PATH to be upto path\to\framework\
and
if "%PHP_COMMAND%" == "" set PHP_COMMAND to be upto path\to\php.exe
Try installing or update Microsoft C++:
For Windows 32 bit OS:
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
For Windows 64 bit OS:
Microsoft Visual C++ 2008 Redistributable Package (x64)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
This is a possible solution.

Error with php_http: the program can't start because php_propro.dll is missing from your computer

I'm trying to install php_http on Windows.
My Config is:
PHP Version => 5.3.13
Build Date => May 14 2012 02:46:11
Compiler => MSVC9 (Visual C++ 2008)
Architecture => x64
Thread Safety => enabled
So I finaly found a version of the php_http.dll that is compiled with MSVC9, with x64 architecture and with thread safety enabled. Howewer, now when I try to run a php script I get: The program can't start because php_propro.dll is missing from your computer. I know php_http depends on php_propro, but I can't find such a dll on the internet at all.
When I try to build my own local server under Windows. I got the same issue.
To fix that, I installed the Visual C++ Redistributable for Visual Studio 2012. I never see again this error.
So, for me, the solution in your case should be almost the same.
You have mention the MSVC9 with a x64 architecture. So, you need to install the Microsoft Visual C++ 2008 Redistributable Package (x64).
Source : The PHP website.
Look at the block of information (on the left) which have the (main) title Which version do I choose ?
Inside you'll find note about the VC9 and VC11.
You can find a version of that dll on http://www.apachelounge.com/viewtopic.php?p=26283#26283
php_prppro.dll can be downloaded from windows.php.net website here: http://windows.php.net/downloads/pecl/snaps/propro/1.0.0/

PHP Install Failure With wampserver2

I installed wampserver 2.2e (php5.4.3 / apache 2.2.22) on my Windows 2003 machine, and get this error in the system event logs:
Generate Activation Context failed for C:\wamp\bin\php\php5.4.3\php5apache2_2.dll. Reference error message: The referenced assembly is not installed on your system.
The DLL in question does exist in the folder specified.
Update: VC10 SP1 (32-bit) was installed prior to wamp.
I previously had tried to install apache and php manually, and encountered issues with apache loading the php5 module correctly as well. I assumed that WAMP would work fine (it has on all other instances when I have installed). I did have an earlier version of both apache and php working on this machine.
Now I'm not so sure it's the install, but something with Windows?
Update 2: In the system event logs, I noticed this error each time I try to run wamp. I looks related as it is referencing VC9, but the website says to install VC10:
Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
You need to install the Microsoft Visual Studio C++ Redistributable Package. LINK This link is for the 2010 version. Check the PHP documentation, you may need an older version.
Taken directly from WAMP website:
WARNING : You must install Visual C++ 2010 SP1 Redistributable Package
x86 or x64 VC10 SP1 vcredist_x86.exe 32 bits :
http://www.microsoft.com/download/en/details.aspx?id=8328 VC10 SP1
vcredist_x64.exe 64 bits :
http://www.microsoft.com/download/en/details.aspx?id=13523
You also need Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)
The 2010 VC redist is for Apache.
The 2008 redist is for Wampmanager.

Categories