So i have a web page that displays logs of users using my software in 'real-time', but the only way the log list will refresh is if i reload the entire page. I was wondering if it was possible to execute a simple php script like this every 5 seconds without needing to refresh the page:
<?php echo file_get_contents(myurl); ?>
i know i could host this script on another page and put it in an iframe and refresh that every 5 seconds, but i was wondering if i could just refresh only the php code?