page refresh php code example
Example 1: php refresh
//refreshes your current page
header("Refresh:0");
//refreshes your current page after 5 seconds
header("Refresh:5");
//If you need to redirect it to another page
header("Refresh:0; url=page2.php");
Example 2: PHP auto refresh page
<?php
$url1=$_SERVER['REQUEST_URI'];
header("Refresh: 5; URL=$url1");
?>