Jump to content

Hey do I refresh a page


tecdesign

Recommended Posts

[!--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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.