views:

26

answers:

2

Hi all,

Generally when we are using GPRS connection , the request will be sent to appropriate host as a http(s) request . In receiving side ( PHP ) , we are able to get the IP address using $_SERVER or $_REQUEST variable . Like that is there any way to get the mobile number that means from which mobile number request being given. Can any one help me out of this problem....

Thanks

+2  A: 

No you cannot get the mobile number. Http does not know about the GSM client that is your mobile phone. Even the mobile does not have an IP, the IP you're getting is the IP of the GPRS gateway of the telecom service provider of the mobile SIM card.

Only way out is to prompt the user to input his mobile number and trust the user for he has given correct mobile number and get that mobile number from Http-GET or Http-POST at your server-side.

this. __curious_geek
Can we get the mobile number from mobile , with out prompting the user..
pavun_cool
No not possible. This will never be possible over plain Http.
this. __curious_geek
+1  A: 

Nope. You cant get any phone number information of any 3G or GPRS device. Cellular service provides not gives this data.

Osman Üngür