File: example.php

Recommend this page to a friend!
  Classes of Khoa Bui  >  PHP Detect Country and City  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: PHP Example
Class: PHP Detect Country and City
Get the current user location using
Author: By
Last change: Update Example
Date: 6 years ago
Size: 568 bytes


Class file image Download
 * Website
 * Author:
 * Any bugs, question, please visit our forum at

// Required Libraries

// New Class
$_ip = new ip_codehelper();

// Detect Real IP Address & Location
$real_client_ip_address = $_ip->getRealIP();
$visitor_location = $_ip->getLocation($real_client_ip_address);

// Output result
echo $visitor_location['Country']."<br>";

For more information send a message to info at phpclasses dot org.