|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
What is the best way to refresh the page in a PHP script?
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
<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) |
|
#4
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Page Refresh |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|