| file permissions with php Building a CMS, and in it allowing people to create/delete files, but I also want people to be able to make manual edits to the files through FTP if they so wish. I've got it coded so the CMS reads the file directly. Here's my question, though . . . is there a way to set file permissions when using fopen to create a file on the server? The files are defaulting to 644, which is fine and dandy but won't allow someone to FTP any changes to the file.
I'm aware of the security issues . . . just want to know if this is something that is possible to do. Any thoughts? |