Popular posts from this blog
How to create a virtual host in ubuntu?
When you are used to running your websites in windows envirnment, it can be a bit of pain to suddenly switch in to linux. This post will guide you towards setting up a virtual host in ubuntu. 1. Enable the virual host module and restart apache. sudo a2enmod vhost_alias sudo /etc/init.d/apache2 restart 2. Goto to /etc/apache2/sites-available directory and create a copy of the default file with the name of the virtual host you would like to create. In this case the virutal host is "my-first-host.com". cd /etc/apache2/sites-available/ sudo cp default my-first-host.com
Getting latitude, longitude, timezone using ip address.
This is a post to find the latitude, longitude, timezone, country, city and so on using the web services/api by ipinfodb. The ipinfodb provides api in both xml and json format. We can use either of them. I will show you how to use it for both formats. Using XML format: You can either register for api key from ipinfodb. I am using mine in this example.

Comments
Post a Comment