Hey guys,
I tried searching for this and didn't find anything. I just need php to refresh a web page that is loaded every 20 mins until that page is no longer the current page. (So techincally it should refresh every 20 till forever)
I found some javascript that could do it but i'd much rather use php...
Any tips would be appreciated...
auto refresh every 20 mins
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
There are two types of refresh:
1. PHP
This will refresh/redirect immediately (you will see a blank page and then 'http://www.example.com').
2.HTML - Meta Tag (arborint)
The above will refresh every 0 seconds. If you want every 20 seconds to refresh:
Easy!!!
1. PHP
Code: Select all
header("Location: http://www.example.com");2.HTML - Meta Tag (arborint)
Code: Select all
<META HTTP-EQUIV='Refresh' CONTENT='0 ;URL= http://www.example.com '>Code: Select all
<META HTTP-EQUIV='Refresh' CONTENT='20 ;URL= http://www.example.com '>