
<?php
/**
*to do curl
*@param string $url
*@return mix
*/
public function curl($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_HEADER,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
$c = curl_exec($ch);
curl_close($ch);
return $c;
}



