title: How to allow get recursive directory only inside myproject?
body: <p>I have a little api that return all struture of files via <code>$_GET['dir'];</code> parameter.
  My project located is </p>
  
  <blockquote>
    <p>/var/www/html/myproject/api.php</p>
  </blockquote>
  
  <p>Inside folder myproject many folders and files.
  I'd like forbidden get structure of files outside </p>
  
  <blockquote>
    <p>myproject</p>
  </blockquote>
  
  <p>folder. Could someone give me an example for forbidden any link?</p>