当服务器没开启fsockopen功能的时候,用fsockopen会提示undefine fsockopen,解决办法如下:
第一步:在php.ini里(位置不用说在哪了吧,想必用到这个功能的时候应该对些也有所了解了,不会的百度一下)
allow_url_fopen = On 设其值为On
第二步:php.ini文件中查找
extension=php_openssl.dll 如果前面有分号,去掉分号
第三步:重启web服务器,apache或IIS
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