title: How to do down a directory? Opposite of "../../"
body: <p>Is there an opposite method of going up a directory?</p>
  
  <p>Example:</p>
  
  <pre><code>../../folder-name/file.php
  </code></pre>
  
  <p>The above will go up 2 directories then search for <code>/folder-name/file.php</code>.</p>
  
  <p>Example Usage: </p>
  
  <pre><code>require_once('../../folder-name/file.php');
  </code></pre>
  
  <p>I'm trying something like... </p>
  
  <pre><code>require_once($_SERVER['DOCUMENT_ROOT'] . '/../../folder-name/file.php');
  </code></pre>
  
  <p>I know I can use the asterisk wild card in the <code>glob()</code> function.</p>
  
  <p>But I don't want to do a search that function does when I know the direct path. I also have no need to return an array which <code>glob()</code> does. </p>
  
  <p>Glob will accept the wild card asterisk like so...</p>
  
  <pre><code>glob('/*/*/folder-name/file.php');
  </code></pre>
  
  <p>But I see this is an exclusive operation to glob() (and maybe other functions) but not available in general for all path specifications. </p>
  
  <p>So something like below doesn't work... </p>
  
  <pre><code>require_once($_SERVER['DOCUMENT_ROOT'] . '/*/*/folder-name/file.php');
  </code></pre>
  
  <p>Is there a way to achieve this?</p>
  
  <p>Is there a way to make php go down to the next directory when that directory is not known?</p>