I have scowered all over the internet and I can't get Open SSL extension working with PHP running on IIS. I have tried uncommenting "extension=php_openssl.dll" on the INI file like everyone is suggesting and also followed the below tutorial too which is using PHP manager for IIS but, no luck. I have tried disabling/re-enabling Openssl extension and also tried restarting IIS. I also double checked the ext folder and the php_openssl.dll file is present there. Every time I try to process HTTPS URLs I get this error message "Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in...".
OpenSSL configuration tutorial: https://www.phpkb.com/kb/article/configuring-php-openssl-extension-with-iis-via-php-manager-on-windows-181.html
Thanks for reading my question.
For anyone who might come across this issue. I got it working by re-installing PHP from scratch using this manual CMD installation method on the tutorial below. After installation, I uncommented the line "extension=openssl....." in the INI file & it worked as intended again.
PHP CMD manual installation tutorial: https://www.php.net/manual/en/install.windows.manual.php
I chose the non-threaded version of PHP for IIS as, it was the recommended config. by the Microsoft documentation.