PHP
  Home arrow PHP arrow Using Code Igniter to Build an IP-to-Country Mapping Application
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

Using Code Igniter to Build an IP-to-Country Mapping Application
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 2
    2009-02-24


    Table of Contents:
  • Using Code Igniter to Build an IP-to-Country Mapping Application
  • Review: Building dynamic web pages in distinct languages using the iptocountry MySQL table
  • Building a simple IP-to-country mapping application with the Code Igniter framework
  • Finishing the IP-to-country mapping application

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Using Code Igniter to Build an IP-to-Country Mapping Application
    ( Page 1 of 4 )

    Adding geo-location capabilities to a web site isn’t too hard; it’s possible to develop an IP-to-country mapping program with PHP, which can be incorporated into a site in a few easy steps. If you’re interested in learning how to build this application, then keep reading. This is the final installment of a four-part series that covers developing an IP-to-country mapping application with PHP.

    Introduction

    As you would expect, this series walks you through building an IP-to-country lookup table with MySQL, and teaches you how to take advantage of its functionality for creating different IP mapping web-based programs.

    Speaking of web-based programs, you may recall that in the previous part of the series, I explained how to use the IP-to-country lookup MySQL table for generating web pages in different languages.

    Speaking more specifically, I created two sample applications with PHP. The first one was capable of constructing dynamically a hypothetical "products" web page section, based on the countries from which the page was being accessed, while the second example demonstrated how to build entire web documents.

    So far, you shouldn't have major problems understanding how these two sample applications were developed, since the logic implemented by them was very simple to follow. However, I have to admit that these examples were pretty primitive and certainly can stand some improvement before being used in production environments.

    With that idea in mind, in this final chapter of the series, I'll be discussing how to build multi-lingual web pages by combining the functionality brought by the "iptocountry" MySQL table that you learned in previous tutorials and the power of the Code Igniter PHP framework.

    Now that you know what to expect from this article, it's time to move forward and learn how to use Code Igniter to generate dynamic web pages in different languages. Let's go!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek