faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

125 of 199 people (63%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do you refresh a PHP page into itself?

Feb 25th, 2008 23:53
dman, Barry Munro, Nick Bair, http://www.ttnr.org


Add a line like this in the <head> section of your page:
<META HTTP-EQUIV=Refresh CONTENT="X; URL=<?php print $PHP_SELF ?>"> 
Where X is number of seconds before the page refreshes.