Page 1 of 1

is there a refresh function in php?

Posted: Sat May 22, 2004 3:14 pm
by snpo123
hey, i was wondering if php has a function that will refresh the current page. thanks.

Posted: Sat May 22, 2004 3:16 pm
by launchcode
No, this isn't possible to do directly from PHP because by the time the page has been sent to the browser, your PHP script is over.

Just echo out a meta refresh HTML header.