function curlku($urls){
$data = curl_init();
curl_setopt($data, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0');
curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($data, CURLOPT_URL, $urls);
$result = curl_exec($data);
curl_close($data);
return $result;
}
///test call
curlku('http://usmanfauzi.blogspot.co.id');
?>
No comments:
Post a Comment