title: XAMPP only lets me connect to index.php and not other pages
body: <p>I have XAMPP working just fine on one computer. Then I installed it on another and using the same files I have the following issue. </p>
  
  <p>localhost:82 brings up the index.php file (and actually is able to redirect to index3.html as it should). I enter my password there and normally it will then redirect me to localhost:82/home.php (and it does on my other computer) but on this one, it takes about 10 seconds of waiting, then I get a connection err page from chrome and IE. I noticed that this is caused by XAMPP apache server going yellow briefly at this point before returning to green status.</p>
  
  <p>I can't connect to localhost:82/home.php directly either. I get the same error. </p>
  
  <p>I have this at the start of each .php page. Removing it did not solve the problem.</p>
  
  <pre><code>&lt;?php 
     session_start();
   //Check to make sure the person is loggedin
     if (isset($_SESSION['loggedIn']) &amp;&amp; $_SESSION['loggedIn'] == true) {
   //if logged in then do nothing
      } else {
   //if not logged int he redirect to the login page
     header("Location: http://localhost:82/index2.php");
     }
  ?&gt;
  </code></pre>
  
  <p><strong>It works just fine on my first computer, what is going on here?</strong></p>
  
  <p>============================</p>
  
  <p><strong>EDIT: HERE IS THE CODE THAT IS ON MY INDEX.PHP</strong></p>
  
  <pre><code>&lt;?php
  
  //Connect to a database
  $host_name  = "localhost";
  $database   = "db608008888";
  $user_name  = "ABC";
  $password   = "123";
  
  $connect = mysqli_connect($host_name, $user_name, $password, $database);
  
  
  //Take the values from the html form and assign them to variables
  $ID = $_POST['name'];
  $userpassword = $_POST['password'];
  
  //If no passsowrd entered then go straight to index.php
  echo "&lt;script type='text/javascript'&gt;alert($userpassword);&lt;/script&gt;";
  if ($userpassword == null) {
    header("Location: http://localhost:82/index3.php");
    die();
  }
  
  //Check to see if the password matches the hashes
  if (md5($userpassword) === '5b5c45f1b9e444d9e441211cfb325270' 
      or md5($userpassword) === '17434cf0d4ba816cd776ff8b0ec532f1' 
      or md5($userpassword) === '7a94fda2a6e81a1693533e6dc8501b37' 
      or md5($userpassword) === '2d8b2ba14eeb0ac1fe474d468b720771') 
  {
  //Add the visitor name to our list
    mysqli_query($connect, "INSERT INTO `visitor list` (`Visitor Name`) VALUES     ('$ID')") or die("Error in INSERT: ".mysqli_error($connect));
  
  
  // Start the session so they can access other pages
    session_start();
    $_SESSION['loggedIn'] = true;
  // Redirect them to rest of site
    header("Location: http://localhost:82/home.php");
    die();
   }
  
  else {
    header("Refresh: 0; url=index2.php");
    echo "&lt;script type='text/javascript'&gt;alert(\"Wrong Password. .\");&lt;/script&gt;";
  
    }
   ?&gt;
  </code></pre>