title: After php 5.5 update include () no longer works
body: <p>I am trying to install an opensource php CRM and it required I update my php version.  Switched to 5.5 and now my include doesn't work.</p>
  
  <p>I have tried:</p>
  
  <pre><code>include "http://www.cswea.org/mobile_include/include_all_size_headers.php?cur_section=" . $Cur_Section . "&amp;cur_sub_menu=" . $Cur_Sub_Menu . "&amp;cur_page=" . $Cur_Page; 
  </code></pre>
  
  <p>As well as:</p>
  
  <pre><code>include $_SERVER['DOCUMENT_ROOT']."/mobile_include/include_all_size_headers.php?cur_section=" . $Cur_Section . "&amp;cur_sub_menu=" . $Cur_Sub_Menu . "&amp;cur_page=" . $Cur_Page; 
  </code></pre>
  
  <p>But I get nothing.  No errors, and I have confirmed that the file is ok.</p>
  
  <p>You can see this page at:
  <a href="http://www.cswea.org/events/" rel="nofollow noreferrer">http://www.cswea.org/events/</a></p>
  
  <p>Notice how it is just a plain shell.  No header html, and my AJAX call to fill the upcoming events isn't being called either?  the ajax file is in the same folder.</p>
  
  <p>Includes on the home file are working, so I am lead to believe that this is a path issue. </p>
  
  <p>What do I need to do to point to the file that is at cswea.org/mobile_include/include_all_size_headers.php?</p>
  
  <p>any hints, clues or other help you can provide is greatly appreciated</p>
  
  <p>EDIT:</p>
  
  <p>I found this post:
  <a href="https://stackoverflow.com/questions/3423702/include-does-nothing">Include does nothing</a></p>
  
  <p>By switching to require (which was recommended in comments here as well) I got a fatal error.  By removed the ?=&amp;='s, I was able to get it to include the file.<br>
  I now have the include working right, but the HTML isn't displaying correctly.  That is another issue that I think I can resolve on my own.</p>
  
  <p>The solution was A) to use $_SERVER['DOCUMENT_ROOT']
  And B) to eliminate the ?=&amp;='s.</p>