Can I use PHP for a mobi site?
I have been doing some research on mobile websites, and thus far i开发者_C百科t 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?
PHP is server side language, your server has to be support for it. handsets should support html or whatever you output with php.
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.
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.
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.
精彩评论