On my application, the user needs to click on a file name, and then the user is supposed to choose either to download the file or open it. I put code for it that is working fine for .doc, .txt extentions yet it is not working fine for .docx
My code is the following:
@header('Location:'.$attachment_path);
Any idea of how to do it so it will work for all kind of attachment?