php - 使用 PHP 访问远程服务器的目录
问题描述
我正在尝试将文件从远程服务器上传到 s3 存储桶。问题是我正在从 localhost 访问该服务器。在我的 django 模板中使用 PHP 上传功能时,它会提供我本地目录中的文件列表。我希望它给我服务器中的目录。
无论如何我可以更改此 php 功能的域名以匹配我的服务器的域名吗?如果是,如何?
我目前正在尝试找到像 weevely 这样可以连接到我的服务器的后门机制。
<!DOCTYPE html>
<html>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
</body>
</html>`
选择要上传的图片:
TIA
解决方案
推荐阅读
- wamp - 尝试运行 WAMP 时出现错误消息(Windows 10)
- jquery - 添加新项目时的购物车模式 - rails 5 jquery
- python - 运行 python unittest 直到它失败
- android - BigQuery 时间戳时区
- javascript - amChart 日期轴偏移
- dns - 域映射 - 您可以使用 CNAME 代替“a”记录吗
- python - 为什么它跳过 else 语句而不传递正确的图像?
- iis - 迁移窗口服务器后出现 404 错误
- python - Python列表比numpy数组表现更好?
- r - 如何在 R 中使用 CEM 包找出精确匹配