×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    1

    server need support WAP ???

    I have a website by WML.I want to access my website by WAP . I want ask everybody
    Do My server need support WAP ?
    I sorry my english is very badly.!

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    5

    Smile Re: server need support WAP ???

    i dont think its possible to do it like this,

    WAP uses WML - Its a type of xml using cards.

    most newer mobile phones now support html and xhtml.

    its not quite clear what you want to do?

    if u have a server for the web on a computer that runs html

    and you want people who connect by phone to view the page you can use some PHP to check if they are using a phone and then send them pages that are suitable for their phone. alot of sites do it like this.

    http://mysite.com

    http://mobile.mysite.com

    they have two sub domains in 1 site. one in HTML and one in WML

    using a piece of PHP like this to decide on the target device.

    function detect_mobile_device()
    {
    if(stristr($_SERVER['HTTP_USER_AGENT'],'windows')&&!stristr($_SERVER['HTTP_USER_AGENT'],'windows ce')){
    return false;
    }

    if(eregi('up.browser|up.link|windows ce|iemobile|mini|mmp|symbian|midp|wap|phone|pocket|mobile|pda|psp',$_SERVER['HTTP_USER_AGENT'])){return true;}

    if(stristr($_SERVER['HTTP_ACCEPT'],'text/vnd.wap.wml')||stristr($_SERVER['HTTP_ACCEPT'],'application/vnd.wap.xhtml+xml')){
    return true;}

    if(isset($_SERVER['HTTP_X_WAP_PROFILE'])||isset($_SERVER['HTTP_PROFILE'])||isset($_SERVER['X-OperaMini-Features'])||isset($_SERVER['UA-pixels'])){
    return true;}

    $a = array('acs-','alav','alca','amoi','audi','aste','avan','benq','bird','blac','blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno','ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-','maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-','newt','noki','opwv','palm','pana','pant','pdxg','phil','play','pluc','port','prox','qtek','qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar','sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-','tosh','tsm-','upg1','upsi','vk-v','voda','w3c ','wap-','wapa','wapi','wapp','wapr','webc','winw','winw','xda','xda-');
    if(isset($a[substr($_SERVER['HTTP_USER_AGENT'],0,4)])){
    return true;}

    }

    if(detect_mobile_device()){
    header('Location: http://mobile.mysite.com/');
    exit;
    }

    if(!detect_mobile_device()){
    header('Location: http://mysite.com/');
    exit;
    }
    Last edited by stevenmartin99; 2008-02-11 at 05:59.

Similar Threads

  1. Server socket support (Nokia 6600 in particular)
    By es_nokia in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2003-12-04, 23:23
  2. setting up WAP server problems
    By cyntellitek in forum WAP Servers
    Replies: 1
    Last Post: 2003-03-28, 06:39
  3. Wap server -
    By kathy1234 in forum WAP Servers
    Replies: 1
    Last Post: 2002-09-16, 13:14
  4. require the Nokia WAP server 1.1???
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-15, 20:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×