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 = 'big_'.$image_name;
I gave the file a new name:
2 things:
1. he will rename it to: big_1285020073Afb076jpg.jpg
so thats 2 times jpg, and i just want it one time/
2. How to put the new name in database?