PHP
  Home arrow PHP arrow Generating Web Pages in Multiple Languages with a PHP 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

Generating Web Pages in Multiple Languages with a PHP IP-to-Country Mapping Application
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 4
    2009-02-18


    Table of Contents:
  • Generating Web Pages in Multiple Languages with a PHP IP-to-Country Mapping Application
  • Review: building IP-to-country mapping applications
  • Building web pages in different languages
  • Building a simple front controller

  • 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


    Generating Web Pages in Multiple Languages with a PHP IP-to-Country Mapping Application
    ( Page 1 of 4 )

    If you’re a PHP developer interested in learning how to develop an IP-to-country application that can be integrated into any existing web site, then look no further. Welcome to the third part of a series on developing an IP-to-country mapping application with PHP. Made up of four approachable tutorials, this series teaches you how to create a program like this by using a single MySQL lookup table, and shows you how to use this program to enrich your own web sites with geo-location capabilities.

    Introduction

    Undeniably, an IP-to-country mapping program is a great add-on for web sites that need to deliver their contents in a multi-lingual platform. However, building an application like this with PHP (or with any other programming language) can be a challenging task, particularly for those PHP programmers making their first steps into the terrain of professional web development.

    Now that you're aware of the subject covered by this group of articles, it's time to quickly review the previous tutorial. In that particular article I explained how to take advantage of the functionality of the "iptocountry" mapping MySQL table, in order to build a couple of simple PHP applications.

    In that specific case, these applications were capable of determining from which countries users were accessing a sample web page, based on their corresponding IP addresses. The first of these programs was developed by using a procedural approach, while the second one was constructed by mean of the object-oriented paradigm.

    Nonetheless, having at our disposal this useful MySQL mapping table makes it much easier to build all sorts of IP-to-country applications. Based on this concept, in this third part of the series I'll be discussing how to dynamically generate web pages in distinct languages, something that can be particularly interesting if you're planning to deliver the contents of your web site in a multi-lingual fashion.

    Thus, it's time to get rid of the preliminaries and start learning how to build these dynamic web pages with PHP. Let's get going!



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

       

    PHP ARTICLES

    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - 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





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