Jump to content

permissions


asmon

Recommended Posts

when uploading a file, i move it into a folder

but in order to do that, i have to change folder permission to 'write by others'

won't it allow anyone just enter that folder and remove\add any file they want?

and what can i do about it?

Link to comment
Share on other sites

You need to chmod() the directory to 777, by default a directory created by php has the same access privileges as in which php.exe is executed. I do not recommend modifying it to 777, this will allow anyone to modify the directory. Thus, if you want only one person to be able to modify the directory then you'll have to do this programmatically using group-, role-, or user-based access control.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.