zgkhoo Posted September 25, 2007 Share Posted September 25, 2007 hi, may i know how to write a wap and php website that share same mysql database? can wap and php integrated in same page or need different page *.wml and *.php pages? any good tutorial for this ? thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/ Share on other sites More sharing options...
zgkhoo Posted September 25, 2007 Author Share Posted September 25, 2007 no ppl know? ??? ??? Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-355023 Share on other sites More sharing options...
rarebit Posted September 25, 2007 Share Posted September 25, 2007 Your best off setting your mime types so that php is interpreted in html files, like this in apache 'AddType application/x-httpd-php .php .phtml .html'. Then you need to be using outputting 'httpd 1.0' if I remember correctly, or wml, hdml, etc... Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-355073 Share on other sites More sharing options...
zgkhoo Posted September 26, 2007 Author Share Posted September 26, 2007 convert php to wml?? or need write another system for wml? in the end one php system and one wml system...? Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-355626 Share on other sites More sharing options...
rarebit Posted September 26, 2007 Share Posted September 26, 2007 I was assuming you understood that php is used as a serverside script which outputs data which is sent back to the client. Depending on what you tell php to output will become what will be, whether it's html, wml, xml, etc... Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-355662 Share on other sites More sharing options...
jaymc Posted September 26, 2007 Share Posted September 26, 2007 Basically just tell apache to parse phpcode thats in side your .wml files Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-355672 Share on other sites More sharing options...
zgkhoo Posted September 26, 2007 Author Share Posted September 26, 2007 any tutorial abt it? or wat words should i type in google aim to research it? thanks. Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-355763 Share on other sites More sharing options...
rarebit Posted September 26, 2007 Share Posted September 26, 2007 Basically just tell apache to parse phpcode thats in side your .wml files See 'reply#2' and just add .wml to the list... or did you mean php or wml??? Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-355767 Share on other sites More sharing options...
zgkhoo Posted September 27, 2007 Author Share Posted September 27, 2007 wat i wan is wanna builld one php and also allow mobile phone user log in using wap... Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-356154 Share on other sites More sharing options...
trq Posted September 27, 2007 Share Posted September 27, 2007 As has been explained, php runs server side, browsers (and specifically wap browsers) are client side. PHP can ouput wml (a markup language) just as easily as it can html (the most common markup language). Your question really isn't php related. Quote Link to comment https://forums.phpfreaks.com/topic/70585-wap-and-php-how-to/#findComment-356166 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.