title: fopen(); "Remote host file access not accepted" on a local file?
body: <p>I am using the Tcpdf module and PHP to create dymanic PDF invoices from an ordering system.</p>
  
  <p>The script should then save the invoice into a folder called "invoices". The folder exists, and there are full permissions for "everyone" (Windows).</p>
  
  <p>The code I am using is this:</p>
  
  <pre><code>$pdf-&gt;Output('invoices/Delivery Note.pdf', 'F');
  </code></pre>
  
  <p>This uses fopen to save the file. </p>
  
  <p>However the error I am getting is: <code>Warning: fopen(): remote host file access not supported, file://invoices/Delivery Note.pdf</code></p>
  
  <p>This is a local file, not a remote one. </p>
  
  <p>I attempted adding a / prefix like this:</p>
  
  <pre><code>$pdf-&gt;Output('/invoices/Delivery Note.pdf', 'F');
  </code></pre>
  
  <p>but then I get this error instead: <code>Warning: fopen(file:///invoices/Delivery Note.pdf): failed to open stream: No such file or directory</code></p>
  
  <p>I created the file, and left it empty, but the same error as above.</p>
  
  <p>Does anyone know why I am getting this error?</p>