Login   Register  
PHP Classes
elePHPant
Icontem

File: example-ipsniffing.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Girish M. Nambiar  >  IP Sniffing  >  example-ipsniffing.txt  >  Download  
File: example-ipsniffing.txt
Role: Example script
Content type: text/plain
Description: all you need to do is as instructed in the file "example-ipsniffing.txt"
Class: IP Sniffing
Get the location of an IP using ipinfodb.com
Author: By
Last change:
Date: 4 years ago
Size: 458 bytes
 

Contents

Class file image Download
<?php
/**
 * @example code for using IPSniffing class.
 */

require_once("path to ipsniffing class");
$objIPSniff = new IPSniffing();
$objIPSniff->sniffIP();

// access the information as under.
echo "Country Name: ".$objIPSniff->countryName;
echo 
"<br/>Country Code: ".$objIPSniff->countryCode;
echo 
"<br/>City Name: ".$objIPSniff->cityName;

// to see all the details fetched, print_r($this->objResult) at the end of the function sendURL.
?>