问题
I need to install oauth extension in php. I tried lot of ways but still I cannot get the oauth in my php. I mentioned below few steps to get oauth in PHP.
I copied the php_oauth.dll file to xampp/ext/
wrote this line
extension=php_oauth.dll
in php.iniAfter restarting the server I accessed the phpinfo().php
But OAuth is not shown.
I can see this in my logfile:
PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oauth.dll' - %1 is not a valid Win32 application. in Unknown on line 0
回答1:
I found a solution for this error. My system is 64 bit OS but XAMPP server installed in 32 bit. I install 64 bit oauth.dll file I cannot get oauth in PHP. After I install 32 bit oauth.dll I get the oauth in PHP file.(The windows binary and extension arch need to match)
Download link to php_oauth.dll - https://pecl.php.net/package/oauth/1.2.3/windows
来源:https://stackoverflow.com/questions/34036004/cannot-install-oauth-extension-in-xampp-on-windows