class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Output the log produced by the class to check whether it goes to that function or not. If you see cleanup in the log, it should delete the file.
But maybe it diesn't, because of permissions or other weird reason. To test that, remove the @ in front of the unlink() function, so that PHP will not suppress any eventual error message.Reply
But maybe it diesn't, because of permissions or other weird reason. To test that, remove the @ in front of the unlink() function, so that PHP will not suppress any eventual error message.