what is Clean(); ?

See all posts Reply

what is Clean(); ? new!
by Cameron, 13 years ago
I'm wondering about this bit of code

$handle-> Clean();

I originally assumed it was deleting the uploaded files from the "test" folder from the comment

// we delete the temporary files

but on my server, all the images I upload and manipulate are still in the test folder. It can fill up mighty fast!

So what is it Clean is supposed to do?Reply
Re: what is Clean(); ? new!
by colin, 13 years ago
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