title: tcpdf wordpress error in PHP even tho i followed the tcpdf example 1by1
body: <p>I created a plugin where when you press send, the data in the form should be translated to pdf and saved in a folder for backup purposes.</p>
  
  <p>I'm using the tcpdf api, downloaded the library and put it in my plugin folder. as i try to test it with the givin textexample from the tcpdf site, it just throws up thses errors:</p>
  
  <blockquote>
    <p>"Warning: "continue" targeting switch is equivalent to "break". Did
    you mean to use "continue 2"? in
    /www/htdocs/w00e68de/msp.rfid-dresden.de/wp-content/plugins/wp-markenbuero/tcpdf/tcpdf.php
    on line 17778</p>
    
    <p>Warning: fopen(): remote host file access not supported,
    file://example_002.pdf in
    /www/htdocs/w00e68de/msp.rfid-dresden.de/wp-content/plugins/wp-markenbuero/tcpdf/include/tcpdf_static.php
    on line 1854</p>
    
    <p>Warning: fopen(file://example_002.pdf): failed to open stream: no
    suitable wrapper could be found in
    /www/htdocs/w00e68de/msp.rfid-dresden.de/wp-content/plugins/wp-markenbuero/tcpdf/include/tcpdf_static.php
    on line 1854 TCPDF ERROR: Unable to create output file:
    example_002.pdf"</p>
  </blockquote>
  
  <pre><code>// Include the main TCPDF library (search for installation path).
  require_once('tcpdf/tcpdf.php');
  
  // create new PDF document
  $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
  
  // set document information
  $pdf-&gt;SetCreator(PDF_CREATOR);
  $pdf-&gt;SetAuthor('Nicola Asuni');
  $pdf-&gt;SetTitle('TCPDF Example 002');
  $pdf-&gt;SetSubject('TCPDF Tutorial');
  $pdf-&gt;SetKeywords('TCPDF, PDF, example, test, guide');
  // remove default header/footer
  $pdf-&gt;setPrintHeader(false);
  $pdf-&gt;setPrintFooter(false);
  // set default monospaced font
  $pdf-&gt;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
  // set margins
  $pdf-&gt;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
  // set auto page breaks
  $pdf-&gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
  // set image scale factor
  $pdf-&gt;setImageScale(PDF_IMAGE_SCALE_RATIO);
  // set some language-dependent strings (optional)
  if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
  require_once(dirname(__FILE__).'/lang/eng.php');
  $pdf-&gt;setLanguageArray($l);
  }
  // ---------------------------------------------------------
  // set font
  $pdf-&gt;SetFont('times', 'BI', 20);
  // add a page
  $pdf-&gt;AddPage();
  // set some text to print
  $txt = &lt;&lt;&lt;EOD
  TCPDF Example 002
  Default page header and footer are disabled using setPrintHeader() and setPrintFooter() methods.
  EOD;
  // print a block of text using Write()
  $pdf-&gt;Write(0, $txt, '', 0, 'C', true, 0, false, false, 0);
  // ---------------------------------------------------------
  //Close and output PDF document
  $pdf-&gt;Output('example_002.pdf', 'F');
  }
  ?&gt;
  </code></pre>