Hi How to refresh a page every 10 minutes using php background process? When i login to my account i can check my messages ,on setting timeout function the page reloads every 10 minutes but i need the process to run in background , After me logging in,.. if i receive some message i must receive a popup called hai you have a message from this sender
views:
26answers:
2
+1
A:
The only thing i understood due to multiple reasons was the refresh every 10 minutes. You can't use php, you must use javascript like so:
<body onload="setInterval('window.location.reload()', 600000);">
Babiker
2010-06-17 04:51:11
@Babiker :If the page reloads while filling a form then i would be messy
udaya
2010-06-17 04:55:04
@udaya :Yes, that will happen no matter how you choose to reload though.
Babiker
2010-06-17 05:15:56
A:
You could send a header to the client side with PHP
header("refresh:600"); //600 seconds = 10 minutes
Pablo
2010-06-17 04:58:53