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
$image_name=time().'.'.$_FILES['image']['name']; $foo->file_new_name_body = 'small_'.$image_name;
I rename the file to:
Output is: small_1285240138Afb060222jpg.jpg
how to change that? i just want 1 jpg.
Orginal image name: Afb060222.jpg
And how can i put this name to database?