php function to refresh page with requested time -


so there page needs refresh per user want to.

now if want refresh page ten times, should rather reload page?

i want xyz.com/abc.php?refresh=10

where $refresh=[no. of time requested]

how ?

you can send refresh header tell page refresh. subtract 1 number of refreshes count down.

if (isset($_get['refresh']) && int($_get['refresh']) > 1) {     $_get['refresh']--;     header("refresh: $refresh_seconds; {$_get['refresh']}"); } 

where $refresh_seconds how many seconds should wait before refreshing.