I've searched all around for a solution to my problem, but I can't seem to understand where to put the solution.
I'm creating a webpage which will show information from different API sources, and I would like all the information to be updated on different intervals.
I've seen the "while(true) { sleep(5); }" solution, but it just freezes the website, preventing it to load.
Lets say my webpage looks like this:
<body>
<?php
echo "hello world";
?>
</body>
How can I make the php script repeat on certain intervals?
Thank you.