$filename = $_FILES['image']['tmp_name']; $size = getimagesize($filename); // or list($width, $height) = getimagesize($filename); // USAGE: echo $width; echo $height;