$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
The result return 0 mean that you can not connect to the server so please recheck your proxy and increase the timeout :)