General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 21st, 2003, 11:40 AM
jinx jinx is offline
it's not a tumor
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 22 jinx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Page Refresh

What is the best way to refresh the page in a PHP script?

Reply With Quote
  #2  
Old April 22nd, 2003, 03:50 AM
hadley hadley is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 63 hadley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Your only option from php is to use the meta refresh header which requests that the browser refreshes the page after a certain amount of time.

You can read more about it here: http://www.htmlhelp.com/reference/html40/head/meta.html

Hadley

Reply With Quote
  #3  
Old April 22nd, 2003, 07:35 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
<META HTTP-EQUIV="refresh" content="2;URL=http://www.yoursite.com/newpage.htm">

If you do not specify a url it will refresh the current page ( i think)

Reply With Quote
  #4  
Old April 22nd, 2003, 10:27 AM
jinx jinx is offline
it's not a tumor
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 22 jinx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, that's what I was looking for.

I suppose you also could do a header: redirect to the same page to refresh - assuming you hadn't output anything to the page yet.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Page Refresh


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT