新石器Wiki

近年はシリコン(石)から進化した便利なもので溢れる時代。そんな気になった事や試した事など記す。

ユーザ用ツール

サイト用ツール


sidebar


差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
sidebar [2019/03/24 09:10] – 外部編集 127.0.0.1sidebar [2019/06/01 13:23] – [参考] yoko
行 26: 行 26:
 <html> <html>
 <!-- IPv6-test.com button BEGIN --> <!-- IPv6-test.com button BEGIN -->
-<a href='http://ipv6-test.com/validate.php?url=referer'><img src='http://ipv6-test.com/button-ipv6-80x15.png' alt='ipv6 ready' title='ipv6 ready' border='0' /></a>+<a href='http://ipv6-test.com/validate.php?url=referer'><img src='https://www.yokoweb.net/dokuwiki/_media/button-ipv6-80x15.png' alt='ipv6 ready' title='ipv6 ready' border='0' /></a>
 <!-- IPv6-test.com button END --> <!-- IPv6-test.com button END -->
 </html> </html>
 +<php>
 + $remote_ip = $_SERVER['REMOTE_ADDR'];
 + $result = 'connected: via IPv4';
 + if ( FALSE !== strchr( $remote_ip, ':' ) )
 + {
 +   $result = 'connected: via IPv6';
 + }
 + else
 + {
 +   $result = 'connected: via IPv4';
 + }
 + echo $result;
 +</php>
  
 - - - - - -
  
  
sidebar.txt · 最終更新: 2021/03/26 16:57 by yoko