php curl_exec returns empty

前端 未结 4 926
刺人心
刺人心 2020-12-16 15:08
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $url);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($ch, CURLOPT_PROXY, $proxy); // $proxy is ip of          


        
4条回答
  •  不思量自难忘°
    2020-12-16 16:06

    The result return 0 mean that you can not connect to the server so please recheck your proxy and increase the timeout :)

提交回复
热议问题