PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I would assume that you need to have write permission on the folder from which you are trying to delete the files - if you only had read permission then you wouldn't be able to modify the folder's files only look at them. That's possibly where the errors are coming from. What's the permissions currently on the parent directory?
phpFF/ - 775 (parent directory to where the folders/files (i wish to delete using rmdir() and unlink()) reside in
phpFF/asdf/ - 775 - (folder I wish to delete using rmdir()) completely nothing inside
Ok, so I've got it working and I know exactly what I need done to delete files and folders.
The parent directory of the desired folder/file has to be CHMOD'd to 777. This may result in an error, in example if the user CHMODs a folder to something like 755, then it'll be unable to delete files/folders inside that folder.
I'm pondering on a function that'll check if the parent directory is CHMOD'd to 777, if not, then it'll CHMOD that directory. Yet, this could easily result in a problem.