Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ziyaretci_ip = getenv(REMOTE_ADDR);
- $ziyaretci_yer = file_get_contents("http://api.hostip.info/country.php?ip=".$ziyaretci_ip."");
- if ($ziyaretci_yer=="TR") {
- header ("Location: http://www.siteismi.com/tr");
- }
- else {
- header ("Location: http://www.siteismi.com/en");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment