title: How to make auto refreshing page every minute in PHP
body: <p>I want to make my site refreshing the page each minutes, Ex : 60sec/1min.I have index for put the code. Actually i make a home that recived a message from member, so the admin dashboard can take a look at inbox every minutes.Can some one give some documentation or example to do it using PHP???
  pls not javascript nor ajax, thanks</p>
  
  <pre><code>&lt;?php 
      header("Refresh: 60");
      session_start();
      include "conn.php";
      $koneksi=open_connection();
  
  if (isset($_SESSION['id']))
  {
      $id=$_SESSION['id'];
      $level = $_SESSION['level'];
      $username = $_SESSION['username'];
  }else{
  echo'&lt;script&gt;document.location.href="index.php?status=forbidden"&lt;/script&gt;';
  }
  
  require_once('topbar.php');
  
  
  
  require_once('sidebar.php');
                  $page=(isset ($_GET['page']))? $_GET['page'] : 'main';
                      switch($page){
                          case 'data':include "halaman/data.php";
                              break;                   
                          case 'main':default: include 'beranda.php';
                      }
   require_once('footer.php');
  ?&gt;
  </code></pre>