By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,350 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,350 IT Pros & Developers. It's quick & easy.

Wap via PHP?

P: n/a
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
--
www.kreissl.info
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <ca**********@anderson.hrz.tu-chemnitz.de>, Holger Kreißl wrote:
i want to use php to create WAP files (XML). So I wrote a php script
that gives back a WAP-XML-File.
I presume you are creating WML files.
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... :-/


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>
Jul 17 '05 #2

P: n/a
Yeah its easy, you've got the right idea, you need to tell the client what
content type the document is, so use, "header("Content-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:
http://www.confusedgeeks.com/showthread.php?t=36

~ANDY~

"Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:2j************@uni-berlin.de...
In article <ca**********@anderson.hrz.tu-chemnitz.de>, Holger Kreißl

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


I presume you are creating WML files.
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... :-/


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>


Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.