Author: ".$image_author."
"; } // Image ID if ($image['id'] == 69) { echo "ID: ".$image['id'].", nice
"; } else { echo "ID: ".$image['id']."
"; } $upload_time = new DateTime($image['upload_date']); echo "Uploaded at: ".$upload_time->format('d/m/Y H:i:s T')."
"; ?>Last Modified: time($image['last_modified']); ?>
File Type: ".pathinfo($image['imagename'], PATHINFO_EXTENSION)."
"; // Image resolution list($width, $height) = getimagesize($image_path); echo "Image resolution: ".$width."x".$height."
"; function human_filesize($bytes, $decimals = 2) { $sz = 'BKMGTP'; $factor = floor((strlen($bytes) - 1) / 3); return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor]; } echo "File size: ".human_filesize(filesize($image_path), 2)."
"; ?>