title: require external directory with php
body: <p>I am trying to include a library with composer. To do this I need to require vendor/autoload.php</p>
  
  <pre><code>    require '/vendor/autoload.php';
  </code></pre>
  
  <p>The issue is this file directory is outside of the web root and I would like to keep it that way. So when I try this bit of code it spits out </p>
  
  <pre><code>       Warning: require(/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/sandbox5678/StreamIt/cool.php on line 9
  
         Fatal error: require(): Failed opening required '/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/sandbox5678/StreamIt/cool.php on line 9
  </code></pre>
  
  <p>is there a way to have it go to an external directory??</p>