Warning:file_get_contents(http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast)[ function.file-get-contents]:无法打开流:HTTP请求失败!在上线/home/content/93/11389393/html/white/bet_gg.php 286file_get_contents(http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast)[function.file-get-contents]:无法打开流:HTTP请求失败
$grabPrice = file_get_contents('http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast');
$data = json_decode($grabPrice);
$current_price = $data->data->last_local->value;
有你想获得一个解释的东西吗? – mario
您需要提供更多信息。这个请求适用于'PHP 5.3.15 with Suhosin-Patch(cli)(built:Aug 28 2012 18:19:13)' – SheetJS
在您的PHP设置中是否启用了allow_url_fopen? –