phpexcel save file to server ubuntu -
i'm problem share see if can provide help.
php excel use ubuntu , want guaradar file generated in specific folder of project directory. understand looking information made follows, not working properly. code follows:
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->save('nameoffile.xls'); $filename = (__dir__); $objwriter->save($filename . '/report.xlsx');
try other alternatives without success next block
$objwriter->save('nameoffile.xls');
and can not save file generated excel in specific directory
Comments
Post a Comment