$ip=getenv('REMOTE_ADDR'); $host=getenv('REMOTE_HOST'); echo ""; echo "あなたの"; echo "IPアドレスは $ip"; echo "HOST名は $host"; echo "です。"; ?>