Sometimes you need to redirect visitors based on the country they come from. Maxmind provides a great country/IP address database in binary format. The following example will show you how redirect visitors from countries which are not on the “whitelist”. Continue reading How-to use maxMind GeoIP for websites
Category: PHP code
Find on this website a number of PHP code snippets and custom functions. The code snippets will show you common functionality in PHP and MySQL packed mostly in functions or in easy to use and well commented code blocks. You’re welcome to post all your comments, suggestions and questions.
Find more tutorials on the Web Development Blog.