I've uploaded some files into a directory i've created (using a php upload script). At first I didn't set the right chmod for dir. and files (411 instead of 777). Now this folder and files are stuck on the server, can't delete using FTP, cant delete using script: unlink/rmdir. I don't have server acces. Is there any way to still do this using PHP scripting?
migrated from stackoverflow.com Jun 9 '11 at 12:35
This question came from our site for professional and enthusiast programmers.
does not work you still can try
to remove them. If this does not work then your apache-account on the server does not have the necessary rights to do that. I guess this should usually work cause your apache-account created those files.
There is PHP's chmod filesystem function, assuming PHP's process is the owner of dir, you can change permissions using it.