bobleny Posted February 20, 2007 Share Posted February 20, 2007 Don't mean to pest, but is there a php code that I can use to change the page? I've been using this: function sendem($reurl, $retime) { echo "<META HTTP-EQUIV='Refresh' CONTENT= '" . $retime . "; URL=index.php?page=" . $reurl . "'>"; } Even though $retime is normally set to .1, this is a bit slow, because it doesn't take affect until after the page has loaded. I want something that will take place as soon as php reads it.... What can I use? Thanks! Link to comment https://forums.phpfreaks.com/topic/39315-solved-php-code-that-i-can-use-change-the-page/ Share on other sites More sharing options...
s0c0 Posted February 20, 2007 Share Posted February 20, 2007 There is a header function that acts as a redirect. Try this: header("location:http://website.com"); If the syntax is wrong just google that function. Link to comment https://forums.phpfreaks.com/topic/39315-solved-php-code-that-i-can-use-change-the-page/#findComment-189538 Share on other sites More sharing options...
bobleny Posted February 20, 2007 Author Share Posted February 20, 2007 Thanks! I feel stupid now. I think my friend uses that.... ... Link to comment https://forums.phpfreaks.com/topic/39315-solved-php-code-that-i-can-use-change-the-page/#findComment-189542 Share on other sites More sharing options...
s0c0 Posted February 20, 2007 Share Posted February 20, 2007 No thank you, that's the first time I've been able to help some on here. Now I don't feel like such a mooch. Link to comment https://forums.phpfreaks.com/topic/39315-solved-php-code-that-i-can-use-change-the-page/#findComment-189551 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.