idev (OP)
|
|
February 08, 2011, 07:00:30 PM |
|
Anyone have a script to display ASK prices on my web site? preferably in php.
|
|
|
|
|
|
|
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
BitLex
|
|
February 08, 2011, 07:25:12 PM |
|
how about this: $mtg_url='http://mtgox.com/code/data/ticker.php'; $handle = fopen ($mtg_url, "r"); $output = fread($handle, 1024); fclose($handle); $obj = json_decode($output); $bid = $obj->ticker->buy; $ask = $obj->ticker->sell;
echo "bid: ".$bid." | ask: ".$ask;
|
|
|
|
idev (OP)
|
|
February 08, 2011, 11:12:36 PM |
|
how about this: $mtg_url='http://mtgox.com/code/data/ticker.php'; $handle = fopen ($mtg_url, "r"); $output = fread($handle, 1024); fclose($handle); $obj = json_decode($output); $bid = $obj->ticker->buy; $ask = $obj->ticker->sell;
echo "bid: ".$bid." | ask: ".$ask;
Thanks a lot man, sent you 2.50bc for your time and effort. Cheers
|
|
|
|
tiCeR
|
|
August 03, 2011, 10:29:13 AM |
|
can someone tell me the hole working php script ? i not get it working ;(
thx pls private message me
|
| | . .Duelbits│SPORTS. | | | ▄▄▄███████▄▄▄ ▄▄█████████████████▄▄ ▄███████████████████████▄ ███████████████████████████ █████████████████████████████ ███████████████████████████████ ███████████████████████████████ ███████████████████████████████ █████████████████████████████ ███████████████████████████ ▀████████████████████████ ▀▀███████████████████ ██████████████████████████████ | | | | ██ ██ ██ ██
██ ██ ██ ██
██ ██ ██ | | | | ███▄██▄███▄█▄▄▄▄██▄▄▄██ ███▄██▀▄█▄▀███▄██████▄█ █▀███▀██▀████▀████▀▀▀██ ██▀ ▀██████████████████ ███▄███████████████████ ███████████████████████ ███████████████████████ ███████████████████████ ███████████████████████ ███████████████████████ ▀█████████████████████▀ ▀▀███████████████▀▀ ▀▀▀▀█▀▀▀▀ | | OFFICIAL EUROPEAN BETTING PARTNER OF ASTON VILLA FC | | | | ██ ██ ██ ██
██ ██ ██ ██
██ ██ ██ | | | | 10% CASHBACK 100% MULTICHARGER | │ | | │ |
|
|
|
NothinG
|
|
August 03, 2011, 04:02:04 PM |
|
can someone tell me the hole working php script ? i not get it working ;(
thx pls private message me
<?php $mtg_url='https://mtgox.com/code/data/ticker.php'; $handle = fopen ($mtg_url, "r"); $output = fread($handle, 1024); fclose($handle); $obj = json_decode($output); $bid = $obj->ticker{'buy'}; $ask = $obj->ticker{'sell'};
echo "bid: ".$bid." | ask: ".$ask; ?>
|
|
|
|
|
nhodges
|
|
August 05, 2011, 12:14:16 AM |
|
how about this: $mtg_url='http://mtgox.com/code/data/ticker.php'; $handle = fopen ($mtg_url, "r"); $output = fread($handle, 1024); fclose($handle); $obj = json_decode($output); $bid = $obj->ticker->buy; $ask = $obj->ticker->sell;
echo "bid: ".$bid." | ask: ".$ask;
If you're on an IIS server and opt to use the https protocol, the server will close the connection without sending close_notify, and PHP will report an error of "SSL: Fatal Protocol Error" ... for those of you on IIS please use file_get_contents or the cURL library.
|
|
|
|
Xenland
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
August 05, 2011, 01:46:26 AM |
|
Mining farm does some of the similar codes located in the blockUpdater.php file in side of the /req/cronjobs/ folder.
|
|
|
|
idev (OP)
|
|
August 05, 2011, 02:42:59 PM |
|
How to fix this error please ? Fatal error: Call to undefined function str_getcsv() in /home/user/public_html/bctest/bitcoinCharts.php on line 122
|
|
|
|
Xenland
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
August 06, 2011, 04:18:33 AM |
|
How to fix this error please ? Fatal error: Call to undefined function str_getcsv() in /home/user/public_html/bctest/bitcoinCharts.php on line 122 I dont use his software but it looks like you forgot to include() a file or require_once() a file either or should fix your prob
|
|
|
|
|
|