i want to refresh page or redirect page after 4 mints to new url every time it refresh or redirect
Example some thing like this
$i=1
while($i = 100){
//** Now URL redirect here
$url="u_pc_change.php?id=$i";
echo '<meta http-equiv="refresh" content="2;url='.$url.'">';
$i++;
}
some code which wait here for 4mints and redirect or refresh the page to new url like
u_pc_change.php?id=1
u_pc_change.php?id=2
u_pc_change.php?id=3
Above code will not work because it do fast loop and nothing will wait for 4 mints … i need a way to wait 4 mints before 2nd loop happen …. for refresh or redirect.
If you want to wait 4 minutes, you can use JS like this:
If I understand you correctly, you want to show something different every 4 minutes regardless if user refreshed page, left and returned, or just stayed on page for 4 minutes.
You can save user refresh time and check it next time.