【发布时间】:2010-06-02 14:23:26
【问题描述】:
我查看了文章和教程。
我不知道如何保护我的图片上传文件夹的安全性。
是分类的图片,应该上传到文件夹中。
这就是我想要的:
Anybody may upload images to the folder.
The images will be moved to another folder, by another php-code later on (automatic).
Only I may manually remove them, as well as another php file on the server which automatically empties the folder after x-days.
我应该在这里做什么?
图像通过 php-upload 脚本上传。 此脚本检查文件的扩展名是否实际上是有效的图像文件。
当我尝试这个时:
chmod 755 images
图片不会上传。
但是像这样它可以工作:
chmod 777 images
但是 777 存在安全风险对吗?
请给我详细的资料...
问题是,如何解决这个问题,而不是关于有什么权限等的信息......
谢谢
如果您需要更多信息,请告诉我...
【问题讨论】:
-
你可能应该在之前关于权限的问题中问过这个问题stackoverflow.com/questions/2958193