title: Some php files doing nothing on my xampp server
body: <p>As part of a larger project I wanted to include a header.php and menu.php into a page.</p>
  
  <p>I'm at my wits end to figure out why it isn't working.</p>
  
  <p>All files are in C:\xampp\htdocs</p>
  
  <p>The include file, test.inc.php, contains: </p>
  
  <pre><code>&lt;?php echo 'does this work?'; ?&gt;
  </code></pre>
  
  <p>The file I am including it in, testheader.php contains:</p>
  
  <pre><code>&lt;?php include 'test.inc.php'; ?&gt;
  </code></pre>
  
  <p>Nothing happens, it's just a white page. No error or anything.
  I have searched and I have confirmed and ruled out the common solutions I found:</p>
  
  <p>-Directory/locations issues (I've used all possible variations including the $_SERVER['DOCUMENT_ROOT'])</p>
  
  <p>-All file extensions are .php not .html or anything else</p>
  
  <p>-Using full <code>&lt;?php ?&gt;</code> tags</p>
  
  <p>-I've tried using <code>require</code> or <code>require_once</code> but it isn't even registering an error. It simply thinks nothing is there.</p>
  
  <p>At first I thought it was just an include issue, but more disturbing is I cannot get it to parse ANYthing inside a <code>&lt;?php ?&gt;</code> tag now. It's not just the includes. 
  If I make a .php file and just type "test" in it, it will print out "test" but if I try to do <code>&lt;?php echo 'test'; ?&gt;</code> it just becomes a blank page.</p>
  
  <p>But only for these files. I have another set of pages that use php tags extensively with a mysql db and they work just fine.
  Complex php files running scripts with mysql that work perfectly right alongside this file with a simple echo that does nothing? Why? 
  The ones that work are a week or more old, anything new doesn't work. 
  Nothing has changed, not my browser(use Firefox but its the same on IE/Chrome), not my editor (gedit), not my xampp version (1.8.3).</p>
  
  <p>My last resort is a fresh install of xampp but I'd like to know WHY this happened so I can avoid or fix it without having to reinstall if it happens again.</p>
  
  <p><strong>EDIT:</strong>
  The default Line Ending in gedit may have changed to Windows instead of Unix/Linux which I read somewhere is what it should be. When I resaved the files to Unix/Linux Line Ending they worked.</p>
  
  <p>I have everything working now. This explains why some files were working fine and others were not. The older files had been saved with the correct Unix/Linux setting and therefore worked.</p>
  
  <p>Sorry this is my first stackoverflow question. Should I "Answer" it myself or how do I close it?</p>
  
  <h1>Solved!</h1>