Hi,
Code below fails and I cannot solve it.
$folder="myfolder/files";
$file="1.doc";
header("Content-type: application/msword");
header("Content-Disposition: attachment; filename=".$folder."/".$file);
readfile($file);
The file link I get when popup opens is " myfolder_file_1.doc ". I don't know where does the underscore comes from.
Any idea?
Thanks