codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $url="http://open2ch.net/dev/toukei.cgi?m=thread&d=2015-10-09&bbs=news4vip&sort=time"; //タイムオーバー防ぐ set_time_limit(0); //UAを設定 $options = array( 'http' => array( 'method' => 'GET', 'header' => 'User-Agent: test)',), ); //統計君取得 $context = stream_context_create($options); $contents = file_get_contents($url, false, $context); print("<meta charset=\"utf-8\">");//文字化けしないように print($contents);//表示
Private
[
?
]
Run code
Submit