DomainDiscussions.com: Freedom of Speech, Free Avatars, Weekly Contests and More!
 

PHP Test

include("geoip/geoip.inc"); // include the geoip functions
$geofile = geoip_open("GeoIP.dat",GEOIP_STANDARD); // open the geoip data file
$cc = geoip_country_code_by_addr($geofile, $_SERVER['REMOTE_ADDR']);
geoip_close($geofile); // close the data file

if($cc == "US") {
// It’s a US visitor. Display the US ad here.
echo "US ad code goes here.";
} // end if US

?>

 
 
Domaining blog recommended by Domaining.com
 

Top Commentators

  •  

    Your Click Counts

     

    Blogroll

     
  • March 2010 (7)
  • February 2010 (16)
  • January 2010 (18)
  • December 2009 (8)
  • November 2009 (25)
  • October 2009 (10)
  • April 2009 (1)
  • September 2008 (1)
  • August 2008 (1)
  • May 2008 (2)
  • April 2008 (16)
  • March 2008 (8)
  • February 2008 (12)
  • January 2008 (1)
  •  
    Top 100 Domaining Blogs