Its a cms of sorts, and Im uploading the big pics, then php crops the thumbs and copies the thumbs and the bigger photos to where they are meant to be. So apache is taking ownership of those files. Im wanting to then delete the source files.
Ive actually managaged to get the files deleted, now its not deleting the folder and is saying operation not permitted.
Ill work on it some more today, Its something im doing wrong in my code
Thanks for your help!