Help.. i need to know how to make a redirection code... so that my pages will redirect before they are shown. Does n e one know the code?😕
use the PHP header() function
such as:
header("Location:<insert your URL Here>");
Make sure though that you have NO HTML of any type before this statement or it will not work
Good luck
Antoine
I tried doing that but.. i have html before it and i want to be able to include it. The scipt i really want is some sort of server switch.. like if i switch redirection on all my pages when their link gets clicked auto goes to my temp page.. is their any thing like that out in the net?
tried Redirect in .htaccess
How do i do that?
www.php.net/header
www.php.net/ob_start www.php.net/ob_end_clean www.php.net/ob_end_flush www.php.net/ob_get_contents
You coudl use output buffering and the header() function, otherwise there really isn't another good way...
you could also put an if statement before a meta tag for refresh...
<? if(this.happens) { ?> <meta http-equiv="Refresh" content="0 url=somewhere.php"> <? } ?>