title: How to Save pdf in shared folder using TCPDF
body: <p>I m trying to save PDF in shared folder. But its giving me error. I manually checked that path is right or not. but its right. But still I m not able to generate PDF.</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;?php
  $file = "//ADMIN/testsor/SORPDF.csv"; 
  $handle = fopen($file,"r"); 
  $data= fgetcsv($handle); 
  //print_r($data);exit; 
  $filename="Test.pdf";
  $filepath="\\\\ADMIN\\testsor\\pdf"; 
  require_once('tcpdf_include.php');
  
  // create new PDF document
  $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
  $pdf-&gt;SetCreator(PDF_CREATOR);
  $pdf-&gt;setFooterData(array(0,64,0), array(0,64,128));
  
  if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
  require_once(dirname(__FILE__).'/lang/eng.php');
  $pdf-&gt;setLanguageArray($l);
  }
  $pdf-&gt;AddPage();
  $pdf-&gt;SetFont('times', '',11);
  $pdf-&gt;setPage(1, true);
  $txt = '
  &lt;table cellpadding="1" border="1" cellspacing="0" width="100%" class="main"&gt;
  &lt;tr&gt;&lt;td class="cen"&gt;&amp;nbsp;&lt;/td&gt;&lt;td style="padding-right:7px" align="right"&gt;&lt;strong&gt;Signature&lt;/strong&gt; &lt;/td&gt;&lt;td colspan="3" align="center"  height="50px"&gt;&lt;img src="'.$data[0].'" height="20px" width="100px" &gt;
  &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="cen"&gt;&amp;nbsp;&lt;/td&gt;&lt;td style="padding-right:7px" align="right"&gt;&lt;strong&gt;Fitter`s Signature&lt;/strong&gt; &lt;/td&gt;&lt;td colspan="3" align="center" height="50px"&gt;&lt;img src="'.$data[1].'" height="20px" width="100px" &gt;
  &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
   ';
  
  $pdf-&gt;writeHTML($txt,1,null,null,null,null);
  $fileNL = $filepath."\\".$filename;
  $pdf-&gt;Output($fileNL,'F');
  
  ?&gt;
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>TCPDF ERROR: Unable to create output file: \\ADMIN\testsor\pdf\test.pdf
  </code></pre>