title: How to use __dir__?
body: <p>I want to use <code>__dir__</code>.</p>
  
  <p>However, I can't find any good tutorial on how to set it up. I have my htdocs in Dropbox.</p>
  
  <p>Does it work something like this?</p>
  
  <pre><code> define(__DIR___, 'd:documents/dropbox/yolo/swag/htdocs/myproject/test/newtest/
   testphp/test_new/testincludes/1/new_folder/')
  </code></pre>
  
  <p>That is the directory where my project is located and it has sub folders. I want to include a file into another file that is in the parent folder.</p>
  
  <p>Should I then just type:</p>
  
  <pre><code> include'__DIR__/warlock.php'; 
  </code></pre>
  
  <p>Or do I have to type something like this?</p>
  
  <pre><code> include '___DIR__/wow/newb/guidesfornabz/classes/casters/warlock.php'; 
  </code></pre>