$image_dimensions = @getimagesize($uploadfile); $image_dimensions_width = $image_dimensions[0]; $image_dimensions_height = $image_dimensions[1]; if(($image_dimensions_width < '235') || ($image_dimensions_height < '235')) when i echo $image_dimensions_width and $image_dimensions_height i get 350 and 242. so my if fails... wtf!?