Processing a second time after first process?

See all posts See thread Reply

Re: Processing a second time after first process? new!
by Murray Summers, 14 years, 2 months ago
Thanks! Here's what I have now -

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
Re: Processing a second time after first process? new!
by colin, 14 years, 2 months ago
You need to increase the maximum execution time of your script. You can use the PHP function set_time_limit() or change max_execution_time value defined in the php.iniReply