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.
Here's an extremely basic tutorial if you're just starting with PHP and mySQL. You will be able to complete your first app, even if you know absolutely nothing about PHP and mySQL.