if( $_SERVER['HTTP_HOST'] == 'localhost' ) { $server_name = "http://localhost/baanwebsite/customer/vanarat"; } else { $server_name = "http://www.vanarat.com"; } ?> if( $_SERVER['HTTP_HOST'] == 'localhost' ) { $server_name = "http://localhost/baanwebsite/customer/vanarat"; } else { $server_name = "http://www.vanarat.com"; } ?>