php header update code example
Example 1: php header refresh
//Refreshes your current page
header("Refresh:0");
header("Refresh:2"); // Refreshes after 2 seconds
//If you need to redirect it to another page
header("Refresh:0; url=page2.php");
Example 2: header location in php
<?php
/*
This will redirect to facebook.com
*/
$url = "https://facebook.com.com";
header("Location: $url");
exit;
?>