Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Anish Karim C  >  Ip2Country  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example Script.
Class: Ip2Country
Detect the country and region of an IP address
Author: By
Last change:
Date: 8 months ago
Size: 231 bytes
 

Contents

Class file image Download
<?php
error_reporting
(E_ALL);
include 
'ip2Country.class.php';
$region = new ip2country();
?>
<html>
  <body>
    <h3>Hello</h3>
    <h4>You are from <i><?php echo $region->getRegion(); ?></i> region</h4>
  </body>
</html>