#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    18
    Rep Power
    0

    How to get user info


    Hey,

    I own a wapsite (as you may have guessed) and I want to have a page where I display device info to the user. I know how to get the gateway IP and browser, but does anyone know how to get the sim card's unique ID (i.e. MMS-00000000_vcs-fmagdisp000.london.02.net) and the user's unique IP?

    Thanks
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    4
    Rep Power
    0
    The ip u can get with this php file:
    PHP Code:
    <?php 
    header
    ("Content-Type: text/vnd.wap.wml"); 
    echo 
    "<?xml version=\"1.0\"?>"
    echo 
    "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" 
    \"http://www.wapforum.org/DTD/wml_1.1.xml\">"


    echo 
    "<wml>"
    $ups=getenv("REMOTE_ADDR"); 
    echo 
    "<card id=\"start\" title=\"IP\"><p>Ihre IP-Adresse:$ups</p></card>"
    echo 
    "</wml>"
    ?>
    so long
    Sevenger
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    1
    Rep Power
    0
    Try using this, this is the closest I have got to getting user ID:

    $subno = getenv('HTTP_X_UP_SUBNO'); // most operators send something.

    echo"$subno"; // print it etc

    Shame we cant get a telephone number though.

    Goodluck

IMN logo majestic logo threadwatch logo seochat tools logo