daniofilho
4/12/2016 - 11:35 AM

cURL Salva retorno em variável

$url = $config['dwpsys_multitec_api_url'] . "?a=get_json_acessos";
			
			$ch = curl_init();
			
			curl_setopt($ch,CURLOPT_URL, $url);
			curl_setopt($ch, CURLOPT_HEADER, 0);  
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
			
			$result = curl_exec($ch);
			
			curl_close($ch);