PHP to detect whether the server SSL is turned on and open SSL sharing method.
(1) Detecting whether the server has SSL enabled
<?php
phpinfo ();
Check the page OpenSSL column, if the column OpenSSL support value is enabled to indicate that SSL is turned on, otherwise it is off state.
(2) How to open SSL
1. Open php.ini; Extension=php_openssl.dll to remove the preceding symbol.
2. Restart Apache or IIS, and then check the SSL open state again.
If the above action is not valid, then you need to do the next step (this is not necessary in many cases, such as in some combination environment 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 (generally: c:\windows\system32):
Ssleay32.dll
Libeay32.dll
Php_openssl.dll
4. Restart Apache or IIS.
Articles that you may be interested in
- PHP implementation of the same server with multiple two-level domain share session data
- CuteFTP solution to "Encounter invalid parameters" error when connecting to an FTP server
- Summarize MySQL database server gradually slow down reason and solution
- PHP gets the specified date of the week, the first and last day of the month
- How PHP to open compressed output to the site to enhance the speed of Web site access
- Summarize MySQL server query slow reason and resolution method
- PHP Get current server details
- How to realize the optimization of server, static, database optimization, load balancing to achieve high load in large flow website