php - file not found when using header() in php7 -


when update php5.6 php7.0.2 i`m getting error 'file not found'. in php5.6 works fine, php.ini , other server settings same. code:

header('content-type: application/vnd.ms-excel'); header('content-disposition: attachment;filename="'.$this->name.'.xls"');// header('cache-control: max-age=0'); $objwriter->save('php://output'); 

while debug error appear after first , second line. server apache/2.4.18 (ubuntu).


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -