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.
if ($handle->uploaded) {
// we now process the image a second time, with some other settings
$handle->image_resize = true;
$handle->image_ratio_y = true;
$handle->image_x = 84;
$handle->image_border = '1px';
$handle->image_border_color = '#FFFFFF';
$handle->file_new_name_body = substr($_POST['current1'],0,-4);
$handle->file_overwrite = true;
$handle->Process($dir_dest);
// we check if everything went OK
if ($handle->processed) {
if ($handle->image_dst_y > 70) $handle->image_crop = array(0,0,($handle->image_dst_y - 70),0);
$handle->Process($dir_dest);
It's giving me a timeout error - PHP Fatal error: Maximum execution time of 30 seconds exceeded in W:\...\_class\class.upload.php on line 4844Reply
It's giving me a timeout error -
PHP Fatal error: Maximum execution time of 30 seconds exceeded in W:\...\_class\class.upload.php on line 4844