title: Use php require for local directory
body: <p>I have recently been trying to add PHPMailer script to my site, following the accepted answer from here:</p>
  
  <p><a href="https://stackoverflow.com/questions/12301358/send-attachments-with-php-mail">Send attachments with PHP Mail()?</a></p>
  
  <p>I have never used a require statment before so I assume I must be doing it wrong, currently testing on my local host version of the site. I have downloaded the entire zip of git (unzipped it) and moved it to the dir my scripts are in.</p>
  
  <p>In my script I added the following line:</p>
  
  <pre><code>require_once(__DIR__.'/PHPMailer-master/class.phpmailer.php');
  </code></pre>
  
  <p>Which to my understanding was all I needed to do to use it. However I get this error:</p>
  
  <blockquote>
    <p>Warning:
    require_once(C:\xampp\htdocs\Website\PHPMailer-master\class.phpmailer.php):
    failed to open stream: No such file or directory in
    C:\xampp\htdocs\Website\include\mailer.php on line 10</p>
    
    <p>Fatal error: require_once(): Failed opening required
    'C:\xampp\htdocs\Website\PHPMailer-master\class.phpmailer.php'
    (include_path='C:\xampp\php\PEAR') in
    C:\xampp\htdocs\Website\include\mailer.php on line 10</p>
  </blockquote>
  
  <p>Any ideas what is causing this error? Am running PHP 5.6.21 if this is relevant. </p>