title: Any idea why this piece of PHP code is making my script hang?
body: <p>thanks for your time in reading this. I am not a programmer but with my limited skills I have been able to determine that this function which is called at the beginning of almost every page is making our store POS script fail. When we goto our url for this PHP application we get only a blank page. When the call to this function is commented out, the pages load just fine. </p>
  
  <p>The interesting thing to note is that no changes have been made to our code and it has been in use for over 3 years. Just stopped working a couple days ago and our webhost is useless. They haven't been able to tell me if there were any changes made to our server environment so I don't know where to start looking for information. My colleague suspects they may have changed the version of PHP that is in use, though I don't know which version might have preceded the one listed here. </p>
  
  <p>Server Info
  -Apache version     2.2.29</p>
  
  <p>-PHP version    5.4.33</p>
  
  <p>-MySQL version  5.5.37-cll</p>
  
  <p>-Architecture   x86_64</p>
  
  <p>-Operating system   linux</p>
  
  <pre><code>// new version for SEO htaccess short url's
  Function MakeSecure(){
      if($_SERVER['HTTPS'] != "on"){
          $URI = $_SERVER['REQUEST_URI'];
          $strSiteLocation = "https://" . str_replace("/","",DOMAIN) . $URI;
          header("Location: " . $strSiteLocation );
      }
  }
  </code></pre>