shaileshamb Posted November 10, 2010 Share Posted November 10, 2010 Dear Members, I am a PHP developer and desisgning a WAP page for mobiles.I need some php code to find out the model of a mobile phone from where request is coming so that based on that information I can upload the proper CSS for my page.If you can give me some hints as well that would also help me to proceed further.Currently I am able to fetch user-agent of mobile but not able to find out the specific model of mobile. Quote Link to comment https://forums.phpfreaks.com/topic/218258-php-code-to-find-out-model-of-a-mobile-phone/ Share on other sites More sharing options...
radar Posted November 10, 2010 Share Posted November 10, 2010 finding out the specific model number, unknown.... this might at least get you closer: http://mobiforge.com/developing/story/lightweight-device-detection-php Quote Link to comment https://forums.phpfreaks.com/topic/218258-php-code-to-find-out-model-of-a-mobile-phone/#findComment-1132518 Share on other sites More sharing options...
trq Posted November 10, 2010 Share Posted November 10, 2010 You might also want to checkout http://jquerymobile.com if your writing mobile apps for smartphones. It makes things so much simpler. Quote Link to comment https://forums.phpfreaks.com/topic/218258-php-code-to-find-out-model-of-a-mobile-phone/#findComment-1132521 Share on other sites More sharing options...
shaileshamb Posted November 10, 2010 Author Share Posted November 10, 2010 As I mentioned that I am able to detect the user agent of mobile but I need the model of the mobile. Is there any way to find out the model of the device? Quote Link to comment https://forums.phpfreaks.com/topic/218258-php-code-to-find-out-model-of-a-mobile-phone/#findComment-1132530 Share on other sites More sharing options...
trq Posted November 10, 2010 Share Posted November 10, 2010 As I mentioned that I am able to detect the user agent of mobile but I need the model of the mobile. Is there any way to find out the model of the device? The closest you'll get with php is to have a look within the $_SERVER array and see if anything is in there anywhere. otherwise, your going to need to prod around client side, PHP can't really help you. Quote Link to comment https://forums.phpfreaks.com/topic/218258-php-code-to-find-out-model-of-a-mobile-phone/#findComment-1132533 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.