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
require('class.upload.php'); class my_upload extends upload { function my_extension() { // my code here } }
$foo = new upload($_FILES['my_field']);
If you want to extend the class? You can do the following:
In any case, you pass on $_FILES when you instanciate the class. For instance: