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?
chmod ("/somedir/somefile", 755); // php script code
does not work you still can try
unlink($filename); // php script code
rmdir($dirname); // php script code
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.