TheConeHead
Programmer
is it possible to redirect from within php? or does it need to be done in the html?
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
header("HTTP/1.1 301 Moved Permanently");
header("location: [URL unfurl="true"]http://www.domain.tld/");[/URL]
header("Connection: close");
<?php
function redir($goto = 404, $timeout = 0, $basepath = "") {
if(is_file($basepath . $goto)) {
if($timeout == 0) {
echo "header:location";
}
else {
echo "meta refresh";
}
}
else {
echo "Sorry, the file was not found!";
}
} // end function re_dir
?>
why the "?"?hannukah(?)
?>
<script type="text/javascript">
setTimeout(\'window.location="[URL unfurl="true"]http://www.yourpagehere.com/"\',2000);[/URL]
</script>
<h3>You will be redirected to blah blah blah in 2 seconds</h3>
<?php