Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003

    Nokia 7210 simulator and PHP


    I use a 7210 simulator, apache web server and want to generate
    wml using php4. I can browse a wml file but have problem in php.
    (I already add the content type of php, wml to apache and
    is able to exec php from web browser. Also, the Nokia
    Mobile Internet Toolkit is running)

    1. My script is as follow:
    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\">";
    <card id="hello">
    echo date("m/d/Y"
    When I browse using 7210, it return "No response try again"
    and the Mobile Toolkit response : Error 415 : "Unsupported Media"

    2. Do I really need to run Mobile Toolkit with 7210 to browse
    a php script?

    3. Should I use the "File|Open" in 7210 to point to the php file?
    Why I can only access the file using
    but not
    http://localhost/wap/date.php => Page not found
    Is it something have to config?

    Thank you very much

  2. #2
    Registered User
    Join Date
    Mar 2003

    RE: Nokia 7210 simulator and PHP

    1. You need to use \ to escape the double quote surround "1.0"

    2. 7210 Simulator need to access WAP Server in Moblie Toolkit 3.1 for compiling wml to wmlc.

    3. You can check whether the Apache is configured properly by using Internet Explorer to access http://localhost/wap/date.php

  3. #3
    Registered User
    Join Date
    Mar 2003

    RE: Nokia 7210 simulator and PHP

    [Sorry - this is more of a comment than an answer]

    I have had similar response (Error 415 : "Unsupported Media&quot from a PHP script that generates a response with a GIF image.

    If I change the GIF to a WBMP everything is fine... BUT I have managed to get GIFs working with the same script.

    Also, if I request the image by itself, rather than from a WML deck, I can receive it with no problems.

    I am using a Waplite gateway and it *does* work with a T68i -- sorry Nokia, I am hoping it is just the Toolkit

Posting Permissions

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