Hallo,
Hoe kan je een pagina om de 5 a 10 min automatisch laten refreshen ?
Hoe kan je een pagina om de 5 a 10 min automatisch laten refreshen ?
[COLOR= #0000BB]<?php
$aantalminuten[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/sleep"]sleep[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$aantalminuten[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]60[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Redirect: http://google.nl"[/COLOR][COLOR= #007700]);[/COLOR]
?> [COLOR= #0000BB]<?
$minuten[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//aantal minuten[/COLOR]
[COLOR= #0000BB]$seconden[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$minuten[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]60[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$url[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"http://url"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//de url naar de pagina[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Refresh: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$seconden[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"; URL= "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700]);[/COLOR]
?> [COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Oke Sjerdo.[/COLOR][COLOR= #007700];[/COLOR]
?> 



[COLOR= #0000BB]<?php
$aantalminuten[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/sleep"]sleep[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$aantalminuten[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]60[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Redirect: http://google.nl"[/COLOR][COLOR= #007700]);[/COLOR]
?>
Edit 1: Maargoed.. ik merkt het..
Edit 2: Moet je er eigenlijk zn meta neerzetten.
Sorry, Lennard.
<meta http-equiv="refresh" content="3;url=http://www.google.nl" />