Wap via PHP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Holger Kreißl

    Wap via PHP?

    Hi,

    i want to use php to create WAP files (XML). So I wrote a php script
    that gives back a WAP-XML-File.

    But is that possible or do I need a special server or filename for
    WAP-Files. I must use PHP because I want show some dynamic content..

    Maybe somebody tried the same thing and can give me some hints.
    At the moment my cellphone shows "connection error" only... :-/


    Best regards,
    Holger


    --

  • Tim Van Wassenhove

    #2
    Re: Wap via PHP?

    In article <cak1ge$sld$3@a nderson.hrz.tu-chemnitz.de>, Holger Kreißl wrote:[color=blue]
    > i want to use php to create WAP files (XML). So I wrote a php script
    > that gives back a WAP-XML-File.[/color]

    I presume you are creating WML files.
    [color=blue]
    > But is that possible or do I need a special server or filename for
    > WAP-Files. I must use PHP because I want show some dynamic content..
    >
    > Maybe somebody tried the same thing and can give me some hints.
    > At the moment my cellphone shows "connection error" only... :-/[/color]

    Your server has to send the right content-type. Or you could use the
    header function in php for that.

    --
    Tim Van Wassenhove <http://home.mysth.be/~timvw>

    Comment

    • Andrew

      #3
      Re: Wap via PHP?

      Yeah its easy, you've got the right idea, you need to tell the client what
      content type the document is, so use, "header("Conten t-type:
      text/vnd.wap.wml");"

      Also if you plan on naming the files .wml instead of .php you will need to
      configure your web server.

      Theres loads more and an example that works at:


      ~ANDY~

      "Tim Van Wassenhove" <euki@pi.be> wrote in message
      news:2j682pFu70 tpU1@uni-berlin.de...[color=blue]
      > In article <cak1ge$sld$3@a nderson.hrz.tu-chemnitz.de>, Holger Kreißl[/color]
      wrote:[color=blue][color=green]
      > > i want to use php to create WAP files (XML). So I wrote a php script
      > > that gives back a WAP-XML-File.[/color]
      >
      > I presume you are creating WML files.
      >[color=green]
      > > But is that possible or do I need a special server or filename for
      > > WAP-Files. I must use PHP because I want show some dynamic content..
      > >
      > > Maybe somebody tried the same thing and can give me some hints.
      > > At the moment my cellphone shows "connection error" only... :-/[/color]
      >
      > Your server has to send the right content-type. Or you could use the
      > header function in php for that.
      >
      > --
      > Tim Van Wassenhove <http://home.mysth.be/~timvw>[/color]



      Comment

      Working...