title: phpexcel save file to server ubuntu
body: <p>I'm with a problem I would like to share to see if I can provide help.</p>
  
  <p>PHP Excel use Ubuntu and want guaradar the file generated in a specific folder of my project directory. I understand that looking information is made as follows, but it is not working properly.
  My code is as follows:</p>
  
  <pre><code>header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
      //header('Content-Disposition: attachment;filename="ReporteSuscriptores.xlsx"');
      header('Cache-Control: max-age=0');
  
      $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
      //$objWriter-&gt;save('nameoffile.xls');
      $filename = (__DIR__);
      $objWriter-&gt;save($filename . '/report.xlsx');
  </code></pre>
  
  <p>Try other alternatives without success as the next block</p>
  
  <pre><code>$objWriter-&gt;save('nameoffile.xls');
  </code></pre>
  
  <p>And I can not save the file generated excel in a specific directory</p>