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
$handle = new Upload($_FILES["Webradio_Rodape"]); if ($handle->uploaded){ $imageName = $handle->file_src_name; $handle->file_new_name_body = date("Ymdhis").md5($imageName); $handle->mime_check = true; $handle->allowed = array('image/*'); //$handle->image_convert = ''; if(($handle->image_src_x > 200) || ($handle->image_src_y > 100)){ $handle->image_resize = true; $handle->image_ratio = true; $handle->image_x = 200; $handle->image_y = 100; } $handle->Process('../img/Webradio/'); if ($handle->processed){ $Webradio_Rodape = $handle->file_dst_name; } }
this problem a server configuration but my support dont help yet - somebody know anything?