如何使用PHP下载文件? [英] how to download a file using php?
本文介绍了如何使用PHP下载文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的upload.php
this is my upload.php
展开 | 选择 | Wrap | 行号
推荐答案
我开发了这个脚本从服务器下载CSV文件(我也得到了其他网站的建议,我不记得这个名字)
I developed this script to download CSV file from server (also i got suggestion from other site i cant recall the name)
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号
@ johny10151981
感谢好友。其作品。我可以下载该文件。但我无法阅读内容。当我尝试打开word文档时,它显示错误信息 MS字需要一个转换器来正确显示文件....为什么我得到这个消息....
@johny10151981
thanks buddy. its works. i am able to download the file. but i cant read the contents. when i try open the word document it shows an error msg " MS word needs a converter to display the file correctly".... why i am getting this msg....
很难解释而不检查。你能手动下载文件并尝试阅读吗?
请发布下载链接,以便我可以看到旁边的内容。
hard to explain without examine. Can you manually download the file and try to read?
Please also post the download link so that i can see what in side.
这篇关于如何使用PHP下载文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文