将文件上传到FileZilla [英] Uploading a file into FileZilla
本文介绍了将文件上传到FileZilla的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了以下.php表单,将文件上传到本地安装的XAMP服务器的FileZilla服务器.
文件上传表单
I have created the following .php form to upload a file to the locally installed XAMP server''s FileZilla server.
File Upload form
<html>
<body>
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>
以下将是上载脚本.
The following will be the Upload Script.
<?php
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
?>
但是我的问题是我应该如何赋予脚本将文件上传到Filezilla服务器的权限?
But my question is how should I give the script to upload the file to the Filezilla server?
推荐答案
_FILES [" 文件"] [ 错误"] span>]> 0) { echo " .
_FILES["file"]["error"] > 0) { echo "Error: " .
_FILES [" ] [ 错误"]. " ; } 其他 { echo " .
_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " .
_FILES [" ] [ 名称"]. " ; echo " .
_FILES["file"]["name"] . "<br />"; echo "Type: " .
这篇关于将文件上传到FileZilla的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文