exists($short) ); return $short; } function redirect($goto){ header($_SERVER["SERVER_PROTOCOL"] . " 301 Moved Permanently"); header("Location: " . $goto); exit; }