梅雨真っ盛り

サーバ関係
PHPを使ってみる.
参考:
日本 PHP ユーザ会
携帯端末 – PHP Tips
ケータイWatch ケータイ用語: 第140回:クライアント認証 とは
PHP4徹底攻略改訂版のPDFファイル公開
auの端末からサブスクライバIDを使って,パスワード入力なしに認証する.

<?php
if( ereg( "UP.Browser", $_SERVER['HTTP_USER_AGENT'] ) )
{
$headers=getallheaders();
if( ereg( "xxxxxxxxxxxxx_xx.ezweb.ne.jp", $headers['x-up-subno'] ) )
{
// Ezweb用のページ
echo "<html>";
echo "<head><title>sample</title></head>";
echo "<body>";
echo "test";
echo "</body>";
echo "</html>";
// header("Location: index.html");
exit();
}
else
{
// その他端末用のページにジャンプ
header("Location: ../index.html");
exit();
}
}
else
{
// その他端末用のページにジャンプ
header("Location: ../index.html");
exit();
}
?>