title: cannot includ a existing file - failed to open stream: Permission denied
body: <p><strong><em>this is not a duplicate question,  I read all related questions, and didn't find my answer.</em></strong></p>
  
  <p>I want to include a file that exists :</p>
  
  <p><code>/var/www/html/monitor/protected/extensions/curl/curl.php</code></p>
  
  <p>and my code is :</p>
  
  <p><code>include('/monitor/protected/extensions/curl/curl.php');</code></p>
  
  <p>and I'm getting this error :</p>
  
  <p><code>include(/var/www/html/monitor/protected/extensions/curl/curl.php): failed to open stream: Permission denied</code></p>
  
  <p>and the file has 777 permission.</p>
  
  <p><strong>My question is :</strong> </p>
  
  <p>is it possible that a file exists and have a 777 permission and a proper <code>chown</code> AND still give this error?</p>
  
  <p><strong>Update :</strong> I had used all three possible ways :</p>
  
  <ol>
  <li><p><code>include('/monitor/protected/extensions/curl/curl.php');</code></p></li>
  <li><p><code>include('monitor/protected/extensions/curl/curl.php');</code></p></li>
  <li><code>include('/var/www/html/monitor/protected/extensions/curl/curl.php');</code></li>
  </ol>
  
  <p>Im using php 5.3</p>
  
  <p><strong>Note:</strong> <em><strong>when including another file in the same directory, it includes without any problem</em></strong></p>