Advertisement
Guest User

Untitled

a guest
Jan 13th, 2013
217
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function curl($url) {
  2.     $ci = curl_init();
  3.     curl_setopt($ci, CURLOPT_URL, $url);
  4.     curl_setopt($ci, CURLOPT_HEADER, 0);
  5.     curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);
  6.     curl_setopt($ci, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
  7.     $r = curl_exec($ci);
  8.     curl_close($ci);
  9.    
  10.     return $r;
  11. }
Advertisement
RAW Paste Data Copied
Advertisement