Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? function getdata($url)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- return curl_exec($ch);
- curl_close($ch);
- }
- $ticker = json_decode(getdata("https://btc-e.com/api/1/ticker"), true);
- $high = $ticker['ticker']['high'];
- $low = $ticker['ticker']['low'];
- $last = $ticker['ticker']['last'];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement