tags:

views:

97

answers:

4

Hi guys, I have been doing some research on mobile websites, and thus far it seems to me that PHP is not supported by most handsets.

I am trying to create multiple form's that lead up to a auto email response, which would be fairly simple if I could use PHP.

Is there any other way of achieving this?

+7  A: 

PHP is server side language, your server has to be support for it. handsets should support html or whatever you output with php.

Lauri
Oh ok, I see what you mean!
+3  A: 

PHP is usually executed on the server, not the handset itself, so the question is more if your PHP spits out HTML unsuited for a handset.

Johann Gerell
Cool, thanx for the info! It makes much more sense now.
A: 

Have a read up on the basic request/response cycle for a web page.

Assuming by "mobile website" you mean "a normal website that is tailored for display on a mobile device" the answer is that PHP runs on the server not the client, the client only displays HTML given to it by the server.

Paolo
Yeah basically.Will do, thanx for the info.
+1  A: 

Yes - its perfectly possible to write WML using PHP, only vaveat is that you need to add a custom header to set the mimetype if your default behaviour for PHP files is to return text/html. And, of course you need to understand WML - which is quite different from HTML.

These days a lot of handhelds can now cope with HTML although don't expect javascript.

PHP is not supported by most handsets

Eh? What's that got to do with it? PHP runs on the server - not on the client.

C.

symcbean
That is what I read on a few forums actually, no jokes, but now that you've all cleared that up for me, I don't know how the heck they could ever have said something like that, next time I'll just post the question on SO first!