在php或javascript中上传和读取文本文件 [英] upload and read text file in php or javascript

查看:68
本文介绍了在php或javascript中上传和读取文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好..

我想在我的网页上传文本文件并显示其内容。

例如;我有浏览按钮,这将允许我查找文本文件和另一个按钮,这将允许我在点击时显示文本文件的内容。

它应该还显示一条错误消息,如果我尝试上传文本文件以外的其他文件(.txt)

你能帮我吗...

thnxx

解决方案

看一下这个链接:



http: //www.w3schools.com/php/php_file_upload.asp [ ^ ]

Hello..
I want to upload a text file in my webpage and display its contents.
For example; i have the browse button which will allow me to look for the text file and another button which will allow me to display the contents of the text file on click.
It should also display an error message if i try to upload other file other than text file(.txt)
Can you help me..
thnxx

解决方案

Take a look at this link:

http://www.w3schools.com/php/php_file_upload.asp[^]


这篇关于在php或javascript中上传和读取文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆