title: Get filenames from addon domain folder in php
body: <p>I am not able to get the filenames from one level up and three levels down:</p>
  
  <p>My current path is in 
  <code>home/site/public_html/current_folder/</code></p>
  
  <p>I want to go to fetch all the file names inside <code>down3</code>
  <code>home/site/public_html/www.down1.com/down2/down3/</code></p>
  
  <pre><code>$path= dirname(__DIR__)."/www.down1.com/down2/down3/*.*";
  $files= glob($path);
  </code></pre>
  
  <p>The above path is not working as I get <code>count($files) == 0</code></p>
  
  <p>Also the content of <code>$path</code> is  <code>\/home\/site\/public_html\/www.down1.com\/down2\/down3\/*.*</code></p>
  
  <p>with a <code>\</code> character in front of <code>/</code> in the above path</p>
  
  <p><code>www.down1.com</code> is an addon domain.</p>