windows下为php开启ssl支持


因为使用gmail发送邮件使用到ssl,结果修改了php.ini中的设置 extension=php_openssl.dll 为开启,依然检查不到ssl,在网上搜索到一篇文章,解决了这个问题
查找相关文章:php ssl

因为使用gmail发送邮件使用到ssl,结果修改了php.ini中的设置 extension=php_openssl.dll 为开启,依然检查不到ssl,在网上搜索到一篇文章,解决了这个问题

环境:php4.4.7+apache2

复制 dlls/文件夹下面的ssleay32.dll和libeay32.dll到 windows下的system32目录下,并开启extension=php_openssl.dll

重新启动apache即可

原文 http://huang.yunsong.net/2009/windows-php-openssl.html

Enable OpenSSL Support for PHP on Windows

As a prerequisite, two libraries must be existing in your Windows system: libeay32.dll and ssleay32.dll. Two ways to achieve this:

  • Install OpenSSL for Windows
  • Or, copy these two files to C:WINDOWSsystem32 folder. They're shipped with PHP package, you can find them in PHP root folder.

OK, it's time to open php.ini by using any text editor, and remove the semicolon before the following line:

extension=php_openssl.dll