差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
start [2022/10/16 09:32] – ともやん | start [2023/09/10 13:25] (現在) – ともやん | ||
---|---|---|---|
行 136: | 行 136: | ||
====== Dokuwiki Top ====== | ====== Dokuwiki Top ====== | ||
<php> | <php> | ||
- | function curlGet($url) { | + | function curlGet($url, $referer='' |
$curl = curl_init(); | $curl = curl_init(); | ||
| | ||
行 143: | 行 143: | ||
curl_setopt($curl, | curl_setopt($curl, | ||
curl_setopt($curl, | curl_setopt($curl, | ||
+ | curl_setopt($curl, | ||
| | ||
$response = curl_exec($curl); | $response = curl_exec($curl); | ||
行 151: | 行 152: | ||
//$json = curlGet(' | //$json = curlGet(' | ||
- | $json = curlGet(' | + | //$json = curlGet(' |
- | $json = mb_convert_encoding($json, ' | + | //$json = curlGet(' |
+ | $html = curlGet(' | ||
+ | //$html = curlGet(' | ||
+ | $html = mb_convert_encoding($html, ' | ||
+ | preg_match_all('/ | ||
+ | $html = $matchs[' | ||
+ | $json = json_encode($matchs[' | ||
+ | //$json = json_decode($matchs[' | ||
//$usdjpy = json_decode($json, | //$usdjpy = json_decode($json, | ||
- | $usdjpy = json_decode($json, | + | echo '< |
- | $cnhjpy = json_decode($json, | + | echo 'var quotes = ' . $json . ';'; |
+ | echo '</ | ||
+ | $usdjpy = []; //json_decode($json, | ||
+ | $cnhjpy = []; //json_decode($json, | ||
+ | // | ||
+ | // | ||
+ | // | ||
// | // | ||
行 230: | 行 245: | ||
[[web: | [[web: | ||
の利用をお勧めします😉\\ | の利用をお勧めします😉\\ | ||
- | \\ | + | |
- | <wrap em> | + | |
- | ページによっては大量の出力結果を含むため、__レンダリング処理でプチフリーズ__します😱😇\\ | + | |
- | 快適に閲覧するには [[https:// | + |