PHP detects if the server SSL is turned on and how SSL is turned on for sharing.
(1) Detect if SSL is turned on by the server
Check the OpenSSL section of the page, if the value of OpenSSL support for this column is enabled, SSL is turned on, otherwise it is off.
(2) How to turn on SSL
1. Open the php.ini, extension=php_openssl.dll the front symbol.
2. Restart Apache or IIS and re-check the SSL on status.
If the above operation is not valid, then the next step is required (this step is not required in many cases, such as in some combination environments this step can be ignored):
3. Under the PHP installation file, locate the following three files and copy them to the System32 folder under the system target (typically: C:\Windows\System32):
Ssleay32.dll
Libeay32.dll
Php_openssl.dll
4. Restart Apache or IIS.
Articles you may be interested in
- PHP to share SESSION data with multiple level two domain name servers
- CuteFTP "encountered invalid parameter" error when connecting to FTP server
- Summarize the reason and solution of the MySQL database server gradually becoming slow
- PHP gets the week of the specified date, the first day of the month, and the last day
- How PHP can turn on compressed output to website to enhance website access speed
- PHP gets current server details
- How to optimize server, static, database optimization, load balancing to achieve high load for large traffic website
- PHP Check browser parameters to prevent SQL injection of functions
http://www.bkjia.com/PHPjc/764112.html www.bkjia.com true http://www.bkjia.com/PHPjc/764112.html techarticle PHP detects if the server SSL is turned on and how SSL is turned on for sharing. (1) detects if the server is SSL-enabled? Phpphpinfo (); Check the OpenSSL section of the page, if the section of OpenSSL ...