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.ini
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With