Save cURL Display Output String in Variable PHP
is their an option to save the outpout of a curl request in a php variable? Because if i only save the $result i get a 1 or nothing <?php $url='http://icanhazip.com'; $proxy=file ('proxy.txt'); $useragent='Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'; for($x=0;$x<count($proxy);$x++) { $ch = curl_init(); //you might need to set some cookie details up (depending on the site) curl_setopt($ch, CURLOPT_TIMEOUT, 1); curl_setopt($ch, CURLOPT_URL,$url); //set the url we want to use curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0); curl_setopt($ch, CURLOPT_PROXY, $proxy[$x]); curl_setopt($ch,