Jump to content

Recommended Posts

i need some help with folder restrictions.

 

i have a site where users can leave comments/feedback.

i have the body of the comment written to a text file.

 

so, when the user hits "submit comment/feedback", the text is written to a text file.

 

i also have it set up so the user can click a link to delete the file that was written.

 

i want to know what folder settings i should use that will allow the users to edit, write, and delete their text files through links/ forms on my site.

 

right now i have it set up to 0777, but i know that setting is unsecure.

 

which setting should i use to accomplish this and is there anything spcecial i have to write in the code to use this restriction?

 

thanks

 

chris

Link to comment
https://forums.phpfreaks.com/topic/53322-folder-restrictions/
Share on other sites

I may be wrong, but 0777 is what you need set to allow this to happen.

 

That gives owner, group and world read, write and execute permissions. The main key is that world needs to have write access to delete files in a directory.

 

As I said, I may be wrong, but I don't think I am. I have an upload document script that allows people to upload files. The directory that the file is moved to has to be 0777 in order for the script to work.

 

 

Link to comment
https://forums.phpfreaks.com/topic/53322-folder-restrictions/#findComment-263533
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.