title: Failed to open stream no such file or directory. php
body: <p>I've a file <code>Profile.php</code> which includes <code>Profile_Control.php</code> and the <code>profile_control</code> includes <code>Profile_Model.php</code> . Every things works fine till here.</p>
  
  <p>I've another script named <code>Upload.php</code> from which data gets uploaded. This Upload.php also includes <code>Profile_Control.php</code> and as you know <code>Profile_Control</code> includes <code>Profile_Model.php</code>.Now I dont know why it is giving such an error.When the Profile.php loads it works fine but when I upload the data it says</p>
  
  <pre><code>Warning: include(../Model/Profile_Model.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\php\gagster\Control\Profile_Control.php on line 4
  </code></pre>
  
  <p>In Upload.php : </p>
  
  <pre><code>include_once("../../Control/Profile_Control.php");
  </code></pre>
  
  <p>In Profile.php :</p>
  
  <pre><code>include_once("../Control/Profile_Control.php");
  </code></pre>
  
  <p>In Profile_Control.php:</p>
  
  <pre><code>include_once("../Model/Profile_Model.php");
  </code></pre>
  
  <p>Document Structure:</p>
  
  <pre><code> +-Control/
   |  |    
   |  +---- Profile_Control.php
   |
   +-Model/
   |  |
   |  +---- Profile_Model.php
   |
   +-Other/
      |
      +-- Upload/
             |
             +---- Upload.php
  </code></pre>