title: folder one level up PHP header redirect
body: <pre><code>$home_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']).'/homepage.php';
  
  header('Location: '.$home_url);
  </code></pre>
  
  <p>I am using this redirect code for redirection from login page to home page </p>
  
  <p>but </p>
  
  <p>1-->directory/includes/code.php </p>
  
  <p>2->directory/homepage.php</p>
  
  <p>how to redirect from 1 to 2</p>