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
header( 'content-type: text/html; charset=utf-8' ); include('class.upload.php'); $handle = new upload($_FILES['img_actu'], 'fr_FR'); if ($handle->uploaded) { $handle->image_convert = 'jpg'; $handle->file_new_name_body = 'actu'; $handle->image_resize = true; $handle->image_ratio_y = true; $handle->image_x = 300; $handle->process('C:/wamp/www/test_img_php/images/'); } echo $handle->file_dst_path;
here, my page where i call the class