can I unlink the same file that is being executed? using the unlink() function, if I am running test.php, can I have unlink('test.php'); in the test.php file? also, do I need to have proper file permissions for the file to be able to unlink? what perms should I use? chmod 777?
Also, when I try unlinking a file, it fails? Why? I already chmod to 777.