Re: refresh page
| From: | trlists at clayst dot com | Date: | Wed, 17 Mar 2004 02:14:44 +0000 |
| Subject: | Re: refresh page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180635@lists.php.net to get a copy of this message | ||
On 17 Mar 2004 Mike Mapsnac wrote:
> I need to refresh page every 2 minutes. How that's can be done in
> PHP?
You can do it with a header. I think something this simple will work:
header("Refresh: 120");
or in the <head> area:
print "<meta http-equiv=\"Refresh\" content=\"120\">\n";
If you want to refresh to an explicit URL:
header("Refresh: 120; URL=http://...");
print "<meta http-equiv=\"Refresh\" content=\"120;
URL=http://...\">\n";
--
Tom