title: require_once(PHPExcel/Classes/PHPExcel.php): failed to open stream
body: <p>I am trying to include PHPExcel to a Silverstripe 3 site to export excel sheets. Right now I am just trying to test, but I get this error when trying to do it:  </p>
  
  <blockquote>
    <p>[Warning] require_once(/sitename/mysite/AddOns/PHPExcel/Classes/PHPExcel.php): failed to open stream: No such file or directory</p>
  </blockquote>
  
  <p>Thing is I know this file exists since I copied it over myself and have rechecked the path over and over. So I decided "well check if the file exists" using this code:</p>
  
  <pre><code>    if(!file_exists(Director::baseURL().'mysite/AddOns/PHPExcel/Classes/PHPExcel.php')) {
          echo 'sdf';exit;
  }
  </code></pre>
  
  <p>The path is correct (that is where it is saved) according to the error, but- file does not exist. I am also requiring the file in the same way, with no luck</p>
  
  <pre><code>require_once Director::baseURL().'mysite/AddOns/PHPExcel/Classes/PHPExcel.php';
  </code></pre>
  
  <p>I have tried everything-checking file permissions, referencing parent folders using <code>../../</code>, calling it directly like <code>AddOns/PHPExcel</code>, moving it to this new AddOns folder (first tried placing the PHPExcel classes on the root and discovered that Silverstripe doesn't read it then :) )</p>
  
  <p>I know I am doing something wrong but for the life of me I cannot see what. Please help</p>
  
  <p>Thanks</p>