×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    1

    wml + php failure

    Hi all, got a problem with my wml + php.

    Im testing it on Nokia E51, and the error is " Content-Type not supported... "

    here is the code: Home.php

    <?php
    session_start();
    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\">";
    require_once("../Common/Session.php");
    require_once("../Common/LogToDatabase.php");
    ?>
    ....

    I've tried removing the HEADER and it worked fine, but my links were seen as plain text.
    Any1 got an idea what it may be ????

    Thx in adv, bye.

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,098

    Re: wml + php failure

    Hello,

    On the web server side, check configuration is correct for mobile MIME types.
    If you do not have access to the web server, then it's a problem ofcourse.

    Background:

    Mobile browser uses MIME type in finding out should the web file should be browser viewed or should it be launched by phone UI / by native app (e.g. video in video player).

    Apache, IIS...? different methods.

    Example Apache:

    Code:
    Here is an example .htaccess configuration file that adds support for mobile MIME types.
    
    # Add Mobile MIME types for xhtml, wml, wbmp and wmls file extensions
    AddType application/vnd.wap.xhtml+xml .xhtml
    AddType text/vnd.wap.wml .wml
    AddType image/vnd.wap.wbmp .wbmp
    AddType text/vnd.wap.wmlscript .wmls
    Example IIS:

    http://technet.microsoft.com/en-us/l...08(WS.10).aspx


    Cheers,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

Similar Threads

  1. Can't link PHP to WML
    By vreinsch in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2007-04-22, 12:51
  2. PHP to WML problem
    By dermeister666 in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2006-12-30, 18:15
  3. php functions in wml cards
    By gwalkiden in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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