title: require_once function causing a server error
body: <p>I am trying to use the <code>require_once("");</code> function in php, and it is causing a server error whenever it is used. I know I am using the correct path because I have checked my file directory many times and have been following a video tutorial as well when coding this php code. Any ideas to why I am getting this server error? </p>
  
  <pre><code>       &lt;?php
              require_once("../../includes/session.php");
         ?&gt;
  </code></pre>
  
  <p>The page calling this function is in a folder that shares folders -  two sub-folders away from <code>session.php</code> if that makes sense. </p>
  
  <p>This file is <code>index.php</code>, which is in <code>public/admin</code>. This page calling <code>require_once</code> is in <code>public/admin/index.php</code>, and the folder they both share is <code>photo_gallery</code>.</p>
  
  <p>The error is: HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.</p>
  
  <p>All the debugging I have done is echo a hello statement before calling require_once and after require_once and when I posted hello after nothing was outputted</p>
  
  <p>This is the error I receive when checking my error log:</p>
  
  <p>[08-Aug-2012 11:01:04] PHP Parse error:  syntax error, unexpected '{' in /home3/visittom/public_html/photo_gallery/includes/session.php on line 47</p>