is there a refresh function in php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

is there a refresh function in php?

Post by snpo123 »

hey, i was wondering if php has a function that will refresh the current page. thanks.
User avatar
launchcode
Forum Contributor
Posts: 401
Joined: Tue May 11, 2004 7:32 pm
Location: UK
Contact:

Post 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.
Post Reply