WML + PHP? HOW!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
guest
Forum Commoner
Posts: 25
Joined: Sat Nov 22, 2003 11:50 pm

WML + PHP? HOW!

Post by guest »

How Do You Configure An Apache Server To Support PHP Scripts Which Will Generate And Show WML?
Content-Type: text/vnd.wap.wml
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Not sure here, but would you not be using an xml content type rather than the one you have?.
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Second thoughts, if that does not work then perhaps you could use an AddType directive within the Apache configuration?. Perhaps you should add:

application/x-httpd-php .wml ???
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

there's nothing you really should have to do as long as you send the right headers back to the client.. header()
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

According to wikipedia, you need a WAP gateway ?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

anjanesh wrote:According to wikipedia, you need a WAP gateway ?
No, the WAP gateway is something that the phone company runs. It's rather like a proxy. You connect to it from your WAP phone, then any requests you send go from your phone, to the gateway, and then to the web server.

This is a really good book about it: http://www.amazon.com/exec/obidos/tg/de ... 0?v=glance

And I'm not just saying that because my name is in the credits for it (I tech review'd it). ;)
Post Reply