title: Can I change current directory to parent directory using PHP __DIR__ constant?
body: <p>I am using PHP magic constant to move uploaded file to a new location, and the upload handler file location is inside "<code>_inc</code>" file inside the main application folder like this:</p>
  
  <blockquote>
    <p>"path/tasksapp/_inc/upload_handelr.php"</p>
  </blockquote>
  
  <p>So; when I use <code>__DIR__</code> I get the path where the upload hander is exist:</p>
  
  <blockquote>
    <p>"path/tasksapp/_inc/"</p>
  </blockquote>
  
  <p>While the new location for uploaded file should be:</p>
  
  <blockquote>
    <p>"path/tasksapp/uploads"</p>
  </blockquote>
  
  <p>Is there's any option or attribute I can use with <code>__DIR__</code> constant so I can change current directory to parent directory:</p>
  
  <p>change:</p>
  
  <blockquote>
    <p>"path/tasksapp/_inc/"</p>
  </blockquote>
  
  <p>to be:</p>
  
  <blockquote>
    <p>"path/tasksapp/"</p>
  </blockquote>