title: PHP: Saving File Above Root - fopen(): remote host file access not supported
body: <p>I am trying to store PDF generated by tcpdf in "uploaded_files" but getting error. I checked <a href="https://stackoverflow.com/questions/28853871/fopen-remote-host-file-access-not-accepted-on-a-local-file">existing answers</a> but they have path inside webroot. In my situation path is above root.</p>
  
  <pre><code>$pdf-&gt;Output("../../uploaded_files/".'Temp.pdf', 'F'); 
  </code></pre>
  
  <blockquote>
    <p>Message: fopen(): remote host file access not supported</p>
  </blockquote>
  
  <p>Following are path details:</p>
  
  <pre><code>Web Root Path:/var/www/html/index.php
  Upload Folder Path: /var/uploaded_files/
  </code></pre>
  
  <p>Permissions for both directories &amp; files are 0777</p>