to yorgo(羽高) 说的有道理,的确总是出现文件下载界面,而且经常死机但是,怎么让自己的浏览器支持内前word呢? 另外,运行你说的文件http://www.csdn.net/develop/library/other/PHP/3970.shtm ,怎么出现这样的错误呢? Warning: Cannot add header information - headers already sent by (output started at c:\php\sybase\test3.php:2) in c:\php\sybase\test3.php on line 4Warning: Cannot add header information - headers already sent by (output started at c:\php\sybase\test3.php:2) in c:\php\sybase\test3.php on line 6 test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 非常感谢
我自己测试过txt文件,都可以。唯独word文档不可以
我用的是windows 2000 professional.
不然的话打开的时候就会变成文件下载然后使用php输出标题头
header("content-type:application/vnd.ms-word");header("content-disposition:filename=test.doc");下面将所有文档的内容print出来以上可能可以实现,没有测试
详细参考http://www.csdn.net/develop/library/other/PHP/3970.shtm
PHP控制打开还是在IE中打开
说的有道理,的确总是出现文件下载界面,而且经常死机但是,怎么让自己的浏览器支持内前word呢?
另外,运行你说的文件http://www.csdn.net/develop/library/other/PHP/3970.shtm ,怎么出现这样的错误呢?
Warning: Cannot add header information - headers already sent by (output started at c:\php\sybase\test3.php:2) in c:\php\sybase\test3.php on line 4Warning: Cannot add header information - headers already sent by (output started at c:\php\sybase\test3.php:2) in c:\php\sybase\test3.php on line 6
test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 非常感谢
是在IE中打开
这种错误怎么突然又没有了呢?在PHP环境中可以实现。但是在IE中则只有test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 test1 test2 呢?
你的ie可能不支持内嵌word,这个功能要安装office才会有
yorgo(羽高)的解答给了我思路,终于我解决出来了。15分
其余参与者都有一点,不要嫌少啊。我分也不多了。