473,398 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

PHP On mobile (Getting mobile model number)

Hi All,

I am developing a mobile application using PHP and XHTML for mobile.

In this application I am just counting number of downloads and after each hit I am making an entry in Mysql database. Its working fine up to this point.

Next I want is my "Java application" which I am allowing users to download should get downloaded only on supported handsets. I don't know how to identify the Model Number of mobile handset which is accessing my page.

Can any one help me on this?

Thanks in advance.
May 27 '08 #1
2 3256
hsriat
1,654 Expert 1GB
Oh, thats a never thought about and never expected question.

So, do one thing. Save a PHP file as [php]echo "<pre>";
print_r($_ENV);
echo "<pre>";[/php]on the server and open it in the mobile's browser.
See if there's any valid information for you.
May 27 '08 #2
I have already tried the same.

I can fetch the mobile model number from the HTTP_USER_AGENT string. I have tested it successfully in Nokia N70 and SonyEricssonK750i. In both cases I can get "NokiaN70-1/3.0546.2.3 Series60/2.8 Profile/MIDP-2.0 Configuration/CLDC-1.1" and "SonyEricssonK750i/R1L Browser/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1" as a HTTP_USER_AGENT strings respectively.

But the problem is yet in Nokia E50 mobile with Symbian OS I cant get the model number included because its uing Firefox as web browser. The string I got is "Mozilla/5.0 (SymbianOS/9.1; U; en-us) AppleWebKit/413 (KHTML, like Gecko) Safari/413 es50".

I am unable to find any full proof method to detect mobile model number.

If there is any way by which I can fetch model number then let me know.
May 27 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
1
by: Jose Gonzalez | last post by:
How to apply a numeric format to a textbox using xhtml? I know you have to use the "-wap-input-format" style tag in css. I can get this to work in a regular xhtml page, however, I've been...
5
hussaini
by: hussaini | last post by:
Hello guys i have problem i have mobile NEC model number is e228 i have make security lock my friends try to unlock the mobile but to mobile is hasbeen block so can any 1 help me reply me or mail me...
0
by: Brunda | last post by:
Hi , Can any of u guide me in getting the following information 1) The browsers used in mobile devices(default browsers) 2) whether it supports xHTMl/WML and if yes then which versions of...
5
by: rn5a | last post by:
I've come across numerous mobile phones with which ASP.NET pages can be accessed on the Internet. Then why has Microsoft developed a separate programming model to create ASP.NET apps for mobile...
1
by: Duncan | last post by:
Hi all, I'm tearing my hair out on this! I have a simple ASP.NET 2 page with a TextBox control, in the PreRender I set ClientSide events:- Response.Attributes.Add("onchange",...
1
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site...
7
by: cj2 | last post by:
I saw a MS demo a few years back where they developed a web page and the software automatically rendered it for different devices. Is this what I'm looking for? http://www.asp.net/mobile/ ...
4
by: karthisargunan | last post by:
Hello, I am developing the project of "Employee Information System" using C language, In this project i want to add the mobile number for the each employee {Each Mobile number having 7...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.