[Solved] php function to refresh page with requested time [closed]


You can send a Refresh header to tell the page to refresh. Subtract 1 from the number of refreshes so it will count down.

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

where $refresh_seconds is how many seconds it should wait before refreshing.

1

solved php function to refresh page with requested time [closed]