What is blocking fsockopen?

前端 未结 4 1544
误落风尘
误落风尘 2021-01-12 10:26

After struggling for half a day, I finally manage to get reCAPTCHA to work by converting this function:

function _recaptcha_http_post($host, $path, $data, $p         


        
4条回答
  •  一整个雨季
    2021-01-12 10:55

    What is in $errno and $errstr inside if(false === ...)? So, what does it output if you change to

     if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
      die ("Could not open socket, error: " . $errstr);
     }
    

提交回复
热议问题