mysql:4483
From: 楠吉彦 <楠吉彦 <moredebu@xxxxxxxxxx>>
Date: Sat, 13 Oct 2001 17:17:08 +0900
Subject: [mysql 04483] imode の機種の判定
質問 imode からのアクセスを振り分けたいのですが
imode はスクリプトは動かないし、metaも使えないので
表示だけしていますが何か方法はないでしょうか。
strrpos の戻り値はint だと思うのですが下のように
0が戻ってきます。このような評価式でいいのでしょうか
<?php
$gev =getenv(HTTP_USER_AGENT);
echo "$gev";
$iMode = strrpos($gev,"DoCoMo");
echo " i は $iMode";
if ($iMode != '0') {
//PC用URL
echo "<META HTTP-EQUIV=\"REFRESH\"CONTENT=\"1;URL=http://www.my-drug.c
om/xxx_pc.php3\"> ";
} else {
//i-mode用URL
echo "<a href=\"http://www.my-drug.com/xxx_i.php3\">go</a>";
}
?>
楠吉彦 もあでぶ moredebu
email: moredebu@xxxxxxxxxx
Homepage: http://www.my-drug.com
-> 4483 2001-10-13 17:17 [楠吉彦 <moredebu@xxx] imode の機種の判定 4484 2001-10-15 12:28 ┗["f.t" <fujiyama@xxxx] 4485 2001-10-15 13:04 ┗[楠吉彦 <moredebu@xxx]