<?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.
?>
|