function redirect($url) {
echo "";
echo "Redirecting in 3 seconds";
echo "<a href='$url' rel="nofollow">Click here if it does not redirect you</a>";
}
redirect("gotohere.php");
A simpler yet adjustable php function to redirect.
Don forget that the header function should be the first thing typed in, or you will have to turn on output buffering in your ini file or call this function, ob_start()
It’s important to remember that this has to be the first output in the document for it to work. For examples, see the PHP Manual.
You should use
header(‘location:http//www.domain.dd’);
exit;
Wat about testin from a local server.
A simpler yet adjustable php function to redirect.
Don forget that the header function should be the first thing typed in, or you will have to turn on output buffering in your ini file or call this function, ob_start()
quick and dirty redirect (also if headers allready sent)
just call forceRedirect(‘http://www.domain.dd’);
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.