if($_SERVER['HTTP_HOST'] == 'hq.msi.com.tw') { # Dev $url = 'http://hq.msi.com.tw/event/'; } else { # online $url = 'http://event.msi.com/'; } ?>