Home : PHP :
how to refresh a page?

Category : PHP

To do a refresh, you can use HTML meta tag such as :

  

That'll refresh to example.php in four (4) seconds.  It's also worth 
mentioning that various predefined variables exist that reflect the 
current page, run phpinfo() to see which exist on your system.  A 
commonly used one is called as $PHP_SELF For example, let's say we 
wanted to refresh a page every 4 seconds forever (not suggested :-) 
then :

  

Created : 11 Mar 2002
Modified : 11 Mar 2002
Viewed : 807 times.
Print Article