Автор Дмитрий Мокрецов задал вопрос в разделе Другие языки и технологии
Как узнать размер файла изображения в php? и получил лучший ответ
Ответ от Ringo-chan[гуру]
getimagesize
Returns an array with 7 elements.
Index 0 and 1 contains respectively the width and the height of the image.
Index 2 is one of the IMAGETYPE_XXX constants indicating the type of the image.
Index 3 is a text string with the correct height="yyy" width="xxx" string that can be used directly in an IMG tag.
Источник: rtfm
Ringo-chan
(17758)
filesize()
Ответ от 22 ответа[гуру]
Привет! Вот подборка тем с похожими вопросами и ответами на Ваш вопрос: Как узнать размер файла изображения в php?