/** * Try to redirect via header. If no good, use javascript */ public static function redirect( $sUrl ) { try { header("Location:".$sUrl ); } catch( Exception $e ) { echo ""; } }