在php中上传和下载文件 [英] uploading and downloading file in php
本文介绍了在php中上传和下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过php上传和下载文件?
如果是,那么有人可以建议使用它的代码吗?
Is there is any option for uploading and then downloading the file in php?
if yes, can anyone suggest the code for it?
推荐答案
您需要开发此代码-谁有兴趣为您编写这么多代码? />
上传:使用常规的投递表单(method ="post"),该表单具有输入type ="file"和带有type ="submit"的按钮.在服务器端,使用PHP对象
You need to develop this code — who would be interested to write so much of code for you?
Upload: Use the regular post form (method="post") which has an input type="file" and a button with the type="submit". On the server side, use the PHP object
_FILES
control_name],其中
control_name], where
这篇关于在php中上传和下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文