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.
I thought I would delete the folder named 'test' and try again but I am unable to do anything at all in this folder, not even delete the jpg's in it.
257 "/htdocs/test/test" is current directory.
DELE test_1.jpg
550 test_1.jpg: Permission denied.
! Delete of test_1.jpg failed.
DELE zzzsqIMG_2275_cr.jpg
550 zzzsqIMG_2275_cr.jpg: Permission denied.
! Delete of zzzsqIMG_2275_cr.jpg failed.
DELE test.jpg
550 test.jpg: Permission denied.
! Delete of test.jpg failed.