Cannot install OAuth extension in Xampp on Windows

浪子不回头ぞ 提交于 2021-02-16 07:54:49

问题


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.

  1. I copied the php_oauth.dll file to xampp/ext/

  2. wrote this line extension=php_oauth.dll in php.ini

  3. After 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!