#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    Hi, i am new here using wml to do a wap page, i have some question hope someone can help...please

    1) i have created first page for wap page and will let user to key in a search str, then, i try to create a do the link to a file call run.php, can it be run? or it is nessecely to be run.wml. But i am using php script to process it...

    2) How is the overall structure on page and file relationship in order to do a wap processing page....

    I hope someone can help me.......thank you very much
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    15
    You can use a php extension.
    I don't understand your second prob.


    ------------------
    Sglane
    sglane@yahoo.com
    ICQ : 16225268
    Yahoo! : sglane
    "Save trees, eat beaver."
    <?y!php3++??>
    http://www.directnic.com/
    http://www.fastband.net/~gabe/
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    Hi, thanks for your reply...

    The second pro is:

    Is there a need to create a different wml deck id? Can i use a create.php file to create a wml file which the deck id is same...
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    15
    If you have more than one card in a deck, you need unique card id's. The deck names can be the same across the site.

    One more thing, is english your primary language?

    ------------------
    Sglane
    sglane@yahoo.com
    ICQ : 16225268
    Yahoo! : sglane
    "Save trees, eat beaver."
    <?y!php3++??>
    http://www.directnic.com/
    http://www.fastband.net/~gabe/
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    I had tried to put the file(.htaccess) with the code below into cgi-bin which the search.cgi is located.

    AddType text/vnd.wap.wml wml cgi
    AddType image/vnd.wap.wbmp wbmp
    AddType text/vnd.wap.wmlscript wmls
    AddType application/vnd.wap.wmlc wmlc
    AddType application/vnd.wap.wmlscriptc wmlsc

    BUT, the problem still cannot be fixed?
    It prompt the error message:-
    Unsupported Content-type: text/html

    why? Am i put the file wrongly or the code inside .htaccess??

    Can please help, this is urgent....thanksssss

    ***I use search.cgi to process a search in wap....
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    2
    Rep Power
    0
    Hi,
    I'm using ASP on 2000 Server to generate database driven WML pages. Your problem is b/c you didn't set the MIME type of the page to text/wml or the other type (you mentioned b4). You should either set the extension pf your generated file to be of that MIME type, or set the type inside every page. I know how to do it in ASP, not in php, but the idea is the same.

    ------------------
    Nir.
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    2
    Rep Power
    0
    hi,

    I have a site developed on ASP and Nt platform . now I want to send an SMS based on some database trigger(SQl7.0)
    my question is: how do u send the phone no or carrier name to WAP gateway.

    a sample code would be helpful

    thanks


    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by nir211:
    Hi,
    I'm using ASP on 2000 Server to generate database driven WML pages. Your problem is b/c you didn't set the MIME type of the page to text/wml or the other type (you mentioned b4). You should either set the extension pf your generated file to be of that MIME type, or set the type inside every page. I know how to do it in ASP, not in php, but the idea is the same.

    [/quote]

  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    2
    Rep Power
    0
    HI,

    Sorry, but I'm currently looking for material on this matter (SMS and other push technology). You seem to have some basic knowledge, can you point me to resources on utilizing SMS through servers?

    Thanx.



    ------------------
    Nir.
  16. #9
  17. No Profile Picture
    ...try and try again
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Lake Forest, CA, USA
    Posts
    182
    Rep Power
    15
    Here's how you send the Content-type in php.

    <?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">");

    ?>


    Hope it helps,

    Sharky

IMN logo majestic logo threadwatch logo seochat tools logo