我只能在单词文档中看到文本,而图像只是一个带X的框。
<?php
header("Content-type: application/msword");
header("Content-Disposition: attachment;Filename=test.doc");
?>
<html>
<head></head>
<body>
<img src="http://mydomainname/Gallery/header.png" width="600px" height="110px" style="opacity:0.5;">
</body>
</html>
答案 0 :(得分:2)
答案 1 :(得分:0)
试一试:
$nama_file='name_file.doc';
header("Content-Type: application/vnd.ms-word");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-disposition: attachment; filename=".$nama_file);
header("Pragma: public");