From: http://www.lanfeng.net/archives/4594.html
When installing oscommerce, I found the openssl_open () function and found a tutorial on the Internet:
1. Open the PHP Directory and remove ";" in front of "extension = php_openssl.dll" in PHP. ini. If not, add it by yourself.
2. Copy libeay32.dll and ssleay32.dll to C: windows \ system32 in the PHP installation directory.
3. Copy php_openssl.dll to C: windows \ system32. If php_openssl.dll cannot be found, go to the http://www.zhaodll.com/dll/p/200910/29860.html.
4. Restart the IIS or Apache Environment
This completes the configuration and installation.
============================================ I am a gorgeous splitting line = ========================================================
How to operate IIS in Windows:
1. In C: \ WINDOWS \ PHP. ini
Remove the semicolon (comment) before; Extension = php_openssl.dll. 2. Copy the following in the PHP installation directory:
Libeay32.dll
Ssleay32.dll
To c: \ windows \ system32
3. Copy php_openssl.dll from the PHP \ ext directory to C: \ windows \ system32.
4. Restart IIS. Other operations: Enable OpenSSL for PHP in windows.
The following error occurs when I use the email type email of CI:
Unable to connect to SSL
(Unable to find the socket transport "SSL"-Did you forget to enable it when you configured PHP ?)
But in PHP. no SSL extensions are found in ini. There is an SSL extension in Apache, but it cannot be started as soon as it is opened (something should be configured ), later, I found that the PHP folder had OpenSSL extensions, but the installation was unsuccessful. So I searched for the reason and finally solved the problem. The useful information is as follows:
1. To enable mcrypt support, the libmcrypt. dll library must be installed.
This is generally not installed by users, but don't worry. This file has been attached to the PHP windows release package and can be found in the root directory of the PHP compressed package, copy it to the % System %/system32 directory.
2. To enable OpenSSL support, the system must install the libeay32.dll and ssleay32.dll libraries.
If you have installed OpenSSL before, these two files should already exist in your system directory. If you have not installed OpenSSL, these two files are also included in the PHP windows release package, copy it to the % System %/system32 directory. -
How does appserv Win32 enable OpenSSL?-------
1. Open C:/windows. There is a PHP. ini file in it (appserv actually moved the PHP configuration file here !), Search for extension = php_openssl.dll and remove the preceding comma.
2. Go to the installation directory of appserv, go to the PHP folder, search for libeay32.dll and ssleay32.dll respectively, and copy them to C:/Windows/system32.
3. Restart Apache. For how to use phpmailer, see the phpmailer example.