You can do this with HTML meta tag, insert them into <head>
:
With a time interval of 10 secs in each, in your case:
From painel1.php to painel2.php, enter the following meta tag in painel1.php:
<meta http-equiv="refresh" content="10;URL=painel2.php">
From painel2.php to painel3.php, enter the following meta tag in painel2.php:
<meta http-equiv="refresh" content="10;URL=painel3.php">
From panel 3.php back to panel 1.php, enter the following meta tag in panel 3.php:
<meta http-equiv="refresh" content="10;URL=painel1.php">
This will be on a loop
It is more recommended to do javascript. Because PHP does not listen to time, it does not have this power, the PHP language is for writing pages. Javascript is for interaction.
– Leonardo
The function can be quietly written in PHP by combining a loop with the Sleep function()
– Adriano Luz