Last active
August 29, 2015 14:04
-
-
Save cvele/51529355d5a0d0c43709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function __redirect($url) | |
{ | |
header( 'Content-type: text/html; charset=utf-8' ); | |
header("Location: " . $url, true, 307 ); | |
echo "<html></html>"; | |
flush(); | |
ob_flush(); | |
exit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment