Reply to Re: i got error to make a class object

Re: i got error to make a class object new!
by manish, 16 years, 6 months ago
my complete code ,

if ($_POST['action'] == 'local') {
  $handle = new Upload($_FILES['user_img']);
  $handle->mime_check = false;
  $handle->allowed = array("image/bmp",
                           "image/gif",
                           "image/jpeg",
                           "image/png",
                           "image/jpg");
  if ($handle->uploaded) {
    $handle->image_resize          = true;
    $handle->image_ratio           = true;
    $handle->image_y               = 106;
    $handle->image_x               = 100;
    $handle->file_name_body_add = '_'.$current_userid;
    $handle->Process('./user_image/');
    $upload_image_name = $handle->file_dst_name;
  }	

  if($upload_image_name=='') {
    //business logic
  } else {
    //business logic
  }
}
Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important