尝试卷曲此网站但没有输出。为什么这不起作用?
<iframe id="forum_embed"
src="javascript:void(0)"
scrolling="no"
frameborder="0"
width="900"
height="700">
</iframe>
<script type="text/javascript">
document.getElementById('forum_embed').src =
'https://groups.google.com/forum/embed/?place=forum/democracyfoundation'
+ '&showsearch=true&showpopout=true&showtabs=false'
+ '&parenturl=' + encodeURIComponent(window.location.href);
</script>
谢谢大家
答案 0 :(得分:0)
为什么输出?你没有做任何回应:/
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.paribu.com/ticker");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
// enable curl error reporting
$result = null;
if ($errno = curl_errno($ch)) {
$error_message = curl_strerror($errno);
echo "cURL error ({$errno}):\n {$error_message}";
} else {
// all good, decode the response
$result = json_decode($output);
}
// Close the handle
curl_close($ch);
// echo something from it
if (isset($result->BTC_TL->last)) {
echo $result->BTC_TL->last;
}
如果它仍然无效或引发错误,请启用PHP错误报告。