0
Hello, I am generating an Excel table using the Phpexcel class, so it generated forced the download, only now I want to generate it save on the server instead of force the download directly, I did not find in the documentation, the part that forces the download
header('Content-Disposition: attachment;filename="planilha.xls"');
$objWriter->save('php://output');
just use
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
and then$objWriter->save(diretorio/planilha.xls);
. The second parameter of createWriter is the version that will be saved, in this case for files . xls uses Excel5, to save . xlsx use Excel2007.– David Santos
Thanks friend, so solved, like the reply of William
– walter alves