Is there is any way to get users location by IP address? - php

Is there any kind of API or third party service that provides users location (state/city) as return value by submitting IP Address ??

This form of IP lookup is called Geolocate by IP. Try Googling for this and you will find a bunch of different companies offering the service either Paid or Free.
From my experience, if you want to get an accurate lookup, you will need to pay. If you don't mind the service to be off (quite often), then go with the free.
Maxmind seems to be the leader in this domain.

You can use this website or download the database to use it the way you want
Another webiste (Free)

You'd need to us an IP to Location geolocation service. This is an example : http://www.maxmind.com/app/city
There is also a free version that doesn't give a precise location - http://software77.net/geo-ip/

Related

Google Analytics - suburb location

Hi I have implemented google analytics on to my website. However it only shows the location of visitors on the country, state and city level. How do I get it to show the visitors location drilling down to suburb level?
Is it a special code I need on my website or some settings I need to do on my account or something I have to pay for ?
Thanks so much for the help!
Google Analytics' accuracy will very often be the best you can get.
There is HTML5 Geolocation (more detailed introduction here) which can be more accurate, down to several feet if the user's machine has a GPS device. However, this kind of geolocation requires the user's explicit permission.

Redirect mobile users based on country and carrier

Anyone knows a easy way preferably PHP to achieve this. I want to redirect mobile visitors based on their country and carrier (like T-mobile or Vodafone). Thanks in advance
There is a HTML5 Network Information API:
http://dvcs.w3.org/hg/dap/raw-file/tip/network-api/index.html
Not sure if you can get Carrier information though but I know some Carriers offer HTML5 API's of there own that you might take advantage of:
http://developer.att.com/developer/forward.jsp?passedItemId=9700222
Also there is a HTML5 Geolocation API
http://dev.w3.org/geo/api/spec-source.html
More Examples:
http://www.html5rocks.com/en/mobile/optimization-and-performance/
As for a PHP solution you could do a carrier lookup, there are no free solutions but you can try something like this:
http://www.data24-7.com/carrier24-7.php
But for this to work you would need to obtain the users phone number which:
HTML5 thankfully can not
PHP thankfully can not
The user would have to manually enter the number or develop a native app which would have access to the device number

Single Sign-on or login via in PHP

Which is the simplest and best free tool(php) that provides "single sign-on" i.e login via many sites.
It should provide me basic details of users like name dob, location etc. It should be completely free irrespective of site traffic. It should have facebook, twitter, google
Following are the reliable and/or viable and very simple to implement solutions
https://www.simpleauth.com/
https://rpxnow.com/signup_landing_basic (free basic version)
http://openid.net/developers/
http://www.gigya.com/public/platform/Register.aspx (not free)
If you want all in one, than OpenID is your solution. OpenID's free service is shared service. Users must have OpenID account first to be able to login with this service.
If you don't want shared option, if you want this SSO (Single Sign On) service only for your own use then OpenID provides paid service. It was $0.25 per user last time I checked.
This means if everyday 100 new members will register to your websites (considering few websites, it should be the minimum), you will have to pay $25 every day to OpenID.
SSO is very useful technology. You can either create your own or go with paid services. Free services for sure will be shared. If you want to create your own, security measures must be first priority.
OpenID is extremely well know, or Facebook since it has so many users :)
Facebook... This will become your drivers license of the internet btw :P

trying to find a web service

i am trying to find a web service that allows a user to send a company name (or better still will return a list of all company names, thus allowing the user to select one) and then get the share price, this will then feed in to another api - yahoo currency converter to work out the price of the share
the issue i am having is that i cannot find a web service to get share info, google registration for theres does not seem to be working and as such i dont no what to do
i am to be coding this in php
if anyone could point me to a good web service i would appreciate it
thanks
edit : i did find this but am unsure if it is appropriate http://www.xignite.com/xGlobalQuotes.asmx?WSDL
How about:
http://www.sharepricewebservice.co.uk/
They get their data from Yahoo Finance, so I'm sure Yahoo would have an API somewhere. This page may help: http://developer.yahoo.com/finance/

Google Map with php mysql

my problem is i want to show my registered site user on to google map but dont know how to locate the user, means i dont know the latitude and longitude of every user . I am a newbie in google map so plz help
Thanks a ton
What location data do you have for your users? Cities, states, countries?
You might want to have a look at Google's Geocoding APIs.
there are two possible ways of doing this.
Ask the user to search a google map and place themselves on it. Look here for an idea on how to do this http://www.designing4u.de/2008/08/google-maps-jquery-and-xml-saving-markers-with-user-input/
Use an IP to Location database to find out the location based on their IP. Look here for how to do this http://www.ip2nation.com/ip2nation
There is no way to reliably locate a user using their IP address. However if you are developing for a mobile device it may be possible to acquire their GPS coordinates. Or you could require them to enter an address and place a point on the map from that address with geocoding.
If you are collecting the address of each registered user, you can get the latitude and longitude on the server-side through the Google Maps HTTP Geocoding Service.
You would use the following HTTP request:
http://maps.google.com/maps/geo?q=Oxford+Street,+London&output=csv&sensor=false
Simply change the q parameter with your user's address.

Categories