Click to See Complete Forum and Search --> : Web page on a Mobile phone (PHP)


hobnobLover
February 4th, 2008, 06:42 PM
Hi guys.

(Edit: Language using PHP).

I'd like to know what information a mobile phone would send to a web page when you visit that page on a phone.

For example, I visit some .php page, xyz.php from my mobile phone. I know I can use php to figure out if that page is being viewed from mobile phone or not. But what other information can I get? Does the phone send phone number, or some other type of ID associated with it?

Another question that's been driving me crazy:
Is it possible to get location of that phone? Meaning in a form such as "City, State, Country, Zip" or "Latitude, Longitude"?

Thank you very very much in advance! :)

- hobnobLover.
http://www.hobnobLover.com/
hobnobLover LLC.

PeejAvery
February 4th, 2008, 11:07 PM
The only information that PHP itself will give you would be the typical predefined variables. There are other classes and source code that you can use to find out more information. However, it is limited just as much as a regular computer would be.

hobnobLover
February 5th, 2008, 05:33 PM
Thanks. Do you know of any other language that might be more helpful than PHP to accomplish this task? (I'm not sure if Java is able to do so. I've never looked into that).

Thanks again. :)

PeejAvery
February 5th, 2008, 05:57 PM
Well, that would all depend on what platform you are attempting to utilize. I would not recommend Java for many reasons. The primary one is that you are talking mobile device. I don't even know if Java is a highly supported framework on mobile devices.

Either way, through the browser itself, you will not be able to acquire this information without some form of a plugin.