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", 换个编码行不行 请各位高手提供下级联菜单和mysql一起使用的源码。 php怎么调用其他类得方法? 关于 php 配置问题 200分帮我看看这个,谢谢了 求教了PHP小偷程序,如何得到这个页面中的标题并且重复输出 .net转php,问,php有集成开发环境吗? 2字段对同一主键查询 大家推荐点PHP 源代码的网站 【zeed加密的php文件 验证如何取消掉 】求大神啊附完整代码文件 thinkphp访问路劲不对,页面无法正常显示 有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;原理就这样。