I have written the following code to refresh page and print the random number but i don`t understand its logic.
<p>page is refreshed every 5 seconds </p>
<p>Radom number between 10 to 100 is :
header("Refresh: 5; url=randomRefresh.php");
"Refresh: 5; url=randomRefresh.php" function is executed browser side. The php
headers() function are executed server-side
header() in PHP merely sets an additional or existing header that is sent to the client's browser upon page load but
Refresh: 5; url=randomRefresh.php is interpreted by the client's browser to refresh the page after 5 seconds. Other examples of headers are like
status that can be 200, 301, 302, 404.