Просмотр поста

.
blackvj

Koenig, Кстати хотел спросить а как сделать обработку картинки через класс.

Делал так...но скрин не выгружаеться

foreach ($_FILES['uplfile']['error'] as $key => $error) {

if ($error == UPLOAD_ERR_OK) {

 $handle = new upload($_FILES['uplfile']['name'][$key]);
 if ($handle->uploaded) {
 $handle->file_new_name_body = $realtime.'_pic';
 $handle->allowed = array('image/jpeg', 'image/gif', 'image/png');
 $handle->file_max_size = 1024 * $flsz;
 $handle->file_overwrite = true;
 $handle->image_resize = true;
 $handle->image_x = 189; 
 $handle->image_y = 107; 
 $handle->image_convert = 'jpg';
 $handle->process('pic'); 
 if ($handle->processed){ 
 
echo "<li>Скрин загружен!</li>";

}
else {echo display_error($handle->error);}
$handle->clean();
}
}


Папка pic лежит в той же папке что и файл выгрузки.