php生成word 我有一个php页面,里面是html的内容,表格,文字,图片等,网上搜了,说转成mht文件再转成word,我现在转成mht文件了,用浏览器打开正常,图片信息都能显示,但是转成word后就格式不正确,图片也不能显示了,直接用word打开mht文件也不正常,怎么解决呢?请教各位,页面上一定是有图片的,跪求解决方案,在线等!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是不是编码问题??mht 直接word打开显示什么? 贴代码 header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); $fileContent = '内容'; $fileName = iconv("utf-8", "GBK", '文件名' . '_'. $intro . '_' . rand(100, 999)); header("Content-Type: application/doc"); header("Content-Disposition: attachment; filename=" . $fileName . ".doc"); echo $fileContent;原理就这样。 iconv("utf-8", 换个编码行不行 求ewebeditor6.2的php版本 现在哪一种开源框架最好? 在本地测试没有问题,放到空间上就有问题了??? 这个正则表达式怎么写? smarty官方最新版本3.1.5 请问是否版本越新越好用? 匹配字典数据,最快算法。 PHP框架里面无法提交数据 discuz后台登陆问题 有朋友用过WordPress吗? 白痴问题---js验证复选. 有zencart大手么 disucz X3 模板标签有没有类似功能{array|@count}
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
$fileContent = '内容';
$fileName = iconv("utf-8", "GBK", '文件名' . '_'. $intro . '_' . rand(100, 999));
header("Content-Type: application/doc");
header("Content-Disposition: attachment; filename=" . $fileName . ".doc");
echo $fileContent;原理就这样。