PHP Script to get user's location

Sometimes it's necessary to know the location of the user. This is available through third party pay sites, but what if you have no budget? This is a quick little function that uses cURL to scrape a third party website to get information about a users's location.