Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
8543980
Topic
48926
Board
Project Development
Re: PHP code for current Bitcoin price on your website
by
Bitsky
on
26/08/2014, 18:01:21 UTC
Quote from: jon@bitcoinads.com on August 26, 2014, 04:02:39 AM
file_get_contents('
http://api.bitcoincharts.com/v1/weighted_prices.json');
If you're running a distro with SELinux, you need to set the boolean for httpd_can_network_connect to on
Quote from: jon@bitcoinads.com on August 26, 2014, 04:02:39 AM
curl
http://bitcoincharts.com/t/weighted_prices.json
This ends in a 404. Use -I to check return codes.