tecdesign Posted May 9, 2006 Share Posted May 9, 2006 How do I refresh a page using php? Link to comment https://forums.phpfreaks.com/topic/9359-hey-do-i-refresh-a-page/ Share on other sites More sharing options...
trq Posted May 9, 2006 Share Posted May 9, 2006 You cant. php runs on the server not the client. You'll need to use javascript. Link to comment https://forums.phpfreaks.com/topic/9359-hey-do-i-refresh-a-page/#findComment-34502 Share on other sites More sharing options...
steveallen Posted May 9, 2006 Share Posted May 9, 2006 Just as you would normally ... Link to comment https://forums.phpfreaks.com/topic/9359-hey-do-i-refresh-a-page/#findComment-34503 Share on other sites More sharing options...
wildteen88 Posted May 9, 2006 Share Posted May 9, 2006 [!--quoteo(post=372493:date=May 9 2006, 03:59 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 9 2006, 03:59 AM) [snapback]372493[/snapback][/div][div class=\'quotemain\'][!--quotec--]You cant. php runs on the server not the client. You'll need to use javascript.[/quote]Oh, PHP can! Just Use the header function with the refresh method![code]header("Refresh: 5; URL=http://www.google.com");[/code]Now before you use that function make sure you are not ouputing anything to the browser, Otherwise the function wont work! Link to comment https://forums.phpfreaks.com/topic/9359-hey-do-i-refresh-a-page/#findComment-34535 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.