Posts Tagged ‘Domain’

Find the geography location by IP-address or host name

Sometime you may want to know the following informations:

  • IP address and hostname convertion
  • Tracking and lookup IP address
  • Determine the IP address or host location
  • Find the geographical location of the web sites, identified by the IP address
  • Display the web site geographical location in the map
  • IP Tools with multi-language interface
  • More informations about the hostname, domain and ip address

Demo

Click here to trace my homepage now!!
http://ip.many3.com/en/tracer/yctin.com/

Also have an igoogle gadget : iGoogle Geo IP Tool

Screenshot

igoogle

More Screenshot

Read the rest of this entry »

 

[PHP] Domain & sub-domain redirection

<?php
/**
 * @name php for domain & sub-domain redirection
 * @author Timmy Tin(ycTIN)
 * @version 1.00
 */
switch (strtolower($_SERVER['HTTP_HOST'])) {
	case "yctin.com" : to("http://blog.yctin.com/");
	default : to("http://blog.yctin.com/");
}
 
/**
 * execute redirect action
 *
 * @param string $url
 * @example to("http://blog.yctin.com");
 */
function to($url) {
	header("Location: ".$url);exit;
}
?>