Jump to content


Photo

Hey do I refresh a page


  • Please log in to reply
3 replies to this topic

#1 tecdesign

tecdesign
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 09 May 2006 - 02:56 AM

How do I refresh a page using php?

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 09 May 2006 - 02:59 AM

You cant. php runs on the server not the client. You'll need to use javascript.

#3 steveallen

steveallen
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 09 May 2006 - 02:59 AM

Just as you would normally ...

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 09 May 2006 - 08:22 AM

[!--quoteo(post=372493:date=May 9 2006, 03:59 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 9 2006, 03:59 AM) View Post[/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!
header("Refresh: 5; URL=http://www.google.com");
Now before you use that function make sure you are not ouputing anything to the browser, Otherwise the function wont work!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users