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