| Subject: | example file |  
| Summary: | Package rating comment |  
| Messages: | 2 |  
| Author: | hamed hosseini |  
| Date: | 2009-12-17 17:49:34 |  
| Update: | 2009-12-31 10:06:55 |  
|   |  
 
 | 
 | 
hamed hosseini rated this package as follows:
| Utility:  | Insufficient | 
| Consistency:  | Not sure | 
| 
 | 
  hamed hosseini - 2009-12-17 17:49:34  
example file 
  
  Girish M. Nambiar - 2009-12-31 10:06:55 -  In reply to message 1 from hamed hosseini 
all you need to do is as below: 
<?php 
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. 
?> 
  
   |