ip_country

From CashCrusaderWiki

Jump to: navigation, search

Use ip_country() function to get country name for an IP address.


To get country information for the current visitor/user, do not call ip_country($_SESSION['REMOTE_ADDR']), use ip_country constant instead as it already includes the country name.


Required CashCrusader version: 3.0.0


Example usage:

<?php echo ip_country('8.8.8.8'); ?>

Personal tools
Administration manual