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.
more info about the class
This is the way which i used to upload local file
$handle= new upload("/home1/ribelzxxx/public_html/apps/xxxx/images/mergePhone.png");
This can be used only one time. After 1 image processing 'mergePhone.png' renamed as 'mergePhone_1.png'.
I used $handle->file_overwrite = true; but it won't.
'mergePhone.png' image is use to every image. It as a main image.
What is the solutions.?