<html> <head> <title>ユーザーエージェントを表示</title> </head> <body> <center> あなたのユーザーエージェント<br> <?php echo $_SERVER["HTTP_USER_AGENT"]; ?> </center> </body> </html>