Im got a patch from phpdocx. Previously I used $docx->createDocxAndDownload('temp/somedoc');
Now, I cannot use createDocxAndDownload.
So are these the correct headers for createDocxAndDownload?
header('Content-type:application/vnd.openxmlformats-officedocument.wordprocessingml.document');
header('Content-Disposition:attachment;filename="somedoc.docx"');
readfile('temp/2.docx');