PHP Classes

File: index.php

Recommend this page to a friend!
  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: 9 years 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>