Only with php / html you can not do this, but here's an example of doing with javascript / jquery:
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script><script>varidleTime=0;$(document).ready(function(){//Incrementtheidletimecountereveryminute.if($('iframe').length<1)//casonãoexistaiframevamosincrementarocontador(idleTime)de1em1minutovaridleInterval=setInterval(timerIncrement,60000);//1minutos//resetamosocontadorcasosejamdetetadosesteseventos$(this).mousemove(function(e){idleTime=0;});$(this).keypress(function(e){idleTime=0;});$(window).on('scroll',function(e){idleTime=0;});});functiontimerIncrement(){idleTime=idleTime+1;if(idleTime>14){//15minuteswindow.location.reload();}}</script>
Adaptedexample from here
If you did not need to detect some activity on the page, it would suffice in head
of your html:
<meta http-equiv="refresh" content="900">
At what content is the number of seconds before refresh