开发者

File permissions question

If I need a php-page to have access to upload images and move images from a folder on the server, what permissions would I set on the folder then?

I know we开发者_运维技巧 have "Owner", "Group", and "Others". But what does the server (or the php-code itself) count as? Owner?

Also, would I need to set the php-page with the upload script with some specific permissions to be able to upload the files? Is it execute permissions?

Thanks


  1. It depends on which user the server is run as. The web server is often run as "Other", but that's not always the case so I suggest you ask your sysadmin or hosting provider.

  2. No, you don't need to set any special permissions on the upload script, only on the folder you're uploading to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜