Home  >  Article  >  Backend Development  >  Detailed explanation of opening the PHP fsockopen function module_PHP tutorial

Detailed explanation of opening the PHP fsockopen function module_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:41:011073browse

When the fsockopen function is not enabled on the server, using fsockopen will prompt undefine fsockopen. The solution is as follows:
Step 1: In php.ini (it doesn’t need to be said where the location is, I think it should be correct when using this function. I have some understanding of these, if you don’t know it, search it on Baidu)
allow_url_fopen = On Set its value to On

Step 2: Find
extension=php_openssl.dll in the php.ini file If there is Semicolon, remove the semicolon

Step 3: Restart the web server, apache or IIS

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486178.htmlTechArticleWhen the fsockopen function is not enabled on the server, using fsockopen will prompt undefine fsockopen. The solution is as follows: Step 1: In php.ini (it doesn’t matter where it is located, it must be used here...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn