I have a php file where I call different php functions to render a page. I am wanting to refresh portions of the page every 5 mins by calling the php functions again. My site works fine as it is but I am not able to update the content without reloading the entire page.
php file 1 index.php
<?php
// Enable functionality
require_once ("lib/config.php"); //this file has all my php includes and db configurations
site_head();
front_stats();
front_browser(20);
site_foot();
?>
php file 2 which includes the functions above - layout.php
<?php
function front_stats ()
{
//my content thats rendered on the page
}
function front_browser ($per_page)
{
//my content thats rendered on the page
}
etc.
?>```