title: PHP xampp downloading my index.php instead of loading the page
body: <p>So my PHP project is causing <code>localhost</code> as well as <code>localhost/project/</code> is downloading the <code>index.php</code> for the project rather than loading it, it downloads it as <code>download</code>...here is the <code>download</code> file:</p>
  
  <pre><code>&lt;?php   
  /*
  * Index.php - Define the directories
  *
  *
  * DS, DIRECTORY_SEPARATOR = /
  * ROOT, dirname = string containing the path of a file or directory
  * __FILE__ = The full path and filename of the file. If used inside an include, the name of the included file is returned
  *
  * In this file we load the apporpriate files that our website wants to load and render the
  * template with informatio from the database. We load the bootstrap.php from the library folder.
  *
  * We are not including the ?\&gt;  to avoid injection of any extra whitespaces in our output.
  *
  *
  */
  
  
  define('DS', DIRECTORY_SEPARATOR);
  define('ROOT', dirname(dirname(__FILE__)));
  
  $url = $_GET['url'];
  
  require_once (ROOT . DS . 'library' . DS . 'bootstrap.php');
  </code></pre>
  
  <p>And loading <code>localhost</code> downloads this:</p>
  
  <pre><code>&lt;?php
      if (!empty($_SERVER['HTTPS']) &amp;&amp; ('on' == $_SERVER['HTTPS'])) {
          $uri = 'https://';
      } else {
          $uri = 'http://';
      }
      $uri .= $_SERVER['HTTP_HOST'];
      header('Location: '.$uri.'/xampp/');
      exit;
  ?&gt;
  Something is wrong with the XAMPP installation :-(
  </code></pre>